Create Return
Creates a new return in DRAFT status.
Requires scope: returns:write
Authentication
API_KEYstring
API Key authentication via header
Request
This endpoint expects an object.
returnNumber
Human-readable reference number for the return. Required.
purchaseOrderId
ID of the originating purchase order. Required.
locationId
ID of the location associated with this return. Required.
trackingNumber
Shipping carrier tracking number.
note
Notes about this return.
returnDate
Date the return is or will be shipped (ISO 8601 date, e.g. 2026-03-25).
items
Initial line items. Items can also be added after creation.
Response
This endpoint returns an object.
id
Unique identifier for the return.
status
Current lifecycle status of the return.
itemCount
Number of line items in this return.
assignedUserIds
IDs of users assigned to this return.
returnNumber
Human-readable reference number for the return.
purchaseOrder
Reference to the originating purchase order (ID and order number as name).
location
Reference to the location associated with this return.
trackingNumber
Shipping carrier tracking number for the return shipment.
note
Free-text notes about this return.
totalMaterialsCost
Sum of all line item costs.
totalFees
Additional fees associated with the return (e.g. restocking fees).
finalPrice
Final total after materials cost and fees.
returnDate
ISO 8601 date the return was or will be shipped (e.g. 2026-03-25).
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