Light Services

Find a purchase by ID

GET
/purchases/{purchase}

Authorization

bearerAuth
AuthorizationBearer <token>

Personal access token generated in the admin dashboard.

In: header

Path Parameters

purchase*string

Response Body

application/json

application/json

curl -X GET "http://localhost:8000/api/purchases/string"
{
  "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"
  }
}
{
  "message": "string"
}