Recerc

Update order

Applies an order mutation and returns the resulting revision payload.

PATCH/api/orders/{id}

Applies an order mutation and returns the resulting revision payload.

Path Parameters

id*string

Resource identifier.

Example"ord_123"

Request Body

application/json

Request payload for Update order.

id*string

Order identifier to update.

Example"ord_123"
customerId?||

Customer identifier.

customerMembershipId?||

Customer membership identifier.

items?array<|||||>|

Complete replacement list of order items.

newItems?array<|||||>|

New items to append to the order.

removedItems?array<>|

Order item ids to remove from the order.

updatedItems?array<>|

Partial item updates to apply to existing order items.

fileIds?array<>|

Replacement list of file identifiers attached to the order.

status?|

Replacement lifecycle status for the order.

customFields?|

Replacement custom field values for the order.

currency?|

Currency code.

invoiceFooterText?|

Replacement footer text shown in invoice-style documents.

invoicePaymentTerms?|

Replacement payment terms shown in invoice-style documents.

data?|

Arbitrary JSON payload stored for the resource.

ownerId?||

Owner identifier.

priceListId?|

Replacement selected price list identifier for the order.

actions?|

actions.

requirementUpdates?array<>|

Requirement status changes to apply.

reorderedItems?array<>|

Parent reassignment instructions for reordered items.

sessionId*string

Client session identifier used to correlate collaborative updates.

Example"sess_abc123"
[key: string]?never

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json