Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Return line items

The return line item object and the allowed CRUD operations on the related resource endpoint

A return line item represents an SKU or bundle being sent back as part of a return. The quantity attribute determines how many units are being returned. The total amount to be returned is calculated automatically from the original line item's unit amount, the returned quantity, and any discounts that applied to the original purchase.

Optionally, populate the return_reason attribute with a custom set of key-value pairs to record why the item is being returned.

Once the related return is marked as received, you can restock a return line item's SKU by passing the _restock trigger attribute — the restocked_at timestamp is then set automatically.

Last updated