Orders

Read an order

One order with its lines and its buyer.

Authorization

bearer orders:read
AuthorizationBearer <token>

A v1 API key; the scope named is the one the route needs.

In: header

Scope: orders:read

Path Parameters

orderId*string
Match^[A-Za-z0-9_-]{1,64}$
Length1 <= length <= 64

Response Body

application/json

application/problem+json

GET
/v1/orders/{orderId}
curl -X GET "https://example.com/v1/orders/string"
{  "id": "string",  "number": "string",  "status": "created",  "total": {    "amount": -9007199254740991,    "currency": "string"  },  "subtotal": {    "amount": -9007199254740991,    "currency": "string"  },  "tax": {    "amount": -9007199254740991,    "currency": "string"  },  "fee": {    "amount": -9007199254740991,    "currency": "string"  },  "discount": {    "amount": -9007199254740991,    "currency": "string"  },  "discountCode": null,  "taxBreakdown": null,  "reverseCharge": null,  "totalItems": 0,  "country": "string",  "checkoutId": "string",  "subscriptionId": "string",  "lastPaymentId": "string",  "lastPaymentNumber": "string",  "invoiceNumber": "string",  "createdAt": "2019-08-24T14:15:22Z",  "customer": {    "id": "string",    "email": "user@example.com",    "name": "string",    "companyName": "string",    "taxNumber": "string",    "taxNumberType": "string",    "address": {      "line1": "string",      "line2": "string",      "city": "string",      "state": "string",      "postalCode": "string",      "country": "string"    },    "createdAt": "2019-08-24T14:15:22Z",    "username": null,    "reference": null,    "type": null,    "firstName": null,    "lastName": null,    "phoneDialCode": null,    "phoneNumber": null  },  "items": [    {      "id": "string",      "productId": "string",      "priceId": "string",      "quantity": 1,      "unitPrice": {        "amount": -9007199254740991,        "currency": "string"      },      "listTotal": {        "amount": -9007199254740991,        "currency": "string"      },      "net": null,      "tax": null,      "gross": null,      "taxRatePercent": null,      "taxBehavior": null,      "taxType": null,      "discount": null,      "name": "string",      "variant": "string",      "variantReference": null,      "productReference": null,      "priceReference": null,      "plan": "string",      "productType": "string",      "customFields": null    }  ]}