Skip to navigation

Update an order

Draft scaffold — not implemented or available in the API.

Changes only the fields sent. On a draft any field can change, and lines replaces the full list. Once active, only name, externalId, billTo, paymentTerms, invoiceSettings, purchaseOrderNumber, billingContacts, metadata and each line’s displayName can change; change lines, dates, billing cycle or currency with an amendment. {order} takes the order’s ord_ ID or your externalId.

Authentication

AuthorizationBearer
API Key authentication using Bearer token

Path parameters

orderstringRequired1-255 characters
A Paid ID, external ID or resource key, as supported by the referenced resource.

Headers

Paid-BetaenumRequired

This endpoint is in the orders=v1 beta. Send this header to use it.

Allowed values:

Request

Body
billingContactslist of stringsOptional
Billing contact IDs.
billingCycleobjectOptional
OrderBillingCycle.
billTostring or nullOptional1-255 characters

The customer who pays for the order. Defaults to the customer’s parent, then the customer itself.

currencystringOptionalformat: "^[a-z]{3}$"

Lowercase ISO 4217 currency code, e.g. usd. Must be enabled on your account.

endsAtdatetime or nullOptional

Exclusive end; null means no end.

externalIdstring or nullOptional1-255 characters
Your stable identifier, 1 to 255 characters.
invoiceSettingsobjectOptional
OrderInvoiceSettings.
lineslist of objectsOptional
Full draft lines, or display names addressed by existing line ID.
metadatamap from strings to stringsOptional

String key-value pairs of your own, up to 500 characters per value. Always updatable.

namestringOptional1-255 characters
The resource name.
negotiatedPricinglist of objectsOptional

The order’s whole negotiated pricing list, which replaces the existing one. Accepted only while the order is a draft; on a running order an amendment adds or ends entries.

paymentTermsenumOptionalDefaults to net30
Invoice payment terms.
purchaseOrderNumberstring or nullOptional

Purchase-order number printed on invoices.

startsAtdatetimeOptional
When billing starts.

Response

200
idstring
The Order ID.
objectenum

The type of object. Always order.

Allowed values:
createdAtdatetime
When the object was created.
activatedAtdatetime or null
When activation completed.
billingContactslist of strings
Billing contact IDs.
billingCycleobject
OrderBillingCycle.
billTostring or null1-255 characters

The customer who pays for the order. Defaults to the customer’s parent when the order is created, then the customer itself.

commitslist of strings
Order commit IDs.
currencystring

Lowercase ISO 4217 currency code, e.g. usd.

customerstring1-255 characters
A Paid ID, external ID or resource key, as supported by the referenced resource.
endsAtdatetime or null

Exclusive end; null means no end.

externalIdstring or null
Your stable identifier, 1 to 255 characters.
invoiceSettingsobject
OrderInvoiceSettings.
lineslist of objects
Order lines, including ended lines.
livemodeboolean

true for an object on a live account, false on a test account.

metadatamap from strings to strings

String key-value pairs of your own, up to 500 characters per value. Always updatable.

namestring
The resource name.
negotiatedPricinglist of objects
Every negotiated pricing entry on the order, including ended and scheduled ones.
planobject or null
The plan used to build the order.
purchaseOrderNumberstring or null

Purchase-order number printed on invoices.

startsAtdatetime
When billing starts.
statusenum
Order lifecycle state.
Allowed values:
updatedAtdatetime
When the object was last changed.
versioninteger
Amendment concurrency version.
paymentTermsenumOptionalDefaults to net30
Invoice payment terms.

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
409
Conflict Error
429
Too Many Requests Error
500
Internal Server Error
501
Not Implemented Error