---
agentTools:
  projectIndex: https://sellerapis.snapdeal.com/llms.txt
---

# /returns/courier/status

This API updates the courier return status. Allowed returnAction is ACCEPT for now. Multiple updates are allowed.

[block:html]
{
  "html": "<div></div>\n<h4>Request</h4>\n<style></style>"
}
[/block]

[block:parameters]
{
  "data": {
    "h-0": "ParameterName",
    "h-1": "DataType",
    "h-2": "ParameterType",
    "h-3": "Requirement",
    "h-4": "Description",
    "0-0": "returnAction",
    "0-1": "String",
    "0-2": "body",
    "0-3": "Mandatory",
    "0-4": "It is the action on return by seller",
    "1-0": "returnStatusUpdates",
    "1-1": "Map<String, CourierReturnDTO>",
    "1-2": "body",
    "1-3": "Mandatory",
    "1-4": "It is a Map<String,CourierReturnDTO> where Sub order code is the key and CourierReturnDTO is the value"
  },
  "cols": 5,
  "rows": 2
}
[/block]

CourierReturnDTO :

[block:parameters]
{
  "data": {
    "0-0": "disputeCategory(Mandatory if returnAction is DISPUTE)",
    "0-1": "Integer",
    "1-0": "description(Optional)",
    "1-1": "String",
    "2-0": "urls(Optional)",
    "0-2": "Category to which dispute belongs",
    "1-2": "Description of the dispute issue",
    "2-1": "List<String>",
    "2-2": "It is a list of URLs.",
    "h-0": "FieldName",
    "h-1": "DataType",
    "h-2": "Description"
  },
  "cols": 3,
  "rows": 3
}
[/block]

[block:html]
{
  "html": "<div></div>\n<h4>Response</h4>\n<style></style>"
}
[/block]

metadata :

[block:parameters]
{
  "data": {
    "h-0": "FieldName",
    "h-1": "DataType",
    "h-2": "Description",
    "0-0": "requestId",
    "0-2": "Unique ID for the request",
    "1-0": "clientId",
    "1-2": "Partner Id",
    "2-0": "responseTime",
    "2-2": "Response Time",
    "3-0": "requestedURI",
    "3-2": "Requested URI",
    "4-0": "message",
    "4-2": "Error message",
    "0-1": "String",
    "1-1": "String",
    "2-1": "Long",
    "3-1": "String",
    "4-1": "String"
  },
  "cols": 3,
  "rows": 5
}
[/block]

payload :

[block:parameters]
{
  "data": {
    "0-0": "returnStatusUpdatesResponse",
    "0-1": "Map<String, UpdateResponse>",
    "0-2": "Map of Sub order code and UpdateResponse",
    "h-0": "FieldName",
    "h-1": "DataType",
    "h-2": "Description"
  },
  "cols": 3,
  "rows": 1
}
[/block]

UpdateResponse :

[block:parameters]
{
  "data": {
    "h-0": "FieldName",
    "h-1": "DataType",
    "h-2": "Description",
    "0-0": "operationSuccessful",
    "0-2": "Describes whether operation Successful or not",
    "0-1": "boolean",
    "1-0": "errorMessage",
    "1-1": "String",
    "1-2": "Error message will be given if operationSuccessful is false otherwise it will be null."
  },
  "cols": 3,
  "rows": 2
}
[/block]

[block:html]
{
  "html": "<div class=\"threes-nav\"><a href=\"http://sandbox-sellerapi.snapdeal.com/apidocs/index.html#!/Return_Management/updateCourierReturnStatus\" target=\"_blank\" class=\"btn btn-default\"><div class=\"fa fa-compass fa-right\"></div>Test in the&nbsp;<strong>API Explorer</strong></a></div>\n"
}
[/block]

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "API Settings",
    "version": "1.1"
  },
  "servers": [
    {
      "url": "http://staging-apigateway.snapdeal.com/seller-api"
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "type": "apiKey",
        "name": "X-Auth-Token",
        "in": "header",
        "x-default": ""
      },
      "sec1": {
        "type": "apiKey",
        "name": "clientId",
        "in": "header",
        "x-default": "SellerAPITesting"
      },
      "sec2": {
        "type": "apiKey",
        "name": "x-seller-authz-token",
        "in": "header",
        "x-default": ""
      }
    }
  },
  "security": [
    {
      "sec0": [],
      "sec1": [],
      "sec2": []
    }
  ],
  "paths": {
    "/returns/courier/status": {
      "post": {
        "summary": "/returns/courier/status",
        "description": "This API updates the courier return status. Allowed returnAction is ACCEPT for now. Multiple updates are allowed.",
        "operationId": "courierstatus",
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n  \"metadata\": {\n    \"requestId\": \"db017c59-b67b-4650-b531-fe28270f3a70\",\n    \"clientId\": \"ePaisa\",\n    \"responseTime\": 3699,\n    \"requestedURI\": \"POST /returns/courier/status\"\n  },\n  \"payload\": {\n    \"returnStatusUpdatesResponse\": {\n      \"43196048\": {\n        \"operationSuccessful\": true\n      }\n    }\n  }\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "metadata": {
                      "type": "object",
                      "properties": {
                        "requestId": {
                          "type": "string",
                          "example": "db017c59-b67b-4650-b531-fe28270f3a70"
                        },
                        "clientId": {
                          "type": "string",
                          "example": "ePaisa"
                        },
                        "responseTime": {
                          "type": "integer",
                          "example": 3699,
                          "default": 0
                        },
                        "requestedURI": {
                          "type": "string",
                          "example": "POST /returns/courier/status"
                        }
                      }
                    },
                    "payload": {
                      "type": "object",
                      "properties": {
                        "returnStatusUpdatesResponse": {
                          "type": "object",
                          "properties": {
                            "43196048": {
                              "type": "object",
                              "properties": {
                                "operationSuccessful": {
                                  "type": "boolean",
                                  "example": true,
                                  "default": true
                                }
                              }
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "400",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n  \"metadata\": {\n    \"requestId\": \"c1af1ae0-ecd7-46d5-a6ba-7ec957e36362\",\n    \"clientId\": \"ePaisa\",\n    \"message\": \"Missing Sub order Code(s)\",\n    \"responseTime\": 0,\n    \"requestedURI\": \"POST /returns/courier/status\"\n  }\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "metadata": {
                      "type": "object",
                      "properties": {
                        "requestId": {
                          "type": "string",
                          "example": "c1af1ae0-ecd7-46d5-a6ba-7ec957e36362"
                        },
                        "clientId": {
                          "type": "string",
                          "example": "ePaisa"
                        },
                        "message": {
                          "type": "string",
                          "example": "Missing Sub order Code(s)"
                        },
                        "responseTime": {
                          "type": "integer",
                          "example": 0,
                          "default": 0
                        },
                        "requestedURI": {
                          "type": "string",
                          "example": "POST /returns/courier/status"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "420": {
            "description": "420",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": ""
                  }
                }
              }
            }
          }
        },
        "deprecated": false
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": false,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true,
  "_id": "630541309807941f67a93276:5b576c4ac6af890003de650b"
}
```