API reference
Shop Orders_list Orders
GET
shopApiKeyheader
AuthorizationBearer <token>The shop's API key.
page?integerRange
1 <= value <= 9007199254740991Default
1pageSize?integerRange
1 <= value <= 200Default
20sort?stringDefault
"-createdAt"Value in
"createdAt""-createdAt"state?stringValue in
"pending""paid""placed""failed"buyerId?stringThe shop's own id of the buyer
Length
1 <= length <= 200application/json- response
data*array<>meta*curl -X GET 'https://api-stg.grailnetwork.com/shop/orders'Example Response
{ "data": [ { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "quoteId": "826e5192-f8c6-4e24-aab3-3910e46c52b7", "buyerId": "string", "state": "pending", "reason": "balance_too_low", "refusedHoldingIds": [ "471cfae2-98a3-4584-9e8c-bc3be8d358a9" ], "total": { "shippingCost": { "amountAtomic": "string", "currency": "USD" }, "markup": { "amountAtomic": "string", "currency": "USD" }, "buyerPrice": { "amountAtomic": "string", "currency": "USD" } }, "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z", "shipmentCount": -9007199254740991 } ], "meta": { "page": 1, "pageSize": 1, "total": 0 }}