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

# /orders/invoice

This API updates the Invoice code of an order. Multiple updates are allowed.

[block:callout]
{
  "type": "success",
  "title": "Note",
  "body": "Orders belonging to any Fulfillment mode except SD+.\nAllowed status: PFF\n\n**Request allowed values:**\nfulfillmentType - DROPSHIP, VENDOR_SELF, ONESHIP, OCPLUS"
}
[/block]

[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": "invoiceUpdates",
    "0-1": "Map<String, InvoiceCodeUpdate>",
    "0-2": "Body",
    "0-3": "Mandatory",
    "0-4": "It is a Map<String, InvoiceCodeUpdate> where packageReferenceCode is the key and InvoiceCodeUpdate is the value."
  },
  "cols": 5,
  "rows": 1
}
[/block]

InvoiceCodeUpdate

[block:parameters]
{
  "data": {
    "h-0": "FieldName",
    "h-1": "DataType",
    "h-2": "Description",
    "0-0": "fulfillmentType",
    "1-0": "invoiceCode",
    "0-1": "String",
    "1-1": "String",
    "0-2": "Fulfillment model",
    "1-2": "Invoice code"
  },
  "cols": 3,
  "rows": 2
}
[/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": {
    "h-0": "FieldName",
    "h-1": "DataType",
    "h-2": "Description",
    "0-0": "invoiceUpdatesResponse",
    "0-1": "Map<String, UpdateResponse>",
    "0-2": "Map of packageReferenceCode and UpdateResponse"
  },
  "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",
    "1-0": "errorMessage",
    "1-2": "Error message will be given if operationSuccessful is false otherwise it will be null.",
    "0-1": "boolean",
    "1-1": "String"
  },
  "cols": 3,
  "rows": 2
}
[/block]

[block:html]
{
  "html": "<div class=\"threes-nav\"><a href=\"http://sandbox-sellerapi.snapdeal.com/apidocs/index.html#!/Order_Management/addInvoice\" 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.0"
  },
  "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": {
    "/orders/invoice": {
      "post": {
        "summary": "/orders/invoice",
        "description": "This API updates the Invoice code of an order. Multiple updates are allowed.",
        "operationId": "ordersinvoice-1",
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n  \"metadata\": {\n    \"requestId\": \"01d06619-6e42-4b8c-ad68-f58196a2f133\",\n    \"clientId\": \"ePaisa\",\n    \"responseTime\": 111,\n    \"requestedURI\": \"POST /orders/invoice\"\n  },\n  \"payload\": {\n    \"invoiceUpdatesResponse\": {\n      \"SLP108858\": {\n        \"operationSuccessful\": true\n      },\n      \"SLP108855\": {\n        \"operationSuccessful\": false,\n        \"errorMessage\": \"Unknown error, contact the team\"\n      }\n    }\n  }\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "metadata": {
                      "type": "object",
                      "properties": {
                        "requestId": {
                          "type": "string",
                          "example": "01d06619-6e42-4b8c-ad68-f58196a2f133"
                        },
                        "clientId": {
                          "type": "string",
                          "example": "ePaisa"
                        },
                        "responseTime": {
                          "type": "integer",
                          "example": 111,
                          "default": 0
                        },
                        "requestedURI": {
                          "type": "string",
                          "example": "POST /orders/invoice"
                        }
                      }
                    },
                    "payload": {
                      "type": "object",
                      "properties": {
                        "invoiceUpdatesResponse": {
                          "type": "object",
                          "properties": {
                            "SLP108858": {
                              "type": "object",
                              "properties": {
                                "operationSuccessful": {
                                  "type": "boolean",
                                  "example": true,
                                  "default": true
                                }
                              }
                            },
                            "SLP108855": {
                              "type": "object",
                              "properties": {
                                "operationSuccessful": {
                                  "type": "boolean",
                                  "example": false,
                                  "default": true
                                },
                                "errorMessage": {
                                  "type": "string",
                                  "example": "Unknown error, contact the team"
                                }
                              }
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "400",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n  \"metadata\": {\n    \"requestId\": \"e91a18a3-8f87-42be-9eff-6b94ef32ab8b\",\n    \"clientId\": \"ePaisa\",\n    \"message\": \"Missing/Invalid FullFillMent type\",\n    \"responseTime\": 0,\n    \"requestedURI\": \"POST /orders/invoice\"\n  }\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "metadata": {
                      "type": "object",
                      "properties": {
                        "requestId": {
                          "type": "string",
                          "example": "e91a18a3-8f87-42be-9eff-6b94ef32ab8b"
                        },
                        "clientId": {
                          "type": "string",
                          "example": "ePaisa"
                        },
                        "message": {
                          "type": "string",
                          "example": "Missing/Invalid FullFillMent type"
                        },
                        "responseTime": {
                          "type": "integer",
                          "example": 0,
                          "default": 0
                        },
                        "requestedURI": {
                          "type": "string",
                          "example": "POST /orders/invoice"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "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": "630541309807941f67a93274:56e6587c52d2f60e00a80037"
}
```