Skip to content

Read a design's first-order delivery

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

Operation ID: designs.delivery.get

A secret key, a studio member holding orders:read, or the design’s address capture link. The delivery given for the design’s first order, while the design is open; once it is ordered, the delivery its newest open order holds now — or, through an address capture link bound to one order, that order’s, with orderClosed once it is closed — while that order’s address can still change (changeable), else none; once it is erased or rejected, none.

id
required
string

The design’s delivery

Media typeapplication/json
object
changeable
required

Whether a delivery given now still reaches the design’s order: always while it is open; once it is ordered, while its open order’s printshop takes address changes, or the order ships to a saved address, and the order is not past one. Never otherwise.

boolean
delivery
required

Who the design’s first order is for and where it ships, while the design is open and one has been given; once it is ordered and changeable, who its open order is for and where it ships now.

object
capturedAt
required
number
recipient
required
object
email

The recipient’s email address, for the carrier’s notices.

string format: email
<= 254 characters
name
required

The recipient’s name as a parcel label carries it, a person’s or a company’s. Up to 200 characters.

string
>= 1 characters <= 200 characters
phone

The recipient’s phone number as the customer gave it, with the country code when it has one.

string
>= 1 characters <= 50 characters
shippingAddress
required
object
city
required

The city or town.

string
>= 1 characters <= 100 characters
company

The company of a business address, which the parcel goes to; the recipient is who receives it.

string
>= 1 characters <= 200 characters
country
required

The country as a two-letter ISO 3166-1 code in capitals, such as SE or US.

string
/^[A-Z]{2}$/
line1
required

The first line of the street address: street and number.

string
>= 1 characters <= 200 characters
line2

The second line of the address: an apartment, floor or c/o.

string
>= 1 characters <= 200 characters
postalCode

The postal code as the country writes it, such as 111 22 or SW1A 1AA. Left out where the country has none; a printshop that needs one refuses the order postal_code_required.

string
>= 1 characters <= 20 characters
region

The state, province or county, where the country uses one.

string
>= 1 characters <= 100 characters
orderClosed

Read through an address capture link bound to one order, once that order has shipped, will not be made (failed, cancelled) or its personal data was erased: which. Absent otherwise.

string
state
required

open while the design takes a delivery; ordered once its first order has been placed, which took the delivery or went by its own request; erased once the design’s personal data was erased; rejected once the design is rejected.

string

Examples

Exampleexample

Example

{
"changeable": true,
"delivery": {
"capturedAt": 1791766800000,
"recipient": {
"email": "[email protected]",
"name": "Alexandra Lind",
"phone": "+44 20 7946 0958"
},
"shippingAddress": {
"city": "London",
"country": "GB",
"line1": "44 Baker Street",
"line2": "Floor 3",
"postalCode": "NW1 6XE",
"region": "Greater London"
}
},
"state": "open"
}
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: not_found

Media typeapplication/json
object
error
required
string

Examples

Examplenot_found

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: rate_limited

Media typeapplication/json
object
error
required
string

Examples

Examplerate_limited

rate_limited

{
"error": "rate_limited"
}
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