Create a return line item
How to create a return line item via API
To create a new return line item, send a POST
request to the /api/return_line_items
endpoint, passing the resource arguments in the request body.
Request
POST https://yourdomain.commercelayer.io/api/return_line_items
Arguments
Body Parameter
Type
Required
type
string
Required
attributes.quantity
integer
Required
attributes.return_reason
object
Optional
attributes.reference
string
Optional
attributes.reference_origin
string
Optional
attributes.metadata
object
Optional
relationships.return
object
Required
relationships.line_item
object
Required
Example
The following request creates a new return line item:
Last updated