Mark a transaction as returned to receive credit against a future tax liability.
id
as the parent_invoice_id
.
Returns can be categorized as either:
line_item
ids for all returned items must be provided.GET /transactions
and GET /transactions/{id}
endpoints, alongside ordinary sales transactions. They are identified by their transaction_type
field as RETURN
.
quantity
while keeping price_per_unit
positive.quantity
while making price_per_unit
negative.price_per_unit * quantity < 0
).
Error Code | Description | Solution |
---|---|---|
ERR_INVALID_RETURN_AMOUNT | Return transaction has positive line amount | Ensure all RETURN line items have negative total amounts |
ERR_MISSING_PARENT_INVOICE | Return transaction missing parent invoice reference | Add parent_invoice_id for RETURN transactions |
ERR_MISSING_REFUND_TYPE | Return transaction missing refund type | Specify refund_type as FULL or PARTIAL |
ERR_INVALID_REFUND_QUANTITY | Refund quantity exceeds original quantity | Ensure refund quantity doesn’t exceed what was originally sold |