---
updatedAt: 2026-10-13T11:44:15.000Z
agentTools:
  projectIndex: https://developer.katanamrp.com/llms.txt
---

# The sales return row object

| 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<br />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.                                                                                                                                                                                                                                             |

## The traceability object

| 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.                                                        |

## Returnable traceability object

| 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.                                        |

## The batch transaction object

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. |

## Unassigned batch transactions object

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. |