Skip to main content
POST
Price an order

Authorizations

Authorization
string
header
required

Your DEKHQ partner id and password.

Body

application/json

An order to price. Nothing is created.

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
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.

What the order would cost, from the same pricing as the portal.

total
string
required

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

Pattern: ^\d{1,10}\.\d{2}$
currency
string
required

The currency of total.

Allowed value: "USD"