Skip to main content
POST
Remove Line Items

Common error responses

Each of these responds with a 422. Return not modifiable. The return is already closed or cancelled, or it has an exchange. This is also what a second removal request returns, once the first one has closed a refund return.
Some items do not qualify. One or more of the requested IDs are already returned or refunded. No items are removed when this happens, including the ones that would otherwise qualify.
Missing line_item_id.

Authorizations

X-Authorization
string
header
required

Path Parameters

id
integer
required

The unique identifier associated with the return.

Query Parameters

line_item_id
string
required

The line_item_id of an item on the return, as listed in the return's line_items array. To remove more than one, pass them as comma separated values.

Response

Success

The value returned when the return action succeeds.

Example:

true