API
API ReferenceOrdersOrderid

Get order

Takes the id this API returned, or the `externalOrderId` you sent when creating it. Webhook payloads are deliberately thin — this is where the detail behind them lives.

GET
/v1/orders/{orderId}

Takes the id this API returned, or the externalOrderId you sent when creating it. Webhook payloads are deliberately thin — this is where the detail behind them lives.

Authorization

apiKey
AuthorizationBearer <token>

An API connection key, sent as Authorization: Bearer <key>. The x-api-key header is accepted as an alternative.

In: header

Path Parameters

orderId*string

Our order id, or your own externalOrderId.

Length1 <= length <= 200

Response Body

application/json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

curl -X GET "https://example.com/v1/orders/string"
{  "id": "string",  "testMode": true,  "externalOrderId": "string",  "status": "NEW",  "onHold": true,  "onHoldReasons": [    "out_of_stock"  ],  "createdAt": "2019-08-24T14:15:22Z",  "shippingAddress": {    "name": "string",    "firstName": "string",    "lastName": "string",    "company": "string",    "phone": "string",    "address1": "string",    "address2": "string",    "city": "string",    "stateCode": "string",    "zip": "string",    "countryCode": "string"  },  "lines": [    {      "id": "string",      "productId": "dcd53ddb-8104-4e48-8cc0-5df1088c6113",      "quantity": 0,      "shipmentId": "string"    }  ],  "shipments": [    {      "id": "string",      "status": "pending",      "trackingNumber": "string",      "trackingUrl": "http://example.com",      "createdAt": "2019-08-24T14:15:22Z",      "lineIds": [        "string"      ]    }  ]}