Retrieving Returns
Sales returns / refunds with lines.
Use GET /api/v1/returns to page through every record in your organization, or GET /api/v1/returns/{id} to fetch a single record with its related data. The id is a UUID, and a 404 means it doesn't exist in your organization.
API Endpoint
Current Use Cases
Send returns with their lines to your accounting tool so refunds and credits are recorded.
See which items came back so they get counted back into stock or written off.
Group returns by customer or product to spot quality issues early.
Filter by sales_order_id to see the full history of an order, from sale to return.
Required Headers
Every request must include the following:
Requests missing either header will return 401 Unauthorized
Example Request
Response Schema
Filters
Errors
Cloudbox uses standard HTTP status codes to indicate API success or failure:
- 200–299 – Request succeeded
- 400 – Bad request (missing parameters, invalid values)
- 401 – Unauthorized (missing or invalid API keys)
- 404 – Resource not found
- 429 – Too many requests (rate limited)



