Skip to content

Read an order's step delivery log

GET
/v1/orders/{id}/deliveries
curl --request GET \
--url https://api.pixonaut.app/v1/orders/example/deliveries \
--header 'Authorization: Bearer <token>'

Operation ID: orders.deliveries.list

id
required
string

The order’s steps in the order they are sent, with their status

Media typeapplication/json
object
addressChanges
required

The order’s address change steps, oldest first: one for each change its printshop was sent after one of its steps was, as PATCH /v1/orders/{id}/delivery sends them. Status only, never what was sent.

Array<object>
object
attempts
required
integer
createdAt
required
number
deliveredAt
required

When the printshop took it; null until it is accepted.

number | null
kind
required
string
lastAttemptAt
required
number | null
lastError
required
string | null
nextAttemptAt
required

When it is next tried; null while nothing is scheduled.

number | null
status
required
string
deliveries
required
Array<object>
object
attempts
required
integer
deliveredAt
required
number | null
kind
required
string
lastAttemptAt
required
number | null
lastError
required

What its last failed send came back with, in words: the shop’s answer, or why it could not be sent.

string | null
nextAttemptAt
required

When it is next tried; null while nothing is scheduled.

number | null
notSent
required

Why a failed step was never sent, when that is why: its order was cancelled, an earlier step gave up, its personal data was erased, or the order was closed before it went.

string | null
status
required
string
stepIndex
required
integer
deliverySteps
required
boolean

Examples

Exampleexample

Example

{
"addressChanges": [
{
"attempts": 1,
"createdAt": 1791890047000,
"deliveredAt": 1791890048000,
"kind": "http",
"lastAttemptAt": 1791890047000,
"lastError": null,
"nextAttemptAt": 1791890047000,
"status": "accepted"
}
],
"deliveries": [
{
"attempts": 1,
"deliveredAt": 1791886449000,
"kind": "email",
"lastAttemptAt": 1791886449000,
"lastError": null,
"nextAttemptAt": 1791886449000,
"notSent": null,
"status": "delivered",
"stepIndex": 0
},
{
"attempts": 2,
"deliveredAt": null,
"kind": "sftp",
"lastAttemptAt": 1791886747000,
"lastError": "Connection timed out",
"nextAttemptAt": 1791887347000,
"notSent": null,
"status": "pending",
"stepIndex": 1
}
],
"deliverySteps": true
}
X-Request-Id
required
string

Every response names the request it answers in X-Request-Id: the id the request was sent with in that header, when it is well formed, else one the API gave it. Quote it when reporting a refusal or a failure: the API’s log lines for that request carry it.

Refused: unauthorized

Media typeapplication/json
object
error
required
string

Examples

Exampleunauthorized

unauthorized

{
"error": "unauthorized"
}
X-Request-Id
required
string

Every response names the request it answers in X-Request-Id: the id the request was sent with in that header, when it is well formed, else one the API gave it. Quote it when reporting a refusal or a failure: the API’s log lines for that request carry it.

Refused: origin_forbidden, forbidden, feature_disabled, workspace_suspended

Media typeapplication/json
object
error
required
string
feature

The feature the tenant does not have. Always sent with feature_disabled.

string

Examples

feature_disabled

{
"error": "feature_disabled",
"feature": "api"
}
X-Request-Id
required
string

Every response names the request it answers in X-Request-Id: the id the request was sent with in that header, when it is well formed, else one the API gave it. Quote it when reporting a refusal or a failure: the API’s log lines for that request carry it.

Refused: order_not_found, not_found

Media typeapplication/json
object
error
required
string

Examples

not_found

{
"error": "not_found"
}
X-Request-Id
required
string

Every response names the request it answers in X-Request-Id: the id the request was sent with in that header, when it is well formed, else one the API gave it. Quote it when reporting a refusal or a failure: the API’s log lines for that request carry it.

Refused: db_error. A request that failed unexpectedly answers as text instead.

object
error
required
string

Examples

Exampledb_error

db_error

{
"error": "db_error"
}
X-Request-Id
required
string

Every response names the request it answers in X-Request-Id: the id the request was sent with in that header, when it is well formed, else one the API gave it. Quote it when reporting a refusal or a failure: the API’s log lines for that request carry it.

Questions? Write to [email protected].

Status · Terms of service · Privacy policy · Subprocessors