Returns API
Manage return requests: create, approve, and reject customer return requests, and track them through to reverse shipment. Covers the lookup reference data merchants configure for the returns workflow — reasons, rejection reasons, resolutions, refund types, and item conditions.
Return Requests
A Carriyo return object represents a customer return request. A return is created when a customer requests to return an item for some reason, such as the item arriving damaged, the product not matching its description, or the customer simply changing their mind.
When a return is initiated, a business user can approve the request, which may result in the creation of a reverse shipment.
The Carriyo Returns API allows the merchant to create, approve, reject and manage return requests. It also allows the merchant to define allowed return reasons, resolutions, and other return settings.
17 operations · 1 object
The Return Request object
The return request object represents a customer return — the items being returned, the reason and resolution, refund information, and the linked reverse shipment that brings the goods back to your warehouse.
Return requests flow through a workflow: created → approved (or rejected) → received → completed. Each transition emits a webhook event so your downstream systems stay in sync.
For the high-level reverse-logistics walkthrough, see Returns and Reverse shipments.
Properties
Related
- Create return request — POST /return-requests
- Approve return request — POST /return-requests/{return_request_id}/approve
- Reject return request — POST /return-requests/{return_request_id}/reject
- Returns guide — when to use the Returns API vs reverse shipments
/returns/requestsCreate return request
Creates a new return request. A pickup location is required so the reverse shipment can be created when the return request is approved.
Headers
| Name | Value | Required | Description |
|---|---|---|---|
| Authorization | Bearer YOUR-ACCESS-TOKEN | Yes | OAuth 2.0 bearer token obtained from `POST /oauth/token`. |
| x-api-key | YOUR-API-KEY | Yes | Your tenant's API key, issued in the Carriyo Dashboard. Required on every request except `POST /oauth/token`. |
| tenant-id | YOUR-TENANT-ID | Yes | Your Carriyo tenant ID, shown in the Carriyo Dashboard. Required on every request except `POST /oauth/token`. |
| Content-Type | application/json | Yes | Media type of the request body. |
Request body
application/jsonSchema: create-return-request- Pickup request must contain all the neccessary information about the sender: their name, phone number, email, address, city and country. These properties will be given from the corresponding partner location, if either of following fields are specified instead:
partner_location_id,partner_location_name,partner_location_code.
Responses
return-requestNeed the full machine-readable spec? Download the OpenAPI document →
/returns/available-itemsGet remaining items
Returns the items on the order that are still eligible for return.
Query parameters
| Name | Type | Required | Description |
|---|---|---|---|
| merchant | string | Yes | — |
| email_or_phone | string | Yes | — |
| partner_order_ref | string | Yes | — |
Headers
| Name | Value | Required | Description |
|---|---|---|---|
| Authorization | Bearer YOUR-ACCESS-TOKEN | Yes | OAuth 2.0 bearer token obtained from `POST /oauth/token`. |
| x-api-key | YOUR-API-KEY | Yes | Your tenant's API key, issued in the Carriyo Dashboard. Required on every request except `POST /oauth/token`. |
| tenant-id | YOUR-TENANT-ID | Yes | Your Carriyo tenant ID, shown in the Carriyo Dashboard. Required on every request except `POST /oauth/token`. |
Responses
Need the full machine-readable spec? Download the OpenAPI document →
/returns/available-locationsGet available locations
Returns the customer's available collection locations, derived from delivered shipments.
Query parameters
| Name | Type | Required | Description |
|---|---|---|---|
| merchant | string | Yes | — |
| email_or_phone | string | Yes | — |
| partner_order_ref | string | Yes | — |
Headers
| Name | Value | Required | Description |
|---|---|---|---|
| Authorization | Bearer YOUR-ACCESS-TOKEN | Yes | OAuth 2.0 bearer token obtained from `POST /oauth/token`. |
| x-api-key | YOUR-API-KEY | Yes | Your tenant's API key, issued in the Carriyo Dashboard. Required on every request except `POST /oauth/token`. |
| tenant-id | YOUR-TENANT-ID | Yes | Your Carriyo tenant ID, shown in the Carriyo Dashboard. Required on every request except `POST /oauth/token`. |
Responses
- District, suburb or neighbourhood, represented by the Carriyo Area Code if known. If not, it's a free text. Please refer to the Carriyo Geo List for more information.
Need the full machine-readable spec? Download the OpenAPI document →
/returns/requests/{return_request_id}Get return request
Returns the specified return request.
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
| return_request_id | string | Yes | — |
Headers
| Name | Value | Required | Description |
|---|---|---|---|
| Authorization | Bearer YOUR-ACCESS-TOKEN | Yes | OAuth 2.0 bearer token obtained from `POST /oauth/token`. |
| x-api-key | YOUR-API-KEY | Yes | Your tenant's API key, issued in the Carriyo Dashboard. Required on every request except `POST /oauth/token`. |
| tenant-id | YOUR-TENANT-ID | Yes | Your Carriyo tenant ID, shown in the Carriyo Dashboard. Required on every request except `POST /oauth/token`. |
Responses
return-requestNeed the full machine-readable spec? Download the OpenAPI document →
/returns/requests/{return_request_id}Update return request
Update properties of an existing return request. Allowed only while the request is in PENDING status; once approved, it cannot be modified.
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
| return_request_id | string | Yes | — |
Headers
| Name | Value | Required | Description |
|---|---|---|---|
| Authorization | Bearer YOUR-ACCESS-TOKEN | Yes | OAuth 2.0 bearer token obtained from `POST /oauth/token`. |
| x-api-key | YOUR-API-KEY | Yes | Your tenant's API key, issued in the Carriyo Dashboard. Required on every request except `POST /oauth/token`. |
| tenant-id | YOUR-TENANT-ID | Yes | Your Carriyo tenant ID, shown in the Carriyo Dashboard. Required on every request except `POST /oauth/token`. |
| Content-Type | application/json | Yes | Media type of the request body. |
Request body
application/jsonSchema: edit-return-request- Pickup request must contain all the neccessary information about the sender: their name, phone number, email, address, city and country. These properties will be given from the corresponding partner location, if either of following fields are specified instead:
partner_location_id,partner_location_name,partner_location_code.
Responses
return-requestNeed the full machine-readable spec? Download the OpenAPI document →
/returns/requests/{return_request_id}/approveApprove return request
Approves the return request, sets its status to APPROVED, and creates the associated reverse shipment. The return request must have pickup and dropoff details at this point. Payment, if not supplied, is computed from the shipment items in the request.
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
| return_request_id | string | Yes | — |
Headers
| Name | Value | Required | Description |
|---|---|---|---|
| Authorization | Bearer YOUR-ACCESS-TOKEN | Yes | OAuth 2.0 bearer token obtained from `POST /oauth/token`. |
| x-api-key | YOUR-API-KEY | Yes | Your tenant's API key, issued in the Carriyo Dashboard. Required on every request except `POST /oauth/token`. |
| tenant-id | YOUR-TENANT-ID | Yes | Your Carriyo tenant ID, shown in the Carriyo Dashboard. Required on every request except `POST /oauth/token`. |
| Content-Type | application/json | Yes | Media type of the request body. |
Request body
application/jsonSchema: approve-return-requestResponses
return-requestNeed the full machine-readable spec? Download the OpenAPI document →
/returns/requests/{return_request_id}/cancelCancel return request
Cancels the return request, sets its status to CANCELLED, and cancels the associated reverse shipment.
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
| return_request_id | string | Yes | — |
Headers
| Name | Value | Required | Description |
|---|---|---|---|
| Authorization | Bearer YOUR-ACCESS-TOKEN | Yes | OAuth 2.0 bearer token obtained from `POST /oauth/token`. |
| x-api-key | YOUR-API-KEY | Yes | Your tenant's API key, issued in the Carriyo Dashboard. Required on every request except `POST /oauth/token`. |
| tenant-id | YOUR-TENANT-ID | Yes | Your Carriyo tenant ID, shown in the Carriyo Dashboard. Required on every request except `POST /oauth/token`. |
Responses
return-requestNeed the full machine-readable spec? Download the OpenAPI document →
/returns/requests/{return_request_id}/rejectReject return request
Rejects the return request with a reason.
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
| return_request_id | string | Yes | — |
Headers
| Name | Value | Required | Description |
|---|---|---|---|
| Authorization | Bearer YOUR-ACCESS-TOKEN | Yes | OAuth 2.0 bearer token obtained from `POST /oauth/token`. |
| x-api-key | YOUR-API-KEY | Yes | Your tenant's API key, issued in the Carriyo Dashboard. Required on every request except `POST /oauth/token`. |
| tenant-id | YOUR-TENANT-ID | Yes | Your Carriyo tenant ID, shown in the Carriyo Dashboard. Required on every request except `POST /oauth/token`. |
| Content-Type | application/json | Yes | Media type of the request body. |
Request body
application/jsonResponses
return-requestNeed the full machine-readable spec? Download the OpenAPI document →
/returns/requests/{return_request_id}/receiveReceive return request
Records receipt of the return request with the specified item quantities.
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
| return_request_id | string | Yes | — |
Headers
| Name | Value | Required | Description |
|---|---|---|---|
| Authorization | Bearer YOUR-ACCESS-TOKEN | Yes | OAuth 2.0 bearer token obtained from `POST /oauth/token`. |
| x-api-key | YOUR-API-KEY | Yes | Your tenant's API key, issued in the Carriyo Dashboard. Required on every request except `POST /oauth/token`. |
| tenant-id | YOUR-TENANT-ID | Yes | Your Carriyo tenant ID, shown in the Carriyo Dashboard. Required on every request except `POST /oauth/token`. |
| Content-Type | application/json | Yes | Media type of the request body. |
Request body
application/jsonResponses
return-requestNeed the full machine-readable spec? Download the OpenAPI document →
/returns/requests/{return_request_id}/completeComplete return request
Marks the return request as completed.
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
| return_request_id | string | Yes | — |
Headers
| Name | Value | Required | Description |
|---|---|---|---|
| Authorization | Bearer YOUR-ACCESS-TOKEN | Yes | OAuth 2.0 bearer token obtained from `POST /oauth/token`. |
| x-api-key | YOUR-API-KEY | Yes | Your tenant's API key, issued in the Carriyo Dashboard. Required on every request except `POST /oauth/token`. |
| tenant-id | YOUR-TENANT-ID | Yes | Your Carriyo tenant ID, shown in the Carriyo Dashboard. Required on every request except `POST /oauth/token`. |
Responses
return-requestNeed the full machine-readable spec? Download the OpenAPI document →
/returns/requests/{return_request_id}/notesAdd note
Adds a note to the return request.
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
| return_request_id | string | Yes | — |
Headers
| Name | Value | Required | Description |
|---|---|---|---|
| Authorization | Bearer YOUR-ACCESS-TOKEN | Yes | OAuth 2.0 bearer token obtained from `POST /oauth/token`. |
| x-api-key | YOUR-API-KEY | Yes | Your tenant's API key, issued in the Carriyo Dashboard. Required on every request except `POST /oauth/token`. |
| tenant-id | YOUR-TENANT-ID | Yes | Your Carriyo tenant ID, shown in the Carriyo Dashboard. Required on every request except `POST /oauth/token`. |
| Content-Type | application/json | Yes | Media type of the request body. |
Header parameters
| Name | Type | Required | Description |
|---|---|---|---|
| x-user | string | Yes | — |
Request body
application/jsonResponses
return-requestNeed the full machine-readable spec? Download the OpenAPI document →
/returns/requests/{return_request_id}/notes/{note_id}Delete note
Deletes a note from the return request by ID.
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
| return_request_id | string | Yes | — |
| note_id | string | Yes | — |
Headers
| Name | Value | Required | Description |
|---|---|---|---|
| Authorization | Bearer YOUR-ACCESS-TOKEN | Yes | OAuth 2.0 bearer token obtained from `POST /oauth/token`. |
| x-api-key | YOUR-API-KEY | Yes | Your tenant's API key, issued in the Carriyo Dashboard. Required on every request except `POST /oauth/token`. |
| tenant-id | YOUR-TENANT-ID | Yes | Your Carriyo tenant ID, shown in the Carriyo Dashboard. Required on every request except `POST /oauth/token`. |
Responses
return-requestNeed the full machine-readable spec? Download the OpenAPI document →
/returns/requests/{return_request_id}/assign-to-userAssign return request to a user
Assigns the return request to a Carriyo dashboard user. The user identifier is typically an email.
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
| return_request_id | string | Yes | — |
Headers
| Name | Value | Required | Description |
|---|---|---|---|
| Authorization | Bearer YOUR-ACCESS-TOKEN | Yes | OAuth 2.0 bearer token obtained from `POST /oauth/token`. |
| x-api-key | YOUR-API-KEY | Yes | Your tenant's API key, issued in the Carriyo Dashboard. Required on every request except `POST /oauth/token`. |
| tenant-id | YOUR-TENANT-ID | Yes | Your Carriyo tenant ID, shown in the Carriyo Dashboard. Required on every request except `POST /oauth/token`. |
| Content-Type | application/json | Yes | Media type of the request body. |
Request body
application/jsonSchema: return-assign-to-user-requestrequiredResponses
return-requestNeed the full machine-readable spec? Download the OpenAPI document →
/returns/requests/{return_request_id}/splitSplit return request items
Splits selected items out of the return request into a new return request, optionally assigning a pickup location.
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
| return_request_id | string | Yes | — |
Headers
| Name | Value | Required | Description |
|---|---|---|---|
| Authorization | Bearer YOUR-ACCESS-TOKEN | Yes | OAuth 2.0 bearer token obtained from `POST /oauth/token`. |
| x-api-key | YOUR-API-KEY | Yes | Your tenant's API key, issued in the Carriyo Dashboard. Required on every request except `POST /oauth/token`. |
| tenant-id | YOUR-TENANT-ID | Yes | Your Carriyo tenant ID, shown in the Carriyo Dashboard. Required on every request except `POST /oauth/token`. |
| Content-Type | application/json | Yes | Media type of the request body. |
Request body
application/jsonSchema: split-return-request-items-requestResponses
return-requestNeed the full machine-readable spec? Download the OpenAPI document →
/returns/requests/{return_request_id}/statusSet return request status
Directly sets the status of the return request to the value supplied in the status query parameter.
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
| return_request_id | string | Yes | — |
Query parameters
| Name | Type | Required | Description |
|---|---|---|---|
| status | string | Yes | The target return status. |
Headers
| Name | Value | Required | Description |
|---|---|---|---|
| Authorization | Bearer YOUR-ACCESS-TOKEN | Yes | OAuth 2.0 bearer token obtained from `POST /oauth/token`. |
| x-api-key | YOUR-API-KEY | Yes | Your tenant's API key, issued in the Carriyo Dashboard. Required on every request except `POST /oauth/token`. |
| tenant-id | YOUR-TENANT-ID | Yes | Your Carriyo tenant ID, shown in the Carriyo Dashboard. Required on every request except `POST /oauth/token`. |
Responses
return-requestNeed the full machine-readable spec? Download the OpenAPI document →
/returns/requests/{return_request_id}/refundsAdd return refund
Records a refund against the return request.
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
| return_request_id | string | Yes | — |
Headers
| Name | Value | Required | Description |
|---|---|---|---|
| Authorization | Bearer YOUR-ACCESS-TOKEN | Yes | OAuth 2.0 bearer token obtained from `POST /oauth/token`. |
| x-api-key | YOUR-API-KEY | Yes | Your tenant's API key, issued in the Carriyo Dashboard. Required on every request except `POST /oauth/token`. |
| tenant-id | YOUR-TENANT-ID | Yes | Your Carriyo tenant ID, shown in the Carriyo Dashboard. Required on every request except `POST /oauth/token`. |
| Content-Type | application/json | Yes | Media type of the request body. |
Request body
application/jsonSchema: refund-add-requestResponses
Need the full machine-readable spec? Download the OpenAPI document →
/returns/requests/{return_request_id}/refunds/{refund_id}Delete return refund
Removes a previously recorded refund from the return request.
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
| return_request_id | string | Yes | — |
| refund_id | string | Yes | — |
Headers
| Name | Value | Required | Description |
|---|---|---|---|
| Authorization | Bearer YOUR-ACCESS-TOKEN | Yes | OAuth 2.0 bearer token obtained from `POST /oauth/token`. |
| x-api-key | YOUR-API-KEY | Yes | Your tenant's API key, issued in the Carriyo Dashboard. Required on every request except `POST /oauth/token`. |
| tenant-id | YOUR-TENANT-ID | Yes | Your Carriyo tenant ID, shown in the Carriyo Dashboard. Required on every request except `POST /oauth/token`. |
Responses
Need the full machine-readable spec? Download the OpenAPI document →
Return Reasons
The merchant can configure a custom list of return reasons based on their business requirements. These reasons are presented as options to the customer on the return portal. Common examples include "Not as described online", "Arrived damaged", "Wrong colour or size".
4 operations · 0 objects
/returns/reasonsCreate return reason
Creates a new return reason.
Headers
| Name | Value | Required | Description |
|---|---|---|---|
| Authorization | Bearer YOUR-ACCESS-TOKEN | Yes | OAuth 2.0 bearer token obtained from `POST /oauth/token`. |
| x-api-key | YOUR-API-KEY | Yes | Your tenant's API key, issued in the Carriyo Dashboard. Required on every request except `POST /oauth/token`. |
| tenant-id | YOUR-TENANT-ID | Yes | Your Carriyo tenant ID, shown in the Carriyo Dashboard. Required on every request except `POST /oauth/token`. |
| Content-Type | application/json | Yes | Media type of the request body. |
Request body
application/jsonSchema: return-reasonResponses
return-reasonNeed the full machine-readable spec? Download the OpenAPI document →
/returns/reasonsList return reasons
Returns the available return reasons for the merchant.
Query parameters
| Name | Type | Required | Description |
|---|---|---|---|
| merchant | string | Yes | — |
| language | string | No | — |
Headers
| Name | Value | Required | Description |
|---|---|---|---|
| Authorization | Bearer YOUR-ACCESS-TOKEN | Yes | OAuth 2.0 bearer token obtained from `POST /oauth/token`. |
| x-api-key | YOUR-API-KEY | Yes | Your tenant's API key, issued in the Carriyo Dashboard. Required on every request except `POST /oauth/token`. |
| tenant-id | YOUR-TENANT-ID | Yes | Your Carriyo tenant ID, shown in the Carriyo Dashboard. Required on every request except `POST /oauth/token`. |
Responses
Need the full machine-readable spec? Download the OpenAPI document →
/returns/reasons/{reason_code}Update return reason
Updates an existing return reason.
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
| reason_code | string | Yes | — |
Headers
| Name | Value | Required | Description |
|---|---|---|---|
| Authorization | Bearer YOUR-ACCESS-TOKEN | Yes | OAuth 2.0 bearer token obtained from `POST /oauth/token`. |
| x-api-key | YOUR-API-KEY | Yes | Your tenant's API key, issued in the Carriyo Dashboard. Required on every request except `POST /oauth/token`. |
| tenant-id | YOUR-TENANT-ID | Yes | Your Carriyo tenant ID, shown in the Carriyo Dashboard. Required on every request except `POST /oauth/token`. |
| Content-Type | application/json | Yes | Media type of the request body. |
Request body
application/jsonSchema: return-reasonResponses
return-reasonNeed the full machine-readable spec? Download the OpenAPI document →
/returns/reasons/{reason_code}Delete return reason
Deletes a return reason by code.
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
| reason_code | string | Yes | — |
Query parameters
| Name | Type | Required | Description |
|---|---|---|---|
| merchant | string | Yes | — |
Headers
| Name | Value | Required | Description |
|---|---|---|---|
| Authorization | Bearer YOUR-ACCESS-TOKEN | Yes | OAuth 2.0 bearer token obtained from `POST /oauth/token`. |
| x-api-key | YOUR-API-KEY | Yes | Your tenant's API key, issued in the Carriyo Dashboard. Required on every request except `POST /oauth/token`. |
| tenant-id | YOUR-TENANT-ID | Yes | Your Carriyo tenant ID, shown in the Carriyo Dashboard. Required on every request except `POST /oauth/token`. |
Responses
Need the full machine-readable spec? Download the OpenAPI document →
Rejection Reasons
The merchant can also configure a custom list of rejection reasons to use when rejecting a customer's request for return. These reasons are presented to the merchant as options when rejecting a return, and are used to communicate the rejection back to the customer.
4 operations · 0 objects
/returns/rejection-reasonsCreate rejection reason
Creates a new rejection reason.
Headers
| Name | Value | Required | Description |
|---|---|---|---|
| Authorization | Bearer YOUR-ACCESS-TOKEN | Yes | OAuth 2.0 bearer token obtained from `POST /oauth/token`. |
| x-api-key | YOUR-API-KEY | Yes | Your tenant's API key, issued in the Carriyo Dashboard. Required on every request except `POST /oauth/token`. |
| tenant-id | YOUR-TENANT-ID | Yes | Your Carriyo tenant ID, shown in the Carriyo Dashboard. Required on every request except `POST /oauth/token`. |
| Content-Type | application/json | Yes | Media type of the request body. |
Request body
application/jsonSchema: rejection-reasonResponses
Need the full machine-readable spec? Download the OpenAPI document →
/returns/rejection-reasonsList rejection reasons
Returns the available rejection reasons for the merchant.
Query parameters
| Name | Type | Required | Description |
|---|---|---|---|
| merchant | string | No | — |
Headers
| Name | Value | Required | Description |
|---|---|---|---|
| Authorization | Bearer YOUR-ACCESS-TOKEN | Yes | OAuth 2.0 bearer token obtained from `POST /oauth/token`. |
| x-api-key | YOUR-API-KEY | Yes | Your tenant's API key, issued in the Carriyo Dashboard. Required on every request except `POST /oauth/token`. |
| tenant-id | YOUR-TENANT-ID | Yes | Your Carriyo tenant ID, shown in the Carriyo Dashboard. Required on every request except `POST /oauth/token`. |
Responses
Need the full machine-readable spec? Download the OpenAPI document →
/returns/rejection-reasons/{reason_code}Update rejection reason
Updates a rejection reason.
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
| reason_code | string | Yes | — |
Headers
| Name | Value | Required | Description |
|---|---|---|---|
| Authorization | Bearer YOUR-ACCESS-TOKEN | Yes | OAuth 2.0 bearer token obtained from `POST /oauth/token`. |
| x-api-key | YOUR-API-KEY | Yes | Your tenant's API key, issued in the Carriyo Dashboard. Required on every request except `POST /oauth/token`. |
| tenant-id | YOUR-TENANT-ID | Yes | Your Carriyo tenant ID, shown in the Carriyo Dashboard. Required on every request except `POST /oauth/token`. |
| Content-Type | application/json | Yes | Media type of the request body. |
Request body
application/jsonSchema: rejection-reasonResponses
Need the full machine-readable spec? Download the OpenAPI document →
/returns/rejection-reasons/{reason_code}Delete rejection reason
Deletes a rejection reason by code.
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
| reason_code | string | Yes | — |
Query parameters
| Name | Type | Required | Description |
|---|---|---|---|
| merchant | string | Yes | — |
Headers
| Name | Value | Required | Description |
|---|---|---|---|
| Authorization | Bearer YOUR-ACCESS-TOKEN | Yes | OAuth 2.0 bearer token obtained from `POST /oauth/token`. |
| x-api-key | YOUR-API-KEY | Yes | Your tenant's API key, issued in the Carriyo Dashboard. Required on every request except `POST /oauth/token`. |
| tenant-id | YOUR-TENANT-ID | Yes | Your Carriyo tenant ID, shown in the Carriyo Dashboard. Required on every request except `POST /oauth/token`. |
Responses
Need the full machine-readable spec? Download the OpenAPI document →
Return Resolutions
Return resolutions are outcomes that the customer is expecting from the return. The options can vary based on what the merchant offers but typically include "Credit card refund", "Store credit", or "Exchange".
4 operations · 0 objects
/returns/resolutionsCreate return resolution
Creates a new return resolution.
Headers
| Name | Value | Required | Description |
|---|---|---|---|
| Authorization | Bearer YOUR-ACCESS-TOKEN | Yes | OAuth 2.0 bearer token obtained from `POST /oauth/token`. |
| x-api-key | YOUR-API-KEY | Yes | Your tenant's API key, issued in the Carriyo Dashboard. Required on every request except `POST /oauth/token`. |
| tenant-id | YOUR-TENANT-ID | Yes | Your Carriyo tenant ID, shown in the Carriyo Dashboard. Required on every request except `POST /oauth/token`. |
| Content-Type | application/json | Yes | Media type of the request body. |
Request body
application/jsonSchema: return-resolutionResponses
Need the full machine-readable spec? Download the OpenAPI document →
/returns/resolutionsList return resolutions
Returns the available return resolutions for the merchant.
Query parameters
| Name | Type | Required | Description |
|---|---|---|---|
| merchant | string | Yes | — |
| language | string | No | — |
Headers
| Name | Value | Required | Description |
|---|---|---|---|
| Authorization | Bearer YOUR-ACCESS-TOKEN | Yes | OAuth 2.0 bearer token obtained from `POST /oauth/token`. |
| x-api-key | YOUR-API-KEY | Yes | Your tenant's API key, issued in the Carriyo Dashboard. Required on every request except `POST /oauth/token`. |
| tenant-id | YOUR-TENANT-ID | Yes | Your Carriyo tenant ID, shown in the Carriyo Dashboard. Required on every request except `POST /oauth/token`. |
Responses
Need the full machine-readable spec? Download the OpenAPI document →
/returns/resolutions/{resolution_code}Update return resolution
Updates a return resolution.
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
| resolution_code | string | Yes | — |
Headers
| Name | Value | Required | Description |
|---|---|---|---|
| Authorization | Bearer YOUR-ACCESS-TOKEN | Yes | OAuth 2.0 bearer token obtained from `POST /oauth/token`. |
| x-api-key | YOUR-API-KEY | Yes | Your tenant's API key, issued in the Carriyo Dashboard. Required on every request except `POST /oauth/token`. |
| tenant-id | YOUR-TENANT-ID | Yes | Your Carriyo tenant ID, shown in the Carriyo Dashboard. Required on every request except `POST /oauth/token`. |
| Content-Type | application/json | Yes | Media type of the request body. |
Request body
application/jsonSchema: return-resolutionResponses
Need the full machine-readable spec? Download the OpenAPI document →
/returns/resolutions/{resolution_code}Delete return resolution
Deletes a return resolution by code.
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
| resolution_code | string | Yes | — |
Query parameters
| Name | Type | Required | Description |
|---|---|---|---|
| merchant | string | Yes | — |
Headers
| Name | Value | Required | Description |
|---|---|---|---|
| Authorization | Bearer YOUR-ACCESS-TOKEN | Yes | OAuth 2.0 bearer token obtained from `POST /oauth/token`. |
| x-api-key | YOUR-API-KEY | Yes | Your tenant's API key, issued in the Carriyo Dashboard. Required on every request except `POST /oauth/token`. |
| tenant-id | YOUR-TENANT-ID | Yes | Your Carriyo tenant ID, shown in the Carriyo Dashboard. Required on every request except `POST /oauth/token`. |
Responses
Need the full machine-readable spec? Download the OpenAPI document →
Return Refund Types
The merchant can configure a custom list of return refund types based on their business requirements. These refund types are presented as options to the customer on the return portal.
4 operations · 0 objects
/returns/refund-typesCreate return refund type
Creates a new return refund type.
Headers
| Name | Value | Required | Description |
|---|---|---|---|
| Authorization | Bearer YOUR-ACCESS-TOKEN | Yes | OAuth 2.0 bearer token obtained from `POST /oauth/token`. |
| x-api-key | YOUR-API-KEY | Yes | Your tenant's API key, issued in the Carriyo Dashboard. Required on every request except `POST /oauth/token`. |
| tenant-id | YOUR-TENANT-ID | Yes | Your Carriyo tenant ID, shown in the Carriyo Dashboard. Required on every request except `POST /oauth/token`. |
| Content-Type | application/json | Yes | Media type of the request body. |
Request body
application/jsonSchema: return-refund-typeResponses
Need the full machine-readable spec? Download the OpenAPI document →
/returns/refund-typesList return refund types
Returns the available return refund types for the merchant.
Query parameters
| Name | Type | Required | Description |
|---|---|---|---|
| merchant | string | No | — |
Headers
| Name | Value | Required | Description |
|---|---|---|---|
| Authorization | Bearer YOUR-ACCESS-TOKEN | Yes | OAuth 2.0 bearer token obtained from `POST /oauth/token`. |
| x-api-key | YOUR-API-KEY | Yes | Your tenant's API key, issued in the Carriyo Dashboard. Required on every request except `POST /oauth/token`. |
| tenant-id | YOUR-TENANT-ID | Yes | Your Carriyo tenant ID, shown in the Carriyo Dashboard. Required on every request except `POST /oauth/token`. |
Responses
Need the full machine-readable spec? Download the OpenAPI document →
/returns/refund-types/{refund_type_code}Update return refund type
Updates a return refund type.
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
| refund_type_code | string | Yes | — |
Headers
| Name | Value | Required | Description |
|---|---|---|---|
| Authorization | Bearer YOUR-ACCESS-TOKEN | Yes | OAuth 2.0 bearer token obtained from `POST /oauth/token`. |
| x-api-key | YOUR-API-KEY | Yes | Your tenant's API key, issued in the Carriyo Dashboard. Required on every request except `POST /oauth/token`. |
| tenant-id | YOUR-TENANT-ID | Yes | Your Carriyo tenant ID, shown in the Carriyo Dashboard. Required on every request except `POST /oauth/token`. |
| Content-Type | application/json | Yes | Media type of the request body. |
Request body
application/jsonSchema: return-refund-typeResponses
Need the full machine-readable spec? Download the OpenAPI document →
/returns/refund-types/{refund_type_code}Delete return refund type
Deletes a return refund type by code.
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
| refund_type_code | string | Yes | — |
Query parameters
| Name | Type | Required | Description |
|---|---|---|---|
| merchant | string | Yes | — |
Headers
| Name | Value | Required | Description |
|---|---|---|---|
| Authorization | Bearer YOUR-ACCESS-TOKEN | Yes | OAuth 2.0 bearer token obtained from `POST /oauth/token`. |
| x-api-key | YOUR-API-KEY | Yes | Your tenant's API key, issued in the Carriyo Dashboard. Required on every request except `POST /oauth/token`. |
| tenant-id | YOUR-TENANT-ID | Yes | Your Carriyo tenant ID, shown in the Carriyo Dashboard. Required on every request except `POST /oauth/token`. |
Responses
Need the full machine-readable spec? Download the OpenAPI document →
Return Item Conditions
The merchant can configure a custom list of return item conditions based on their business requirements. These item conditions are presented as options to the customer on the return portal when describing the state of the item being returned.
4 operations · 0 objects
/returns/item-conditions/{item_condition_code}Update return item condition
Updates a return item condition.
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
| item_condition_code | string | Yes | — |
Headers
| Name | Value | Required | Description |
|---|---|---|---|
| Authorization | Bearer YOUR-ACCESS-TOKEN | Yes | OAuth 2.0 bearer token obtained from `POST /oauth/token`. |
| x-api-key | YOUR-API-KEY | Yes | Your tenant's API key, issued in the Carriyo Dashboard. Required on every request except `POST /oauth/token`. |
| tenant-id | YOUR-TENANT-ID | Yes | Your Carriyo tenant ID, shown in the Carriyo Dashboard. Required on every request except `POST /oauth/token`. |
| Content-Type | application/json | Yes | Media type of the request body. |
Request body
application/jsonSchema: return-item-conditionResponses
Need the full machine-readable spec? Download the OpenAPI document →
/returns/item-conditions/{item_condition_code}Delete return item condition
Deletes a return item condition by code.
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
| item_condition_code | string | Yes | — |
Query parameters
| Name | Type | Required | Description |
|---|---|---|---|
| merchant | string | Yes | — |
Headers
| Name | Value | Required | Description |
|---|---|---|---|
| Authorization | Bearer YOUR-ACCESS-TOKEN | Yes | OAuth 2.0 bearer token obtained from `POST /oauth/token`. |
| x-api-key | YOUR-API-KEY | Yes | Your tenant's API key, issued in the Carriyo Dashboard. Required on every request except `POST /oauth/token`. |
| tenant-id | YOUR-TENANT-ID | Yes | Your Carriyo tenant ID, shown in the Carriyo Dashboard. Required on every request except `POST /oauth/token`. |
Responses
Need the full machine-readable spec? Download the OpenAPI document →
/returns/item-conditionsCreate return item condition
Creates a new return item condition.
Headers
| Name | Value | Required | Description |
|---|---|---|---|
| Authorization | Bearer YOUR-ACCESS-TOKEN | Yes | OAuth 2.0 bearer token obtained from `POST /oauth/token`. |
| x-api-key | YOUR-API-KEY | Yes | Your tenant's API key, issued in the Carriyo Dashboard. Required on every request except `POST /oauth/token`. |
| tenant-id | YOUR-TENANT-ID | Yes | Your Carriyo tenant ID, shown in the Carriyo Dashboard. Required on every request except `POST /oauth/token`. |
| Content-Type | application/json | Yes | Media type of the request body. |
Request body
application/jsonSchema: return-item-conditionResponses
Need the full machine-readable spec? Download the OpenAPI document →
/returns/item-conditionsList return item conditions
Returns the available return item conditions for the merchant.
Query parameters
| Name | Type | Required | Description |
|---|---|---|---|
| merchant | string | No | — |
Headers
| Name | Value | Required | Description |
|---|---|---|---|
| Authorization | Bearer YOUR-ACCESS-TOKEN | Yes | OAuth 2.0 bearer token obtained from `POST /oauth/token`. |
| x-api-key | YOUR-API-KEY | Yes | Your tenant's API key, issued in the Carriyo Dashboard. Required on every request except `POST /oauth/token`. |
| tenant-id | YOUR-TENANT-ID | Yes | Your Carriyo tenant ID, shown in the Carriyo Dashboard. Required on every request except `POST /oauth/token`. |
Responses
Need the full machine-readable spec? Download the OpenAPI document →
Return Settings
The return settings hold the general configuration for returns at the merchant level.
4 operations · 0 objects
/returns/settingsCreate return settings
Creates the return settings for the merchant.
Headers
| Name | Value | Required | Description |
|---|---|---|---|
| Authorization | Bearer YOUR-ACCESS-TOKEN | Yes | OAuth 2.0 bearer token obtained from `POST /oauth/token`. |
| x-api-key | YOUR-API-KEY | Yes | Your tenant's API key, issued in the Carriyo Dashboard. Required on every request except `POST /oauth/token`. |
| tenant-id | YOUR-TENANT-ID | Yes | Your Carriyo tenant ID, shown in the Carriyo Dashboard. Required on every request except `POST /oauth/token`. |
| Content-Type | application/json | Yes | Media type of the request body. |
Request body
application/jsonSchema: return-request-settingsResponses
return-request-settingsNeed the full machine-readable spec? Download the OpenAPI document →
/returns/settingsGet return settings
Returns the merchant's return settings.
Query parameters
| Name | Type | Required | Description |
|---|---|---|---|
| merchant | string | Yes | — |
| notification_user_scope | string | No | — |
| shopify_connector_id | string | No | — |
| notification_user_id | string | No | — |
Headers
| Name | Value | Required | Description |
|---|---|---|---|
| Authorization | Bearer YOUR-ACCESS-TOKEN | Yes | OAuth 2.0 bearer token obtained from `POST /oauth/token`. |
| x-api-key | YOUR-API-KEY | Yes | Your tenant's API key, issued in the Carriyo Dashboard. Required on every request except `POST /oauth/token`. |
| tenant-id | YOUR-TENANT-ID | Yes | Your Carriyo tenant ID, shown in the Carriyo Dashboard. Required on every request except `POST /oauth/token`. |
Responses
return-request-settingsNeed the full machine-readable spec? Download the OpenAPI document →
/returns/settingsUpdate return settings
Updates the merchant's return settings.
Headers
| Name | Value | Required | Description |
|---|---|---|---|
| Authorization | Bearer YOUR-ACCESS-TOKEN | Yes | OAuth 2.0 bearer token obtained from `POST /oauth/token`. |
| x-api-key | YOUR-API-KEY | Yes | Your tenant's API key, issued in the Carriyo Dashboard. Required on every request except `POST /oauth/token`. |
| tenant-id | YOUR-TENANT-ID | Yes | Your Carriyo tenant ID, shown in the Carriyo Dashboard. Required on every request except `POST /oauth/token`. |
| Content-Type | application/json | Yes | Media type of the request body. |
Request body
application/jsonSchema: return-request-settingsResponses
return-request-settingsNeed the full machine-readable spec? Download the OpenAPI document →
/returns/settingsDelete return settings
Deletes the merchant's return settings.
Query parameters
| Name | Type | Required | Description |
|---|---|---|---|
| merchant | string | Yes | — |
Headers
| Name | Value | Required | Description |
|---|---|---|---|
| Authorization | Bearer YOUR-ACCESS-TOKEN | Yes | OAuth 2.0 bearer token obtained from `POST /oauth/token`. |
| x-api-key | YOUR-API-KEY | Yes | Your tenant's API key, issued in the Carriyo Dashboard. Required on every request except `POST /oauth/token`. |
| tenant-id | YOUR-TENANT-ID | Yes | Your Carriyo tenant ID, shown in the Carriyo Dashboard. Required on every request except `POST /oauth/token`. |
Responses
Need the full machine-readable spec? Download the OpenAPI document →
Return Comments
The merchant can configure a custom list of return comments. Comments can be scoped to specific return reasons and are presented as options on the return portal.
4 operations · 0 objects
/returns/commentsCreate return comment
Creates a new return comment.
Headers
| Name | Value | Required | Description |
|---|---|---|---|
| Authorization | Bearer YOUR-ACCESS-TOKEN | Yes | OAuth 2.0 bearer token obtained from `POST /oauth/token`. |
| x-api-key | YOUR-API-KEY | Yes | Your tenant's API key, issued in the Carriyo Dashboard. Required on every request except `POST /oauth/token`. |
| tenant-id | YOUR-TENANT-ID | Yes | Your Carriyo tenant ID, shown in the Carriyo Dashboard. Required on every request except `POST /oauth/token`. |
| Content-Type | application/json | Yes | Media type of the request body. |
Request body
application/jsonSchema: return-commentResponses
Need the full machine-readable spec? Download the OpenAPI document →
/returns/commentsList return comments
Returns the available return comments for the merchant.
Query parameters
| Name | Type | Required | Description |
|---|---|---|---|
| merchant | string | Yes | — |
| language | string | No | — |
Headers
| Name | Value | Required | Description |
|---|---|---|---|
| Authorization | Bearer YOUR-ACCESS-TOKEN | Yes | OAuth 2.0 bearer token obtained from `POST /oauth/token`. |
| x-api-key | YOUR-API-KEY | Yes | Your tenant's API key, issued in the Carriyo Dashboard. Required on every request except `POST /oauth/token`. |
| tenant-id | YOUR-TENANT-ID | Yes | Your Carriyo tenant ID, shown in the Carriyo Dashboard. Required on every request except `POST /oauth/token`. |
Responses
Need the full machine-readable spec? Download the OpenAPI document →
/returns/comments/{comment_code}Update return comment
Updates an existing return comment.
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
| comment_code | string | Yes | — |
Headers
| Name | Value | Required | Description |
|---|---|---|---|
| Authorization | Bearer YOUR-ACCESS-TOKEN | Yes | OAuth 2.0 bearer token obtained from `POST /oauth/token`. |
| x-api-key | YOUR-API-KEY | Yes | Your tenant's API key, issued in the Carriyo Dashboard. Required on every request except `POST /oauth/token`. |
| tenant-id | YOUR-TENANT-ID | Yes | Your Carriyo tenant ID, shown in the Carriyo Dashboard. Required on every request except `POST /oauth/token`. |
| Content-Type | application/json | Yes | Media type of the request body. |
Request body
application/jsonSchema: return-commentResponses
Need the full machine-readable spec? Download the OpenAPI document →
/returns/comments/{comment_code}Delete return comment
Deletes a return comment by code.
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
| comment_code | string | Yes | — |
Query parameters
| Name | Type | Required | Description |
|---|---|---|---|
| merchant | string | Yes | — |
Headers
| Name | Value | Required | Description |
|---|---|---|---|
| Authorization | Bearer YOUR-ACCESS-TOKEN | Yes | OAuth 2.0 bearer token obtained from `POST /oauth/token`. |
| x-api-key | YOUR-API-KEY | Yes | Your tenant's API key, issued in the Carriyo Dashboard. Required on every request except `POST /oauth/token`. |
| tenant-id | YOUR-TENANT-ID | Yes | Your Carriyo tenant ID, shown in the Carriyo Dashboard. Required on every request except `POST /oauth/token`. |
Responses
Need the full machine-readable spec? Download the OpenAPI document →