Skip to Content
Grail Network
API reference

Shop Orders_list Orders

GET
/shop/orders

Authorization

shopApiKey
headerAuthorizationBearer <token>

The shop's API key.

Query Parameters

page?integer
Range1 <= value <= 9007199254740991
Default1
pageSize?integer
Range1 <= value <= 200
Default20
sort?string
Default"-createdAt"
Value in"createdAt""-createdAt"
state?string
Value in"pending""paid""placed""failed"
buyerId?string

The shop's own id of the buyer

Length1 <= length <= 200

Response Body

application/json
  1. response
data*array<>
meta*
Example Request
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  }}