List an order's shipments
GET
/api/v1/commerce/orders/{orderId}/shipments
const url = 'https://digize.com/api/v1/commerce/orders/example/shipments';const options = {method: 'GET', headers: {'x-api-key': '<x-api-key>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://digize.com/api/v1/commerce/orders/example/shipments \ --header 'x-api-key: <x-api-key>'Each shipment of an order, the oldest first: what went, the carrier and tracking, where it is as Shippo last said, and the label when one was bought.
Needs the commerce:read permission.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”orderId
required
string
Responses
Section titled “Responses”Done
Media typeapplication/json
object
data
required
Array<object>
object
id
required
string
carrier
required
string
service
required
string | null
trackingNumber
required
string | null
trackingUrl
required
string | null
status
required
string
lines
required
Array<object>
object
lineId
required
string
name
required
string
quantity
required
number
labelUrl
required
The label’s PDF, behind a link that works for an hour.
string | null
labelCost
required
number | null
labelCurrency
required
string | null
actorName
required
string
at
required
string format: date-time
Example
{ "data": [ { "status": "shipped" } ]}What was sent isn’t valid (invalid).
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details
object
key
additional properties
any
Example
{ "error": { "code": "invalid" }}No key, or one that’s unknown, off or expired.
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details
object
key
additional properties
any
Example
{ "error": { "code": "invalid" }}The key doesn’t have the permission this needs.
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details
object
key
additional properties
any
Example
{ "error": { "code": "invalid" }}Nothing has that id (not_found).
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details
object
key
additional properties
any
Example
{ "error": { "code": "invalid" }}Over the rate limit; see retry-after.
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details
object
key
additional properties
any
Example
{ "error": { "code": "invalid" }}