Przejdź do głównej zawartości

UpdateOrderInput

Dla: Programista

Typ wejściowyUpdateOrderInput

Changes to an order: fields left out keep their values. An archived order cannot be changed.

Pola

PoleTypOpis
billingEntityIdID

Identifier of the print shop's billing entity that invoices the order.

clientIdID

Identifier of the client (the print shop's customer) the order is for. The client must exist in Prynt, and an API key cannot order for a client the print shop has blocked from ordering or deactivated.

completionDateString

When the order is due to be completed: an ISO 8601 date-time, or a date meaning midnight UTC at its start.

contactOrderContactInput

Person to contact about the order, as a whole: fields left out are empty. On a changed order it replaces the saved contact; left out, the saved contact stays.

currencyIdID

Identifier of the order currency. Setting it fixes Order.exchangeRate at the rate of the completion date (or of today). Left out: a new order is in the print shop's home currency; a changed order keeps its currency and rate.

deliveries[OrderDeliveryInput!]

Delivery addresses, in the order to list them. On a changed order they replace all saved addresses (an empty list removes them, for example for pickup); left out, the saved addresses stay.

invoiceOrderInvoiceInput

Billing details for the invoice, as a whole: fields left out are empty. On a changed order they replace the saved details; left out, the saved details stay.

isDeadlineBoolean

True when completionDate is a strict deadline. Left out: false on a new order; a changed order keeps the flag.

paymentDueDateString

Day by which the client should pay, as an ISO 8601 date.

paymentMethodPaymentMethod

How the client pays.

paymentStatusPaymentStatus

Where payment of the order stands. Left out: PENDING on a new order; a changed order keeps its payment status.

statusOrderStatus

New status of the order. Allowed: CREATED to ACCEPTED (needs a salesperson on the order), ACCEPTED to IN_PRODUCTION (needs a product with accepted files), IN_PRODUCTION to READY (every product ready), READY to SENT (a complete delivery address, a transport method other than TO_BE_AGREED, a prepaid order paid), SENT to RECEIVED, CANCELLED to ACCEPTED (restoring an order), and any status to CANCELLED. Any other change, such as a move to an earlier status, is refused. The same status again changes nothing.

totalPackagesInt

Number of packages the whole order ships in, 0 or more.

totalPalletsInt

Number of pallets the whole order ships on, 0 or more.

transportMethodTransportMethod

How the order reaches the client. Left out: TO_BE_AGREED on a new order; a changed order keeps its method.

transportPriceFloat

Net price of transport in the order currency, 0 or more; leave it out when not charged separately.

Używane w