Order Return
This APIs are used to list and view order return details.
Order Return API
The Order Return API allows customers to initiate a return request for a specific order item. Customers can use this API to request a return for an item they purchased from the e-commerce platform.


Statuses
Returned: The return request has been completed, and the product has been successfully returned to the seller.
Pending: The return request is pending approval from the seller or the e-commerce platform.
Accepted: The return request has been accepted by the seller, and further processing is underway.
Rejected: The return request has been rejected by the seller, and the product will not be accepted for return.
1. Order Return List API
The Order Return List API allows customers to view a list of their past order returns. This feature enables customers to keep track of their returned items, including the status of each return request and relevant details.
Endpoint
{{baseurl}}/api/v1/customer/order/return/list?page=1
Method
GET
Request Parameters
page(optional): The page number for paginated results. If not specified, the API defaults to the first page.
Authorization
The API requires a valid bearer token in the request header for authentication. Users must include their token in the "Authorization" header to access their account and view the list of order returns.
Response Format
The API responds with a JSON object containing an array of order return objects. Each object represents a specific return request and includes details such as return ID, order ID, product name, quantity, status, and more.
Example Response:
Features
The Order Return List API provides customers with a comprehensive view of their previous order return requests.
Customers can easily check the status (Returned, Pending, Accepted, Rejected) of each return and review the details, such as the product name, quantity, and return reason.
Usage
The Order Return List API is used when customers want to view the list of their past order returns for reference or tracking purposes.
Customers can access their return history from the "My Returns" or "Order Returns" section of the e-commerce application.
By including the four statuses "Returned," "Pending," "Accepted," and "Rejected" in the description, customers can better understand the different stages of their order return requests.
2. Order Return Details API
The Return Detail API allows customers to view detailed information about a specific return request they have initiated. This API provides access to the return request's status, order details, product information, admin note, and the user's reason for the return.
Endpoint
{{baseurl}}/api/v1/customer/order/return/return_list_id?lang_code=en
Method
GET
Request Parameters
lang_code(optional): A two-letter language code (e.g., "en" for English, "es" for Spanish, etc.) to support language-based localization. If provided, the API returns response messages and descriptions in the specified language.return_list_id(required): The unique identifier of the return list. Customers must provide this parameter to access their specific return list.
Authorization
The API requires a valid bearer token in the request header for authentication. Users must include their token in the "Authorization" header to access their account and view the details of the specific order return.
Response Format
The API responds with a JSON object containing detailed information about the return request. It includes data such as the return ID, order ID, product name, quantity, return status, return date, admin note, and the user's reason for the return.
Example Response:
Features
The Return Detail API provides customers with comprehensive details about their initiated return request, ensuring transparency and clarity regarding the return status and reasons.
Customers can access the admin note, which may contain specific instructions from the seller or the e-commerce platform regarding the return process.
The API also includes the user's reason for initiating the return, which helps sellers and the platform understand the customer's needs better.
Usage
The Return Detail API is used when customers want to view detailed information about a specific return request.
Customers can access the return details from the "My Orders" or "Return Requests" section of the e-commerce application.
By using the Return Detail API, customers can obtain comprehensive information about their return request, facilitating better communication between customers, sellers, and the e-commerce platform during the return process.
Reorder Return API
The Reorder Return API allows customers to quickly initiate a reorder for items that they previously returned. This feature is useful for customers who wish to repurchase items they had returned in the past.
Endpoint
{{baseurl}}/api/v1/customer/reorder/return/return_list_id
Method
GET
Request Parameters
return_list_id(required): The unique identifier of the return list. Customers must provide this parameter to access their specific return list.
Authorization
The API requires a valid bearer token in the request header for authentication. Users must include their token in the "Authorization" header to access their account and place reorder return requests.
Response Format
The API responds with a JSON object indicating the status of the reorder return request. It provides information about the newly created order and the products that were previously returned.
Example Response:
Features
The Reorder Return API simplifies the process of reordering previously returned items by using the
return_idto recreate the same set of products and quantities in the new order.Customers can easily repurchase items that they had returned without manually selecting each product again.
Usage
The Reorder Return API is used when customers want to quickly repurchase items they had previously returned.
Customers can initiate the reorder return process from the "My Returns" or "Order Returns" section of the e-commerce application.
Last updated