Skip to main content
PATCH

Authorizations

Authorization
string
header
required

Authenticate using a bearer token. To create a token, navigate to /settings/api-tokens and click Create API Token.

Path Parameters

purchaseOrderId
integer
required

ID of the purchase order the line item belongs to

lineItemId
integer
required

ID of the purchase-order line item to close or reopen

Body

application/json
closed
boolean
required

true to close the line short, false to reopen it.

Example:

true

reason
string | null

Why the line is being closed. Required (non-blank) when closed is true; ignored when reopening.

Maximum string length: 2000
Example:

"Supplier discontinued the item; remaining units will not ship."

Response

Line closed or reopened (or already in the requested state)

data
object