Get all returns
Retrieve all return transactions.Response
Returns an array of return objects with full details.Unique return identifier
Unique return ID (format: RET-YYYYMMDD-XXXXXXXX)
ID of the original sale
ISO 8601 timestamp of return
Return status (Completed, Pending, Cancelled)
Total refund amount
Employee who processed the return
Manager who approved the return (if required)
Whether manager approval was required
Additional notes
Array of returned items
Example request
Get return by ID
Retrieve details of a specific return.Path parameters
Return ID
Example request
Process return
Create a new return transaction.Request body
ID of the original sale
Employee processing the return
Manager PIN for approval (required if approval is needed)
Additional notes about the return
Array of items being returned
Return item structure
ID of the original sale item
Quantity being returned
Refund amount for this item
Item condition:
good or defectiveReason for return
Example request
Return validation
The system validates:- Original sale exists
- Return time limit (if configured in system settings)
- Return quantity doesn’t exceed available quantity
- No duplicate returns for the same items
- Manager approval requirements based on amount
Manager approval
Manager approval is required when:- System setting
RequireManagerApprovalForReturnsis enabled - Return amount exceeds
ReturnManagerApprovalAmountthreshold
Inventory restocking
If system settingRestockReturnedItems is enabled and item condition is good, the product quantity is automatically increased.
Response
Error handling
The returns endpoint provides detailed error messages:Return period expired
Insufficient quantity
Manager PIN required
Invalid manager PIN
System settings integration
The returns system respects these system settings:EnableReturns: Master toggle for returns functionalityReturnTimeLimitDays: Maximum days after sale to allow returnsRequireManagerApprovalForReturns: Require approval for all returnsReturnManagerApprovalAmount: Minimum amount requiring approvalRestockReturnedItems: Automatically restock items in good condition