Create Return Order
Inbound | POST | /return/create
Summary
This API is used to create return order and generate return awb on the logistic aggregator portal.
Description
This API is used to create return order and generate return awb on the logistic aggregator portal.
Request
{
"currencyCode": "INR",
"dropAddress": {
"city": "Delhi",
"country": "India",
"email": "mohit@gmail.com",
"firstName": "Mohit",
"lastName": "Singh",
"middleName": "",
"phone": "9121726219",
"state": "DELHI",
"street1": "A-102, Balaji Residency",
"street2": "Motera",
"street3": "",
"zip": "110019"
},
"regionType": "INDIAN",
"orderDetails": {
"codValue": 0,
"invoiceNumber": "INV-10",
"invoiceTime": "2021-06-18T12:00:01Z",
"invoiceValue": 100.00,
"isCod": false,
"orderDate": "2021-06-17T17:32:02Z",
"orderLineItemList": [
{
"clientSkuId": "sku-1",
"finalAmountPaid": 100.00,
"imageUrl": "xyz",
"name": "Shirt",
"price": 100.00,
"quantity": 1,
"storeCreditsUsed": 0.0
}
],
"orderNumber": "order12345"
,
"forwardOrderNumber": "fo-1"
,
"forwardShipmentNumber": "101"
,
},
"pickupAddress": {
"city": "Delhi",
"country": "India",
"email": "ram@gmail.com",
"firstName": "Ram",
"lastName": "Mehta",
"middleName": "",
"phone": "8135671272",
"state": "DELHI",
"street1": "Mathalli area",
"street2": "Opposite Ring road",
"street3": "",
"zip": "110020"
},
"returnReason": "damaged product",
"sellerGstin": "29AADCP7081J1ZY",
"shipmentDimension": {
"breadth": 10,
"height": 10,
"length": 10,
"weight": 1
},
"warehouseCode": "wh-1"
}
Parameter Name | Data Type | Description | Mandatory |
| String | The reason due to which the order was returned | yes |
| String | Currency | yes |
| Object | Shipping Address (Warehouse address) | yes |
| String | City of warehouse | yes |
| String | Country of warehouse | yes |
| String | Email of warehouse | yes |
| String | First Name of warehouse POC | yes |
| String | Last Name of warehouse POC | yes |
| String | Middle name of warehouse POC | no |
| String | Phone Number of warehouse POC | yes |
| String | State of warehouse | yes |
| String | 1st line of warehouse address | yes |
| String | 2nd line of warehouse address | no |
| String | 3rd line of warehouse address | no |
| String | Zip/Pin code of warehouse | yes |
| String | Can take two values:INDIAN and INTERNATIONAL, specifying the region type of order | yes |
| Object | Order Details | yes |
| Double | If order is of type COD, then this should be greater than 0 | yes |
| String | Invoice Id of the order. If logisticAggregatorType=CLICKPOST, then this field is mandatory. If logisticAggregatorType=SHIPROCKET, then this field can be null | Conditional yes |
| Date | Invoice Time of the order. If logisticAggregatorType=CLICKPOST, then this field is mandatory. If logisticAggregatorType=SHIPROCKET, then this field can be null | Conditional yes |
| Double | Invoice value | yes |
| Boolean | True if the order is of COD type | yes |
| Date | Order Date | yes |
| Object[] | Order Line Items | yes |
| String | SKU of the product | yes |
| Double | Final amount paid for the product | yes |
| String | Image url of the product | no |
| String | Name of the product | yes |
| Double | Price of the product | yes |
| Integer | Quantity of the product | yes |
| Double | Store credits for this line item | no |
| String | Return Order Number | yes |
| String | Forward Order Number | no |
| String | Forward Shipment Number | no |
| Object | Pickup Address (Will be Customer Address) | yes |
| String | City of Customer | yes |
| String | Country of Customer | yes |
| String | Email of Customer | yes |
| String | First name of Customer | yes |
| String | Last name of Customer | yes |
| String | Middle name of Customer | no |
| String | Phone number of Customer | yes |
| String | State of Customer | yes |
| String | 1st line of Customer address | yes |
| String | 2nd line of Customer address | no |
| String | 3rd line of Customer address | no |
| String | Zip/Pin code of seller | yes |
| String | Seller GSTIN. If logisticAggregatorType=CLICKPOST, then this field is mandatory. If logisticAggregatorType=SHIPROCKET, then this field can be null
| Conditional yes |
| Object | Package Dimensions | yes |
| Integer | Breadth of package. Default value can be set as 1 | yes |
| Integer | Height of package. Default value can be set as 1 | yes |
| Integer | Length of package. Default value can be set as 1 | yes |
| Integer | Weight of package. Default value can be set as 0.5 | yes |
| String | Warehouse Code | no |
Response
{
"returnAwb": "5116874906",
"courierName": "SELF Reverse"
}
Parameter Name | Data Type | Description |
| String | The AWB generated for the return order |
| String | The courier assigned for the return order |
FAQs
Can multiple logistic aggregator accounts be used for creating return orders also (like how multiple accounts can be configured for shipping label generation)?
Yes, it can be done. You would have to pass the field “logisticAccountAlias“ in the request payload to identify which account is to be used.