Light Services

List the authorized user's purchases paginated

Purchases from the customer's paid orders, newest first, 10 per page.

GET
/me/purchases

Authorization

oauth2 purchases:read
AuthorizationBearer <token>

Access token issued to a third-party application by the store's OAuth2 server.

In: header

Scope: purchases:read

Query Parameters

page?integer

Page number for pagination.

Response Body

application/json

application/json

application/json

curl -X GET "http://localhost:8000/api/me/purchases?page=1"
{
  "data": [
    {
      "id": 0,
      "order_id": 0,
      "product_id": 0,
      "quantity": 0,
      "created_at": "2019-08-24T14:15:22Z",
      "updated_at": "2019-08-24T14:15:22Z",
      "unit_price": "string",
      "unit_price_currency_id": 0,
      "original_currency_id": 0,
      "original_unit_price": "string",
      "currency_rate": 0,
      "license_granted_at": "2019-08-24T14:15:22Z",
      "formatted_price": "string"
    }
  ],
  "links": {
    "first": "string",
    "last": "string",
    "prev": "string",
    "next": "string"
  },
  "meta": {
    "current_page": 1,
    "from": 1,
    "path": "string",
    "per_page": 0,
    "to": 1
  }
}
{
  "message": "string"
}
{
  "message": "string"
}