Get the order history for an account
Request
To get the order history for an account, send a GET request to:
https://<host>:<port>/orders/v1/history
Mandatory fields
token
– the signon token that identifies the account (either as a bearer token header or in the query string)
Response
A successful request returns an HTTP 200 status. The body of the response contains the order history for the account. This includes the different stages of the order lifecycle that each order went through (CREATED
, VALIDATED
, GRANTED
, ACTIVE
, FAILED
).
A bad request returns an HTTP 400 status.
A request to view a subscription that does not exist returns an HTTP 404 status.
Example
A successful request returns a response that looks like this:
[
{
"purchasable": {
"accountId": "string",
"purchasableType": "string"
},
"event": "GRANTED (RMG has granted rights to content)"
}
]
See also
For full details of this API, see the Orders API documentation.