Skip to main content
POST
cURL
Changes the lines of the purchase order, wrapped in purchase_order.lines. Each entry has an op: add with an item_id and item_quantity adds a line, and change with the line’s id written as a UUID (drop the prefix before _ and add dashes in the 8-4-4-4-12 pattern) changes its quantity or price.
The SDK samples get their client from credentials your app registers once when it starts, as shown in Authentication. To try the call here, click Try it, set host to your Exsited API host name and paste an access token from Get an access token. To send a raw JSON body instead of filling in fields, copy the cURL sample and edit its -d payload.

Authorizations

Authorization
string
header
required

An access token from POST /api/v4/oauth2/token. The SDKs get and renew it for you.

Path Parameters

purchase_order_id
string
required

The purchase order's id.

Body

application/json
purchase_order
object
required

Response

200 - application/json

The changed purchase order, under purchase_order.

purchase_order
object