Skip to content

Get an order by ID.

GET
/v1/orders/{id}
const url = 'https://api.staging.elasticstage.com/store/v1/orders/example';
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
id
required
string

Default Response

Media typeapplication/json
object
id
required
string
status
required
string
Allowed values: pending processing shipped delivered cancelled payment_failed
source
required
object
platform
required
string
store_id
string | null
external_order_id
string | null
total
required
object
amount
required
integer
<= 9007199254740991
currency
required
string
Allowed values: GBP USD EUR JPY
item_count
required
integer
<= 9007199254740991
line_items
required
Array<object>
object
id
required

The line's stable id. Shipments and order.shipped webhooks refer to lines by it.

string
sku
required
string
title
required
string
ean
required

The release's EAN (barcode), as recorded on the order or found in the catalogue. Null when neither has one.

string | null
release_title
required

The title of the release this line was sold from, as listed in the catalogue. Null when the release is not in the catalogue yet, belongs to another creator, or could not be looked up.

string | null
artist_name
required

The release's primary artist. Null when the release is not in the catalogue yet, belongs to another creator, or could not be looked up.

string | null
record_label
required

The release's record label. Null when none is set, or when the release is not in the catalogue yet, belongs to another creator, or could not be looked up.

string | null
quantity
required
integer
>= 1 <= 9007199254740991
unit_price
required

The unit price the merchant charged the customer, as supplied in the POST /v1/orders payload. The order total is the sum of these across all items, plus shipping.

object
amount
required
integer
<= 9007199254740991
currency
required
string
Allowed values: GBP USD EUR JPY
shipping_address
required
object
full_name
string | null
company
string | null
address_line_1
required
string
address_line_2
string | null
city
required
string
postal_code
string | null
province_code
string | null
country_code
required
string
billing
required
Any of:
object
method
required
string
Allowed values: enterprise_invoice credit_card
payment_status
required
string
Allowed values: paid rejected pending none
charged_at
required
Any of:
string format: date-time
shipping
required
object
rate_id
required
string
amount
required
object
amount
required
integer
<= 9007199254740991
currency
required
string
Allowed values: GBP USD EUR JPY
shipments
required

The order's shipments, each with its own tracking and the lines it carries.

Array<object>
object
id
required
string
shipped_at
required
Any of:
string format: date-time
cancelled_at
required
Any of:
string format: date-time
tracking
required
Any of:
object
carrier
required
string
tracking_number
required
string | null
tracking_url
required
Any of:
string format: uri
line_items
required

The order lines this shipment carries; the full line is in the order's line_items. Every line is in exactly one shipment.

Array<object>
object
id
required
string
sku
required
string
quantity
required
integer
>= 1 <= 9007199254740991
tracking
required
Any of:
object
carrier
required
string
tracking_number
required
string | null
tracking_url
required
Any of:
string format: uri
created_at
required
string format: date-time
updated_at
required
string format: date-time
Example
{
"id": "ord_3a9f21",
"status": "processing",
"source": {
"platform": "shopify_app",
"store_id": "1234",
"external_order_id": "1234"
},
"total": {
"amount": 8599,
"currency": "GBP"
},
"item_count": 2,
"line_items": [
{
"id": "oli_8f2k1m9x0pqa",
"sku": "LUM-ME-12-001",
"title": "Midnight Echoes",
"ean": "0810074421393",
"release_title": "Midnight Echoes",
"artist_name": "The Lumineers",
"record_label": "Lumen Records",
"quantity": 2,
"unit_price": {
"amount": 3900,
"currency": "GBP"
}
}
],
"shipping_address": {
"full_name": "Ada Lovelace",
"address_line_1": "12 Baggot Street",
"city": "Dublin",
"postal_code": "D02 X285",
"country_code": "IE"
},
"billing": {
"method": "credit_card",
"payment_status": "paid",
"charged_at": "2026-02-01T15:22:05.000Z"
},
"shipping": {
"rate_id": "standard_eu",
"amount": {
"amount": 799,
"currency": "GBP"
}
},
"shipments": [
{
"id": "shp_4c7d9e1f2a3b",
"shipped_at": null,
"cancelled_at": null,
"tracking": null,
"line_items": [
{
"id": "oli_8f2k1m9x0pqa",
"sku": "LUM-ME-12-001",
"quantity": 2
}
]
}
],
"tracking": null,
"created_at": "2026-02-01T15:22:00.000Z",
"updated_at": "2026-02-01T15:22:05.000Z"
}

Default Response

Media typeapplication/json
object
statusCode
required
number
code
required
string
Allowed values: VALIDATION_ERROR UNAUTHORIZED FORBIDDEN NOT_FOUND CONFLICT UNPROCESSABLE_ENTITY RATE_LIMITED SERVICE_UNAVAILABLE INTERNAL_ERROR
error
required
string
message
required
string
details
Array
Example
{
"statusCode": 401,
"code": "UNAUTHORIZED",
"error": "Unauthorized",
"message": "Authentication required."
}

Default Response

Media typeapplication/json
object
statusCode
required
number
code
required
string
Allowed values: VALIDATION_ERROR UNAUTHORIZED FORBIDDEN NOT_FOUND CONFLICT UNPROCESSABLE_ENTITY RATE_LIMITED SERVICE_UNAVAILABLE INTERNAL_ERROR
error
required
string
message
required
string
details
Array
Example
{
"statusCode": 403,
"code": "FORBIDDEN",
"error": "Forbidden",
"message": "Insufficient permissions."
}

Default Response

Media typeapplication/json
object
statusCode
required
number
code
required
string
Allowed values: VALIDATION_ERROR UNAUTHORIZED FORBIDDEN NOT_FOUND CONFLICT UNPROCESSABLE_ENTITY RATE_LIMITED SERVICE_UNAVAILABLE INTERNAL_ERROR
error
required
string
message
required
string
details
Array
Example
{
"statusCode": 404,
"code": "NOT_FOUND",
"error": "Not Found",
"message": "The requested resource was not found."
}

Default Response

Media typeapplication/json
object
statusCode
required
number
code
required
string
Allowed values: VALIDATION_ERROR UNAUTHORIZED FORBIDDEN NOT_FOUND CONFLICT UNPROCESSABLE_ENTITY RATE_LIMITED SERVICE_UNAVAILABLE INTERNAL_ERROR
error
required
string
message
required
string
details
Array
Example
{
"statusCode": 429,
"code": "RATE_LIMITED",
"error": "Too Many Requests",
"message": "Rate limit exceeded."
}

Default Response

Media typeapplication/json
object
statusCode
required
number
code
required
string
Allowed values: VALIDATION_ERROR UNAUTHORIZED FORBIDDEN NOT_FOUND CONFLICT UNPROCESSABLE_ENTITY RATE_LIMITED SERVICE_UNAVAILABLE INTERNAL_ERROR
error
required
string
message
required
string
details
Array
Example
{
"statusCode": 500,
"code": "INTERNAL_ERROR",
"error": "Internal Server Error",
"message": "An unexpected error occurred."
}

Default Response

Media typeapplication/json
object
statusCode
required
number
code
required
string
Allowed values: VALIDATION_ERROR UNAUTHORIZED FORBIDDEN NOT_FOUND CONFLICT UNPROCESSABLE_ENTITY RATE_LIMITED SERVICE_UNAVAILABLE INTERNAL_ERROR
error
required
string
message
required
string
details
Array
Example
{
"statusCode": 503,
"code": "SERVICE_UNAVAILABLE",
"error": "Service Unavailable",
"message": "The service is temporarily unavailable."
}