Add Item to Return
Adds a material line item to a return. Returns 201 Created.
Requires scope: returns:write
Authentication
API_KEYstring
API Key authentication via header
Path parameters
id
Return ID.
Request
This endpoint expects an object.
materialId
ID of the material to return. Required.
price
Unit price of the material. Required. Must be zero or greater.
deliveredQuantity
Quantity to return. Required. Must be greater than zero.
materialVariationId
ID of the material variation to return. Optional.
note
Optional note for this line item.
Response
This endpoint returns an object.
id
Unique identifier for this return item record.
material
Reference to the parent material.
variation
Reference to the material variation, if applicable.
price
Unit price of the material at time of return.
deliveredQuantity
Quantity being returned. Must be greater than zero.
note
Optional note for this line item.
createdAt
ISO 8601 timestamp when the record was created.
updatedAt
ISO 8601 timestamp when the record was last updated.
Errors
400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error