post http://staging-apigateway.snapdeal.com/seller-api/returns/courier/status
This API updates the courier return status. Allowed returnAction is ACCEPT for now. Multiple updates are allowed.
Request
| ParameterName | DataType | ParameterType | Requirement | Description | 
|---|---|---|---|---|
| returnAction | String | body | Mandatory | It is the action on return by seller | 
| returnStatusUpdates | Map<String, CourierReturnDTO> | body | Mandatory | It is a Map<String,CourierReturnDTO> where Sub order code is the key and CourierReturnDTO is the value | 
CourierReturnDTO :
| FieldName | DataType | Description | 
|---|---|---|
| disputeCategory(Mandatory if returnAction is DISPUTE) | Integer | Category to which dispute belongs | 
| description(Optional) | String | Description of the dispute issue | 
| urls(Optional) | List | It is a list of URLs. | 
Response
metadata :
| FieldName | DataType | Description | 
|---|---|---|
| requestId | String | Unique ID for the request | 
| clientId | String | Partner Id | 
| responseTime | Long | Response Time | 
| requestedURI | String | Requested URI | 
| message | String | Error message | 
payload :
| FieldName | DataType | Description | 
|---|---|---|
| returnStatusUpdatesResponse | Map<String, UpdateResponse> | Map of Sub order code and UpdateResponse | 
UpdateResponse :
| FieldName | DataType | Description | 
|---|---|---|
| operationSuccessful | boolean | Describes whether operation Successful or not | 
| errorMessage | String | Error message will be given if operationSuccessful is false otherwise it will be null. | 
