| Attribute | Description |
|---|
| id | Unique identifier for the sales return row |
| sales_return_id | Reference to the parent sales return |
| variant_id | Product variant being returned |
| fulfillment_row_id | Reference to the original fulfillment row from GET /sales_orders/id/returnable_items |
| sales_order_row_id | Reference to the original sales order row |
| quantity | Number of items being returned |
| net_price_per_unit | Original amount paid per unit by the customer after discounts |
| reason_id | Reference to the return reason |
| restock_location_id | Location where items will be restocked |
| batch_transactions | Batch entries of traceability. Deprecated: use traceability. |
| traceability | Batch, serial number and bin location assignments of the row. They can be changed with PATCH /sales_return_rows/{id} until the return is restocked, and restocking puts the stock back with them. An entry with neither a batch nor a serial number is quantity returned untraced. |
| created_at | The timestamp when row was created. |
| updated_at | The timestamp when row was last updated. |
| Attribute | Description |
|---|
| batch_id | ID of the returned batch. Null for serial-tracked or untraced quantity. |
| serial_number_id | ID of the returned serial number. Null for batch-tracked or untraced quantity. |
| bin_location_id | ID of the bin location at the restock location that the stock goes back to. Null when no bin is assigned. |
| quantity | The timestamp when return record was last updated. |
| Attribute | Description |
|---|
| batch_id | ID of a batch shipped on the sales order row and not taken by another return. Null for serial numbers and untraced quantity. |
| serial_number_id | ID of a serial number shipped on the sales order row and not taken by another return. Null for batches and untraced quantity. |
| quantity | Decimal string quantity the row can still take back. Always "1" for a serial number. |
| batch | The batch, as in the batch object. Null when the entry has no batch. |
| serial_number | The serial number: id and serial_number. Null when the entry has no serial number. |
Deprecated: use the traceability relation instead, which also covers bin and serial numbers.
| Attribute | Description |
|---|
| batch_id | ID of the returned batch. |
| quantity | Quantity returned in this batch. |
Deprecated: use the returnable traceability endpoint instead, which also covers serial numbers.
| Attribute | Description |
|---|
| batch_id | ID of a batch shipped on the sales order row and not yet returned. Null for the quantity shipped without a batch. |
| quantity | Decimal string quantity of the batch the row can still take back. |
| batch_number | Batch number. Unbatched for the quantity shipped without a batch. |
| batch_created_date | Creation date of the batch. Not present on the Unbatched entry. |
| batch_expiration_date | Expiration date of the batch. Not present on the Unbatched entry. |
| barcode | Barcode record of the batch, with the barcode in internalBarcode. Not present when the batch has no barcode or on the Unbatched entry. |