Skip to main content
POST
Place an order

Authorizations

Authorization
string
header
required

Your DEKHQ partner id and password.

Headers

Idempotency-Key
string
required

Your unique key for this order. Retrying with the same key and body returns the first answer; the same key with a different body is 409.

Pattern: ^[\x21-\x7E]{1,255}$

Body

application/json

An order to place. expectedTotal is the total from the preview; if it is no longer the total, the order is refused with total_changed and the current total.

orderName
string
required

Your name for the order, shown on it.

Required string length: 1 - 200
shippingMethod
enum<string>
required

ship: we ship the order to shipTo on our carrier account. pickup: you collect it from us; send no shipTo.

Available options:
ship,
pickup
lines
object[]
required
Required array length: 1 - 50 elements
decorations
object[]
required
Required array length: 1 - 20 elements
expectedTotal
string
required

US dollars as a decimal string with exactly two places, e.g. 1234.50.

Pattern: ^\d{1,10}\.\d{2}$
shipTo
object

Required when shippingMethod is ship; must be absent for pickup.

requestedInHandsDate
string<date>

The date you need the order in hand.

purchaseOrderNumber
string

Your PO number, stored exactly as you send it. Printable characters, no leading or trailing spaces, and no HTML tags or entities (422 order_refused). A PO you used before is accepted: retries are matched by Idempotency-Key, never by PO.

Required string length: 1 - 64
Pattern: ^[\x21-\x7E](?:[\x20-\x7E]*[\x21-\x7E])?$
inboundTracking
string[]

Tracking numbers for the shipments bringing your garments to us. Each needs a digit and, without its spaces and dashes, 6 to 40 letters and digits; anything else is 422 order_refused naming it.

Required array length: 1 - 20 elements
Pattern: ^[A-Za-z0-9 -]{6,60}$
rush
any

Not supported yet: rush. Sending it gets 422 order_refused naming this field.

proof
any

Not supported yet: a proof you supply. Sending it gets 422 order_refused naming this field.

splitShip
any

Not supported yet: split shipping. Sending it gets 422 order_refused naming this field.

individualShip
any

Not supported yet: individual shipping. Sending it gets 422 order_refused naming this field.

finishing
any

Not supported yet: finishing services. Sending it gets 422 order_refused naming this field.

packaging
any

Not supported yet: packaging services. Sending it gets 422 order_refused naming this field.

notes
any

Not supported yet: order notes. Sending it gets 422 order_refused naming this field.

Response

Success.

A submitted order and what became of it. received means it is still being processed: poll it.

submissionId
string
required

The submission id.

Pattern: ^sub_[A-Za-z0-9]{1,64}$
status
string
required
Allowed value: "accepted"
order
object
required