{
  "info": {
    "_postman_id": "3beb31fe-1804-5b16-8523-6468a559e0e9",
    "name": "API CWS Platform (EN)",
    "description": "### Welcome to the CWS Platform API\n\nThis documentation brings together everything Retailers and Distributors need to integrate their systems with our platform, keeping stock, prices and orders synchronized in real time.\n\n**Getting started**  \nStart with **Get Access Token**: it returns the `access_token`, which goes in the `Authorization: Bearer` header of every other call. The collection itself stores it for you — the other requests are sent already authenticated, without repeating the header.\n\nEach endpoint brings the complete contract — parameters, body, business rules, field-by-field response and errors — with request and response examples.\n\n**Sandbox credentials**  \nTo request your sandbox credentials, use the [contact form](https://www.cws-platform.com/contato/?ativo=dev-caso-portal-b2b-proprio&camada=2&origem=%2Fdesenvolvedores%2Fcasos%2Fportal-b2b-proprio) on the CWS Platform website.\n\n**Limits**  \nIn production, the API limit is 1,000 requests per minute. Maximum size and other limits come in the documentation of each endpoint. If your integration needs an exception to the limit, arrange it with the technical team during development.\n\n**Questions Channel**  \nOur support team is available through the e-mail [suporte-api@cws.digital](mailto:suporte-api@cws.digital).\n\n_Note: when you contact us, you will receive an automatic reply from our ticketing tool (Jira), sent by the sender_ `jira@cwsdigital.atlassian.net`_._",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
  },
  "item": [
    {
      "name": "Authentication",
      "description": "The first step to consume the CWS API services is to obtain an access token. This token is required to authorize all subsequent calls.",
      "item": [
        {
          "name": "Get Access Token",
          "event": [
            {
              "listen": "test",
              "script": {
                "exec": [
                  "const body = pm.response.json();",
                  "",
                  "// Grava o token nos dois escopos: o environment tem precedencia sobre a",
                  "// collection, entao gravar so em collectionVariables deixaria um valor",
                  "// antigo do environment sobrepor o token recem-gerado.",
                  "const setToken = (key, value) => {",
                  "    if (pm.environment.name) { pm.environment.set(key, value); }",
                  "    pm.collectionVariables.set(key, value);",
                  "};",
                  "",
                  "// Sem o prefixo \"Bearer \": a auth da collection e do tipo bearer e o",
                  "// Postman ja adiciona o prefixo ao montar o header Authorization.",
                  "setToken(\"access_token\", body.access_token);",
                  "setToken(\"refresh_token\", body.refresh_token);"
                ],
                "type": "text/javascript"
              }
            }
          ],
          "request": {
            "auth": {
              "type": "noauth"
            },
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/x-www-form-urlencoded"
              },
              {
                "key": "Authorization",
                "value": "Basic {{client_basic_auth}}"
              }
            ],
            "url": {
              "raw": "{{url}}/oauth/token",
              "host": [
                "{{url}}"
              ],
              "path": [
                "oauth",
                "token"
              ]
            },
            "body": {
              "mode": "urlencoded",
              "urlencoded": [
                {
                  "key": "scope",
                  "value": "trust",
                  "type": "text"
                },
                {
                  "key": "grant_type",
                  "value": "password",
                  "type": "text"
                },
                {
                  "key": "username",
                  "value": "integracao@lojaexemplo.com.br",
                  "type": "text"
                },
                {
                  "key": "password",
                  "value": "sua-senha",
                  "type": "text"
                }
              ]
            },
            "description": "### Description\n\nAuthenticates a platform user and returns the `access_token` used in all other API calls.\n\nIt is the only endpoint that does not require a token. It carries its own `Authorization` header, with the fixed credential of the integration client, already filled in the **Try it** panel and in the Postman collection downloaded from the portal.\n\n### Business rules\n\n#### Validity\n\nThe `access_token` is valid for **12 hours** (`expires_in` arrives as `43199`, in seconds). When it expires, authenticate again at this same URL.\n\n#### How to send the token in the other calls\n\nThe header is `Authorization: Bearer <access_token>`, **with the `Bearer` prefix**. Without it, the request is rejected with 401.\n\nIn the **Try it** panel, this is already set up: the token returned by this endpoint is saved in this browser tab and filled in on the other endpoints. You do not need to copy anything.\n\nIn the Postman collection downloaded from the portal, this request stores the token in the `access_token` variable, and the other requests inherit the collection header.\n\n### Responses\n\n**401**\n\nInvalid username or password.\n\nUsername or password rejected: the body carries `error` (`invalid_grant`) and the detail in `error_description`."
          },
          "response": [
            {
              "name": "Success — password authentication",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/x-www-form-urlencoded"
                  },
                  {
                    "key": "Authorization",
                    "value": "Basic {{client_basic_auth}}"
                  }
                ],
                "url": {
                  "raw": "{{url}}/oauth/token",
                  "host": [
                    "{{url}}"
                  ],
                  "path": [
                    "oauth",
                    "token"
                  ]
                },
                "body": {
                  "mode": "urlencoded",
                  "urlencoded": [
                    {
                      "key": "scope",
                      "value": "trust",
                      "type": "text"
                    },
                    {
                      "key": "grant_type",
                      "value": "password",
                      "type": "text"
                    },
                    {
                      "key": "username",
                      "value": "integracao@lojaexemplo.com.br",
                      "type": "text"
                    },
                    {
                      "key": "password",
                      "value": "sua-senha",
                      "type": "text"
                    }
                  ]
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "cookie": [],
              "body": "{\n  \"access_token\": \"1f7c9a04-3b52-4e18-9d61-2c8f5a0e7b43\",\n  \"token_type\": \"bearer\",\n  \"refresh_token\": \"a3d18e57-6c40-4f92-8ba7-19e35c72d068\",\n  \"expires_in\": 43199,\n  \"scope\": \"trust\"\n}"
            }
          ]
        }
      ]
    },
    {
      "name": "Stock and Price",
      "description": "Endpoints dedicated to the complete management of stock and prices of the products in your warehouses.",
      "item": [
        {
          "name": "Update or Create Stock in Batch",
          "request": {
            "method": "PUT",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{url}}/v1/stock/batch",
              "host": [
                "{{url}}"
              ],
              "path": [
                "v1",
                "stock",
                "batch"
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"stockRequest\": [\n    {\n      \"skuAttributeName\": \"codigo-produto-teste\",\n      \"skuAttributeValue\": \"PRODUTO-TESTE-001\",\n      \"warehouseId\": 1001,\n      \"price\": 58.62,\n      \"quantity\": 1123,\n      \"virtualQuantity\": 0,\n      \"leadTime\": 2\n    }\n  ]\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "description": "### Description\n\nCreates or updates the stock and price of up to 50 products per request, in **your own store**.\n\nEach item is processed independently: the result of each one comes in the `status` field of the response, and a rejected item does not prevent the others.\n\nThe store is always the token's store. To send stock for a branch, use **Update or Create Stock in Batch for Branch**.\n\n### How to identify the product\n\nEach item must carry **one** of these two forms:\n\n| Form | Fields |\n| --- | --- |\n| By manufacturer data | `brand`, `mfrPartCode` and `composition`, all three together. |\n| By attribute | `skuAttributeName` and `skuAttributeValue`, both together. Available to those who have contracted the product catalog service with their own attribute. |\n\n**All items in the same batch must use the same form.** A batch that mixes both is rejected entirely with 400: send one request for each form.\n\nThe examples use the sandbox test product, which is already registered: only replace the `warehouseId` with a warehouse of your store.\n\n### Business rules\n\n#### Lead time and virtual stock\n\nThe preparation time can be provided in two ways:\n\n- **In days:** send the number of days in `leadTime`. If you send `leadTimeByRequest`, it must be `false`.\n- **Upon request:** send `leadTimeByRequest: true` with `leadTime: 0`.\n\nWith virtual stock (`virtualQuantity` greater than zero) and `leadTimeByRequest: false`, `leadTime` must be greater than zero.\n\nAn item outside these combinations is rejected, with `status: ERROR`.\n\n#### Availability date\n\nSend `leadTimeDate` with the full date and time, in Brasília time: `2026-09-10T00:00:00-03:00`.\n\nA date without time (`2026-09-10`) or in another format (`10/09/2026`) rejects the **entire request** with 400.\n\nWith the date filled in and the real quantity at zero, the virtual stock starts being offered.\n\n#### The submission is always complete\n\nResend the whole item on every update. The optional fields you do **not** resend go back to empty: `leadTimeDate`, `leadTimeByRequest`, `profitMargin`, `totalCost` and `targetMargin`.\n\n`partnerPartCode` and `multipleQuantity` are the exception: they only change when you send them.\n\n#### Repeated items in the same batch\n\nSend each product only once per request. Items with the same warehouse and the same product are treated as repeated:\n\n- with the same values, only the first one is processed;\n- with different values, none of them is processed.\n\n#### Unique product code in the warehouse\n\nUse `partnerPartCodeUnique: true` when you reuse a product code for another SKU.\n\nWith it, the stocks in the same warehouse that already have that code in `partnerPartCode` are zeroed (price, quantity and virtual stock), and the old code receives the `_i` suffix.\n\n### Responses\n\n**200**\n\nA list with one result per item.\n\nThe items come **in the same order as sent**.\n\nThe batch responds 200 whenever the envelope is valid, even if **all** items were rejected. So check the `status` of each item: `CREATED` or `UPDATED` when it was stored, `ERROR` when it was rejected, with the reason in `error`.\n\nFields with a zero or `false` value do not come in the response: a missing `virtualQuantity`, for example, means `0`.\n\n**400**\n\nInvalid JSON or rejected batch.\n\nMalformed JSON or a value in an invalid format, such as `leadTimeDate` without time. The problematic part comes in `error`.\n\nBatch with both identification forms, or `warehouseId` outside your store. Body: `code`, `message` and `errorDescription`.\n\n**401**\n\nMissing, malformed or expired token.\n\nThe detail comes in `error`.\n\n**422**\n\nEmpty batch or more than 50 items.\n\nThe detail comes in `error`."
          },
          "response": [
            {
              "name": "Success — identification by attribute",
              "originalRequest": {
                "method": "PUT",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "url": {
                  "raw": "{{url}}/v1/stock/batch",
                  "host": [
                    "{{url}}"
                  ],
                  "path": [
                    "v1",
                    "stock",
                    "batch"
                  ]
                },
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"stockRequest\": [\n    {\n      \"skuAttributeName\": \"codigo-produto-teste\",\n      \"skuAttributeValue\": \"PRODUTO-TESTE-001\",\n      \"warehouseId\": 1001,\n      \"price\": 58.62,\n      \"quantity\": 1123,\n      \"virtualQuantity\": 0,\n      \"leadTime\": 2\n    }\n  ]\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "cookie": [],
              "body": "[\n  {\n    \"id\": 4410001,\n    \"warehouseId\": 1001,\n    \"skuAttributeName\": \"codigo-produto-teste\",\n    \"skuAttributeValue\": \"PRODUTO-TESTE-001\",\n    \"price\": 58.62,\n    \"quantity\": 1123,\n    \"leadTime\": 2,\n    \"status\": \"UPDATED\"\n  }\n]"
            },
            {
              "name": "Success — identification by manufacturer data",
              "originalRequest": {
                "method": "PUT",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "url": {
                  "raw": "{{url}}/v1/stock/batch",
                  "host": [
                    "{{url}}"
                  ],
                  "path": [
                    "v1",
                    "stock",
                    "batch"
                  ]
                },
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"stockRequest\": [\n    {\n      \"brand\": \"Bosch\",\n      \"mfrPartCode\": \"TESTE-API-001\",\n      \"composition\": \"UNITARY\",\n      \"warehouseId\": 1001,\n      \"price\": 58.62,\n      \"quantity\": 1123,\n      \"virtualQuantity\": 0,\n      \"leadTime\": 2\n    }\n  ]\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "cookie": [],
              "body": "[\n  {\n    \"id\": 4410001,\n    \"warehouseId\": 1001,\n    \"brand\": \"Bosch\",\n    \"mfrPartCode\": \"TESTE-API-001\",\n    \"composition\": \"UNITARY\",\n    \"price\": 58.62,\n    \"quantity\": 1123,\n    \"leadTime\": 2,\n    \"status\": \"UPDATED\"\n  }\n]"
            },
            {
              "name": "Rejected item — upon-request time with leadTime greater than zero",
              "originalRequest": {
                "method": "PUT",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "url": {
                  "raw": "{{url}}/v1/stock/batch",
                  "host": [
                    "{{url}}"
                  ],
                  "path": [
                    "v1",
                    "stock",
                    "batch"
                  ]
                },
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"stockRequest\": [\n    {\n      \"skuAttributeName\": \"codigo-produto-teste\",\n      \"skuAttributeValue\": \"PRODUTO-TESTE-001\",\n      \"warehouseId\": 1001,\n      \"price\": 58.62,\n      \"quantity\": 1123,\n      \"virtualQuantity\": 0,\n      \"leadTime\": 2\n    }\n  ]\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "cookie": [],
              "body": "[\n  {\n    \"id\": 0,\n    \"warehouseId\": 1001,\n    \"skuAttributeName\": \"codigo-produto-teste\",\n    \"skuAttributeValue\": \"PRODUTO-TESTE-001\",\n    \"price\": 58.62,\n    \"quantity\": 1123,\n    \"leadTime\": 2,\n    \"leadTimeByRequest\": true,\n    \"status\": \"ERROR\",\n    \"error\": \"invalid combination: leadTime / leadTimeByRequest / virtualQuantity\"\n  }\n]"
            }
          ]
        },
        {
          "name": "Update or Create Stock in Batch for Branch",
          "request": {
            "method": "PUT",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{url}}/v1/stock/batch/:partnerId",
              "host": [
                "{{url}}"
              ],
              "path": [
                "v1",
                "stock",
                "batch",
                ":partnerId"
              ],
              "variable": [
                {
                  "key": "partnerId",
                  "value": "",
                  "description": "Id of the **branch** that will receive the stock. It must be linked to the token's parent account."
                }
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"stockRequest\": [\n    {\n      \"skuAttributeName\": \"codigo-produto-teste\",\n      \"skuAttributeValue\": \"PRODUTO-TESTE-001\",\n      \"warehouseId\": 4970,\n      \"price\": 58.62,\n      \"quantity\": 1123,\n      \"virtualQuantity\": 0,\n      \"leadTime\": 2\n    }\n  ]\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "description": "### Description\n\nAllows a **parent** account to create or update the stock and price of up to 50 products per request in one of its **branches**.\n\nEach item is processed independently: the result of each one comes in the `status` field of the response, and a rejected item does not prevent the others.\n\nThe body and the response are the same as those of the submission for your own store. The difference is the target branch, which comes in the route and must be linked to your parent account.\n\n### How to identify the product\n\nEach item must carry **one** of these two forms:\n\n| Form | Fields |\n| --- | --- |\n| By manufacturer data | `brand`, `mfrPartCode` and `composition`, all three together. |\n| By attribute | `skuAttributeName` and `skuAttributeValue`, both together. Available to those who have contracted the product catalog service with their own attribute. |\n\n**All items in the same batch must use the same form.** A batch that mixes both is rejected entirely with 400: send one request for each form.\n\nThe examples use the sandbox test product, which is already registered: provide the branch in `partnerId` and only replace the `warehouseId` with one of its warehouses.\n\n### Business rules\n\n#### Lead time and virtual stock\n\nThe preparation time can be provided in two ways:\n\n- **In days:** send the number of days in `leadTime`. If you send `leadTimeByRequest`, it must be `false`.\n- **Upon request:** send `leadTimeByRequest: true` with `leadTime: 0`.\n\nWith virtual stock (`virtualQuantity` greater than zero) and `leadTimeByRequest: false`, `leadTime` must be greater than zero.\n\nAn item outside these combinations is rejected, with `status: ERROR`.\n\n#### Availability date\n\nSend `leadTimeDate` with the full date and time, in Brasília time: `2026-09-10T00:00:00-03:00`.\n\nA date without time (`2026-09-10`) or in another format (`10/09/2026`) rejects the **entire request** with 400.\n\nWith the date filled in and the real quantity at zero, the virtual stock starts being offered.\n\n#### The submission is always complete\n\nResend the whole item on every update. The optional fields you do **not** resend go back to empty: `leadTimeDate`, `leadTimeByRequest`, `profitMargin`, `totalCost` and `targetMargin`.\n\n`partnerPartCode` and `multipleQuantity` are the exception: they only change when you send them.\n\n#### Repeated items in the same batch\n\nSend each product only once per request. Items with the same warehouse and the same product are treated as repeated:\n\n- with the same values, only the first one is processed;\n- with different values, none of them is processed.\n\n#### Unique product code in the warehouse\n\nUse `partnerPartCodeUnique: true` when you reuse a product code for another SKU.\n\nWith it, the stocks in the same warehouse that already have that code in `partnerPartCode` are zeroed (price, quantity and virtual stock), and the old code receives the `_i` suffix.\n\n### Responses\n\n**200**\n\nA list with one result per item.\n\nThe items come **in the same order as sent**.\n\nThe batch responds 200 whenever the envelope is valid, even if **all** items were rejected. So check the `status` of each item: `CREATED` or `UPDATED` when it was stored, `ERROR` when it was rejected, with the reason in `error`.\n\nFields with a zero or `false` value do not come in the response: a missing `virtualQuantity`, for example, means `0`.\n\n**400**\n\nInvalid branch, JSON or batch.\n\nNon-numeric route `partnerId`.\n\nMalformed JSON or a value in an invalid format, such as `leadTimeDate` without time. The problematic part comes in `error`.\n\nBatch with both identification forms, or `warehouseId` outside the branch. Body: `code`, `message` and `errorDescription`.\n\n**401**\n\nMissing, malformed or expired token.\n\nThe detail comes in `error`.\n\n**403**\n\nBranch not linked to your parent account.\n\n**422**\n\nEmpty batch or more than 50 items.\n\nThe detail comes in `error`."
          },
          "response": [
            {
              "name": "Success — identification by attribute",
              "originalRequest": {
                "method": "PUT",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "url": {
                  "raw": "{{url}}/v1/stock/batch/:partnerId",
                  "host": [
                    "{{url}}"
                  ],
                  "path": [
                    "v1",
                    "stock",
                    "batch",
                    ":partnerId"
                  ],
                  "variable": [
                    {
                      "key": "partnerId",
                      "value": "",
                      "description": "Id of the **branch** that will receive the stock. It must be linked to the token's parent account."
                    }
                  ]
                },
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"stockRequest\": [\n    {\n      \"skuAttributeName\": \"codigo-produto-teste\",\n      \"skuAttributeValue\": \"PRODUTO-TESTE-001\",\n      \"warehouseId\": 4970,\n      \"price\": 58.62,\n      \"quantity\": 1123,\n      \"virtualQuantity\": 0,\n      \"leadTime\": 2\n    }\n  ]\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "cookie": [],
              "body": "[\n  {\n    \"id\": 4410001,\n    \"warehouseId\": 4970,\n    \"skuAttributeName\": \"codigo-produto-teste\",\n    \"skuAttributeValue\": \"PRODUTO-TESTE-001\",\n    \"price\": 58.62,\n    \"quantity\": 1123,\n    \"leadTime\": 2,\n    \"status\": \"UPDATED\"\n  }\n]"
            },
            {
              "name": "Success — identification by manufacturer data",
              "originalRequest": {
                "method": "PUT",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "url": {
                  "raw": "{{url}}/v1/stock/batch/:partnerId",
                  "host": [
                    "{{url}}"
                  ],
                  "path": [
                    "v1",
                    "stock",
                    "batch",
                    ":partnerId"
                  ],
                  "variable": [
                    {
                      "key": "partnerId",
                      "value": "",
                      "description": "Id of the **branch** that will receive the stock. It must be linked to the token's parent account."
                    }
                  ]
                },
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"stockRequest\": [\n    {\n      \"brand\": \"Bosch\",\n      \"mfrPartCode\": \"TESTE-API-001\",\n      \"composition\": \"UNITARY\",\n      \"warehouseId\": 4970,\n      \"price\": 58.62,\n      \"quantity\": 1123,\n      \"virtualQuantity\": 0,\n      \"leadTime\": 2\n    }\n  ]\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "cookie": [],
              "body": "[\n  {\n    \"id\": 4410001,\n    \"warehouseId\": 4970,\n    \"brand\": \"Bosch\",\n    \"mfrPartCode\": \"TESTE-API-001\",\n    \"composition\": \"UNITARY\",\n    \"price\": 58.62,\n    \"quantity\": 1123,\n    \"leadTime\": 2,\n    \"status\": \"UPDATED\"\n  }\n]"
            },
            {
              "name": "Rejected item — upon-request time with leadTime greater than zero",
              "originalRequest": {
                "method": "PUT",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "url": {
                  "raw": "{{url}}/v1/stock/batch/:partnerId",
                  "host": [
                    "{{url}}"
                  ],
                  "path": [
                    "v1",
                    "stock",
                    "batch",
                    ":partnerId"
                  ],
                  "variable": [
                    {
                      "key": "partnerId",
                      "value": "",
                      "description": "Id of the **branch** that will receive the stock. It must be linked to the token's parent account."
                    }
                  ]
                },
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"stockRequest\": [\n    {\n      \"skuAttributeName\": \"codigo-produto-teste\",\n      \"skuAttributeValue\": \"PRODUTO-TESTE-001\",\n      \"warehouseId\": 4970,\n      \"price\": 58.62,\n      \"quantity\": 1123,\n      \"virtualQuantity\": 0,\n      \"leadTime\": 2\n    }\n  ]\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "cookie": [],
              "body": "[\n  {\n    \"id\": 0,\n    \"warehouseId\": 4970,\n    \"skuAttributeName\": \"codigo-produto-teste\",\n    \"skuAttributeValue\": \"PRODUTO-TESTE-001\",\n    \"price\": 58.62,\n    \"quantity\": 1123,\n    \"leadTime\": 2,\n    \"leadTimeByRequest\": true,\n    \"status\": \"ERROR\",\n    \"error\": \"invalid combination: leadTime / leadTimeByRequest / virtualQuantity\"\n  }\n]"
            },
            {
              "name": "Refusal — non-numeric route `partnerId`",
              "originalRequest": {
                "method": "PUT",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "url": {
                  "raw": "{{url}}/v1/stock/batch/:partnerId",
                  "host": [
                    "{{url}}"
                  ],
                  "path": [
                    "v1",
                    "stock",
                    "batch",
                    ":partnerId"
                  ],
                  "variable": [
                    {
                      "key": "partnerId",
                      "value": "",
                      "description": "Id of the **branch** that will receive the stock. It must be linked to the token's parent account."
                    }
                  ]
                },
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"stockRequest\": [\n    {\n      \"skuAttributeName\": \"codigo-produto-teste\",\n      \"skuAttributeValue\": \"PRODUTO-TESTE-001\",\n      \"warehouseId\": 4970,\n      \"price\": 58.62,\n      \"quantity\": 1123,\n      \"virtualQuantity\": 0,\n      \"leadTime\": 2\n    }\n  ]\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "Bad Request",
              "code": 400,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "cookie": [],
              "body": "{\n  \"error\": \"Invalid target partner ID\"\n}"
            },
            {
              "name": "Refusal — branch not linked to your parent account",
              "originalRequest": {
                "method": "PUT",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "url": {
                  "raw": "{{url}}/v1/stock/batch/:partnerId",
                  "host": [
                    "{{url}}"
                  ],
                  "path": [
                    "v1",
                    "stock",
                    "batch",
                    ":partnerId"
                  ],
                  "variable": [
                    {
                      "key": "partnerId",
                      "value": "",
                      "description": "Id of the **branch** that will receive the stock. It must be linked to the token's parent account."
                    }
                  ]
                },
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"stockRequest\": [\n    {\n      \"skuAttributeName\": \"codigo-produto-teste\",\n      \"skuAttributeValue\": \"PRODUTO-TESTE-001\",\n      \"warehouseId\": 4970,\n      \"price\": 58.62,\n      \"quantity\": 1123,\n      \"virtualQuantity\": 0,\n      \"leadTime\": 2\n    }\n  ]\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "Forbidden",
              "code": 403,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "cookie": [],
              "body": "{\n  \"error\": \"Access denied: Invalid partnership\"\n}"
            }
          ]
        }
      ]
    },
    {
      "name": "Orders",
      "description": "Services for querying and managing orders.",
      "item": [
        {
          "name": "Store Management",
          "item": [
            {
              "name": "List Store Orders",
              "request": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{url}}/partnerOrders/list?limit=5&offset=0",
                  "host": [
                    "{{url}}"
                  ],
                  "path": [
                    "partnerOrders",
                    "list"
                  ],
                  "query": [
                    {
                      "key": "limit",
                      "value": "5",
                      "description": "Orders per page. Default **5**, maximum **25**. Above the maximum, the maximum applies."
                    },
                    {
                      "key": "offset",
                      "value": "0",
                      "description": "How many orders to skip. Default **0**."
                    },
                    {
                      "key": "status",
                      "value": "",
                      "description": "Filters by status. Without the parameter, all of them come.",
                      "disabled": true
                    },
                    {
                      "key": "createdFrom",
                      "value": "",
                      "description": "Created from this date, inclusive, in the format `2026-09-01T08:30:00`.",
                      "disabled": true
                    },
                    {
                      "key": "createdTo",
                      "value": "",
                      "description": "Created up to this date, inclusive, in the format `2026-09-01T08:30:00`.",
                      "disabled": true
                    },
                    {
                      "key": "updatedFrom",
                      "value": "",
                      "description": "Updated from this date, inclusive, in the format `2026-09-01T08:30:00`.",
                      "disabled": true
                    },
                    {
                      "key": "updatedTo",
                      "value": "",
                      "description": "Updated up to this date, inclusive, in the format `2026-09-01T08:30:00`.",
                      "disabled": true
                    }
                  ]
                },
                "description": "### Description\n\nLists the orders in which **your store is the supplier** — the ones you received to fulfill —, from the most recent to the oldest, with pagination and filters.\n\nThe response is compact: nine fields per order, enough to build a fulfillment queue. The full content comes in **Get Order Details**.\n\nThe `status` values: `PRE_ORDER` · `AWAITING_PAYMENT` · `PAYMENT_APPROVED` · `WITHOUT_CREDIT_LIMIT` · `READY` · `SHIPPED` · `DELIVERED` · `COMPLETED` · `CANCELED` · `STRAYED` · `RETURNED` · `STORE_PAYMENT`.\n\n### Responses\n\n**200**\n\nArray of orders, from newest to oldest.\n\nSorted by creation date.\n\nThe nine fields always come.\n\nWith no results, the response is an empty array.\n\n**401**\n\nMissing, malformed or expired token."
              },
              "response": [
                {
                  "name": "Success — two orders",
                  "originalRequest": {
                    "method": "GET",
                    "header": [],
                    "url": {
                      "raw": "{{url}}/partnerOrders/list?limit=5&offset=0",
                      "host": [
                        "{{url}}"
                      ],
                      "path": [
                        "partnerOrders",
                        "list"
                      ],
                      "query": [
                        {
                          "key": "limit",
                          "value": "5",
                          "description": "Orders per page. Default **5**, maximum **25**. Above the maximum, the maximum applies."
                        },
                        {
                          "key": "offset",
                          "value": "0",
                          "description": "How many orders to skip. Default **0**."
                        },
                        {
                          "key": "status",
                          "value": "",
                          "description": "Filters by status. Without the parameter, all of them come.",
                          "disabled": true
                        },
                        {
                          "key": "createdFrom",
                          "value": "",
                          "description": "Created from this date, inclusive, in the format `2026-09-01T08:30:00`.",
                          "disabled": true
                        },
                        {
                          "key": "createdTo",
                          "value": "",
                          "description": "Created up to this date, inclusive, in the format `2026-09-01T08:30:00`.",
                          "disabled": true
                        },
                        {
                          "key": "updatedFrom",
                          "value": "",
                          "description": "Updated from this date, inclusive, in the format `2026-09-01T08:30:00`.",
                          "disabled": true
                        },
                        {
                          "key": "updatedTo",
                          "value": "",
                          "description": "Updated up to this date, inclusive, in the format `2026-09-01T08:30:00`.",
                          "disabled": true
                        }
                      ]
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "body": "[\n  {\n    \"id\": 900201,\n    \"orderId\": 900100,\n    \"total\": \"R$637,57\",\n    \"status\": \"PAYMENT_APPROVED\",\n    \"dateCreated\": \"2026-09-02T11:04:18Z\",\n    \"lastUpdated\": \"2026-09-02T11:12:40Z\",\n    \"gateway\": \"BRASPAG\",\n    \"partner\": {\n      \"partnerName\": \"Loja Exemplo\",\n      \"partnerDocument\": \"30.424.972/0001-74\"\n    },\n    \"customer\": {\n      \"customerName\": \"Ana Paula Ribeiro\",\n      \"customerDocument\": \"466.935.373-08\"\n    }\n  },\n  {\n    \"id\": 900202,\n    \"orderId\": 900101,\n    \"total\": \"R$81,64\",\n    \"status\": \"AWAITING_PAYMENT\",\n    \"dateCreated\": \"2026-09-01T13:26:05Z\",\n    \"lastUpdated\": \"2026-09-01T13:27:26Z\",\n    \"gateway\": null,\n    \"partner\": {\n      \"partnerName\": \"Loja Exemplo\",\n      \"partnerDocument\": \"30.424.972/0001-74\"\n    },\n    \"customer\": {\n      \"customerName\": \"Ana Paula Ribeiro\",\n      \"customerDocument\": \"466.935.373-08\"\n    }\n  }\n]"
                }
              ]
            },
            {
              "name": "Get Order Details - Store",
              "request": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{url}}/partnerOrders/:id",
                  "host": [
                    "{{url}}"
                  ],
                  "path": [
                    "partnerOrders",
                    ":id"
                  ],
                  "variable": [
                    {
                      "key": "id",
                      "value": "900201",
                      "description": "Id of the **partner order** (`partnerOrderId`), the `id` field of the listing."
                    }
                  ]
                },
                "description": "### Description\n\nReturns the whole order: amounts, customer, payments, deliveries with their products, and the status history.\n\nThe route id is the **partner order** id (`partnerOrderId`), the `id` field of the listing — not the `orderId`. Mixing up the two is the most common error in this family of routes.\n\n### Business rules\n\n#### Customer data\n\nPart of the customer data may come masked or omitted, depending on the store's marketplace contract, the branch link and the data restriction configuration of the origin store.\n\nThe `customer` block is always present; what varies is how it is filled. With restricted display, `email`, `phone`, `optinTracking` and `trackingPhone` come as `****`.\n\n#### Conditional blocks\n\nThey appear only when the order has the corresponding data:\n\n- `discounts`\n- `replicaOrdersCreated`, `replicaPartnerOrdersCreated`, `originalOrderRedone`, `originalPartnerOrderRedone` and `reasonToRePurchase`\n- `commentRefusing`, `reasonRefusingCode` and `reasonRefusingDescription`\n- `approvalWorkflowTypes.workflowReason[]`\n- `campaign`\n- `payrollDebit` and `monsantoCredit`, with the `COMMODITY_EXCHANGE_CAMPAIGN` gateway and the commodity tax enabled\n- `deliveries[].deliveryCommodityInfo`, inside each delivery, when the order has `orderCommodityExchange`\n- `freightTotalDiscount`\n- `supplierOrderId`, `supplierInvoiceNumber`, `supplierInvoiceSerie`, `supplierInvoiceKey` and `supplierInvoiceDate`\n- `orderName`\n- `cashback`\n- `orderCustomerThirdPartyReferral`\n- `couponCode`\n- `partnerOrderAttributes`\n- `orderDocuments`\n- `invoices`\n- the `externalAttributes` object, with the `external*` attributes\n- `customTax`\n- `paymentDateVpvf`\n\n### Responses\n\n**200**\n\nThe full order.\n\nThe payload is extensive: the first table lists the top-level fields, and each object or list has its own table right below.\n\nThe fields that appear only in some orders are in **Conditional blocks**, in the business rules.\n\n**401**\n\nMissing, malformed or expired token.\n\n**404**\n\nThe order does not exist or is not in your scope."
              },
              "response": [
                {
                  "name": "Success — order with approved payment",
                  "originalRequest": {
                    "method": "GET",
                    "header": [],
                    "url": {
                      "raw": "{{url}}/partnerOrders/900201",
                      "host": [
                        "{{url}}"
                      ],
                      "path": [
                        "partnerOrders",
                        "900201"
                      ]
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "body": "{\n  \"attendant\": null,\n  \"orderId\": 900100,\n  \"id\": 900201,\n  \"status\": \"PAYMENT_APPROVED\",\n  \"approvalWorkflow\": false,\n  \"workflowIsApproved\": false,\n  \"approvalCredit\": null,\n  \"subTotal\": 35.91,\n  \"subTotalFormats\": {\n    \"value\": \"35,91\",\n    \"mask\": \"R$ 35,91\"\n  },\n  \"taxes\": {\n    \"taxPurpose\": null,\n    \"taxPurposeId\": null,\n    \"st\": 0,\n    \"ipi\": 0,\n    \"icms\": 0,\n    \"pis\": 0,\n    \"cofins\": 0,\n    \"totalTax\": 0\n  },\n  \"freightTotal\": 45.73,\n  \"freightTotalFormats\": {\n    \"value\": \"45,73\",\n    \"mask\": \"R$ 45,73\"\n  },\n  \"total\": 81.64,\n  \"totalFormats\": {\n    \"value\": \"81,64\",\n    \"mask\": \"R$ 81,64\"\n  },\n  \"dateCreated\": \"2026-09-01T13:26:05Z\",\n  \"lastUpdated\": \"2026-09-01T13:27:26Z\",\n  \"invoiceNote\": null,\n  \"leadTimeByRequestDone\": true,\n  \"order\": {\n    \"origin\": \"SHOP\",\n    \"originStoreName\": \"Loja Exemplo\",\n    \"originStoreId\": 4210,\n    \"originStoreSubdomain\": \"lojaexemplo\",\n    \"originStorePartnerId\": 5050,\n    \"drivenPrice\": false,\n    \"manualPrice\": false\n  },\n  \"seller\": {\n    \"id\": 5050,\n    \"name\": \"Loja Exemplo\",\n    \"document\": \"30.424.972/0001-74\"\n  },\n  \"customer\": {\n    \"id\": 700101,\n    \"name\": \"Ana Paula Ribeiro\",\n    \"contactName\": \"Ana Paula Ribeiro\",\n    \"email\": \"ana.ribeiro@exemplo.com.br\",\n    \"phone\": \"(11) 98765-4321\",\n    \"type\": \"pf\",\n    \"document\": \"466.935.373-08\",\n    \"stateRegistration\": null,\n    \"optinTracking\": null,\n    \"trackingPhone\": null,\n    \"dateCreated\": \"2026-08-20T09:15:00Z\",\n    \"registrationAddress\": {\n      \"street\": \"Avenida Paulista\",\n      \"number\": \"1578\",\n      \"quarter\": \"Bela Vista\",\n      \"city\": \"São Paulo\",\n      \"state\": \"SP\",\n      \"zipcode\": \"01310-100\",\n      \"farmerStateRegistration\": null\n    },\n    \"customerAttributes\": [\n      {\n        \"name\": \"OPTIN_NEWSLETTER\",\n        \"value\": \"true\"\n      }\n    ]\n  },\n  \"payments\": [\n    {\n      \"id\": 4490201,\n      \"paymentType\": \"BANK_SLIP\",\n      \"gateway\": \"BRASPAG\",\n      \"paymentInstallmentsValue\": 81.64,\n      \"paymentInstallments\": 1\n    }\n  ],\n  \"deliveries\": [\n    {\n      \"address\": {\n        \"id\": 4470701,\n        \"name\": \"Endereço de entrega\",\n        \"street\": \"Avenida Paulista\",\n        \"number\": \"1578\",\n        \"quarter\": \"Bela Vista\",\n        \"city\": \"São Paulo\",\n        \"state\": \"SP\",\n        \"zipcode\": \"01310-100\",\n        \"deliveryAddressCode\": null,\n        \"addressType\": \"RESIDENTIAL\"\n      },\n      \"freight\": {\n        \"value\": 45.73,\n        \"valueFormats\": {\n          \"value\": \"45,73\",\n          \"mask\": \"R$ 45,73\"\n        },\n        \"name\": \"CORREIO - SEDEX\",\n        \"type\": \"INTELIPOST\",\n        \"freightTime\": 4,\n        \"packingTime\": 0,\n        \"realValue\": 45.73,\n        \"realValueFormats\": {\n          \"value\": \"45,73\",\n          \"mask\": \"R$ 45,73\"\n        },\n        \"realName\": \"CORREIO - SEDEX\",\n        \"realType\": \"INTELIPOST\",\n        \"intelipostQuoteId\": \"202956238407743\",\n        \"intelipostDeliveryMethodId\": \"2\",\n        \"intelipostDeliveryMethodExternalId\": \"94\"\n      },\n      \"products\": [\n        {\n          \"id\": 500101,\n          \"name\": \"Produto Exemplo A\",\n          \"mfrPartCode\": \"FE-500101\",\n          \"composition\": \"UNITARY\",\n          \"virtualQuantity\": 0,\n          \"realQuantity\": 1,\n          \"quantity\": 1,\n          \"price\": 35.91,\n          \"priceFormats\": {\n            \"value\": \"35,91\",\n            \"mask\": \"R$ 35,91\"\n          },\n          \"leadTime\": 0,\n          \"partnerOrderLineId\": 4490101,\n          \"isLeadTimeByRequest\": false,\n          \"stockPrice\": 39.9,\n          \"stockPriceFormats\": {\n            \"value\": \"39,90\",\n            \"mask\": \"R$ 39,90\"\n          },\n          \"totalCost\": 52.15,\n          \"totalCostFormats\": {\n            \"value\": \"52,15\",\n            \"mask\": \"R$ 52,15\"\n          },\n          \"netCost\": 52.15,\n          \"netCostFormats\": {\n            \"value\": \"52,15\",\n            \"mask\": \"R$ 52,15\"\n          },\n          \"marginAfterDiscountPercentage\": null,\n          \"interestRate\": null,\n          \"anticipationRate\": null,\n          \"realSalePrice\": 35.91,\n          \"realSalePriceFormats\": {\n            \"value\": \"35,91\",\n            \"mask\": \"R$ 35,91\"\n          },\n          \"drivenPrice\": false,\n          \"partnerPartCode\": \"SKU-A-001\",\n          \"partnerInternalPartCode\": null,\n          \"warehouse\": {\n            \"id\": 1001,\n            \"name\": \"Depósito Central\",\n            \"zipcode\": \"01310-100\"\n          },\n          \"brand\": {\n            \"id\": 4460101,\n            \"name\": \"Fabricante Exemplo\"\n          },\n          \"specialRules\": {},\n          \"needsAgronomicRecipe\": \"false\",\n          \"salesUnitOfMeasurement\": null,\n          \"salePriceByUnitOfMeasurement\": null,\n          \"unitaryQuantityInSalesUnitOfMeasurement\": null,\n          \"totalQuantityInSalesUnitOfMeasurement\": null,\n          \"whoAddedItemToCart\": \"client\",\n          \"customKey\": null,\n          \"categoryId\": 31519,\n          \"categoryName\": \"Categoria Exemplo\"\n        }\n      ]\n    }\n  ],\n  \"paymentPartnerReceiver\": [\n    {\n      \"participant\": \"marketplace\",\n      \"name\": \"Loja Exemplo\",\n      \"typeReceiver\": \"PRIMARY\",\n      \"paymentFees\": \"true\",\n      \"splitedBy\": \"TOTAL\",\n      \"splitedPercentage\": 100,\n      \"splitedValue\": \"81,64\",\n      \"value\": \"81,64\"\n    }\n  ],\n  \"orderStatusLogs\": [\n    {\n      \"status\": \"PAYMENT_APPROVED\",\n      \"date\": \"2026-09-02T11:12:40Z\"\n    }\n  ],\n  \"totalMarginAfterDiscountPercentage\": null,\n  \"markup\": null,\n  \"whoCreatedPreOrder\": \"client\",\n  \"whoSelectedPayment\": \"client\",\n  \"commissionAssignedAttendantId\": null,\n  \"commissionAssignedAttendantCode\": null,\n  \"commissionAssignedAttendantDoc\": null,\n  \"approvalLevels\": [],\n  \"customCartId\": null,\n  \"cartTypeName\": null,\n  \"cartTypeExternalId\": null\n}"
                },
                {
                  "name": "Refusal — the order does not exist or is not in your scope",
                  "originalRequest": {
                    "method": "GET",
                    "header": [],
                    "url": {
                      "raw": "{{url}}/partnerOrders/900201",
                      "host": [
                        "{{url}}"
                      ],
                      "path": [
                        "partnerOrders",
                        "900201"
                      ]
                    }
                  },
                  "status": "Not Found",
                  "code": 404,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "body": "{\n  \"status\": \"NOT_FOUND\",\n  \"message\": \"Pedido com id X não encontrado\"\n}"
                }
              ]
            },
            {
              "name": "Update Order Status - Store",
              "request": {
                "method": "PUT",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "url": {
                  "raw": "{{url}}/partnerOrders/:id",
                  "host": [
                    "{{url}}"
                  ],
                  "path": [
                    "partnerOrders",
                    ":id"
                  ],
                  "variable": [
                    {
                      "key": "id",
                      "value": "900201",
                      "description": "Id of the **partner order** (`partnerOrderId`), the `id` field of the listing."
                    }
                  ]
                },
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"status\": \"READY\",\n  \"supplierOrderId\": \"PED-ERP-77120\",\n  \"supplierInvoiceNumber\": \"1234\",\n  \"supplierInvoiceSerie\": \"1\",\n  \"supplierInvoiceDate\": \"2026-09-02T08:30:00\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "description": "### Description\n\nMoves the order to the next status of the fulfillment flow and saves, along with it, the data that status requires — the order number in your ERP, the invoice, the tracking code.\n\nEach target status is only accepted from a specific current status, and some require their own fields. Both are in **Where the order can go**.\n\nThe invoice fields are only saved when the order does not have an invoice yet: resending them on an order already marked with an invoice does not overwrite the values.\n\n### Business rules\n\n#### Where the order can go\n\nThe target `status` is accepted from a specific current status. Outside that combination, the response is **422**.\n\n| `status` sent | Required current status | Own fields |\n| --- | --- | --- |\n| `APPROVED` | order awaiting payment, without credit or with payment at the store | — |\n| `READY` | `PAYMENT_APPROVED` | `supplierOrderId` required |\n| `SHIPPED` | `READY` | `trackingCode` with Correios shipping; with `trackingCode`, `ownCarrier`; `supplierInvoiceNumber` if the order has no invoice yet — see **Shipping (`SHIPPED`)** |\n| `DELIVERED` | `SHIPPED` | — |\n| `STRAYED` | `SHIPPED` | — |\n| `RETURNED` | `DELIVERED` | — |\n| `AWAITING_PAYMENT` | `AWAITING_PAYMENT` | — |\n| `CANCELED` | any | `orderReasonCanceled` |\n\n**Payment approval is sent as `APPROVED`**, not as `PAYMENT_APPROVED` — it is the order that then stays in `PAYMENT_APPROVED`.\n\nThe other values of the status enum (`PRE_ORDER`, `PAYMENT_APPROVED`, `COMPLETED`, `WITHOUT_CREDIT_LIMIT`, `STORE_PAYMENT`) are used to **filter** the listing, but are not accepted here: the request responds 422.\n\n#### Shipping (`SHIPPED`)\n\n- `trackingCode` is required when the order's shipping is Correios; with other shipping types, it is optional.\n- When you send `trackingCode`, also send `ownCarrier` with the **carrier's name** — that is what gets saved as the delivery carrier.\n- Without `ownCarrier` and without `urlTrackingCode`, the response is **422** with `Para realizar a atualização do pedido com id <id> ownCarrier e urlTrackingCode é obrigatorio.`\n- With only `urlTrackingCode`, without `ownCarrier`, the request is also refused with **422**.\n- `urlTrackingCode` is optional.\n- If the order has no invoice number yet, `supplierInvoiceNumber` is required: without it, the response is **422** with `Número de Nota Fiscal é obrigatório`.\n\n#### Order under approval workflow\n\nIn an order with an approval workflow (`approvalWorkflow: true`) not yet approved, the only accepted `status` is `CANCELED`. Any other responds 422.\n\n#### Cancellation reasons\n\n`orderReasonCanceled` receives the reason id:\n\n| Id | Reason | Id | Reason |\n| --- | --- | --- | --- |\n| 2 | 7-day withdrawal | 20 | Payment declined |\n| 3 | Logistics problem | 21 | No response from the customer |\n| 4 | Description error | 22 | No credit |\n| 5 | Lost in transit | 23 | Expired |\n| 6 | Lack of payment | 24 | Wrong customer |\n| 7 | No response from the store | 26 | Wrong order |\n| 8 | Out of stock | 27 | Integration failure |\n| 9 | Different brand | 28 | Wrong seller |\n| 10 | Damaged product | 29 | Chargeback |\n| 11 | Wrong product | 30 | Fraud – Product recovered |\n| 12 | Counterfeit part | 31 | Suspected fraud |\n| 13 | Wrong store price | 32 | Assisted repurchase |\n| 14 | Pre-order | 33 | Commercial approval denied |\n| 15 | Incorrect price | 34 | Order canceled by the seller |\n| 16 | Wrong composition | 35 | Quote edited |\n| 17 | Shipping delay | | |\n| 18 | Duplicate order | | |\n| 19 | Test purchase | | |\n\n#### Who can cancel\n\nWhen the order was born in **another** store — you are the supplier, not the origin —, cancellation depends on the **origin store** having enabled cancellation by the seller.\n\nIt is its configuration, not yours: until it enables it, your `CANCELED` responds 422, and it is the origin store itself that cancels. With the permission on, cancellation works normally.\n\nAn order originated in your own store does not go through this check.\n\n### Responses\n\n**200**\n\nThe whole order, with the new status.\n\nIn the same format as **Get Order Details**, with the corresponding record in `orderStatusLogs`.\n\n**400**\n\nInvalid JSON or order validation failure.\n\nBody that is not valid JSON. Check the syntax (quotes, commas and braces); the `error` field brings the detail.\n\nOrder validation failure. The reason comes in `message`.\n\n**401**\n\nMissing, malformed or expired token.\n\n**404**\n\nThe order does not exist or is not in your scope.\n\n**422**\n\nStatus change refused.\n\nRefused by the status rules: transition, required fields, approval or cancellation. The reason comes in `message`."
              },
              "response": [
                {
                  "name": "Success — ready for shipping",
                  "originalRequest": {
                    "method": "PUT",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "url": {
                      "raw": "{{url}}/partnerOrders/900201",
                      "host": [
                        "{{url}}"
                      ],
                      "path": [
                        "partnerOrders",
                        "900201"
                      ]
                    },
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"status\": \"READY\",\n  \"supplierOrderId\": \"PED-ERP-77120\",\n  \"supplierInvoiceNumber\": \"1234\",\n  \"supplierInvoiceSerie\": \"1\",\n  \"supplierInvoiceDate\": \"2026-09-02T08:30:00\"\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "body": "{\n  \"attendant\": null,\n  \"orderId\": 900100,\n  \"id\": 900201,\n  \"status\": \"READY\",\n  \"approvalWorkflow\": false,\n  \"workflowIsApproved\": false,\n  \"approvalCredit\": null,\n  \"subTotal\": 35.91,\n  \"subTotalFormats\": {\n    \"value\": \"35,91\",\n    \"mask\": \"R$ 35,91\"\n  },\n  \"taxes\": {\n    \"taxPurpose\": null,\n    \"taxPurposeId\": null,\n    \"st\": 0,\n    \"ipi\": 0,\n    \"icms\": 0,\n    \"pis\": 0,\n    \"cofins\": 0,\n    \"totalTax\": 0\n  },\n  \"freightTotal\": 45.73,\n  \"freightTotalFormats\": {\n    \"value\": \"45,73\",\n    \"mask\": \"R$ 45,73\"\n  },\n  \"total\": 81.64,\n  \"totalFormats\": {\n    \"value\": \"81,64\",\n    \"mask\": \"R$ 81,64\"\n  },\n  \"dateCreated\": \"2026-09-01T13:26:05Z\",\n  \"lastUpdated\": \"2026-09-01T13:27:26Z\",\n  \"invoiceNote\": null,\n  \"leadTimeByRequestDone\": true,\n  \"order\": {\n    \"origin\": \"SHOP\",\n    \"originStoreName\": \"Loja Exemplo\",\n    \"originStoreId\": 4210,\n    \"originStoreSubdomain\": \"lojaexemplo\",\n    \"originStorePartnerId\": 5050,\n    \"drivenPrice\": false,\n    \"manualPrice\": false\n  },\n  \"seller\": {\n    \"id\": 5050,\n    \"name\": \"Loja Exemplo\",\n    \"document\": \"30.424.972/0001-74\"\n  },\n  \"customer\": {\n    \"id\": 700101,\n    \"name\": \"Ana Paula Ribeiro\",\n    \"contactName\": \"Ana Paula Ribeiro\",\n    \"email\": \"ana.ribeiro@exemplo.com.br\",\n    \"phone\": \"(11) 98765-4321\",\n    \"type\": \"pf\",\n    \"document\": \"466.935.373-08\",\n    \"stateRegistration\": null,\n    \"optinTracking\": null,\n    \"trackingPhone\": null,\n    \"dateCreated\": \"2026-08-20T09:15:00Z\",\n    \"registrationAddress\": {\n      \"street\": \"Avenida Paulista\",\n      \"number\": \"1578\",\n      \"quarter\": \"Bela Vista\",\n      \"city\": \"São Paulo\",\n      \"state\": \"SP\",\n      \"zipcode\": \"01310-100\",\n      \"farmerStateRegistration\": null\n    },\n    \"customerAttributes\": [\n      {\n        \"name\": \"OPTIN_NEWSLETTER\",\n        \"value\": \"true\"\n      }\n    ]\n  },\n  \"payments\": [\n    {\n      \"id\": 4490201,\n      \"paymentType\": \"BANK_SLIP\",\n      \"gateway\": \"BRASPAG\",\n      \"paymentInstallmentsValue\": 81.64,\n      \"paymentInstallments\": 1\n    }\n  ],\n  \"deliveries\": [\n    {\n      \"address\": {\n        \"id\": 4470701,\n        \"name\": \"Endereço de entrega\",\n        \"street\": \"Avenida Paulista\",\n        \"number\": \"1578\",\n        \"quarter\": \"Bela Vista\",\n        \"city\": \"São Paulo\",\n        \"state\": \"SP\",\n        \"zipcode\": \"01310-100\",\n        \"deliveryAddressCode\": null,\n        \"addressType\": \"RESIDENTIAL\"\n      },\n      \"freight\": {\n        \"value\": 45.73,\n        \"valueFormats\": {\n          \"value\": \"45,73\",\n          \"mask\": \"R$ 45,73\"\n        },\n        \"name\": \"CORREIO - SEDEX\",\n        \"type\": \"INTELIPOST\",\n        \"freightTime\": 4,\n        \"packingTime\": 0,\n        \"realValue\": 45.73,\n        \"realValueFormats\": {\n          \"value\": \"45,73\",\n          \"mask\": \"R$ 45,73\"\n        },\n        \"realName\": \"CORREIO - SEDEX\",\n        \"realType\": \"INTELIPOST\",\n        \"intelipostQuoteId\": \"202956238407743\",\n        \"intelipostDeliveryMethodId\": \"2\",\n        \"intelipostDeliveryMethodExternalId\": \"94\"\n      },\n      \"products\": [\n        {\n          \"id\": 500101,\n          \"name\": \"Produto Exemplo A\",\n          \"mfrPartCode\": \"FE-500101\",\n          \"composition\": \"UNITARY\",\n          \"virtualQuantity\": 0,\n          \"realQuantity\": 1,\n          \"quantity\": 1,\n          \"price\": 35.91,\n          \"priceFormats\": {\n            \"value\": \"35,91\",\n            \"mask\": \"R$ 35,91\"\n          },\n          \"leadTime\": 0,\n          \"partnerOrderLineId\": 4490101,\n          \"isLeadTimeByRequest\": false,\n          \"stockPrice\": 39.9,\n          \"stockPriceFormats\": {\n            \"value\": \"39,90\",\n            \"mask\": \"R$ 39,90\"\n          },\n          \"totalCost\": 52.15,\n          \"totalCostFormats\": {\n            \"value\": \"52,15\",\n            \"mask\": \"R$ 52,15\"\n          },\n          \"netCost\": 52.15,\n          \"netCostFormats\": {\n            \"value\": \"52,15\",\n            \"mask\": \"R$ 52,15\"\n          },\n          \"marginAfterDiscountPercentage\": null,\n          \"interestRate\": null,\n          \"anticipationRate\": null,\n          \"realSalePrice\": 35.91,\n          \"realSalePriceFormats\": {\n            \"value\": \"35,91\",\n            \"mask\": \"R$ 35,91\"\n          },\n          \"drivenPrice\": false,\n          \"partnerPartCode\": \"SKU-A-001\",\n          \"partnerInternalPartCode\": null,\n          \"warehouse\": {\n            \"id\": 1001,\n            \"name\": \"Depósito Central\",\n            \"zipcode\": \"01310-100\"\n          },\n          \"brand\": {\n            \"id\": 4460101,\n            \"name\": \"Fabricante Exemplo\"\n          },\n          \"specialRules\": {},\n          \"needsAgronomicRecipe\": \"false\",\n          \"salesUnitOfMeasurement\": null,\n          \"salePriceByUnitOfMeasurement\": null,\n          \"unitaryQuantityInSalesUnitOfMeasurement\": null,\n          \"totalQuantityInSalesUnitOfMeasurement\": null,\n          \"whoAddedItemToCart\": \"client\",\n          \"customKey\": null,\n          \"categoryId\": 31519,\n          \"categoryName\": \"Categoria Exemplo\"\n        }\n      ]\n    }\n  ],\n  \"paymentPartnerReceiver\": [\n    {\n      \"participant\": \"marketplace\",\n      \"name\": \"Loja Exemplo\",\n      \"typeReceiver\": \"PRIMARY\",\n      \"paymentFees\": \"true\",\n      \"splitedBy\": \"TOTAL\",\n      \"splitedPercentage\": 100,\n      \"splitedValue\": \"81,64\",\n      \"value\": \"81,64\"\n    }\n  ],\n  \"orderStatusLogs\": [\n    {\n      \"status\": \"READY\",\n      \"date\": \"2026-09-02T11:12:40Z\"\n    }\n  ],\n  \"totalMarginAfterDiscountPercentage\": null,\n  \"markup\": null,\n  \"whoCreatedPreOrder\": \"client\",\n  \"whoSelectedPayment\": \"client\",\n  \"commissionAssignedAttendantId\": null,\n  \"commissionAssignedAttendantCode\": null,\n  \"commissionAssignedAttendantDoc\": null,\n  \"approvalLevels\": [],\n  \"customCartId\": null,\n  \"cartTypeName\": null,\n  \"cartTypeExternalId\": null,\n  \"supplierOrderId\": \"PED-ERP-77120\",\n  \"supplierInvoiceNumber\": \"1234\",\n  \"supplierInvoiceSerie\": \"1\",\n  \"supplierInvoiceDate\": \"2026-09-02T00:00:00Z\"\n}"
                },
                {
                  "name": "Success — shipped",
                  "originalRequest": {
                    "method": "PUT",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "url": {
                      "raw": "{{url}}/partnerOrders/900201",
                      "host": [
                        "{{url}}"
                      ],
                      "path": [
                        "partnerOrders",
                        "900201"
                      ]
                    },
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"status\": \"SHIPPED\",\n  \"trackingCode\": \"BR123456789BR\",\n  \"urlTrackingCode\": \"https://rastreio.exemplo.com.br/BR123456789BR\",\n  \"ownCarrier\": \"Transportadora Exemplo\",\n  \"supplierInvoiceNumber\": \"1234\",\n  \"supplierInvoiceSerie\": \"1\"\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "body": "{\n  \"attendant\": null,\n  \"orderId\": 900100,\n  \"id\": 900201,\n  \"status\": \"SHIPPED\",\n  \"approvalWorkflow\": false,\n  \"workflowIsApproved\": false,\n  \"approvalCredit\": null,\n  \"subTotal\": 35.91,\n  \"subTotalFormats\": {\n    \"value\": \"35,91\",\n    \"mask\": \"R$ 35,91\"\n  },\n  \"taxes\": {\n    \"taxPurpose\": null,\n    \"taxPurposeId\": null,\n    \"st\": 0,\n    \"ipi\": 0,\n    \"icms\": 0,\n    \"pis\": 0,\n    \"cofins\": 0,\n    \"totalTax\": 0\n  },\n  \"freightTotal\": 45.73,\n  \"freightTotalFormats\": {\n    \"value\": \"45,73\",\n    \"mask\": \"R$ 45,73\"\n  },\n  \"total\": 81.64,\n  \"totalFormats\": {\n    \"value\": \"81,64\",\n    \"mask\": \"R$ 81,64\"\n  },\n  \"dateCreated\": \"2026-09-01T13:26:05Z\",\n  \"lastUpdated\": \"2026-09-01T13:27:26Z\",\n  \"invoiceNote\": null,\n  \"leadTimeByRequestDone\": true,\n  \"order\": {\n    \"origin\": \"SHOP\",\n    \"originStoreName\": \"Loja Exemplo\",\n    \"originStoreId\": 4210,\n    \"originStoreSubdomain\": \"lojaexemplo\",\n    \"originStorePartnerId\": 5050,\n    \"drivenPrice\": false,\n    \"manualPrice\": false\n  },\n  \"seller\": {\n    \"id\": 5050,\n    \"name\": \"Loja Exemplo\",\n    \"document\": \"30.424.972/0001-74\"\n  },\n  \"customer\": {\n    \"id\": 700101,\n    \"name\": \"Ana Paula Ribeiro\",\n    \"contactName\": \"Ana Paula Ribeiro\",\n    \"email\": \"ana.ribeiro@exemplo.com.br\",\n    \"phone\": \"(11) 98765-4321\",\n    \"type\": \"pf\",\n    \"document\": \"466.935.373-08\",\n    \"stateRegistration\": null,\n    \"optinTracking\": null,\n    \"trackingPhone\": null,\n    \"dateCreated\": \"2026-08-20T09:15:00Z\",\n    \"registrationAddress\": {\n      \"street\": \"Avenida Paulista\",\n      \"number\": \"1578\",\n      \"quarter\": \"Bela Vista\",\n      \"city\": \"São Paulo\",\n      \"state\": \"SP\",\n      \"zipcode\": \"01310-100\",\n      \"farmerStateRegistration\": null\n    },\n    \"customerAttributes\": [\n      {\n        \"name\": \"OPTIN_NEWSLETTER\",\n        \"value\": \"true\"\n      }\n    ]\n  },\n  \"payments\": [\n    {\n      \"id\": 4490201,\n      \"paymentType\": \"BANK_SLIP\",\n      \"gateway\": \"BRASPAG\",\n      \"paymentInstallmentsValue\": 81.64,\n      \"paymentInstallments\": 1\n    }\n  ],\n  \"deliveries\": [\n    {\n      \"address\": {\n        \"id\": 4470701,\n        \"name\": \"Endereço de entrega\",\n        \"street\": \"Avenida Paulista\",\n        \"number\": \"1578\",\n        \"quarter\": \"Bela Vista\",\n        \"city\": \"São Paulo\",\n        \"state\": \"SP\",\n        \"zipcode\": \"01310-100\",\n        \"deliveryAddressCode\": null,\n        \"addressType\": \"RESIDENTIAL\"\n      },\n      \"freight\": {\n        \"value\": 45.73,\n        \"valueFormats\": {\n          \"value\": \"45,73\",\n          \"mask\": \"R$ 45,73\"\n        },\n        \"name\": \"CORREIO - SEDEX\",\n        \"type\": \"INTELIPOST\",\n        \"freightTime\": 4,\n        \"packingTime\": 0,\n        \"realValue\": 45.73,\n        \"realValueFormats\": {\n          \"value\": \"45,73\",\n          \"mask\": \"R$ 45,73\"\n        },\n        \"realName\": \"CORREIO - SEDEX\",\n        \"realType\": \"INTELIPOST\",\n        \"intelipostQuoteId\": \"202956238407743\",\n        \"intelipostDeliveryMethodId\": \"2\",\n        \"intelipostDeliveryMethodExternalId\": \"94\"\n      },\n      \"products\": [\n        {\n          \"id\": 500101,\n          \"name\": \"Produto Exemplo A\",\n          \"mfrPartCode\": \"FE-500101\",\n          \"composition\": \"UNITARY\",\n          \"virtualQuantity\": 0,\n          \"realQuantity\": 1,\n          \"quantity\": 1,\n          \"price\": 35.91,\n          \"priceFormats\": {\n            \"value\": \"35,91\",\n            \"mask\": \"R$ 35,91\"\n          },\n          \"leadTime\": 0,\n          \"partnerOrderLineId\": 4490101,\n          \"isLeadTimeByRequest\": false,\n          \"stockPrice\": 39.9,\n          \"stockPriceFormats\": {\n            \"value\": \"39,90\",\n            \"mask\": \"R$ 39,90\"\n          },\n          \"totalCost\": 52.15,\n          \"totalCostFormats\": {\n            \"value\": \"52,15\",\n            \"mask\": \"R$ 52,15\"\n          },\n          \"netCost\": 52.15,\n          \"netCostFormats\": {\n            \"value\": \"52,15\",\n            \"mask\": \"R$ 52,15\"\n          },\n          \"marginAfterDiscountPercentage\": null,\n          \"interestRate\": null,\n          \"anticipationRate\": null,\n          \"realSalePrice\": 35.91,\n          \"realSalePriceFormats\": {\n            \"value\": \"35,91\",\n            \"mask\": \"R$ 35,91\"\n          },\n          \"drivenPrice\": false,\n          \"partnerPartCode\": \"SKU-A-001\",\n          \"partnerInternalPartCode\": null,\n          \"warehouse\": {\n            \"id\": 1001,\n            \"name\": \"Depósito Central\",\n            \"zipcode\": \"01310-100\"\n          },\n          \"brand\": {\n            \"id\": 4460101,\n            \"name\": \"Fabricante Exemplo\"\n          },\n          \"specialRules\": {},\n          \"needsAgronomicRecipe\": \"false\",\n          \"salesUnitOfMeasurement\": null,\n          \"salePriceByUnitOfMeasurement\": null,\n          \"unitaryQuantityInSalesUnitOfMeasurement\": null,\n          \"totalQuantityInSalesUnitOfMeasurement\": null,\n          \"whoAddedItemToCart\": \"client\",\n          \"customKey\": null,\n          \"categoryId\": 31519,\n          \"categoryName\": \"Categoria Exemplo\"\n        }\n      ]\n    }\n  ],\n  \"paymentPartnerReceiver\": [\n    {\n      \"participant\": \"marketplace\",\n      \"name\": \"Loja Exemplo\",\n      \"typeReceiver\": \"PRIMARY\",\n      \"paymentFees\": \"true\",\n      \"splitedBy\": \"TOTAL\",\n      \"splitedPercentage\": 100,\n      \"splitedValue\": \"81,64\",\n      \"value\": \"81,64\"\n    }\n  ],\n  \"orderStatusLogs\": [\n    {\n      \"status\": \"SHIPPED\",\n      \"date\": \"2026-09-02T11:12:40Z\"\n    }\n  ],\n  \"totalMarginAfterDiscountPercentage\": null,\n  \"markup\": null,\n  \"whoCreatedPreOrder\": \"client\",\n  \"whoSelectedPayment\": \"client\",\n  \"commissionAssignedAttendantId\": null,\n  \"commissionAssignedAttendantCode\": null,\n  \"commissionAssignedAttendantDoc\": null,\n  \"approvalLevels\": [],\n  \"customCartId\": null,\n  \"cartTypeName\": null,\n  \"cartTypeExternalId\": null\n}"
                }
              ]
            },
            {
              "name": "List Items with Lead Time Upon Request",
              "request": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{url}}/partnerOrders/:id/partnerOrderLines",
                  "host": [
                    "{{url}}"
                  ],
                  "path": [
                    "partnerOrders",
                    ":id",
                    "partnerOrderLines"
                  ],
                  "variable": [
                    {
                      "key": "id",
                      "value": "900201",
                      "description": "Id of the **partner order** (`partnerOrderId`)."
                    }
                  ]
                },
                "description": "### Description\n\nLists the order products whose **delivery lead time was left upon request** and has not been filled in yet. It is the queue of items that depend on you reporting the lead time before the order moves on.\n\nTo report the lead times, use **Update Items Lead Time**.\n\n### Responses\n\n**200**\n\nArray with the items pending lead time.\n\nWith all lead times already filled in, the response is an empty array.\n\n**401**\n\nMissing, malformed or expired token.\n\n**404**\n\nThe order does not exist or is not in your scope."
              },
              "response": [
                {
                  "name": "Success — one item pending lead time",
                  "originalRequest": {
                    "method": "GET",
                    "header": [],
                    "url": {
                      "raw": "{{url}}/partnerOrders/900201/partnerOrderLines",
                      "host": [
                        "{{url}}"
                      ],
                      "path": [
                        "partnerOrders",
                        "900201",
                        "partnerOrderLines"
                      ]
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "body": "[\n  {\n    \"id\": 4490101,\n    \"name\": \"Produto Exemplo A\",\n    \"brand\": \"Fabricante Exemplo\"\n  }\n]"
                }
              ]
            },
            {
              "name": "Update Items Lead Time",
              "request": {
                "method": "PUT",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "url": {
                  "raw": "{{url}}/partnerOrders/:id/partnerOrderLines",
                  "host": [
                    "{{url}}"
                  ],
                  "path": [
                    "partnerOrders",
                    ":id",
                    "partnerOrderLines"
                  ],
                  "variable": [
                    {
                      "key": "id",
                      "value": "900201",
                      "description": "Id of the **partner order** (`partnerOrderId`)."
                    }
                  ]
                },
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"partnerOrderLineList\": [\n    {\n      \"id\": 4490101,\n      \"leadTime\": 5\n    },\n    {\n      \"id\": 4490102,\n      \"leadTime\": 3\n    }\n  ]\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "description": "### Description\n\nReports the preparation lead time of the items left with the **lead time upon request**. It is this submission that **releases the order for payment**: once the lead times are answered, the customer is notified that the order is available.\n\nThe pending items are in **List Items with Lead Time Upon Request**.\n\n### Business rules\n\n#### All pending items, at once\n\nThe request must bring **all** the order items whose lead time is pending. If one is missing, nothing is saved and the response is 422.\n\nThere is no partial submission: check the list, answer the whole list.\n\n#### The order must be waiting for the lead time\n\nOnly accepts an order that was born with lead time upon request and that **has not had its lead times answered yet**. Once answered, the lead time cannot be edited again here.\n\n#### The status must allow it\n\nThe order must be in `PRE_ORDER`, `AWAITING_PAYMENT` or `PAYMENT_APPROVED`. In any other status the update is refused.\n\n#### What answering the lead time triggers\n\nOnce the lead times are saved, three things happen at once:\n\n- the **delivery preparation lead time** adds the largest reported lead time — and, in stores configured for it, the freight lead time adds it too;\n- the order is marked as **answered**;\n- the **customer is notified** that the order is available for payment.\n\n### Responses\n\n**200**\n\nThe order lines, with the lead times saved.\n\n**400**\n\nThe body sent is not valid JSON.\n\nCheck the syntax (quotes, commas and braces); the `error` field brings the detail.\n\n**401**\n\nMissing, malformed or expired token.\n\n**422**\n\nLead time update refused.\n\nOrder not yours or not awaiting lead time, status that blocks it, or incomplete items. The reason comes in `message`."
              },
              "response": [
                {
                  "name": "Success — lead times reported",
                  "originalRequest": {
                    "method": "PUT",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "url": {
                      "raw": "{{url}}/partnerOrders/900201/partnerOrderLines",
                      "host": [
                        "{{url}}"
                      ],
                      "path": [
                        "partnerOrders",
                        "900201",
                        "partnerOrderLines"
                      ]
                    },
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"partnerOrderLineList\": [\n    {\n      \"id\": 4490101,\n      \"leadTime\": 5\n    },\n    {\n      \"id\": 4490102,\n      \"leadTime\": 3\n    }\n  ]\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "body": "[\n  {\n    \"id\": 4490101,\n    \"quantity\": 2,\n    \"leadTime\": 5,\n    \"salePrice\": 149.9,\n    \"realSalePrice\": 149.9,\n    \"defaultPrice\": 159.9,\n    \"stock\": 4410001,\n    \"partnerOrder\": 900201,\n    \"customerType\": \"pf\",\n    \"couponId\": null\n  },\n  {\n    \"id\": 4490102,\n    \"quantity\": 1,\n    \"leadTime\": 3,\n    \"salePrice\": 89.9,\n    \"realSalePrice\": 89.9,\n    \"defaultPrice\": 89.9,\n    \"stock\": 4410002,\n    \"partnerOrder\": 900201,\n    \"customerType\": \"pf\",\n    \"couponId\": null\n  }\n]"
                }
              ]
            },
            {
              "name": "Upload Invoice XML - Store",
              "request": {
                "method": "PUT",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/xml"
                  }
                ],
                "url": {
                  "raw": "{{url}}/partnerOrders/:id/invoice",
                  "host": [
                    "{{url}}"
                  ],
                  "path": [
                    "partnerOrders",
                    ":id",
                    "invoice"
                  ],
                  "variable": [
                    {
                      "key": "id",
                      "value": "900201",
                      "description": "Id of the **partner order** (`partnerOrderId`)."
                    }
                  ]
                },
                "body": {
                  "mode": "raw",
                  "raw": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<nfeProc versao=\"4.00\">\n  <NFe>\n    <infNFe Id=\"NFe35260930424972000174550010000012341000012349\">\n      <ide><nNF>1234</nNF><serie>1</serie></ide>\n    </infNFe>\n  </NFe>\n</nfeProc>",
                  "options": {
                    "raw": {
                      "language": "xml"
                    }
                  }
                },
                "description": "### Description\n\nAttaches the invoice XML to the order.\n\nThe request body is the **file itself**, sent as binary content — the raw stream of the `.xml` bytes. It is not `multipart/form-data`, there is no form field and the XML does not go inside a JSON.\n\nThe invoice must be a **real and valid NF-e**: the platform reads the file and extracts the invoice data from it. See **What is read from the file**.\n\n### Business rules\n\n#### What is read from the file\n\nThe platform reads the XML and extracts the **access key**, the **number**, the **series**, the **issue date** and the **total amount** of the invoice. That is why the file must be a real NF-e: a well-formed XML that is not an invoice does not carry this data.\n\nThe file is stored with the access key as its name.\n\nBoth usual formats are accepted — the processed XML, with the invoice envelope, and the XML with only the invoice block.\n\nAn empty file or one that is not valid XML is refused, and nothing is saved.\n\n#### The order must have its payment approved\n\nOnly accepts an invoice on an order that has already passed payment approval. Before that, the request is refused and nothing is saved.\n\n#### One invoice or several\n\nBy default the order keeps **one** file, and each upload replaces the previous one.\n\nStores configured for multiple invoices accumulate the files: each upload adds one more. The configuration belongs to the store and is done by CWS.\n\n### Responses\n\n**200**\n\nThe data of the invoice attached to the order.\n\n**401**\n\nMissing, malformed or expired token.\n\n**404**\n\nThe order does not exist or is not in your scope.\n\n**422**\n\nXML refused or order without approved payment.\n\nEmpty body, file that is not valid XML, or order without approved payment. The reason comes in `message`."
              },
              "response": [
                {
                  "name": "Refusal — order without approved payment",
                  "originalRequest": {
                    "method": "PUT",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/xml"
                      }
                    ],
                    "url": {
                      "raw": "{{url}}/partnerOrders/900201/invoice",
                      "host": [
                        "{{url}}"
                      ],
                      "path": [
                        "partnerOrders",
                        "900201",
                        "invoice"
                      ]
                    },
                    "body": {
                      "mode": "raw",
                      "raw": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<nfeProc versao=\"4.00\">\n  <NFe>\n    <infNFe Id=\"NFe35260930424972000174550010000012341000012349\">\n      <ide><nNF>1234</nNF><serie>1</serie></ide>\n    </infNFe>\n  </NFe>\n</nfeProc>",
                      "options": {
                        "raw": {
                          "language": "xml"
                        }
                      }
                    }
                  },
                  "status": "Unprocessable Entity",
                  "code": 422,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "body": "{\n  \"status\": \"UNPROCESSABLE_ENTITY\",\n  \"message\": \"Envio de XML de NFe permitido somente para pedido com pagamento aprovado\"\n}"
                }
              ]
            },
            {
              "name": "Get Items Tracking - Store",
              "request": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{url}}/partnerOrders/:id/complementaryInfo",
                  "host": [
                    "{{url}}"
                  ],
                  "path": [
                    "partnerOrders",
                    ":id",
                    "complementaryInfo"
                  ],
                  "variable": [
                    {
                      "key": "id",
                      "value": "900201",
                      "description": "Id of the **partner order** (`partnerOrderId`)."
                    }
                  ]
                },
                "description": "### Description\n\nReturns the items tracking saved in the order.\n\nThe tracking shows the situation of each product of the order during fulfillment — how many units have already shipped, how many are being prepared, how many are pending. The store reports this situation in **Send Items Tracking**, and it is what the customer sees while waiting for the order.\n\nUse this query to check what was saved after a submission, or to keep your system aligned with the situation the customer is seeing.\n\n### Responses\n\n**200**\n\nThe tracking saved in the order.\n\nIn an order without tracking, the response brings only `orderId` and `partnerOrderId`.\n\n**401**\n\nMissing, malformed or expired token.\n\n**404**\n\nThe order does not exist or is not in your scope."
              },
              "response": [
                {
                  "name": "Success — tracking saved",
                  "originalRequest": {
                    "method": "GET",
                    "header": [],
                    "url": {
                      "raw": "{{url}}/partnerOrders/900201/complementaryInfo",
                      "host": [
                        "{{url}}"
                      ],
                      "path": [
                        "partnerOrders",
                        "900201",
                        "complementaryInfo"
                      ]
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "body": "{\n  \"orderId\": 900100,\n  \"partnerOrderId\": 900201,\n  \"skus\": [\n    {\n      \"partnerPartCode\": \"SKU-A-001\",\n      \"quantity\": 2,\n      \"situation\": \"enviado\",\n      \"status\": \"valid\"\n    },\n    {\n      \"partnerPartCode\": \"SKU-A-001\",\n      \"quantity\": 1,\n      \"situation\": \"preparando\",\n      \"status\": \"valid\"\n    }\n  ]\n}"
                }
              ]
            },
            {
              "name": "Send Items Tracking - Store",
              "request": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "url": {
                  "raw": "{{url}}/partnerOrders/:id/complementaryInfo",
                  "host": [
                    "{{url}}"
                  ],
                  "path": [
                    "partnerOrders",
                    ":id",
                    "complementaryInfo"
                  ],
                  "variable": [
                    {
                      "key": "id",
                      "value": "900201",
                      "description": "Id of the **partner order** (`partnerOrderId`)."
                    }
                  ]
                },
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"skus\": [\n    {\n      \"partnerPartCode\": \"SKU-A-001\",\n      \"situation\": \"enviado\",\n      \"quantity\": 2\n    },\n    {\n      \"partnerPartCode\": \"SKU-A-001\",\n      \"situation\": \"preparando\",\n      \"quantity\": 1\n    }\n  ]\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "description": "### Description\n\nReports, item by item, the situation of each product of the order — what has already shipped, what is being prepared, what is pending.\n\nIt is the tracking that the customer sees during fulfillment.\n\n### Business rules\n\n#### The submission reaches only the parts it contains\n\nThe scope of the submission is the **item**, not the order: each request replaces the tracking of the parts it mentions and **leaves the others intact**. You can send one product at a time, without resending the whole order.\n\nResending an item exactly equal to the one already saved does not recreate the record: it is kept as it is.\n\n#### The same product in more than one situation\n\n`partnerPartCode` **can repeat** in the same submission, once per situation — this is how you report three units shipped and two being prepared of the same product.\n\nThe quantities **add up**; the records do not compete with each other.\n\n#### The sum does not exceed the item quantity in the order\n\nFor the same product, the sum of the reported quantities cannot exceed the quantity of that item in the order. If it does, the request is refused and **nothing is saved**.\n\n#### The product must be in the order\n\nThe `partnerPartCode` is resolved against the lines **of that order**.\n\nA code that matches no line, or that matches more than one, refuses the request — and the response says which code caused the refusal.\n\nThe `partnerPartCode` comparison is case-insensitive and ignores leading and trailing spaces: `abc-123` matches a product registered as `ABC-123`.\n\nEach product of the order must have, in the stock, a `partnerPartCode` that is filled in and not repeated in another line of the same order. A product without a registered code cannot be located by this route.\n\n### Responses\n\n**200**\n\nWhat you sent, with the verdict for each item.\n\nFor the set that is saved in the order, use **Get Items Tracking**.\n\n**400**\n\nThe body sent is not valid JSON.\n\nCheck the syntax (quotes, commas and braces); the `error` field brings the detail.\n\n**401**\n\nMissing, malformed or expired token.\n\n**404**\n\nThe order does not exist or is not in your scope.\n\n**422**\n\nTracking refused; nothing is saved.\n\nItem out of format, code not in the order or sum above the quantity. The reason comes in `message`, and nothing is saved."
              },
              "response": [
                {
                  "name": "Success — product in two situations",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "url": {
                      "raw": "{{url}}/partnerOrders/900201/complementaryInfo",
                      "host": [
                        "{{url}}"
                      ],
                      "path": [
                        "partnerOrders",
                        "900201",
                        "complementaryInfo"
                      ]
                    },
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"skus\": [\n    {\n      \"partnerPartCode\": \"SKU-A-001\",\n      \"situation\": \"enviado\",\n      \"quantity\": 2\n    },\n    {\n      \"partnerPartCode\": \"SKU-A-001\",\n      \"situation\": \"preparando\",\n      \"quantity\": 1\n    }\n  ]\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "body": "{\n  \"orderId\": 900100,\n  \"partnerOrderId\": 900201,\n  \"skus\": [\n    {\n      \"partnerPartCode\": \"SKU-A-001\",\n      \"quantity\": 2,\n      \"situation\": \"enviado\",\n      \"status\": \"valid\"\n    },\n    {\n      \"partnerPartCode\": \"SKU-A-001\",\n      \"quantity\": 1,\n      \"situation\": \"preparando\",\n      \"status\": \"valid\"\n    }\n  ]\n}"
                },
                {
                  "name": "Refusal — code that is not in the order",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "url": {
                      "raw": "{{url}}/partnerOrders/900201/complementaryInfo",
                      "host": [
                        "{{url}}"
                      ],
                      "path": [
                        "partnerOrders",
                        "900201",
                        "complementaryInfo"
                      ]
                    },
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"skus\": [\n    {\n      \"partnerPartCode\": \"SKU-A-001\",\n      \"situation\": \"enviado\",\n      \"quantity\": 2\n    },\n    {\n      \"partnerPartCode\": \"SKU-Z-999\",\n      \"situation\": \"enviado\",\n      \"quantity\": 1\n    }\n  ]\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    }
                  },
                  "status": "Unprocessable Entity",
                  "code": 422,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "body": "{\n  \"status\": \"UNPROCESSABLE_ENTITY\",\n  \"message\": \"partnerPartCode não encontrado nas linhas do pedido: SKU-Z-999\",\n  \"orderId\": 900100,\n  \"partnerOrderId\": 900201,\n  \"skus\": [\n    {\n      \"partnerPartCode\": \"SKU-A-001\",\n      \"quantity\": 2,\n      \"situation\": \"enviado\",\n      \"status\": \"valid\"\n    },\n    {\n      \"partnerPartCode\": \"SKU-Z-999\",\n      \"quantity\": 1,\n      \"situation\": \"enviado\",\n      \"status\": \"invalid\"\n    }\n  ]\n}"
                }
              ]
            },
            {
              "name": "Remove Items Tracking - Store",
              "request": {
                "method": "DELETE",
                "header": [],
                "url": {
                  "raw": "{{url}}/partnerOrders/:id/complementaryInfo",
                  "host": [
                    "{{url}}"
                  ],
                  "path": [
                    "partnerOrders",
                    ":id",
                    "complementaryInfo"
                  ],
                  "variable": [
                    {
                      "key": "id",
                      "value": "900201",
                      "description": "Id of the **partner order** (`partnerOrderId`)."
                    }
                  ]
                },
                "description": "### Description\n\nDeletes the order items tracking, entirely — all parts, all situations. The order goes back to having no tracking at all.\n\nTo correct the situation of one product without deleting the rest, resend only that item in **Send Items Tracking**: the submission reaches only the parts it mentions.\n\n### Responses\n\n**401**\n\nMissing, malformed or expired token.\n\n**404**\n\nThe order does not exist or is not in your scope."
              },
              "response": [
                {
                  "name": "Success — tracking removed",
                  "originalRequest": {
                    "method": "DELETE",
                    "header": [],
                    "url": {
                      "raw": "{{url}}/partnerOrders/900201/complementaryInfo",
                      "host": [
                        "{{url}}"
                      ],
                      "path": [
                        "partnerOrders",
                        "900201",
                        "complementaryInfo"
                      ]
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "body": "{\n  \"orderId\": 900100,\n  \"partnerOrderId\": 900201\n}"
                }
              ]
            }
          ]
        },
        {
          "name": "Marketplace Management",
          "item": [
            {
              "name": "List Marketplace Orders",
              "request": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{url}}/partnerOrders/list/store?limit=5&offset=0",
                  "host": [
                    "{{url}}"
                  ],
                  "path": [
                    "partnerOrders",
                    "list",
                    "store"
                  ],
                  "query": [
                    {
                      "key": "limit",
                      "value": "5",
                      "description": "Orders per page. Default **5**, maximum **25**. Above the maximum, the maximum applies."
                    },
                    {
                      "key": "offset",
                      "value": "0",
                      "description": "How many orders to skip. Default **0**."
                    },
                    {
                      "key": "status",
                      "value": "",
                      "description": "Filters by status. Without the parameter, all of them come.",
                      "disabled": true
                    },
                    {
                      "key": "createdFrom",
                      "value": "",
                      "description": "Created from this date, inclusive, in the format `2026-09-01T08:30:00`.",
                      "disabled": true
                    },
                    {
                      "key": "createdTo",
                      "value": "",
                      "description": "Created up to this date, inclusive, in the format `2026-09-01T08:30:00`.",
                      "disabled": true
                    },
                    {
                      "key": "updatedFrom",
                      "value": "",
                      "description": "Updated from this date, inclusive, in the format `2026-09-01T08:30:00`.",
                      "disabled": true
                    },
                    {
                      "key": "updatedTo",
                      "value": "",
                      "description": "Updated up to this date, inclusive, in the format `2026-09-01T08:30:00`.",
                      "disabled": true
                    }
                  ]
                },
                "description": "### Description\n\nLists the orders **originated in your store** — the ones your customers placed, including those that will be fulfilled by other partners —, from the most recent to the oldest, with pagination and filters.\n\nThe scope is what sets this route apart from the store listing: here the criterion is the order's origin store, there it is the supplier partner. The response and the filters are identical.\n\nThe `status` values: `PRE_ORDER` · `AWAITING_PAYMENT` · `PAYMENT_APPROVED` · `WITHOUT_CREDIT_LIMIT` · `READY` · `SHIPPED` · `DELIVERED` · `COMPLETED` · `CANCELED` · `STRAYED` · `RETURNED` · `STORE_PAYMENT`.\n\n### Responses\n\n**200**\n\nArray of orders, from newest to oldest.\n\nSorted by creation date.\n\nThe nine fields always come.\n\nWith no results, the response is an empty array.\n\n**401**\n\nMissing, malformed or expired token."
              },
              "response": [
                {
                  "name": "Success — two orders",
                  "originalRequest": {
                    "method": "GET",
                    "header": [],
                    "url": {
                      "raw": "{{url}}/partnerOrders/list/store?limit=5&offset=0",
                      "host": [
                        "{{url}}"
                      ],
                      "path": [
                        "partnerOrders",
                        "list",
                        "store"
                      ],
                      "query": [
                        {
                          "key": "limit",
                          "value": "5",
                          "description": "Orders per page. Default **5**, maximum **25**. Above the maximum, the maximum applies."
                        },
                        {
                          "key": "offset",
                          "value": "0",
                          "description": "How many orders to skip. Default **0**."
                        },
                        {
                          "key": "status",
                          "value": "",
                          "description": "Filters by status. Without the parameter, all of them come.",
                          "disabled": true
                        },
                        {
                          "key": "createdFrom",
                          "value": "",
                          "description": "Created from this date, inclusive, in the format `2026-09-01T08:30:00`.",
                          "disabled": true
                        },
                        {
                          "key": "createdTo",
                          "value": "",
                          "description": "Created up to this date, inclusive, in the format `2026-09-01T08:30:00`.",
                          "disabled": true
                        },
                        {
                          "key": "updatedFrom",
                          "value": "",
                          "description": "Updated from this date, inclusive, in the format `2026-09-01T08:30:00`.",
                          "disabled": true
                        },
                        {
                          "key": "updatedTo",
                          "value": "",
                          "description": "Updated up to this date, inclusive, in the format `2026-09-01T08:30:00`.",
                          "disabled": true
                        }
                      ]
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "body": "[\n  {\n    \"id\": 900201,\n    \"orderId\": 900100,\n    \"total\": \"R$637,57\",\n    \"status\": \"PAYMENT_APPROVED\",\n    \"dateCreated\": \"2026-09-02T11:04:18Z\",\n    \"lastUpdated\": \"2026-09-02T11:12:40Z\",\n    \"gateway\": \"BRASPAG\",\n    \"partner\": {\n      \"partnerName\": \"Loja Exemplo\",\n      \"partnerDocument\": \"30.424.972/0001-74\"\n    },\n    \"customer\": {\n      \"customerName\": \"Ana Paula Ribeiro\",\n      \"customerDocument\": \"466.935.373-08\"\n    }\n  },\n  {\n    \"id\": 900202,\n    \"orderId\": 900101,\n    \"total\": \"R$81,64\",\n    \"status\": \"AWAITING_PAYMENT\",\n    \"dateCreated\": \"2026-09-01T13:26:05Z\",\n    \"lastUpdated\": \"2026-09-01T13:27:26Z\",\n    \"gateway\": null,\n    \"partner\": {\n      \"partnerName\": \"Loja Exemplo\",\n      \"partnerDocument\": \"30.424.972/0001-74\"\n    },\n    \"customer\": {\n      \"customerName\": \"Ana Paula Ribeiro\",\n      \"customerDocument\": \"466.935.373-08\"\n    }\n  }\n]"
                }
              ]
            },
            {
              "name": "Get Order Details - Marketplace",
              "request": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{url}}/partnerOrders/store/:id",
                  "host": [
                    "{{url}}"
                  ],
                  "path": [
                    "partnerOrders",
                    "store",
                    ":id"
                  ],
                  "variable": [
                    {
                      "key": "id",
                      "value": "900201",
                      "description": "Id of the **partner order** (`partnerOrderId`), the `id` field of the listing."
                    }
                  ]
                },
                "description": "### Description\n\nReturns the whole order of an order **originated in your store**: amounts, customer, payments, deliveries with their products, and the status history.\n\nThe route id is the **partner order** id (`partnerOrderId`), the `id` field of the listing — not the `orderId`. The payload is the same as the store route; what changes is the scope of who can read it.\n\n### Business rules\n\n#### Customer data\n\nPart of the customer data may come masked or omitted, depending on the store's marketplace contract, the branch link and the data restriction configuration of the origin store.\n\nThe `customer` block is always present; what varies is how it is filled. With restricted display, `email`, `phone`, `optinTracking` and `trackingPhone` come as `****`.\n\n#### Conditional blocks\n\nThey appear only when the order has the corresponding data:\n\n- `discounts`\n- `replicaOrdersCreated`, `replicaPartnerOrdersCreated`, `originalOrderRedone`, `originalPartnerOrderRedone` and `reasonToRePurchase`\n- `commentRefusing`, `reasonRefusingCode` and `reasonRefusingDescription`\n- `approvalWorkflowTypes.workflowReason[]`\n- `campaign`\n- `payrollDebit` and `monsantoCredit`, with the `COMMODITY_EXCHANGE_CAMPAIGN` gateway and the commodity tax enabled\n- `deliveries[].deliveryCommodityInfo`, inside each delivery, when the order has `orderCommodityExchange`\n- `freightTotalDiscount`\n- `supplierOrderId`, `supplierInvoiceNumber`, `supplierInvoiceSerie`, `supplierInvoiceKey` and `supplierInvoiceDate`\n- `orderName`\n- `cashback`\n- `orderCustomerThirdPartyReferral`\n- `couponCode`\n- `partnerOrderAttributes`\n- `orderDocuments`\n- `invoices`\n- the `externalAttributes` object, with the `external*` attributes\n- `customTax`\n- `paymentDateVpvf`\n\n### Responses\n\n**200**\n\nThe full order.\n\nThe payload is extensive: the first table lists the top-level fields, and each object or list has its own table right below.\n\nThe fields that appear only in some orders are in **Conditional blocks**, in the business rules.\n\n**401**\n\nMissing, malformed or expired token.\n\n**404**\n\nThe order does not exist or is not in your scope."
              },
              "response": [
                {
                  "name": "Success — order with approved payment",
                  "originalRequest": {
                    "method": "GET",
                    "header": [],
                    "url": {
                      "raw": "{{url}}/partnerOrders/store/900201",
                      "host": [
                        "{{url}}"
                      ],
                      "path": [
                        "partnerOrders",
                        "store",
                        "900201"
                      ]
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "body": "{\n  \"attendant\": null,\n  \"orderId\": 900100,\n  \"id\": 900201,\n  \"status\": \"PAYMENT_APPROVED\",\n  \"approvalWorkflow\": false,\n  \"workflowIsApproved\": false,\n  \"approvalCredit\": null,\n  \"subTotal\": 35.91,\n  \"subTotalFormats\": {\n    \"value\": \"35,91\",\n    \"mask\": \"R$ 35,91\"\n  },\n  \"taxes\": {\n    \"taxPurpose\": null,\n    \"taxPurposeId\": null,\n    \"st\": 0,\n    \"ipi\": 0,\n    \"icms\": 0,\n    \"pis\": 0,\n    \"cofins\": 0,\n    \"totalTax\": 0\n  },\n  \"freightTotal\": 45.73,\n  \"freightTotalFormats\": {\n    \"value\": \"45,73\",\n    \"mask\": \"R$ 45,73\"\n  },\n  \"total\": 81.64,\n  \"totalFormats\": {\n    \"value\": \"81,64\",\n    \"mask\": \"R$ 81,64\"\n  },\n  \"dateCreated\": \"2026-09-01T13:26:05Z\",\n  \"lastUpdated\": \"2026-09-01T13:27:26Z\",\n  \"invoiceNote\": null,\n  \"leadTimeByRequestDone\": true,\n  \"order\": {\n    \"origin\": \"SHOP\",\n    \"originStoreName\": \"Loja Exemplo\",\n    \"originStoreId\": 4210,\n    \"originStoreSubdomain\": \"lojaexemplo\",\n    \"originStorePartnerId\": 5050,\n    \"drivenPrice\": false,\n    \"manualPrice\": false\n  },\n  \"seller\": {\n    \"id\": 5050,\n    \"name\": \"Loja Exemplo\",\n    \"document\": \"30.424.972/0001-74\"\n  },\n  \"customer\": {\n    \"id\": 700101,\n    \"name\": \"Ana Paula Ribeiro\",\n    \"contactName\": \"Ana Paula Ribeiro\",\n    \"email\": \"ana.ribeiro@exemplo.com.br\",\n    \"phone\": \"(11) 98765-4321\",\n    \"type\": \"pf\",\n    \"document\": \"466.935.373-08\",\n    \"stateRegistration\": null,\n    \"optinTracking\": null,\n    \"trackingPhone\": null,\n    \"dateCreated\": \"2026-08-20T09:15:00Z\",\n    \"registrationAddress\": {\n      \"street\": \"Avenida Paulista\",\n      \"number\": \"1578\",\n      \"quarter\": \"Bela Vista\",\n      \"city\": \"São Paulo\",\n      \"state\": \"SP\",\n      \"zipcode\": \"01310-100\",\n      \"farmerStateRegistration\": null\n    },\n    \"customerAttributes\": [\n      {\n        \"name\": \"OPTIN_NEWSLETTER\",\n        \"value\": \"true\"\n      }\n    ]\n  },\n  \"payments\": [\n    {\n      \"id\": 4490201,\n      \"paymentType\": \"BANK_SLIP\",\n      \"gateway\": \"BRASPAG\",\n      \"paymentInstallmentsValue\": 81.64,\n      \"paymentInstallments\": 1\n    }\n  ],\n  \"deliveries\": [\n    {\n      \"address\": {\n        \"id\": 4470701,\n        \"name\": \"Endereço de entrega\",\n        \"street\": \"Avenida Paulista\",\n        \"number\": \"1578\",\n        \"quarter\": \"Bela Vista\",\n        \"city\": \"São Paulo\",\n        \"state\": \"SP\",\n        \"zipcode\": \"01310-100\",\n        \"deliveryAddressCode\": null,\n        \"addressType\": \"RESIDENTIAL\"\n      },\n      \"freight\": {\n        \"value\": 45.73,\n        \"valueFormats\": {\n          \"value\": \"45,73\",\n          \"mask\": \"R$ 45,73\"\n        },\n        \"name\": \"CORREIO - SEDEX\",\n        \"type\": \"INTELIPOST\",\n        \"freightTime\": 4,\n        \"packingTime\": 0,\n        \"realValue\": 45.73,\n        \"realValueFormats\": {\n          \"value\": \"45,73\",\n          \"mask\": \"R$ 45,73\"\n        },\n        \"realName\": \"CORREIO - SEDEX\",\n        \"realType\": \"INTELIPOST\",\n        \"intelipostQuoteId\": \"202956238407743\",\n        \"intelipostDeliveryMethodId\": \"2\",\n        \"intelipostDeliveryMethodExternalId\": \"94\"\n      },\n      \"products\": [\n        {\n          \"id\": 500101,\n          \"name\": \"Produto Exemplo A\",\n          \"mfrPartCode\": \"FE-500101\",\n          \"composition\": \"UNITARY\",\n          \"virtualQuantity\": 0,\n          \"realQuantity\": 1,\n          \"quantity\": 1,\n          \"price\": 35.91,\n          \"priceFormats\": {\n            \"value\": \"35,91\",\n            \"mask\": \"R$ 35,91\"\n          },\n          \"leadTime\": 0,\n          \"partnerOrderLineId\": 4490101,\n          \"isLeadTimeByRequest\": false,\n          \"stockPrice\": 39.9,\n          \"stockPriceFormats\": {\n            \"value\": \"39,90\",\n            \"mask\": \"R$ 39,90\"\n          },\n          \"totalCost\": 52.15,\n          \"totalCostFormats\": {\n            \"value\": \"52,15\",\n            \"mask\": \"R$ 52,15\"\n          },\n          \"netCost\": 52.15,\n          \"netCostFormats\": {\n            \"value\": \"52,15\",\n            \"mask\": \"R$ 52,15\"\n          },\n          \"marginAfterDiscountPercentage\": null,\n          \"interestRate\": null,\n          \"anticipationRate\": null,\n          \"realSalePrice\": 35.91,\n          \"realSalePriceFormats\": {\n            \"value\": \"35,91\",\n            \"mask\": \"R$ 35,91\"\n          },\n          \"drivenPrice\": false,\n          \"partnerPartCode\": \"SKU-A-001\",\n          \"partnerInternalPartCode\": null,\n          \"warehouse\": {\n            \"id\": 1001,\n            \"name\": \"Depósito Central\",\n            \"zipcode\": \"01310-100\"\n          },\n          \"brand\": {\n            \"id\": 4460101,\n            \"name\": \"Fabricante Exemplo\"\n          },\n          \"specialRules\": {},\n          \"needsAgronomicRecipe\": \"false\",\n          \"salesUnitOfMeasurement\": null,\n          \"salePriceByUnitOfMeasurement\": null,\n          \"unitaryQuantityInSalesUnitOfMeasurement\": null,\n          \"totalQuantityInSalesUnitOfMeasurement\": null,\n          \"whoAddedItemToCart\": \"client\",\n          \"customKey\": null,\n          \"categoryId\": 31519,\n          \"categoryName\": \"Categoria Exemplo\"\n        }\n      ]\n    }\n  ],\n  \"paymentPartnerReceiver\": [\n    {\n      \"participant\": \"marketplace\",\n      \"name\": \"Loja Exemplo\",\n      \"typeReceiver\": \"PRIMARY\",\n      \"paymentFees\": \"true\",\n      \"splitedBy\": \"TOTAL\",\n      \"splitedPercentage\": 100,\n      \"splitedValue\": \"81,64\",\n      \"value\": \"81,64\"\n    }\n  ],\n  \"orderStatusLogs\": [\n    {\n      \"status\": \"PAYMENT_APPROVED\",\n      \"date\": \"2026-09-02T11:12:40Z\"\n    }\n  ],\n  \"totalMarginAfterDiscountPercentage\": null,\n  \"markup\": null,\n  \"whoCreatedPreOrder\": \"client\",\n  \"whoSelectedPayment\": \"client\",\n  \"commissionAssignedAttendantId\": null,\n  \"commissionAssignedAttendantCode\": null,\n  \"commissionAssignedAttendantDoc\": null,\n  \"approvalLevels\": [],\n  \"customCartId\": null,\n  \"cartTypeName\": null,\n  \"cartTypeExternalId\": null\n}"
                },
                {
                  "name": "Refusal — the order does not exist or is not in your scope",
                  "originalRequest": {
                    "method": "GET",
                    "header": [],
                    "url": {
                      "raw": "{{url}}/partnerOrders/store/900201",
                      "host": [
                        "{{url}}"
                      ],
                      "path": [
                        "partnerOrders",
                        "store",
                        "900201"
                      ]
                    }
                  },
                  "status": "Not Found",
                  "code": 404,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "body": "{\n  \"status\": \"NOT_FOUND\",\n  \"message\": \"Pedido com id X não encontrado\"\n}"
                }
              ]
            },
            {
              "name": "Update Order Status - Marketplace",
              "request": {
                "method": "PUT",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "url": {
                  "raw": "{{url}}/partnerOrders/store/:id",
                  "host": [
                    "{{url}}"
                  ],
                  "path": [
                    "partnerOrders",
                    "store",
                    ":id"
                  ],
                  "variable": [
                    {
                      "key": "id",
                      "value": "900201",
                      "description": "Id of the **partner order** (`partnerOrderId`), the `id` field of the listing."
                    }
                  ]
                },
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"status\": \"READY\",\n  \"supplierOrderId\": \"PED-ERP-77120\",\n  \"supplierInvoiceNumber\": \"1234\",\n  \"supplierInvoiceSerie\": \"1\",\n  \"supplierInvoiceDate\": \"2026-09-02T08:30:00\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "description": "### Description\n\nAllows the **origin store** to move an order that was born in it to the next status, saving along with it the data that status requires.\n\nThe body, the transitions and the response are identical to those of the store route. The difference is the scope and a configuration prerequisite — see **The store must be enabled**.\n\nThe invoice fields are only saved when the order does not have an invoice yet: resending them on an order already marked with an invoice does not overwrite the values.\n\n### Business rules\n\n#### Where the order can go\n\nThe target `status` is accepted from a specific current status. Outside that combination, the response is **422**.\n\n| `status` sent | Required current status | Own fields |\n| --- | --- | --- |\n| `APPROVED` | order awaiting payment, without credit or with payment at the store | — |\n| `READY` | `PAYMENT_APPROVED` | `supplierOrderId` required |\n| `SHIPPED` | `READY` | `trackingCode` with Correios shipping; with `trackingCode`, `ownCarrier`; `supplierInvoiceNumber` if the order has no invoice yet — see **Shipping (`SHIPPED`)** |\n| `DELIVERED` | `SHIPPED` | — |\n| `STRAYED` | `SHIPPED` | — |\n| `RETURNED` | `DELIVERED` | — |\n| `AWAITING_PAYMENT` | `AWAITING_PAYMENT` | — |\n| `CANCELED` | any | `orderReasonCanceled` |\n\n**Payment approval is sent as `APPROVED`**, not as `PAYMENT_APPROVED` — it is the order that then stays in `PAYMENT_APPROVED`.\n\nThe other values of the status enum (`PRE_ORDER`, `PAYMENT_APPROVED`, `COMPLETED`, `WITHOUT_CREDIT_LIMIT`, `STORE_PAYMENT`) are used to **filter** the listing, but are not accepted here: the request responds 422.\n\n#### Shipping (`SHIPPED`)\n\n- `trackingCode` is required when the order's shipping is Correios; with other shipping types, it is optional.\n- When you send `trackingCode`, also send `ownCarrier` with the **carrier's name** — that is what gets saved as the delivery carrier.\n- Without `ownCarrier` and without `urlTrackingCode`, the response is **422** with `Para realizar a atualização do pedido com id <id> ownCarrier e urlTrackingCode é obrigatorio.`\n- With only `urlTrackingCode`, without `ownCarrier`, the request is also refused with **422**.\n- `urlTrackingCode` is optional.\n- If the order has no invoice number yet, `supplierInvoiceNumber` is required: without it, the response is **422** with `Número de Nota Fiscal é obrigatório`.\n\n#### Order under approval workflow\n\nIn an order with an approval workflow (`approvalWorkflow: true`) not yet approved, the only accepted `status` is `CANCELED`. Any other responds 422.\n\n#### Cancellation reasons\n\n`orderReasonCanceled` receives the reason id:\n\n| Id | Reason | Id | Reason |\n| --- | --- | --- | --- |\n| 2 | 7-day withdrawal | 20 | Payment declined |\n| 3 | Logistics problem | 21 | No response from the customer |\n| 4 | Description error | 22 | No credit |\n| 5 | Lost in transit | 23 | Expired |\n| 6 | Lack of payment | 24 | Wrong customer |\n| 7 | No response from the store | 26 | Wrong order |\n| 8 | Out of stock | 27 | Integration failure |\n| 9 | Different brand | 28 | Wrong seller |\n| 10 | Damaged product | 29 | Chargeback |\n| 11 | Wrong product | 30 | Fraud – Product recovered |\n| 12 | Counterfeit part | 31 | Suspected fraud |\n| 13 | Wrong store price | 32 | Assisted repurchase |\n| 14 | Pre-order | 33 | Commercial approval denied |\n| 15 | Incorrect price | 34 | Order canceled by the seller |\n| 16 | Wrong composition | 35 | Quote edited |\n| 17 | Shipping delay | | |\n| 18 | Duplicate order | | |\n| 19 | Test purchase | | |\n\n#### Who can cancel\n\nWhen the order was born in **another** store — you are the supplier, not the origin —, cancellation depends on the **origin store** having enabled cancellation by the seller.\n\nIt is its configuration, not yours: until it enables it, your `CANCELED` responds 422, and it is the origin store itself that cancels. With the permission on, cancellation works normally.\n\nAn order originated in your own store does not go through this check.\n\n#### The store must be enabled\n\nUpdating orders by the origin store depends on a configuration of the store itself. Without it, the request responds 422 without touching the order. The release is done by CWS.\n\n### Responses\n\n**200**\n\nThe whole order, with the new status.\n\nIn the same format as **Get Order Details**, with the corresponding record in `orderStatusLogs`.\n\n**400**\n\nInvalid JSON or order validation failure.\n\nBody that is not valid JSON. Check the syntax (quotes, commas and braces); the `error` field brings the detail.\n\nOrder validation failure. The reason comes in `message`.\n\n**401**\n\nMissing, malformed or expired token.\n\n**404**\n\nThe order does not exist or is not in your scope.\n\n**422**\n\nStatus change refused.\n\nRefused by the status rules: transition, required fields, approval or cancellation. The reason comes in `message`.\n\nThe store is not enabled to update marketplace orders. See **The store must be enabled**."
              },
              "response": [
                {
                  "name": "Success — ready for shipping",
                  "originalRequest": {
                    "method": "PUT",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "url": {
                      "raw": "{{url}}/partnerOrders/store/900201",
                      "host": [
                        "{{url}}"
                      ],
                      "path": [
                        "partnerOrders",
                        "store",
                        "900201"
                      ]
                    },
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"status\": \"READY\",\n  \"supplierOrderId\": \"PED-ERP-77120\",\n  \"supplierInvoiceNumber\": \"1234\",\n  \"supplierInvoiceSerie\": \"1\",\n  \"supplierInvoiceDate\": \"2026-09-02T08:30:00\"\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "body": "{\n  \"attendant\": null,\n  \"orderId\": 900100,\n  \"id\": 900201,\n  \"status\": \"READY\",\n  \"approvalWorkflow\": false,\n  \"workflowIsApproved\": false,\n  \"approvalCredit\": null,\n  \"subTotal\": 35.91,\n  \"subTotalFormats\": {\n    \"value\": \"35,91\",\n    \"mask\": \"R$ 35,91\"\n  },\n  \"taxes\": {\n    \"taxPurpose\": null,\n    \"taxPurposeId\": null,\n    \"st\": 0,\n    \"ipi\": 0,\n    \"icms\": 0,\n    \"pis\": 0,\n    \"cofins\": 0,\n    \"totalTax\": 0\n  },\n  \"freightTotal\": 45.73,\n  \"freightTotalFormats\": {\n    \"value\": \"45,73\",\n    \"mask\": \"R$ 45,73\"\n  },\n  \"total\": 81.64,\n  \"totalFormats\": {\n    \"value\": \"81,64\",\n    \"mask\": \"R$ 81,64\"\n  },\n  \"dateCreated\": \"2026-09-01T13:26:05Z\",\n  \"lastUpdated\": \"2026-09-01T13:27:26Z\",\n  \"invoiceNote\": null,\n  \"leadTimeByRequestDone\": true,\n  \"order\": {\n    \"origin\": \"SHOP\",\n    \"originStoreName\": \"Loja Exemplo\",\n    \"originStoreId\": 4210,\n    \"originStoreSubdomain\": \"lojaexemplo\",\n    \"originStorePartnerId\": 5050,\n    \"drivenPrice\": false,\n    \"manualPrice\": false\n  },\n  \"seller\": {\n    \"id\": 5050,\n    \"name\": \"Loja Exemplo\",\n    \"document\": \"30.424.972/0001-74\"\n  },\n  \"customer\": {\n    \"id\": 700101,\n    \"name\": \"Ana Paula Ribeiro\",\n    \"contactName\": \"Ana Paula Ribeiro\",\n    \"email\": \"ana.ribeiro@exemplo.com.br\",\n    \"phone\": \"(11) 98765-4321\",\n    \"type\": \"pf\",\n    \"document\": \"466.935.373-08\",\n    \"stateRegistration\": null,\n    \"optinTracking\": null,\n    \"trackingPhone\": null,\n    \"dateCreated\": \"2026-08-20T09:15:00Z\",\n    \"registrationAddress\": {\n      \"street\": \"Avenida Paulista\",\n      \"number\": \"1578\",\n      \"quarter\": \"Bela Vista\",\n      \"city\": \"São Paulo\",\n      \"state\": \"SP\",\n      \"zipcode\": \"01310-100\",\n      \"farmerStateRegistration\": null\n    },\n    \"customerAttributes\": [\n      {\n        \"name\": \"OPTIN_NEWSLETTER\",\n        \"value\": \"true\"\n      }\n    ]\n  },\n  \"payments\": [\n    {\n      \"id\": 4490201,\n      \"paymentType\": \"BANK_SLIP\",\n      \"gateway\": \"BRASPAG\",\n      \"paymentInstallmentsValue\": 81.64,\n      \"paymentInstallments\": 1\n    }\n  ],\n  \"deliveries\": [\n    {\n      \"address\": {\n        \"id\": 4470701,\n        \"name\": \"Endereço de entrega\",\n        \"street\": \"Avenida Paulista\",\n        \"number\": \"1578\",\n        \"quarter\": \"Bela Vista\",\n        \"city\": \"São Paulo\",\n        \"state\": \"SP\",\n        \"zipcode\": \"01310-100\",\n        \"deliveryAddressCode\": null,\n        \"addressType\": \"RESIDENTIAL\"\n      },\n      \"freight\": {\n        \"value\": 45.73,\n        \"valueFormats\": {\n          \"value\": \"45,73\",\n          \"mask\": \"R$ 45,73\"\n        },\n        \"name\": \"CORREIO - SEDEX\",\n        \"type\": \"INTELIPOST\",\n        \"freightTime\": 4,\n        \"packingTime\": 0,\n        \"realValue\": 45.73,\n        \"realValueFormats\": {\n          \"value\": \"45,73\",\n          \"mask\": \"R$ 45,73\"\n        },\n        \"realName\": \"CORREIO - SEDEX\",\n        \"realType\": \"INTELIPOST\",\n        \"intelipostQuoteId\": \"202956238407743\",\n        \"intelipostDeliveryMethodId\": \"2\",\n        \"intelipostDeliveryMethodExternalId\": \"94\"\n      },\n      \"products\": [\n        {\n          \"id\": 500101,\n          \"name\": \"Produto Exemplo A\",\n          \"mfrPartCode\": \"FE-500101\",\n          \"composition\": \"UNITARY\",\n          \"virtualQuantity\": 0,\n          \"realQuantity\": 1,\n          \"quantity\": 1,\n          \"price\": 35.91,\n          \"priceFormats\": {\n            \"value\": \"35,91\",\n            \"mask\": \"R$ 35,91\"\n          },\n          \"leadTime\": 0,\n          \"partnerOrderLineId\": 4490101,\n          \"isLeadTimeByRequest\": false,\n          \"stockPrice\": 39.9,\n          \"stockPriceFormats\": {\n            \"value\": \"39,90\",\n            \"mask\": \"R$ 39,90\"\n          },\n          \"totalCost\": 52.15,\n          \"totalCostFormats\": {\n            \"value\": \"52,15\",\n            \"mask\": \"R$ 52,15\"\n          },\n          \"netCost\": 52.15,\n          \"netCostFormats\": {\n            \"value\": \"52,15\",\n            \"mask\": \"R$ 52,15\"\n          },\n          \"marginAfterDiscountPercentage\": null,\n          \"interestRate\": null,\n          \"anticipationRate\": null,\n          \"realSalePrice\": 35.91,\n          \"realSalePriceFormats\": {\n            \"value\": \"35,91\",\n            \"mask\": \"R$ 35,91\"\n          },\n          \"drivenPrice\": false,\n          \"partnerPartCode\": \"SKU-A-001\",\n          \"partnerInternalPartCode\": null,\n          \"warehouse\": {\n            \"id\": 1001,\n            \"name\": \"Depósito Central\",\n            \"zipcode\": \"01310-100\"\n          },\n          \"brand\": {\n            \"id\": 4460101,\n            \"name\": \"Fabricante Exemplo\"\n          },\n          \"specialRules\": {},\n          \"needsAgronomicRecipe\": \"false\",\n          \"salesUnitOfMeasurement\": null,\n          \"salePriceByUnitOfMeasurement\": null,\n          \"unitaryQuantityInSalesUnitOfMeasurement\": null,\n          \"totalQuantityInSalesUnitOfMeasurement\": null,\n          \"whoAddedItemToCart\": \"client\",\n          \"customKey\": null,\n          \"categoryId\": 31519,\n          \"categoryName\": \"Categoria Exemplo\"\n        }\n      ]\n    }\n  ],\n  \"paymentPartnerReceiver\": [\n    {\n      \"participant\": \"marketplace\",\n      \"name\": \"Loja Exemplo\",\n      \"typeReceiver\": \"PRIMARY\",\n      \"paymentFees\": \"true\",\n      \"splitedBy\": \"TOTAL\",\n      \"splitedPercentage\": 100,\n      \"splitedValue\": \"81,64\",\n      \"value\": \"81,64\"\n    }\n  ],\n  \"orderStatusLogs\": [\n    {\n      \"status\": \"READY\",\n      \"date\": \"2026-09-02T11:12:40Z\"\n    }\n  ],\n  \"totalMarginAfterDiscountPercentage\": null,\n  \"markup\": null,\n  \"whoCreatedPreOrder\": \"client\",\n  \"whoSelectedPayment\": \"client\",\n  \"commissionAssignedAttendantId\": null,\n  \"commissionAssignedAttendantCode\": null,\n  \"commissionAssignedAttendantDoc\": null,\n  \"approvalLevels\": [],\n  \"customCartId\": null,\n  \"cartTypeName\": null,\n  \"cartTypeExternalId\": null,\n  \"supplierOrderId\": \"PED-ERP-77120\",\n  \"supplierInvoiceNumber\": \"1234\",\n  \"supplierInvoiceSerie\": \"1\",\n  \"supplierInvoiceDate\": \"2026-09-02T00:00:00Z\"\n}"
                },
                {
                  "name": "Success — shipped",
                  "originalRequest": {
                    "method": "PUT",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "url": {
                      "raw": "{{url}}/partnerOrders/store/900201",
                      "host": [
                        "{{url}}"
                      ],
                      "path": [
                        "partnerOrders",
                        "store",
                        "900201"
                      ]
                    },
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"status\": \"SHIPPED\",\n  \"trackingCode\": \"BR123456789BR\",\n  \"urlTrackingCode\": \"https://rastreio.exemplo.com.br/BR123456789BR\",\n  \"ownCarrier\": \"Transportadora Exemplo\",\n  \"supplierInvoiceNumber\": \"1234\",\n  \"supplierInvoiceSerie\": \"1\"\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "body": "{\n  \"attendant\": null,\n  \"orderId\": 900100,\n  \"id\": 900201,\n  \"status\": \"SHIPPED\",\n  \"approvalWorkflow\": false,\n  \"workflowIsApproved\": false,\n  \"approvalCredit\": null,\n  \"subTotal\": 35.91,\n  \"subTotalFormats\": {\n    \"value\": \"35,91\",\n    \"mask\": \"R$ 35,91\"\n  },\n  \"taxes\": {\n    \"taxPurpose\": null,\n    \"taxPurposeId\": null,\n    \"st\": 0,\n    \"ipi\": 0,\n    \"icms\": 0,\n    \"pis\": 0,\n    \"cofins\": 0,\n    \"totalTax\": 0\n  },\n  \"freightTotal\": 45.73,\n  \"freightTotalFormats\": {\n    \"value\": \"45,73\",\n    \"mask\": \"R$ 45,73\"\n  },\n  \"total\": 81.64,\n  \"totalFormats\": {\n    \"value\": \"81,64\",\n    \"mask\": \"R$ 81,64\"\n  },\n  \"dateCreated\": \"2026-09-01T13:26:05Z\",\n  \"lastUpdated\": \"2026-09-01T13:27:26Z\",\n  \"invoiceNote\": null,\n  \"leadTimeByRequestDone\": true,\n  \"order\": {\n    \"origin\": \"SHOP\",\n    \"originStoreName\": \"Loja Exemplo\",\n    \"originStoreId\": 4210,\n    \"originStoreSubdomain\": \"lojaexemplo\",\n    \"originStorePartnerId\": 5050,\n    \"drivenPrice\": false,\n    \"manualPrice\": false\n  },\n  \"seller\": {\n    \"id\": 5050,\n    \"name\": \"Loja Exemplo\",\n    \"document\": \"30.424.972/0001-74\"\n  },\n  \"customer\": {\n    \"id\": 700101,\n    \"name\": \"Ana Paula Ribeiro\",\n    \"contactName\": \"Ana Paula Ribeiro\",\n    \"email\": \"ana.ribeiro@exemplo.com.br\",\n    \"phone\": \"(11) 98765-4321\",\n    \"type\": \"pf\",\n    \"document\": \"466.935.373-08\",\n    \"stateRegistration\": null,\n    \"optinTracking\": null,\n    \"trackingPhone\": null,\n    \"dateCreated\": \"2026-08-20T09:15:00Z\",\n    \"registrationAddress\": {\n      \"street\": \"Avenida Paulista\",\n      \"number\": \"1578\",\n      \"quarter\": \"Bela Vista\",\n      \"city\": \"São Paulo\",\n      \"state\": \"SP\",\n      \"zipcode\": \"01310-100\",\n      \"farmerStateRegistration\": null\n    },\n    \"customerAttributes\": [\n      {\n        \"name\": \"OPTIN_NEWSLETTER\",\n        \"value\": \"true\"\n      }\n    ]\n  },\n  \"payments\": [\n    {\n      \"id\": 4490201,\n      \"paymentType\": \"BANK_SLIP\",\n      \"gateway\": \"BRASPAG\",\n      \"paymentInstallmentsValue\": 81.64,\n      \"paymentInstallments\": 1\n    }\n  ],\n  \"deliveries\": [\n    {\n      \"address\": {\n        \"id\": 4470701,\n        \"name\": \"Endereço de entrega\",\n        \"street\": \"Avenida Paulista\",\n        \"number\": \"1578\",\n        \"quarter\": \"Bela Vista\",\n        \"city\": \"São Paulo\",\n        \"state\": \"SP\",\n        \"zipcode\": \"01310-100\",\n        \"deliveryAddressCode\": null,\n        \"addressType\": \"RESIDENTIAL\"\n      },\n      \"freight\": {\n        \"value\": 45.73,\n        \"valueFormats\": {\n          \"value\": \"45,73\",\n          \"mask\": \"R$ 45,73\"\n        },\n        \"name\": \"CORREIO - SEDEX\",\n        \"type\": \"INTELIPOST\",\n        \"freightTime\": 4,\n        \"packingTime\": 0,\n        \"realValue\": 45.73,\n        \"realValueFormats\": {\n          \"value\": \"45,73\",\n          \"mask\": \"R$ 45,73\"\n        },\n        \"realName\": \"CORREIO - SEDEX\",\n        \"realType\": \"INTELIPOST\",\n        \"intelipostQuoteId\": \"202956238407743\",\n        \"intelipostDeliveryMethodId\": \"2\",\n        \"intelipostDeliveryMethodExternalId\": \"94\"\n      },\n      \"products\": [\n        {\n          \"id\": 500101,\n          \"name\": \"Produto Exemplo A\",\n          \"mfrPartCode\": \"FE-500101\",\n          \"composition\": \"UNITARY\",\n          \"virtualQuantity\": 0,\n          \"realQuantity\": 1,\n          \"quantity\": 1,\n          \"price\": 35.91,\n          \"priceFormats\": {\n            \"value\": \"35,91\",\n            \"mask\": \"R$ 35,91\"\n          },\n          \"leadTime\": 0,\n          \"partnerOrderLineId\": 4490101,\n          \"isLeadTimeByRequest\": false,\n          \"stockPrice\": 39.9,\n          \"stockPriceFormats\": {\n            \"value\": \"39,90\",\n            \"mask\": \"R$ 39,90\"\n          },\n          \"totalCost\": 52.15,\n          \"totalCostFormats\": {\n            \"value\": \"52,15\",\n            \"mask\": \"R$ 52,15\"\n          },\n          \"netCost\": 52.15,\n          \"netCostFormats\": {\n            \"value\": \"52,15\",\n            \"mask\": \"R$ 52,15\"\n          },\n          \"marginAfterDiscountPercentage\": null,\n          \"interestRate\": null,\n          \"anticipationRate\": null,\n          \"realSalePrice\": 35.91,\n          \"realSalePriceFormats\": {\n            \"value\": \"35,91\",\n            \"mask\": \"R$ 35,91\"\n          },\n          \"drivenPrice\": false,\n          \"partnerPartCode\": \"SKU-A-001\",\n          \"partnerInternalPartCode\": null,\n          \"warehouse\": {\n            \"id\": 1001,\n            \"name\": \"Depósito Central\",\n            \"zipcode\": \"01310-100\"\n          },\n          \"brand\": {\n            \"id\": 4460101,\n            \"name\": \"Fabricante Exemplo\"\n          },\n          \"specialRules\": {},\n          \"needsAgronomicRecipe\": \"false\",\n          \"salesUnitOfMeasurement\": null,\n          \"salePriceByUnitOfMeasurement\": null,\n          \"unitaryQuantityInSalesUnitOfMeasurement\": null,\n          \"totalQuantityInSalesUnitOfMeasurement\": null,\n          \"whoAddedItemToCart\": \"client\",\n          \"customKey\": null,\n          \"categoryId\": 31519,\n          \"categoryName\": \"Categoria Exemplo\"\n        }\n      ]\n    }\n  ],\n  \"paymentPartnerReceiver\": [\n    {\n      \"participant\": \"marketplace\",\n      \"name\": \"Loja Exemplo\",\n      \"typeReceiver\": \"PRIMARY\",\n      \"paymentFees\": \"true\",\n      \"splitedBy\": \"TOTAL\",\n      \"splitedPercentage\": 100,\n      \"splitedValue\": \"81,64\",\n      \"value\": \"81,64\"\n    }\n  ],\n  \"orderStatusLogs\": [\n    {\n      \"status\": \"SHIPPED\",\n      \"date\": \"2026-09-02T11:12:40Z\"\n    }\n  ],\n  \"totalMarginAfterDiscountPercentage\": null,\n  \"markup\": null,\n  \"whoCreatedPreOrder\": \"client\",\n  \"whoSelectedPayment\": \"client\",\n  \"commissionAssignedAttendantId\": null,\n  \"commissionAssignedAttendantCode\": null,\n  \"commissionAssignedAttendantDoc\": null,\n  \"approvalLevels\": [],\n  \"customCartId\": null,\n  \"cartTypeName\": null,\n  \"cartTypeExternalId\": null\n}"
                }
              ]
            },
            {
              "name": "List Child Orders by Parent Order",
              "request": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{url}}/partnerOrders/store/order/:id",
                  "host": [
                    "{{url}}"
                  ],
                  "path": [
                    "partnerOrders",
                    "store",
                    "order",
                    ":id"
                  ],
                  "variable": [
                    {
                      "key": "id",
                      "value": "900100",
                      "description": "Id of the **customer order** (`orderId`), the \"parent\" order — **not** the `partnerOrderId`. It is the `orderId` field of the listing."
                    }
                  ]
                },
                "description": "### Description\n\nLists the partner orders born from the same **customer order**.\n\nAn order with items from different suppliers is split into one partner order per supplier, and it is this split that this route returns.\n\n### Responses\n\n**200**\n\nThe partner orders of the parent order.\n\nEach one in the same format as **Get Order Details - Marketplace**. An order fulfilled by a single supplier returns an array with one item.\n\n**401**\n\nMissing, malformed or expired token.\n\n**404**\n\nNo partner order for that `orderId`.\n\nSend the parent order's `orderId`; a `partnerOrderId` also lands here."
              },
              "response": [
                {
                  "name": "Success — one partner order",
                  "originalRequest": {
                    "method": "GET",
                    "header": [],
                    "url": {
                      "raw": "{{url}}/partnerOrders/store/order/900100",
                      "host": [
                        "{{url}}"
                      ],
                      "path": [
                        "partnerOrders",
                        "store",
                        "order",
                        "900100"
                      ]
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "body": "[\n  {\n    \"attendant\": null,\n    \"orderId\": 900100,\n    \"id\": 900201,\n    \"status\": \"PAYMENT_APPROVED\",\n    \"approvalWorkflow\": false,\n    \"workflowIsApproved\": false,\n    \"approvalCredit\": null,\n    \"subTotal\": 35.91,\n    \"subTotalFormats\": {\n      \"value\": \"35,91\",\n      \"mask\": \"R$ 35,91\"\n    },\n    \"taxes\": {\n      \"taxPurpose\": null,\n      \"taxPurposeId\": null,\n      \"st\": 0,\n      \"ipi\": 0,\n      \"icms\": 0,\n      \"pis\": 0,\n      \"cofins\": 0,\n      \"totalTax\": 0\n    },\n    \"freightTotal\": 45.73,\n    \"freightTotalFormats\": {\n      \"value\": \"45,73\",\n      \"mask\": \"R$ 45,73\"\n    },\n    \"total\": 81.64,\n    \"totalFormats\": {\n      \"value\": \"81,64\",\n      \"mask\": \"R$ 81,64\"\n    },\n    \"dateCreated\": \"2026-09-01T13:26:05Z\",\n    \"lastUpdated\": \"2026-09-01T13:27:26Z\",\n    \"invoiceNote\": null,\n    \"leadTimeByRequestDone\": true,\n    \"order\": {\n      \"origin\": \"SHOP\",\n      \"originStoreName\": \"Loja Exemplo\",\n      \"originStoreId\": 4210,\n      \"originStoreSubdomain\": \"lojaexemplo\",\n      \"originStorePartnerId\": 5050,\n      \"drivenPrice\": false,\n      \"manualPrice\": false\n    },\n    \"seller\": {\n      \"id\": 5050,\n      \"name\": \"Loja Exemplo\",\n      \"document\": \"30.424.972/0001-74\"\n    },\n    \"customer\": {\n      \"id\": 700101,\n      \"name\": \"Ana Paula Ribeiro\",\n      \"contactName\": \"Ana Paula Ribeiro\",\n      \"email\": \"ana.ribeiro@exemplo.com.br\",\n      \"phone\": \"(11) 98765-4321\",\n      \"type\": \"pf\",\n      \"document\": \"466.935.373-08\",\n      \"stateRegistration\": null,\n      \"optinTracking\": null,\n      \"trackingPhone\": null,\n      \"dateCreated\": \"2026-08-20T09:15:00Z\",\n      \"registrationAddress\": {\n        \"street\": \"Avenida Paulista\",\n        \"number\": \"1578\",\n        \"quarter\": \"Bela Vista\",\n        \"city\": \"São Paulo\",\n        \"state\": \"SP\",\n        \"zipcode\": \"01310-100\",\n        \"farmerStateRegistration\": null\n      },\n      \"customerAttributes\": [\n        {\n          \"name\": \"OPTIN_NEWSLETTER\",\n          \"value\": \"true\"\n        }\n      ]\n    },\n    \"payments\": [\n      {\n        \"id\": 4490201,\n        \"paymentType\": \"BANK_SLIP\",\n        \"gateway\": \"BRASPAG\",\n        \"paymentInstallmentsValue\": 81.64,\n        \"paymentInstallments\": 1\n      }\n    ],\n    \"deliveries\": [\n      {\n        \"address\": {\n          \"id\": 4470701,\n          \"name\": \"Endereço de entrega\",\n          \"street\": \"Avenida Paulista\",\n          \"number\": \"1578\",\n          \"quarter\": \"Bela Vista\",\n          \"city\": \"São Paulo\",\n          \"state\": \"SP\",\n          \"zipcode\": \"01310-100\",\n          \"deliveryAddressCode\": null,\n          \"addressType\": \"RESIDENTIAL\"\n        },\n        \"freight\": {\n          \"value\": 45.73,\n          \"valueFormats\": {\n            \"value\": \"45,73\",\n            \"mask\": \"R$ 45,73\"\n          },\n          \"name\": \"CORREIO - SEDEX\",\n          \"type\": \"INTELIPOST\",\n          \"freightTime\": 4,\n          \"packingTime\": 0,\n          \"realValue\": 45.73,\n          \"realValueFormats\": {\n            \"value\": \"45,73\",\n            \"mask\": \"R$ 45,73\"\n          },\n          \"realName\": \"CORREIO - SEDEX\",\n          \"realType\": \"INTELIPOST\",\n          \"intelipostQuoteId\": \"202956238407743\",\n          \"intelipostDeliveryMethodId\": \"2\",\n          \"intelipostDeliveryMethodExternalId\": \"94\"\n        },\n        \"products\": [\n          {\n            \"id\": 500101,\n            \"name\": \"Produto Exemplo A\",\n            \"mfrPartCode\": \"FE-500101\",\n            \"composition\": \"UNITARY\",\n            \"virtualQuantity\": 0,\n            \"realQuantity\": 1,\n            \"quantity\": 1,\n            \"price\": 35.91,\n            \"priceFormats\": {\n              \"value\": \"35,91\",\n              \"mask\": \"R$ 35,91\"\n            },\n            \"leadTime\": 0,\n            \"partnerOrderLineId\": 4490101,\n            \"isLeadTimeByRequest\": false,\n            \"stockPrice\": 39.9,\n            \"stockPriceFormats\": {\n              \"value\": \"39,90\",\n              \"mask\": \"R$ 39,90\"\n            },\n            \"totalCost\": 52.15,\n            \"totalCostFormats\": {\n              \"value\": \"52,15\",\n              \"mask\": \"R$ 52,15\"\n            },\n            \"netCost\": 52.15,\n            \"netCostFormats\": {\n              \"value\": \"52,15\",\n              \"mask\": \"R$ 52,15\"\n            },\n            \"marginAfterDiscountPercentage\": null,\n            \"interestRate\": null,\n            \"anticipationRate\": null,\n            \"realSalePrice\": 35.91,\n            \"realSalePriceFormats\": {\n              \"value\": \"35,91\",\n              \"mask\": \"R$ 35,91\"\n            },\n            \"drivenPrice\": false,\n            \"partnerPartCode\": \"SKU-A-001\",\n            \"partnerInternalPartCode\": null,\n            \"warehouse\": {\n              \"id\": 1001,\n              \"name\": \"Depósito Central\",\n              \"zipcode\": \"01310-100\"\n            },\n            \"brand\": {\n              \"id\": 4460101,\n              \"name\": \"Fabricante Exemplo\"\n            },\n            \"specialRules\": {},\n            \"needsAgronomicRecipe\": \"false\",\n            \"salesUnitOfMeasurement\": null,\n            \"salePriceByUnitOfMeasurement\": null,\n            \"unitaryQuantityInSalesUnitOfMeasurement\": null,\n            \"totalQuantityInSalesUnitOfMeasurement\": null,\n            \"whoAddedItemToCart\": \"client\",\n            \"customKey\": null,\n            \"categoryId\": 31519,\n            \"categoryName\": \"Categoria Exemplo\"\n          }\n        ]\n      }\n    ],\n    \"paymentPartnerReceiver\": [\n      {\n        \"participant\": \"marketplace\",\n        \"name\": \"Loja Exemplo\",\n        \"typeReceiver\": \"PRIMARY\",\n        \"paymentFees\": \"true\",\n        \"splitedBy\": \"TOTAL\",\n        \"splitedPercentage\": 100,\n        \"splitedValue\": \"81,64\",\n        \"value\": \"81,64\"\n      }\n    ],\n    \"orderStatusLogs\": [\n      {\n        \"status\": \"PAYMENT_APPROVED\",\n        \"date\": \"2026-09-02T11:12:40Z\"\n      }\n    ],\n    \"totalMarginAfterDiscountPercentage\": null,\n    \"markup\": null,\n    \"whoCreatedPreOrder\": \"client\",\n    \"whoSelectedPayment\": \"client\",\n    \"commissionAssignedAttendantId\": null,\n    \"commissionAssignedAttendantCode\": null,\n    \"commissionAssignedAttendantDoc\": null,\n    \"approvalLevels\": [],\n    \"customCartId\": null,\n    \"cartTypeName\": null,\n    \"cartTypeExternalId\": null\n  }\n]"
                }
              ]
            },
            {
              "name": "Upload Invoice XML - Marketplace",
              "request": {
                "method": "PUT",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/xml"
                  }
                ],
                "url": {
                  "raw": "{{url}}/partnerOrders/store/:id/invoice",
                  "host": [
                    "{{url}}"
                  ],
                  "path": [
                    "partnerOrders",
                    "store",
                    ":id",
                    "invoice"
                  ],
                  "variable": [
                    {
                      "key": "id",
                      "value": "900201",
                      "description": "Id of the **partner order** (`partnerOrderId`)."
                    }
                  ]
                },
                "body": {
                  "mode": "raw",
                  "raw": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<nfeProc versao=\"4.00\">\n  <NFe>\n    <infNFe Id=\"NFe35260930424972000174550010000012341000012349\">\n      <ide><nNF>1234</nNF><serie>1</serie></ide>\n    </infNFe>\n  </NFe>\n</nfeProc>",
                  "options": {
                    "raw": {
                      "language": "xml"
                    }
                  }
                },
                "description": "### Description\n\nAllows the **origin store** to attach the invoice XML to an order that was born in it.\n\nThe request body is the **file itself**, sent as binary content — the raw stream of the `.xml` bytes. It is not `multipart/form-data`, there is no form field and the XML does not go inside a JSON.\n\nThe invoice must be a **real and valid NF-e**.\n\nThe body and the rules are identical to those of the store route; what changes is the scope of who sends it.\n\n### Business rules\n\n#### What is read from the file\n\nThe platform reads the XML and extracts the **access key**, the **number**, the **series**, the **issue date** and the **total amount** of the invoice. That is why the file must be a real NF-e: a well-formed XML that is not an invoice does not carry this data.\n\nThe file is stored with the access key as its name.\n\nBoth usual formats are accepted — the processed XML, with the invoice envelope, and the XML with only the invoice block.\n\nAn empty file or one that is not valid XML is refused, and nothing is saved.\n\n#### The order must have its payment approved\n\nOnly accepts an invoice on an order that has already passed payment approval. Before that, the request is refused and nothing is saved.\n\n#### One invoice or several\n\nBy default the order keeps **one** file, and each upload replaces the previous one.\n\nStores configured for multiple invoices accumulate the files: each upload adds one more. The configuration belongs to the store and is done by CWS.\n\n### Responses\n\n**200**\n\nThe data of the invoice attached to the order.\n\n**401**\n\nMissing, malformed or expired token.\n\n**404**\n\nThe order does not exist or is not in your scope.\n\n**422**\n\nXML refused or order without approved payment.\n\nEmpty body, file that is not valid XML, or order without approved payment. The reason comes in `message`."
              },
              "response": [
                {
                  "name": "Refusal — order without approved payment",
                  "originalRequest": {
                    "method": "PUT",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/xml"
                      }
                    ],
                    "url": {
                      "raw": "{{url}}/partnerOrders/store/900201/invoice",
                      "host": [
                        "{{url}}"
                      ],
                      "path": [
                        "partnerOrders",
                        "store",
                        "900201",
                        "invoice"
                      ]
                    },
                    "body": {
                      "mode": "raw",
                      "raw": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<nfeProc versao=\"4.00\">\n  <NFe>\n    <infNFe Id=\"NFe35260930424972000174550010000012341000012349\">\n      <ide><nNF>1234</nNF><serie>1</serie></ide>\n    </infNFe>\n  </NFe>\n</nfeProc>",
                      "options": {
                        "raw": {
                          "language": "xml"
                        }
                      }
                    }
                  },
                  "status": "Unprocessable Entity",
                  "code": 422,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "body": "{\n  \"status\": \"UNPROCESSABLE_ENTITY\",\n  \"message\": \"Envio de XML de NFe permitido somente para pedido com pagamento aprovado\"\n}"
                }
              ]
            },
            {
              "name": "Get Items Tracking - Marketplace",
              "request": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{url}}/partnerOrders/store/:id/complementaryInfo",
                  "host": [
                    "{{url}}"
                  ],
                  "path": [
                    "partnerOrders",
                    "store",
                    ":id",
                    "complementaryInfo"
                  ],
                  "variable": [
                    {
                      "key": "id",
                      "value": "900201",
                      "description": "Id of the **partner order** (`partnerOrderId`)."
                    }
                  ]
                },
                "description": "### Description\n\nReturns the items tracking saved in an order **originated in your store**.\n\nThe tracking shows the situation of each product of the order during fulfillment — how many units have already shipped, how many are being prepared, how many are pending. It is the situation the customer sees while waiting for the order.\n\nUse this query to follow the fulfillment of the orders born in your store. The response is identical to that of the store route; what changes is the scope of who queries it.\n\n### Responses\n\n**200**\n\nThe tracking saved in the order.\n\nIn an order without tracking, the response brings only `orderId` and `partnerOrderId`.\n\n**401**\n\nMissing, malformed or expired token.\n\n**404**\n\nThe order does not exist or is not in your scope."
              },
              "response": [
                {
                  "name": "Success — tracking saved",
                  "originalRequest": {
                    "method": "GET",
                    "header": [],
                    "url": {
                      "raw": "{{url}}/partnerOrders/store/900201/complementaryInfo",
                      "host": [
                        "{{url}}"
                      ],
                      "path": [
                        "partnerOrders",
                        "store",
                        "900201",
                        "complementaryInfo"
                      ]
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "body": "{\n  \"orderId\": 900100,\n  \"partnerOrderId\": 900201,\n  \"skus\": [\n    {\n      \"partnerPartCode\": \"SKU-A-001\",\n      \"quantity\": 2,\n      \"situation\": \"enviado\",\n      \"status\": \"valid\"\n    },\n    {\n      \"partnerPartCode\": \"SKU-A-001\",\n      \"quantity\": 1,\n      \"situation\": \"preparando\",\n      \"status\": \"valid\"\n    }\n  ]\n}"
                }
              ]
            },
            {
              "name": "Send Items Tracking - Marketplace",
              "request": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "url": {
                  "raw": "{{url}}/partnerOrders/store/:id/complementaryInfo",
                  "host": [
                    "{{url}}"
                  ],
                  "path": [
                    "partnerOrders",
                    "store",
                    ":id",
                    "complementaryInfo"
                  ],
                  "variable": [
                    {
                      "key": "id",
                      "value": "900201",
                      "description": "Id of the **partner order** (`partnerOrderId`)."
                    }
                  ]
                },
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"skus\": [\n    {\n      \"partnerPartCode\": \"SKU-A-001\",\n      \"situation\": \"enviado\",\n      \"quantity\": 2\n    },\n    {\n      \"partnerPartCode\": \"SKU-A-001\",\n      \"situation\": \"preparando\",\n      \"quantity\": 1\n    }\n  ]\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "description": "### Description\n\nAllows the **origin store** to report, item by item, the situation of each product of an order that was born in it — what has already shipped, what is being prepared, what is pending.\n\nThe body and the response are identical to those of the store route; what changes is the scope of who sends it.\n\n### Business rules\n\n#### The submission reaches only the parts it contains\n\nThe scope of the submission is the **item**, not the order: each request replaces the tracking of the parts it mentions and **leaves the others intact**. You can send one product at a time, without resending the whole order.\n\nResending an item exactly equal to the one already saved does not recreate the record: it is kept as it is.\n\n#### The same product in more than one situation\n\n`partnerPartCode` **can repeat** in the same submission, once per situation — this is how you report three units shipped and two being prepared of the same product.\n\nThe quantities **add up**; the records do not compete with each other.\n\n#### The sum does not exceed the item quantity in the order\n\nFor the same product, the sum of the reported quantities cannot exceed the quantity of that item in the order. If it does, the request is refused and **nothing is saved**.\n\n#### The product must be in the order\n\nThe `partnerPartCode` is resolved against the lines **of that order**.\n\nA code that matches no line, or that matches more than one, refuses the request — and the response says which code caused the refusal.\n\nThe `partnerPartCode` comparison is case-insensitive and ignores leading and trailing spaces: `abc-123` matches a product registered as `ABC-123`.\n\nEach product of the order must have, in the stock, a `partnerPartCode` that is filled in and not repeated in another line of the same order. A product without a registered code cannot be located by this route.\n\n### Responses\n\n**200**\n\nWhat you sent, with the verdict for each item.\n\nFor the set that is saved in the order, use **Get Items Tracking**.\n\n**400**\n\nThe body sent is not valid JSON.\n\nCheck the syntax (quotes, commas and braces); the `error` field brings the detail.\n\n**401**\n\nMissing, malformed or expired token.\n\n**404**\n\nThe order does not exist or is not in your scope.\n\n**422**\n\nTracking refused; nothing is saved.\n\nItem out of format, code not in the order or sum above the quantity. The reason comes in `message`, and nothing is saved."
              },
              "response": [
                {
                  "name": "Success — product in two situations",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "url": {
                      "raw": "{{url}}/partnerOrders/store/900201/complementaryInfo",
                      "host": [
                        "{{url}}"
                      ],
                      "path": [
                        "partnerOrders",
                        "store",
                        "900201",
                        "complementaryInfo"
                      ]
                    },
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"skus\": [\n    {\n      \"partnerPartCode\": \"SKU-A-001\",\n      \"situation\": \"enviado\",\n      \"quantity\": 2\n    },\n    {\n      \"partnerPartCode\": \"SKU-A-001\",\n      \"situation\": \"preparando\",\n      \"quantity\": 1\n    }\n  ]\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "body": "{\n  \"orderId\": 900100,\n  \"partnerOrderId\": 900201,\n  \"skus\": [\n    {\n      \"partnerPartCode\": \"SKU-A-001\",\n      \"quantity\": 2,\n      \"situation\": \"enviado\",\n      \"status\": \"valid\"\n    },\n    {\n      \"partnerPartCode\": \"SKU-A-001\",\n      \"quantity\": 1,\n      \"situation\": \"preparando\",\n      \"status\": \"valid\"\n    }\n  ]\n}"
                },
                {
                  "name": "Refusal — code that is not in the order",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "url": {
                      "raw": "{{url}}/partnerOrders/store/900201/complementaryInfo",
                      "host": [
                        "{{url}}"
                      ],
                      "path": [
                        "partnerOrders",
                        "store",
                        "900201",
                        "complementaryInfo"
                      ]
                    },
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"skus\": [\n    {\n      \"partnerPartCode\": \"SKU-A-001\",\n      \"situation\": \"enviado\",\n      \"quantity\": 2\n    },\n    {\n      \"partnerPartCode\": \"SKU-Z-999\",\n      \"situation\": \"enviado\",\n      \"quantity\": 1\n    }\n  ]\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    }
                  },
                  "status": "Unprocessable Entity",
                  "code": 422,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "body": "{\n  \"status\": \"UNPROCESSABLE_ENTITY\",\n  \"message\": \"partnerPartCode não encontrado nas linhas do pedido: SKU-Z-999\",\n  \"orderId\": 900100,\n  \"partnerOrderId\": 900201,\n  \"skus\": [\n    {\n      \"partnerPartCode\": \"SKU-A-001\",\n      \"quantity\": 2,\n      \"situation\": \"enviado\",\n      \"status\": \"valid\"\n    },\n    {\n      \"partnerPartCode\": \"SKU-Z-999\",\n      \"quantity\": 1,\n      \"situation\": \"enviado\",\n      \"status\": \"invalid\"\n    }\n  ]\n}"
                }
              ]
            },
            {
              "name": "Remove Items Tracking - Marketplace",
              "request": {
                "method": "DELETE",
                "header": [],
                "url": {
                  "raw": "{{url}}/partnerOrders/store/:id/complementaryInfo",
                  "host": [
                    "{{url}}"
                  ],
                  "path": [
                    "partnerOrders",
                    "store",
                    ":id",
                    "complementaryInfo"
                  ],
                  "variable": [
                    {
                      "key": "id",
                      "value": "900201",
                      "description": "Id of the **partner order** (`partnerOrderId`)."
                    }
                  ]
                },
                "description": "### Description\n\nDeletes, entirely, the items tracking of an order **originated in your store**.\n\nThe behavior is identical to that of the store route; what changes is the scope of who removes it.\n\n### Responses\n\n**401**\n\nMissing, malformed or expired token.\n\n**404**\n\nThe order does not exist or is not in your scope."
              },
              "response": [
                {
                  "name": "Success — tracking removed",
                  "originalRequest": {
                    "method": "DELETE",
                    "header": [],
                    "url": {
                      "raw": "{{url}}/partnerOrders/store/900201/complementaryInfo",
                      "host": [
                        "{{url}}"
                      ],
                      "path": [
                        "partnerOrders",
                        "store",
                        "900201",
                        "complementaryInfo"
                      ]
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "body": "{\n  \"orderId\": 900100,\n  \"partnerOrderId\": 900201\n}"
                }
              ]
            }
          ]
        },
        {
          "name": "Import external order",
          "item": [
            {
              "name": "Import External Order",
              "request": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "url": {
                  "raw": "{{url}}/v1/order-import",
                  "host": [
                    "{{url}}"
                  ],
                  "path": [
                    "v1",
                    "order-import"
                  ]
                },
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"externalOrderId\": \"ERP-2026-000123\",\n  \"orderDate\": \"2026-09-01T08:30:00-03:00\",\n  \"stockReduction\": {\n    \"enabled\": true,\n    \"onInsufficient\": \"REJECT\"\n  },\n  \"sendWebhook\": false,\n  \"customer\": {\n    \"name\": \"Ana Paula Ribeiro\",\n    \"documentType\": \"CPF\",\n    \"document\": \"466.935.373-08\",\n    \"email\": \"ana.ribeiro@exemplo.com.br\",\n    \"phone\": \"11987654321\"\n  },\n  \"deliveryAddress\": {\n    \"recipientName\": \"Ana Paula Ribeiro\",\n    \"zipcode\": \"01310-100\",\n    \"street\": \"Avenida Paulista\",\n    \"number\": \"1578\",\n    \"complement\": \"Conjunto 42\",\n    \"neighborhood\": \"Bela Vista\",\n    \"city\": \"São Paulo\",\n    \"state\": \"SP\"\n  },\n  \"freight\": {\n    \"name\": \"Transportadora Exemplo\",\n    \"value\": 25.9,\n    \"deliveryTimeDays\": 5\n  },\n  \"payments\": [\n    {\n      \"termInternalCode\": \"BOLETO-30-DIAS\"\n    }\n  ],\n  \"items\": [\n    {\n      \"brand\": \"Bosch\",\n      \"mfrPartCode\": \"TESTE-API-001\",\n      \"composition\": \"UNITARY\",\n      \"warehouseId\": 1001,\n      \"partnerPartCode\": \"PRODUTO-TESTE-001\",\n      \"quantity\": 2,\n      \"virtualQuantity\": 0,\n      \"unitPrice\": 89.9,\n      \"listPrice\": 99.9\n    }\n  ],\n  \"totals\": {\n    \"subtotal\": 179.8,\n    \"freight\": 25.9,\n    \"discount\": 20,\n    \"total\": 205.7\n  },\n  \"statusHistory\": [\n    {\n      \"status\": \"PAYMENT_APPROVED\",\n      \"date\": \"2026-09-01T08:35:00-03:00\"\n    }\n  ]\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "description": "### Description\n\nRecords in CWS an order placed outside the platform, such as a sale from your ERP, with customer, items, delivery, payment and status history.\n\nThe order goes into **your store**, with you as the seller. To record the order of another seller or in another store, send their documents: see **Order seller and store**.\n\n### How to identify the product\n\nEach item must carry **one** of these forms. Items of the same order can use different forms.\n\n| Form | Fields |\n| --- | --- |\n| By manufacturer data | `brand`, `mfrPartCode` and `composition`, all three together. |\n| By attribute | `skuAttributeName` and `skuAttributeValue`, both together. |\n\nThe examples use the sandbox test product: replace `warehouseId` with the id of one of your warehouses and `termInternalCode` with a payment term of your store.\n\n### Business rules\n\n#### Repeated `externalOrderId` returns the existing order\n\nThe same `externalOrderId`, for the same seller, is imported only once. A new submission responds **409** with the ids of the order already imported, and nothing is saved.\n\n#### Order seller and store\n\n| What you send | Seller | Store |\n| --- | --- | --- |\n| No document | You | Yours |\n| Only `sellerDocument` | The owner of the document | Yours |\n| Only `storeDocument` | You | The one of the document owner |\n| Both | The owner of `sellerDocument` | The one of the owner of `storeDocument` |\n\nWith `sellerDocument`, you must be the seller or the store owner. When the seller is not the store owner, both must have an authorized partnership. Outside these conditions, the response is **404**.\n\n#### Warehouse\n\nAll items of the order leave from the **same warehouse**. The item `warehouseId` applies or, without it, the seller's default import warehouse.\n\nWhen the seller does not yet have stock of the product in the warehouse, the stock is created with zero quantity.\n\n#### Stock deduction\n\nWith `stockReduction.enabled: true`, the order deducts `quantity` and `virtualQuantity` of each item. An order with final status `CANCELED`, `STRAYED` or `RETURNED` does not deduct.\n\nWhen the balance is short, `stockReduction.onInsufficient` applies:\n\n| Value | Effect |\n| --- | --- |\n| `REJECT` | The order is refused with **422**, and `insufficient` lists the items without balance, with `column` indicating the missing stock: `quantity` (real) or `virtual_quantity` (virtual). |\n| `ZERO_STOCK` | The stock without balance goes to zero, and the order is saved. |\n\n#### Payment\n\nSend in `payments` exactly **one** custom payment term of the order store, by `termInternalCode`. A term linked to a credit limit is refused.\n\n#### Delivery or pickup\n\nSend `deliveryAddress` with `freight` for delivery, or `pickupInStoreAddressId` for pickup. For delivery, the address is located or added to the customer registration.\n\nFor pickup, the point must belong to the seller and serve the order warehouse, and the customer must have a registered address.\n\n#### Customer\n\nThe customer is looked up in the order store and, if not found, created with the `customer` data. The `stateRegistration` is saved only on creation.\n\n#### Status and dates\n\nThe order status is the last one in `statusHistory`. The items come in date order, without the same status repeated on the same date.\n\nSend `orderDate` and the `statusHistory` dates with the time zone: `2026-09-01T08:30:00-03:00`. A date without time zone refuses the request with **400**.\n\n#### Cancellation reason\n\nAn order with final status `CANCELED` can carry in `cancelReason` the description of a cancellation reason registered in CWS. A description without registration refuses the order with **422**.\n\n#### Totals\n\nThe `totals` values are saved as you send them, without checking against the items.\n\n#### Webhook\n\nWith `sendWebhook: true`, the orders webhook notifies the stores with active external integration: the order store and the seller store.\n\n### Responses\n\n**201**\n\nThe ids and status of the created order.\n\n**400**\n\nInvalid body.\n\nMalformed JSON or value in an invalid format, such as a date without time zone.\n\nFields outside the rules or customer data refused by the registration. The reason comes in `message`.\n\n**401**\n\nMissing, malformed or expired token.\n\n**404**\n\nSeller, store or warehouse not found.\n\nDocument, partnership, `warehouseId` or `pickupInStoreAddressId` out of your reach. The reason comes in `message`.\n\n**409**\n\nOrder already imported.\n\nThe body carries the ids and status of the existing order, with `message`. Nothing is saved.\n\n**422**\n\nOrder refused by an import rule.\n\nProduct not found (`notFound`) or without balance with `REJECT` (`insufficient`), by the index in `items`.\n\nStock, warehouse, term, customer or cancellation reason refused, or `payments` without a single item.\n\nThe reason comes in `message`."
              },
              "response": [
                {
                  "name": "Success — order imported",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "url": {
                      "raw": "{{url}}/v1/order-import",
                      "host": [
                        "{{url}}"
                      ],
                      "path": [
                        "v1",
                        "order-import"
                      ]
                    },
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"externalOrderId\": \"ERP-2026-000123\",\n  \"orderDate\": \"2026-09-01T08:30:00-03:00\",\n  \"stockReduction\": {\n    \"enabled\": true,\n    \"onInsufficient\": \"REJECT\"\n  },\n  \"sendWebhook\": false,\n  \"customer\": {\n    \"name\": \"Ana Paula Ribeiro\",\n    \"documentType\": \"CPF\",\n    \"document\": \"466.935.373-08\",\n    \"email\": \"ana.ribeiro@exemplo.com.br\",\n    \"phone\": \"11987654321\"\n  },\n  \"deliveryAddress\": {\n    \"recipientName\": \"Ana Paula Ribeiro\",\n    \"zipcode\": \"01310-100\",\n    \"street\": \"Avenida Paulista\",\n    \"number\": \"1578\",\n    \"complement\": \"Conjunto 42\",\n    \"neighborhood\": \"Bela Vista\",\n    \"city\": \"São Paulo\",\n    \"state\": \"SP\"\n  },\n  \"freight\": {\n    \"name\": \"Transportadora Exemplo\",\n    \"value\": 25.9,\n    \"deliveryTimeDays\": 5\n  },\n  \"payments\": [\n    {\n      \"termInternalCode\": \"BOLETO-30-DIAS\"\n    }\n  ],\n  \"items\": [\n    {\n      \"brand\": \"Bosch\",\n      \"mfrPartCode\": \"TESTE-API-001\",\n      \"composition\": \"UNITARY\",\n      \"warehouseId\": 1001,\n      \"partnerPartCode\": \"PRODUTO-TESTE-001\",\n      \"quantity\": 2,\n      \"virtualQuantity\": 0,\n      \"unitPrice\": 89.9,\n      \"listPrice\": 99.9\n    }\n  ],\n  \"totals\": {\n    \"subtotal\": 179.8,\n    \"freight\": 25.9,\n    \"discount\": 20,\n    \"total\": 205.7\n  },\n  \"statusHistory\": [\n    {\n      \"status\": \"PAYMENT_APPROVED\",\n      \"date\": \"2026-09-01T08:35:00-03:00\"\n    }\n  ]\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    }
                  },
                  "status": "Created",
                  "code": 201,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "body": "{\n  \"orderId\": 900100,\n  \"partnerOrderId\": 900201,\n  \"externalOrderId\": \"ERP-2026-000123\",\n  \"status\": \"PAYMENT_APPROVED\"\n}"
                },
                {
                  "name": "Refusal — invalid JSON",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "url": {
                      "raw": "{{url}}/v1/order-import",
                      "host": [
                        "{{url}}"
                      ],
                      "path": [
                        "v1",
                        "order-import"
                      ]
                    },
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"externalOrderId\": \"ERP-2026-000123\",\n  \"orderDate\": \"2026-09-01T08:30:00-03:00\",\n  \"stockReduction\": {\n    \"enabled\": true,\n    \"onInsufficient\": \"REJECT\"\n  },\n  \"sendWebhook\": false,\n  \"customer\": {\n    \"name\": \"Ana Paula Ribeiro\",\n    \"documentType\": \"CPF\",\n    \"document\": \"466.935.373-08\",\n    \"email\": \"ana.ribeiro@exemplo.com.br\",\n    \"phone\": \"11987654321\"\n  },\n  \"deliveryAddress\": {\n    \"recipientName\": \"Ana Paula Ribeiro\",\n    \"zipcode\": \"01310-100\",\n    \"street\": \"Avenida Paulista\",\n    \"number\": \"1578\",\n    \"complement\": \"Conjunto 42\",\n    \"neighborhood\": \"Bela Vista\",\n    \"city\": \"São Paulo\",\n    \"state\": \"SP\"\n  },\n  \"freight\": {\n    \"name\": \"Transportadora Exemplo\",\n    \"value\": 25.9,\n    \"deliveryTimeDays\": 5\n  },\n  \"payments\": [\n    {\n      \"termInternalCode\": \"BOLETO-30-DIAS\"\n    }\n  ],\n  \"items\": [\n    {\n      \"brand\": \"Bosch\",\n      \"mfrPartCode\": \"TESTE-API-001\",\n      \"composition\": \"UNITARY\",\n      \"warehouseId\": 1001,\n      \"partnerPartCode\": \"PRODUTO-TESTE-001\",\n      \"quantity\": 2,\n      \"virtualQuantity\": 0,\n      \"unitPrice\": 89.9,\n      \"listPrice\": 99.9\n    }\n  ],\n  \"totals\": {\n    \"subtotal\": 179.8,\n    \"freight\": 25.9,\n    \"discount\": 20,\n    \"total\": 205.7\n  },\n  \"statusHistory\": [\n    {\n      \"status\": \"PAYMENT_APPROVED\",\n      \"date\": \"2026-09-01T08:35:00-03:00\"\n    }\n  ]\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    }
                  },
                  "status": "Bad Request",
                  "code": 400,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "body": "{\n  \"message\": \"invalid request body\"\n}"
                },
                {
                  "name": "Refusal — invalid fields",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "url": {
                      "raw": "{{url}}/v1/order-import",
                      "host": [
                        "{{url}}"
                      ],
                      "path": [
                        "v1",
                        "order-import"
                      ]
                    },
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"externalOrderId\": \"ERP-2026-000123\",\n  \"orderDate\": \"2026-09-01T08:30:00-03:00\",\n  \"stockReduction\": {\n    \"enabled\": true,\n    \"onInsufficient\": \"REJECT\"\n  },\n  \"sendWebhook\": false,\n  \"customer\": {\n    \"name\": \"Ana Paula Ribeiro\",\n    \"documentType\": \"CPF\",\n    \"document\": \"466.935.373-08\",\n    \"email\": \"ana.ribeiro@exemplo.com.br\",\n    \"phone\": \"11987654321\"\n  },\n  \"deliveryAddress\": {\n    \"recipientName\": \"Ana Paula Ribeiro\",\n    \"zipcode\": \"01310-100\",\n    \"street\": \"Avenida Paulista\",\n    \"number\": \"1578\",\n    \"complement\": \"Conjunto 42\",\n    \"neighborhood\": \"Bela Vista\",\n    \"city\": \"São Paulo\",\n    \"state\": \"SP\"\n  },\n  \"freight\": {\n    \"name\": \"Transportadora Exemplo\",\n    \"value\": 25.9,\n    \"deliveryTimeDays\": 5\n  },\n  \"payments\": [\n    {\n      \"termInternalCode\": \"BOLETO-30-DIAS\"\n    }\n  ],\n  \"items\": [\n    {\n      \"brand\": \"Bosch\",\n      \"mfrPartCode\": \"TESTE-API-001\",\n      \"composition\": \"UNITARY\",\n      \"warehouseId\": 1001,\n      \"partnerPartCode\": \"PRODUTO-TESTE-001\",\n      \"quantity\": 2,\n      \"virtualQuantity\": 0,\n      \"unitPrice\": 89.9,\n      \"listPrice\": 99.9\n    }\n  ],\n  \"totals\": {\n    \"subtotal\": 179.8,\n    \"freight\": 25.9,\n    \"discount\": 20,\n    \"total\": 205.7\n  },\n  \"statusHistory\": [\n    {\n      \"status\": \"PAYMENT_APPROVED\",\n      \"date\": \"2026-09-01T08:35:00-03:00\"\n    }\n  ]\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    }
                  },
                  "status": "Bad Request",
                  "code": 400,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "body": "{\n  \"message\": \"invalid payload: items[0].unitPrice: must be > 0; statusHistory: at least one status is required\"\n}"
                },
                {
                  "name": "Refusal — seller or store not found",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "url": {
                      "raw": "{{url}}/v1/order-import",
                      "host": [
                        "{{url}}"
                      ],
                      "path": [
                        "v1",
                        "order-import"
                      ]
                    },
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"externalOrderId\": \"ERP-2026-000123\",\n  \"orderDate\": \"2026-09-01T08:30:00-03:00\",\n  \"stockReduction\": {\n    \"enabled\": true,\n    \"onInsufficient\": \"REJECT\"\n  },\n  \"sendWebhook\": false,\n  \"customer\": {\n    \"name\": \"Ana Paula Ribeiro\",\n    \"documentType\": \"CPF\",\n    \"document\": \"466.935.373-08\",\n    \"email\": \"ana.ribeiro@exemplo.com.br\",\n    \"phone\": \"11987654321\"\n  },\n  \"deliveryAddress\": {\n    \"recipientName\": \"Ana Paula Ribeiro\",\n    \"zipcode\": \"01310-100\",\n    \"street\": \"Avenida Paulista\",\n    \"number\": \"1578\",\n    \"complement\": \"Conjunto 42\",\n    \"neighborhood\": \"Bela Vista\",\n    \"city\": \"São Paulo\",\n    \"state\": \"SP\"\n  },\n  \"freight\": {\n    \"name\": \"Transportadora Exemplo\",\n    \"value\": 25.9,\n    \"deliveryTimeDays\": 5\n  },\n  \"payments\": [\n    {\n      \"termInternalCode\": \"BOLETO-30-DIAS\"\n    }\n  ],\n  \"items\": [\n    {\n      \"brand\": \"Bosch\",\n      \"mfrPartCode\": \"TESTE-API-001\",\n      \"composition\": \"UNITARY\",\n      \"warehouseId\": 1001,\n      \"partnerPartCode\": \"PRODUTO-TESTE-001\",\n      \"quantity\": 2,\n      \"virtualQuantity\": 0,\n      \"unitPrice\": 89.9,\n      \"listPrice\": 99.9\n    }\n  ],\n  \"totals\": {\n    \"subtotal\": 179.8,\n    \"freight\": 25.9,\n    \"discount\": 20,\n    \"total\": 205.7\n  },\n  \"statusHistory\": [\n    {\n      \"status\": \"PAYMENT_APPROVED\",\n      \"date\": \"2026-09-01T08:35:00-03:00\"\n    }\n  ]\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    }
                  },
                  "status": "Not Found",
                  "code": 404,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "body": "{\n  \"message\": \"seller or store not found\"\n}"
                },
                {
                  "name": "Refusal — order already imported",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "url": {
                      "raw": "{{url}}/v1/order-import",
                      "host": [
                        "{{url}}"
                      ],
                      "path": [
                        "v1",
                        "order-import"
                      ]
                    },
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"externalOrderId\": \"ERP-2026-000123\",\n  \"orderDate\": \"2026-09-01T08:30:00-03:00\",\n  \"stockReduction\": {\n    \"enabled\": true,\n    \"onInsufficient\": \"REJECT\"\n  },\n  \"sendWebhook\": false,\n  \"customer\": {\n    \"name\": \"Ana Paula Ribeiro\",\n    \"documentType\": \"CPF\",\n    \"document\": \"466.935.373-08\",\n    \"email\": \"ana.ribeiro@exemplo.com.br\",\n    \"phone\": \"11987654321\"\n  },\n  \"deliveryAddress\": {\n    \"recipientName\": \"Ana Paula Ribeiro\",\n    \"zipcode\": \"01310-100\",\n    \"street\": \"Avenida Paulista\",\n    \"number\": \"1578\",\n    \"complement\": \"Conjunto 42\",\n    \"neighborhood\": \"Bela Vista\",\n    \"city\": \"São Paulo\",\n    \"state\": \"SP\"\n  },\n  \"freight\": {\n    \"name\": \"Transportadora Exemplo\",\n    \"value\": 25.9,\n    \"deliveryTimeDays\": 5\n  },\n  \"payments\": [\n    {\n      \"termInternalCode\": \"BOLETO-30-DIAS\"\n    }\n  ],\n  \"items\": [\n    {\n      \"brand\": \"Bosch\",\n      \"mfrPartCode\": \"TESTE-API-001\",\n      \"composition\": \"UNITARY\",\n      \"warehouseId\": 1001,\n      \"partnerPartCode\": \"PRODUTO-TESTE-001\",\n      \"quantity\": 2,\n      \"virtualQuantity\": 0,\n      \"unitPrice\": 89.9,\n      \"listPrice\": 99.9\n    }\n  ],\n  \"totals\": {\n    \"subtotal\": 179.8,\n    \"freight\": 25.9,\n    \"discount\": 20,\n    \"total\": 205.7\n  },\n  \"statusHistory\": [\n    {\n      \"status\": \"PAYMENT_APPROVED\",\n      \"date\": \"2026-09-01T08:35:00-03:00\"\n    }\n  ]\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    }
                  },
                  "status": "Conflict",
                  "code": 409,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "body": "{\n  \"orderId\": 900100,\n  \"partnerOrderId\": 900201,\n  \"externalOrderId\": \"ERP-2026-000123\",\n  \"status\": \"PAYMENT_APPROVED\",\n  \"message\": \"order already imported\"\n}"
                },
                {
                  "name": "Refusal — product not found",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "url": {
                      "raw": "{{url}}/v1/order-import",
                      "host": [
                        "{{url}}"
                      ],
                      "path": [
                        "v1",
                        "order-import"
                      ]
                    },
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"externalOrderId\": \"ERP-2026-000123\",\n  \"orderDate\": \"2026-09-01T08:30:00-03:00\",\n  \"stockReduction\": {\n    \"enabled\": true,\n    \"onInsufficient\": \"REJECT\"\n  },\n  \"sendWebhook\": false,\n  \"customer\": {\n    \"name\": \"Ana Paula Ribeiro\",\n    \"documentType\": \"CPF\",\n    \"document\": \"466.935.373-08\",\n    \"email\": \"ana.ribeiro@exemplo.com.br\",\n    \"phone\": \"11987654321\"\n  },\n  \"deliveryAddress\": {\n    \"recipientName\": \"Ana Paula Ribeiro\",\n    \"zipcode\": \"01310-100\",\n    \"street\": \"Avenida Paulista\",\n    \"number\": \"1578\",\n    \"complement\": \"Conjunto 42\",\n    \"neighborhood\": \"Bela Vista\",\n    \"city\": \"São Paulo\",\n    \"state\": \"SP\"\n  },\n  \"freight\": {\n    \"name\": \"Transportadora Exemplo\",\n    \"value\": 25.9,\n    \"deliveryTimeDays\": 5\n  },\n  \"payments\": [\n    {\n      \"termInternalCode\": \"BOLETO-30-DIAS\"\n    }\n  ],\n  \"items\": [\n    {\n      \"brand\": \"Bosch\",\n      \"mfrPartCode\": \"TESTE-API-001\",\n      \"composition\": \"UNITARY\",\n      \"warehouseId\": 1001,\n      \"partnerPartCode\": \"PRODUTO-TESTE-001\",\n      \"quantity\": 2,\n      \"virtualQuantity\": 0,\n      \"unitPrice\": 89.9,\n      \"listPrice\": 99.9\n    }\n  ],\n  \"totals\": {\n    \"subtotal\": 179.8,\n    \"freight\": 25.9,\n    \"discount\": 20,\n    \"total\": 205.7\n  },\n  \"statusHistory\": [\n    {\n      \"status\": \"PAYMENT_APPROVED\",\n      \"date\": \"2026-09-01T08:35:00-03:00\"\n    }\n  ]\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    }
                  },
                  "status": "Unprocessable Entity",
                  "code": 422,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "body": "{\n  \"message\": \"products not found\",\n  \"notFound\": [\n    {\n      \"index\": 0,\n      \"brand\": \"Bosch\",\n      \"mfrPartCode\": \"TESTE-API-001\",\n      \"composition\": \"UNITARY\"\n    }\n  ]\n}"
                },
                {
                  "name": "Refusal — insufficient balance",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "url": {
                      "raw": "{{url}}/v1/order-import",
                      "host": [
                        "{{url}}"
                      ],
                      "path": [
                        "v1",
                        "order-import"
                      ]
                    },
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"externalOrderId\": \"ERP-2026-000123\",\n  \"orderDate\": \"2026-09-01T08:30:00-03:00\",\n  \"stockReduction\": {\n    \"enabled\": true,\n    \"onInsufficient\": \"REJECT\"\n  },\n  \"sendWebhook\": false,\n  \"customer\": {\n    \"name\": \"Ana Paula Ribeiro\",\n    \"documentType\": \"CPF\",\n    \"document\": \"466.935.373-08\",\n    \"email\": \"ana.ribeiro@exemplo.com.br\",\n    \"phone\": \"11987654321\"\n  },\n  \"deliveryAddress\": {\n    \"recipientName\": \"Ana Paula Ribeiro\",\n    \"zipcode\": \"01310-100\",\n    \"street\": \"Avenida Paulista\",\n    \"number\": \"1578\",\n    \"complement\": \"Conjunto 42\",\n    \"neighborhood\": \"Bela Vista\",\n    \"city\": \"São Paulo\",\n    \"state\": \"SP\"\n  },\n  \"freight\": {\n    \"name\": \"Transportadora Exemplo\",\n    \"value\": 25.9,\n    \"deliveryTimeDays\": 5\n  },\n  \"payments\": [\n    {\n      \"termInternalCode\": \"BOLETO-30-DIAS\"\n    }\n  ],\n  \"items\": [\n    {\n      \"brand\": \"Bosch\",\n      \"mfrPartCode\": \"TESTE-API-001\",\n      \"composition\": \"UNITARY\",\n      \"warehouseId\": 1001,\n      \"partnerPartCode\": \"PRODUTO-TESTE-001\",\n      \"quantity\": 2,\n      \"virtualQuantity\": 0,\n      \"unitPrice\": 89.9,\n      \"listPrice\": 99.9\n    }\n  ],\n  \"totals\": {\n    \"subtotal\": 179.8,\n    \"freight\": 25.9,\n    \"discount\": 20,\n    \"total\": 205.7\n  },\n  \"statusHistory\": [\n    {\n      \"status\": \"PAYMENT_APPROVED\",\n      \"date\": \"2026-09-01T08:35:00-03:00\"\n    }\n  ]\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    }
                  },
                  "status": "Unprocessable Entity",
                  "code": 422,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "body": "{\n  \"message\": \"insufficient stock\",\n  \"insufficient\": [\n    {\n      \"index\": 0,\n      \"column\": \"quantity\"\n    }\n  ]\n}"
                },
                {
                  "name": "Refusal — payment term not found",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "url": {
                      "raw": "{{url}}/v1/order-import",
                      "host": [
                        "{{url}}"
                      ],
                      "path": [
                        "v1",
                        "order-import"
                      ]
                    },
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"externalOrderId\": \"ERP-2026-000123\",\n  \"orderDate\": \"2026-09-01T08:30:00-03:00\",\n  \"stockReduction\": {\n    \"enabled\": true,\n    \"onInsufficient\": \"REJECT\"\n  },\n  \"sendWebhook\": false,\n  \"customer\": {\n    \"name\": \"Ana Paula Ribeiro\",\n    \"documentType\": \"CPF\",\n    \"document\": \"466.935.373-08\",\n    \"email\": \"ana.ribeiro@exemplo.com.br\",\n    \"phone\": \"11987654321\"\n  },\n  \"deliveryAddress\": {\n    \"recipientName\": \"Ana Paula Ribeiro\",\n    \"zipcode\": \"01310-100\",\n    \"street\": \"Avenida Paulista\",\n    \"number\": \"1578\",\n    \"complement\": \"Conjunto 42\",\n    \"neighborhood\": \"Bela Vista\",\n    \"city\": \"São Paulo\",\n    \"state\": \"SP\"\n  },\n  \"freight\": {\n    \"name\": \"Transportadora Exemplo\",\n    \"value\": 25.9,\n    \"deliveryTimeDays\": 5\n  },\n  \"payments\": [\n    {\n      \"termInternalCode\": \"BOLETO-30-DIAS\"\n    }\n  ],\n  \"items\": [\n    {\n      \"brand\": \"Bosch\",\n      \"mfrPartCode\": \"TESTE-API-001\",\n      \"composition\": \"UNITARY\",\n      \"warehouseId\": 1001,\n      \"partnerPartCode\": \"PRODUTO-TESTE-001\",\n      \"quantity\": 2,\n      \"virtualQuantity\": 0,\n      \"unitPrice\": 89.9,\n      \"listPrice\": 99.9\n    }\n  ],\n  \"totals\": {\n    \"subtotal\": 179.8,\n    \"freight\": 25.9,\n    \"discount\": 20,\n    \"total\": 205.7\n  },\n  \"statusHistory\": [\n    {\n      \"status\": \"PAYMENT_APPROVED\",\n      \"date\": \"2026-09-01T08:35:00-03:00\"\n    }\n  ]\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    }
                  },
                  "status": "Unprocessable Entity",
                  "code": 422,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "body": "{\n  \"message\": \"payment term not found\"\n}"
                }
              ]
            }
          ]
        }
      ]
    },
    {
      "name": "Customers",
      "description": "Services for the complete management of customer registration data, their addresses and groups.",
      "item": [
        {
          "name": "Customer Management",
          "item": [
            {
              "name": "Get Customer by Document",
              "request": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{url}}/v1/customer/document/:document",
                  "host": [
                    "{{url}}"
                  ],
                  "path": [
                    "v1",
                    "customer",
                    "document",
                    ":document"
                  ],
                  "variable": [
                    {
                      "key": "document",
                      "value": "46693537308",
                      "description": "Customer's CPF or CNPJ, **without punctuation**. See the rule below."
                    }
                  ]
                },
                "description": "### Description\n\nFinds a customer of your store by document and returns the complete registration, with addresses and price links.\n\n### Business rules\n\n#### The document goes without punctuation\n\nSend only the digits: `46693537308`, not `466.935.373-08`.\n\nA punctuated CNPJ carries a **slash** (`57.578.030/0001-05`), which splits the path into two segments — the request does not reach this endpoint and you get `404 {\"status\":\"NOT_FOUND\",\"message\":\"Serviço não encontrado\"}`, which is the response for a nonexistent route, not for a nonexistent customer.\n\n### Responses\n\n**200**\n\nThe customer, inside the `customer` key.\n\n**401**\n\nMissing, malformed or expired token.\n\n**404**\n\nDocument not registered in your store.\n\nSend only the digits of the CPF or CNPJ."
              },
              "response": [
                {
                  "name": "Success — individual",
                  "originalRequest": {
                    "method": "GET",
                    "header": [],
                    "url": {
                      "raw": "{{url}}/v1/customer/document/46693537308",
                      "host": [
                        "{{url}}"
                      ],
                      "path": [
                        "v1",
                        "customer",
                        "document",
                        "46693537308"
                      ]
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "body": "{\n  \"customer\": {\n    \"id\": 4470601,\n    \"document\": \"466.935.373-08\",\n    \"name\": \"Ana Paula Ribeiro\",\n    \"tradingName\": \"\",\n    \"contactName\": \"Ana Paula Ribeiro\",\n    \"email\": \"ana.ribeiro@exemplo.com.br\",\n    \"phone\": \"(11) 98765-4321\",\n    \"dateCreated\": \"2026-09-01T13:42:07Z\",\n    \"active\": true,\n    \"passwordExpired\": false,\n    \"stateRegistration\": \"isento\",\n    \"cnae\": \"\",\n    \"paysIcms\": false,\n    \"genre\": \"F\",\n    \"birthdate\": \"1988-04-12\",\n    \"politicallyExposedPerson\": false,\n    \"federalEmployee\": \"N\",\n    \"optinTracking\": true,\n    \"trackingPhone\": \"(11) 98765-4321\",\n    \"optinPath\": \"API\",\n    \"address\": [\n      {\n        \"id\": 4470701,\n        \"name\": \"Endereço de cadastro\",\n        \"zipcode\": \"01310-100\",\n        \"street\": \"Avenida Paulista\",\n        \"number\": \"1578\",\n        \"complement\": \"Conjunto 42\",\n        \"quarter\": \"Bela Vista\",\n        \"city\": \"São Paulo\",\n        \"state\": \"SP\",\n        \"principal\": true,\n        \"addressType\": \"RESIDENTIAL\",\n        \"farmerStateRegistration\": \"\"\n      }\n    ],\n    \"customerRegistrationAddress\": {\n      \"id\": 4470701,\n      \"name\": \"\",\n      \"zipcode\": \"01310-100\",\n      \"street\": \"Avenida Paulista\",\n      \"number\": \"1578\",\n      \"complement\": \"Conjunto 42\",\n      \"quarter\": \"Bela Vista\",\n      \"city\": \"São Paulo\",\n      \"state\": \"SP\",\n      \"principal\": false,\n      \"addressType\": \"RESIDENTIAL\",\n      \"farmerStateRegistration\": \"\"\n    },\n    \"priceRuleTag\": null,\n    \"customerTypeList\": null,\n    \"customerGroupList\": null\n  }\n}"
                }
              ]
            },
            {
              "name": "Create New Customer",
              "request": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "url": {
                  "raw": "{{url}}/v1/customer",
                  "host": [
                    "{{url}}"
                  ],
                  "path": [
                    "v1",
                    "customer"
                  ]
                },
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"documentType\": \"cpf\",\n  \"document\": \"46693537308\",\n  \"username\": \"ana.ribeiro@exemplo.com.br\",\n  \"name\": \"Ana Paula Ribeiro\",\n  \"contactName\": \"Ana Paula Ribeiro\",\n  \"phone\": \"11987654321\",\n  \"password\": \"sua-senha\",\n  \"optinTracking\": true,\n  \"trackingPhone\": \"11987654321\",\n  \"customerRegistrationAddress\": {\n    \"zipcode\": \"01310-100\",\n    \"street\": \"Avenida Paulista\",\n    \"number\": \"1578\",\n    \"complement\": \"Conjunto 42\",\n    \"quarter\": \"Bela Vista\",\n    \"city\": \"São Paulo\",\n    \"state\": \"SP\",\n    \"addressType\": \"RESIDENTIAL\",\n    \"principal\": true\n  }\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "description": "### Description\n\nRegisters a customer in your store, with the address and, optionally, the type, group and price tag links.\n\nThe created customer can already access the store with the `username` and password provided.\n\n### Business rules\n\n#### `customerRegistrationAddress` and `addressList` store different things\n\nBoth are addresses, but they go to different places and **sending only one of them has different effects**:\n\n| What you send | What the customer gets |\n| --- | --- |\n| Only `customerRegistrationAddress` | Registration address filled in, and **no delivery address** — the list stays empty. |\n| Only `addressList`, with one item `principal: true` | The delivery addresses of the list, and the registration address **copied from the principal item**. |\n| Both | The delivery addresses of the list and the registration address you provided. |\n| Only `addressList` without any `principal: true` | **Rejected** — there is no registration address to determine. |\n| Neither | **Rejected.** |\n\n#### The ZIP code rules the address\n\nThe address is resolved by Correios from the `zipcode`: **what Correios returns replaces what you sent** in `street`, `quarter`, `city` and `state`.\n\nOf what you send, **`number` and `complement`** are always kept, because Correios does not have this data.\n\nThe fields you send work as a **fallback**: each one is used only when Correios does not bring that data for the ZIP code.\n\nAfter this combination, `street` and `quarter` cannot be empty: if they are, the creation is rejected.\n\nA ZIP code that is not found is also rejected, unless your store has ZIP code validation disabled.\n\n#### An `addressType` outside the list becomes `RESIDENTIAL`\n\nA value other than `RESIDENTIAL`/`BUSINESS` is stored as `RESIDENTIAL`.\n\n### Responses\n\n**200**\n\nThe created customer.\n\n**400**\n\nInvalid body or customer already registered.\n\nThe body is not valid JSON. Check the syntax (quotes, commas and braces).\n\n**E-mail or document already registered** in your store: the customer already exists.\n\n**401**\n\nMissing, malformed or expired token.\n\n**422**\n\nField with an invalid value.\n\nField rejected by validation. The message names the field."
              },
              "response": [
                {
                  "name": "Success — individual",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "url": {
                      "raw": "{{url}}/v1/customer",
                      "host": [
                        "{{url}}"
                      ],
                      "path": [
                        "v1",
                        "customer"
                      ]
                    },
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"documentType\": \"cpf\",\n  \"document\": \"46693537308\",\n  \"username\": \"ana.ribeiro@exemplo.com.br\",\n  \"name\": \"Ana Paula Ribeiro\",\n  \"contactName\": \"Ana Paula Ribeiro\",\n  \"phone\": \"11987654321\",\n  \"password\": \"sua-senha\",\n  \"optinTracking\": true,\n  \"trackingPhone\": \"11987654321\",\n  \"customerRegistrationAddress\": {\n    \"zipcode\": \"01310-100\",\n    \"street\": \"Avenida Paulista\",\n    \"number\": \"1578\",\n    \"complement\": \"Conjunto 42\",\n    \"quarter\": \"Bela Vista\",\n    \"city\": \"São Paulo\",\n    \"state\": \"SP\",\n    \"addressType\": \"RESIDENTIAL\",\n    \"principal\": true\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "body": "{\n  \"id\": 4470601,\n  \"document\": \"466.935.373-08\",\n  \"name\": \"Ana Paula Ribeiro\",\n  \"tradingName\": \"\",\n  \"contactName\": \"Ana Paula Ribeiro\",\n  \"email\": \"ana.ribeiro@exemplo.com.br\",\n  \"phone\": \"(11) 98765-4321\",\n  \"dateCreated\": \"2026-09-01T13:42:07Z\",\n  \"active\": true,\n  \"passwordExpired\": false,\n  \"stateRegistration\": \"isento\",\n  \"cnae\": \"\",\n  \"paysIcms\": false,\n  \"genre\": \"F\",\n  \"birthdate\": \"1988-04-12\",\n  \"politicallyExposedPerson\": false,\n  \"federalEmployee\": \"N\",\n  \"optinTracking\": true,\n  \"trackingPhone\": \"(11) 98765-4321\",\n  \"optinPath\": \"API\",\n  \"address\": [\n    {\n      \"id\": 4470701,\n      \"name\": \"Endereço de cadastro\",\n      \"zipcode\": \"01310-100\",\n      \"street\": \"Avenida Paulista\",\n      \"number\": \"1578\",\n      \"complement\": \"Conjunto 42\",\n      \"quarter\": \"Bela Vista\",\n      \"city\": \"São Paulo\",\n      \"state\": \"SP\",\n      \"principal\": true,\n      \"addressType\": \"RESIDENTIAL\",\n      \"farmerStateRegistration\": \"\"\n    }\n  ],\n  \"customerRegistrationAddress\": {\n    \"id\": 4470701,\n    \"name\": \"\",\n    \"zipcode\": \"01310-100\",\n    \"street\": \"Avenida Paulista\",\n    \"number\": \"1578\",\n    \"complement\": \"Conjunto 42\",\n    \"quarter\": \"Bela Vista\",\n    \"city\": \"São Paulo\",\n    \"state\": \"SP\",\n    \"principal\": false,\n    \"addressType\": \"RESIDENTIAL\",\n    \"farmerStateRegistration\": \"\"\n  },\n  \"priceRuleTag\": null,\n  \"customerTypeList\": null,\n  \"customerGroupList\": null\n}"
                },
                {
                  "name": "Success — company",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "url": {
                      "raw": "{{url}}/v1/customer",
                      "host": [
                        "{{url}}"
                      ],
                      "path": [
                        "v1",
                        "customer"
                      ]
                    },
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"documentType\": \"cnpj\",\n  \"document\": \"57578030000105\",\n  \"username\": \"compras@auroradistribuidora.com.br\",\n  \"name\": \"Comercial Aurora Ltda\",\n  \"tradingName\": \"Aurora Distribuidora\",\n  \"contactName\": \"Marcos Aurélio\",\n  \"phone\": \"11987654321\",\n  \"password\": \"sua-senha\",\n  \"stateRegistration\": \"123456789\",\n  \"cnae\": \"4530703\",\n  \"paysIcms\": true,\n  \"customerRegistrationAddress\": {\n    \"zipcode\": \"01310-100\",\n    \"street\": \"Avenida Paulista\",\n    \"number\": \"1578\",\n    \"complement\": \"Conjunto 42\",\n    \"quarter\": \"Bela Vista\",\n    \"city\": \"São Paulo\",\n    \"state\": \"SP\",\n    \"addressType\": \"BUSINESS\",\n    \"principal\": true\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "body": "{\n  \"id\": 4470602,\n  \"document\": \"57.578.030/0001-05\",\n  \"name\": \"Comercial Aurora Ltda\",\n  \"tradingName\": \"Aurora Distribuidora\",\n  \"contactName\": \"Marcos Aurélio\",\n  \"email\": \"compras@auroradistribuidora.com.br\",\n  \"phone\": \"(11) 98765-4321\",\n  \"dateCreated\": \"2026-09-01T13:42:07Z\",\n  \"active\": true,\n  \"passwordExpired\": false,\n  \"stateRegistration\": \"123456789\",\n  \"cnae\": \"4530703\",\n  \"paysIcms\": true,\n  \"genre\": \"\",\n  \"birthdate\": \"\",\n  \"politicallyExposedPerson\": false,\n  \"federalEmployee\": \"N\",\n  \"optinTracking\": true,\n  \"trackingPhone\": \"(11) 98765-4321\",\n  \"optinPath\": \"API\",\n  \"address\": [\n    {\n      \"id\": 4470701,\n      \"name\": \"Endereço de cadastro\",\n      \"zipcode\": \"01310-100\",\n      \"street\": \"Avenida Paulista\",\n      \"number\": \"1578\",\n      \"complement\": \"Conjunto 42\",\n      \"quarter\": \"Bela Vista\",\n      \"city\": \"São Paulo\",\n      \"state\": \"SP\",\n      \"principal\": true,\n      \"addressType\": \"RESIDENTIAL\",\n      \"farmerStateRegistration\": \"\"\n    }\n  ],\n  \"customerRegistrationAddress\": {\n    \"id\": 4470701,\n    \"name\": \"\",\n    \"zipcode\": \"01310-100\",\n    \"street\": \"Avenida Paulista\",\n    \"number\": \"1578\",\n    \"complement\": \"Conjunto 42\",\n    \"quarter\": \"Bela Vista\",\n    \"city\": \"São Paulo\",\n    \"state\": \"SP\",\n    \"principal\": false,\n    \"addressType\": \"RESIDENTIAL\",\n    \"farmerStateRegistration\": \"\"\n  },\n  \"priceRuleTag\": null,\n  \"customerTypeList\": null,\n  \"customerGroupList\": null\n}"
                },
                {
                  "name": "Refusal — field with an invalid value",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "url": {
                      "raw": "{{url}}/v1/customer",
                      "host": [
                        "{{url}}"
                      ],
                      "path": [
                        "v1",
                        "customer"
                      ]
                    },
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"documentType\": \"cpf\",\n  \"document\": \"46693537308\",\n  \"username\": \"ana.ribeiro@exemplo.com.br\",\n  \"name\": \"Ana Paula Ribeiro\",\n  \"contactName\": \"Ana Paula Ribeiro\",\n  \"phone\": \"11987654321\",\n  \"password\": \"sua-senha\",\n  \"optinTracking\": true,\n  \"trackingPhone\": \"11987654321\",\n  \"customerRegistrationAddress\": {\n    \"zipcode\": \"01310-100\",\n    \"street\": \"Avenida Paulista\",\n    \"number\": \"1578\",\n    \"complement\": \"Conjunto 42\",\n    \"quarter\": \"Bela Vista\",\n    \"city\": \"São Paulo\",\n    \"state\": \"SP\",\n    \"addressType\": \"RESIDENTIAL\",\n    \"principal\": true\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    }
                  },
                  "status": "Unprocessable Entity",
                  "code": 422,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "body": "{\n  \"status\": \"UNPROCESSABLE_ENTITY\",\n  \"message\": \"Property [campo] with value [x] does not pass validation\"\n}"
                }
              ]
            },
            {
              "name": "Update Customer Registration Data",
              "request": {
                "method": "PUT",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "url": {
                  "raw": "{{url}}/v1/customer/:document",
                  "host": [
                    "{{url}}"
                  ],
                  "path": [
                    "v1",
                    "customer",
                    ":document"
                  ],
                  "variable": [
                    {
                      "key": "document",
                      "value": "46693537308",
                      "description": "Customer's CPF or CNPJ."
                    }
                  ]
                },
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"contactName\": \"Ana Paula Ribeiro\",\n  \"phone\": \"11912345678\",\n  \"optinTracking\": false\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "description": "### Description\n\nUpdates the registration of a customer of your store. It is a **partial** update: send only the fields you want to change.\n\nAll fields are optional — **an omitted field is not changed**.\n\n### Business rules\n\n#### `active` here does the same as the status endpoint\n\nSending `active` on this route has the same effect as `PUT /customer/updateStatus/{document}/{active}`. Both paths exist and change the same thing.\n\n#### An empty body is accepted\n\n`{}` responds **200** with the current registration, without changing anything.\n\n### Responses\n\n**200**\n\nThe updated customer.\n\n**401**\n\nMissing, malformed or expired token.\n\n**404**\n\nDocument not registered in your store.\n\n**422**\n\nField with an invalid value.\n\nField rejected by validation: `Property [field] with value [x] does not pass validation`. The message names the field."
              },
              "response": [
                {
                  "name": "Success — phone and opt-in updated",
                  "originalRequest": {
                    "method": "PUT",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "url": {
                      "raw": "{{url}}/v1/customer/46693537308",
                      "host": [
                        "{{url}}"
                      ],
                      "path": [
                        "v1",
                        "customer",
                        "46693537308"
                      ]
                    },
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"contactName\": \"Ana Paula Ribeiro\",\n  \"phone\": \"11912345678\",\n  \"optinTracking\": false\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "body": "{\n  \"id\": 4470601,\n  \"document\": \"466.935.373-08\",\n  \"name\": \"Ana Paula Ribeiro\",\n  \"tradingName\": \"\",\n  \"contactName\": \"Ana Paula Ribeiro\",\n  \"email\": \"ana.ribeiro@exemplo.com.br\",\n  \"phone\": \"(11) 91234-5678\",\n  \"dateCreated\": \"2026-09-01T13:42:07Z\",\n  \"active\": true,\n  \"passwordExpired\": false,\n  \"stateRegistration\": \"isento\",\n  \"cnae\": \"\",\n  \"paysIcms\": false,\n  \"genre\": \"F\",\n  \"birthdate\": \"1988-04-12\",\n  \"politicallyExposedPerson\": false,\n  \"federalEmployee\": \"N\",\n  \"optinTracking\": false,\n  \"trackingPhone\": \"(11) 98765-4321\",\n  \"optinPath\": \"API\",\n  \"address\": [\n    {\n      \"id\": 4470701,\n      \"name\": \"Endereço de cadastro\",\n      \"zipcode\": \"01310-100\",\n      \"street\": \"Avenida Paulista\",\n      \"number\": \"1578\",\n      \"complement\": \"Conjunto 42\",\n      \"quarter\": \"Bela Vista\",\n      \"city\": \"São Paulo\",\n      \"state\": \"SP\",\n      \"principal\": true,\n      \"addressType\": \"RESIDENTIAL\",\n      \"farmerStateRegistration\": \"\"\n    }\n  ],\n  \"customerRegistrationAddress\": {\n    \"id\": 4470701,\n    \"name\": \"\",\n    \"zipcode\": \"01310-100\",\n    \"street\": \"Avenida Paulista\",\n    \"number\": \"1578\",\n    \"complement\": \"Conjunto 42\",\n    \"quarter\": \"Bela Vista\",\n    \"city\": \"São Paulo\",\n    \"state\": \"SP\",\n    \"principal\": false,\n    \"addressType\": \"RESIDENTIAL\",\n    \"farmerStateRegistration\": \"\"\n  },\n  \"priceRuleTag\": null,\n  \"customerTypeList\": null,\n  \"customerGroupList\": null\n}"
                }
              ]
            },
            {
              "name": "Activate or Deactivate Customer",
              "request": {
                "method": "PUT",
                "header": [],
                "url": {
                  "raw": "{{url}}/customer/updateStatus/:document/:active",
                  "host": [
                    "{{url}}"
                  ],
                  "path": [
                    "customer",
                    "updateStatus",
                    ":document",
                    ":active"
                  ],
                  "variable": [
                    {
                      "key": "document",
                      "value": "46693537308",
                      "description": "Customer's CPF or CNPJ."
                    },
                    {
                      "key": "active",
                      "value": "false",
                      "description": "`true` activates, `false` deactivates. Only these two values."
                    }
                  ]
                },
                "description": "### Description\n\nActivates or deactivates a customer of your store. An inactive customer cannot access the store or complete a purchase.\n\n### Responses\n\n**202**\n\n**Status 202 Accepted.**\n\n**400**\n\n`active` other than `true` or `false`.\n\n**401**\n\nMissing, malformed or expired token.\n\n**404**\n\nDocument not registered in your store."
              },
              "response": [
                {
                  "name": "Success — customer deactivated",
                  "originalRequest": {
                    "method": "PUT",
                    "header": [],
                    "url": {
                      "raw": "{{url}}/customer/updateStatus/46693537308/false",
                      "host": [
                        "{{url}}"
                      ],
                      "path": [
                        "customer",
                        "updateStatus",
                        "46693537308",
                        "false"
                      ]
                    }
                  },
                  "status": "Accepted",
                  "code": 202,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "body": "{\n  \"status\": \"ACCEPTED\",\n  \"message\": \"Status do cliente atualizado com sucesso.\"\n}"
                },
                {
                  "name": "Refusal — `active` other than `true` or `false`",
                  "originalRequest": {
                    "method": "PUT",
                    "header": [],
                    "url": {
                      "raw": "{{url}}/customer/updateStatus/46693537308/false",
                      "host": [
                        "{{url}}"
                      ],
                      "path": [
                        "customer",
                        "updateStatus",
                        "46693537308",
                        "false"
                      ]
                    }
                  },
                  "status": "Bad Request",
                  "code": 400,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "body": "{\n  \"status\": \"BAD_REQUEST\"\n}"
                }
              ]
            }
          ]
        },
        {
          "name": "Addresses",
          "item": [
            {
              "name": "Add Address to Customer",
              "request": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "url": {
                  "raw": "{{url}}/customer/:document/address",
                  "host": [
                    "{{url}}"
                  ],
                  "path": [
                    "customer",
                    ":document",
                    "address"
                  ],
                  "variable": [
                    {
                      "key": "document",
                      "value": "46693537308",
                      "description": "Customer's CPF or CNPJ."
                    }
                  ]
                },
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"name\": \"Escritório\",\n  \"zipcode\": \"01310-100\",\n  \"street\": \"Avenida Paulista\",\n  \"number\": \"2000\",\n  \"complement\": \"12º andar\",\n  \"quarter\": \"Bela Vista\",\n  \"city\": \"São Paulo\",\n  \"state\": \"SP\",\n  \"addressType\": \"BUSINESS\",\n  \"principal\": false,\n  \"howToReachLocationDescription\": \"Entrada pela portaria B\",\n  \"responsibleContact\": \"Marcos Aurélio\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "description": "### Description\n\nAdds an address to the registration of a customer of your store.\n\n### Business rules\n\n#### The ZIP code rules the address\n\nThe address is resolved by Correios from the `zipcode`: **what Correios returns replaces what you sent** in `street`, `quarter`, `city` and `state`.\n\nOf what you send, **`number` and `complement`** are always kept, because Correios does not have this data.\n\nThe fields you send work as a **fallback**: each one is used only when Correios does not bring that data for the ZIP code.\n\nAfter this combination, `street` and `quarter` cannot be empty: if they are, the address is rejected.\n\nA ZIP code that is not found is also rejected, unless your store has ZIP code validation disabled.\n\n#### `addressType` accepts only two values\n\n`RESIDENTIAL` or `BUSINESS`, in any case. Any other value is **rejected** with `Property addressType is type-mismatched`.\n\n### Responses\n\n**200**\n\nThe created address.\n\n**400**\n\nInvalid address data.\n\n`name` missing, `addressType` other than the two values or `addressAttributes` attribute outside the store setup.\n\n**401**\n\nMissing, malformed or expired token.\n\n**404**\n\nDocument not registered in your store."
              },
              "response": [
                {
                  "name": "Success — address added",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "url": {
                      "raw": "{{url}}/customer/46693537308/address",
                      "host": [
                        "{{url}}"
                      ],
                      "path": [
                        "customer",
                        "46693537308",
                        "address"
                      ]
                    },
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"name\": \"Escritório\",\n  \"zipcode\": \"01310-100\",\n  \"street\": \"Avenida Paulista\",\n  \"number\": \"2000\",\n  \"complement\": \"12º andar\",\n  \"quarter\": \"Bela Vista\",\n  \"city\": \"São Paulo\",\n  \"state\": \"SP\",\n  \"addressType\": \"BUSINESS\",\n  \"principal\": false,\n  \"howToReachLocationDescription\": \"Entrada pela portaria B\",\n  \"responsibleContact\": \"Marcos Aurélio\"\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "body": "{\n  \"id\": 4470702,\n  \"name\": \"Escritório\",\n  \"zipcode\": \"01310-100\",\n  \"street\": \"Avenida Paulista\",\n  \"number\": \"2000\",\n  \"complement\": \"12º andar\",\n  \"quarter\": \"Bela Vista\",\n  \"city\": \"São Paulo\",\n  \"state\": \"SP\",\n  \"principal\": false,\n  \"addressType\": \"BUSINESS\",\n  \"farmerStateRegistration\": null,\n  \"howToReachLocationDescription\": \"Entrada pela portaria B\",\n  \"responsibleContact\": \"Marcos Aurélio\",\n  \"attributes\": {},\n  \"dateCreated\": \"2026-09-01T13:42:07Z\",\n  \"lastUpdated\": \"2026-09-01T13:42:07Z\"\n}"
                }
              ]
            },
            {
              "name": "Remove Customer Address",
              "request": {
                "method": "DELETE",
                "header": [],
                "url": {
                  "raw": "{{url}}/customer/:document/address/:addressId",
                  "host": [
                    "{{url}}"
                  ],
                  "path": [
                    "customer",
                    ":document",
                    "address",
                    ":addressId"
                  ],
                  "variable": [
                    {
                      "key": "document",
                      "value": "46693537308",
                      "description": "Customer's CPF or CNPJ."
                    },
                    {
                      "key": "addressId",
                      "value": "4470702",
                      "description": "Address id, as it came in `address[].id` in the customer registration or in `id` in the address creation."
                    }
                  ]
                },
                "description": "### Description\n\nRemoves an address from the registration of a customer of your store.\n\n### Responses\n\n**401**\n\nMissing, malformed or expired token.\n\n**404**\n\nCustomer or address not found.\n\nThe document does not match a customer of your store.\n\nThe address does not exist or belongs to another customer."
              },
              "response": [
                {
                  "name": "Success — address removed",
                  "originalRequest": {
                    "method": "DELETE",
                    "header": [],
                    "url": {
                      "raw": "{{url}}/customer/46693537308/address/4470702",
                      "host": [
                        "{{url}}"
                      ],
                      "path": [
                        "customer",
                        "46693537308",
                        "address",
                        "4470702"
                      ]
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "body": "{\n  \"status\": \"OK\"\n}"
                },
                {
                  "name": "Refusal — the document does not match a customer of your store",
                  "originalRequest": {
                    "method": "DELETE",
                    "header": [],
                    "url": {
                      "raw": "{{url}}/customer/46693537308/address/4470702",
                      "host": [
                        "{{url}}"
                      ],
                      "path": [
                        "customer",
                        "46693537308",
                        "address",
                        "4470702"
                      ]
                    }
                  },
                  "status": "Not Found",
                  "code": 404,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "body": "{\n  \"status\": \"NOT_FOUND\",\n  \"message\": \"Cliente não encontrado\"\n}"
                },
                {
                  "name": "Refusal — the address does not exist or belongs to another customer",
                  "originalRequest": {
                    "method": "DELETE",
                    "header": [],
                    "url": {
                      "raw": "{{url}}/customer/46693537308/address/4470702",
                      "host": [
                        "{{url}}"
                      ],
                      "path": [
                        "customer",
                        "46693537308",
                        "address",
                        "4470702"
                      ]
                    }
                  },
                  "status": "Not Found",
                  "code": 404,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "body": "{\n  \"status\": \"NOT_FOUND\",\n  \"message\": \"Endereço não encontrado para o cliente informado\"\n}"
                }
              ]
            },
            {
              "name": "Remove All Customer Addresses",
              "request": {
                "method": "DELETE",
                "header": [],
                "url": {
                  "raw": "{{url}}/deleteAllCustomerAddress/:document",
                  "host": [
                    "{{url}}"
                  ],
                  "path": [
                    "deleteAllCustomerAddress",
                    ":document"
                  ],
                  "variable": [
                    {
                      "key": "document",
                      "value": "46693537308",
                      "description": "Customer's CPF or CNPJ."
                    }
                  ]
                },
                "description": "### Description\n\nRemoves **all** the addresses of a customer of your store at once.\n\n### Business rules\n\n#### The removal cannot be undone\n\nThere is no endpoint to restore removed addresses. The customer stays without an address until a new one is registered.\n\n### Responses\n\n**401**\n\nMissing, malformed or expired token.\n\n**404**\n\nDocument not registered in your store."
              },
              "response": [
                {
                  "name": "Success — addresses removed",
                  "originalRequest": {
                    "method": "DELETE",
                    "header": [],
                    "url": {
                      "raw": "{{url}}/deleteAllCustomerAddress/46693537308",
                      "host": [
                        "{{url}}"
                      ],
                      "path": [
                        "deleteAllCustomerAddress",
                        "46693537308"
                      ]
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "body": "{\n  \"status\": \"ACCEPTED\"\n}"
                }
              ]
            }
          ]
        },
        {
          "name": "Customer Groups",
          "item": [
            {
              "name": "List Customer Groups",
              "request": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{url}}/customer/group/byGroup?name=Atacado%20Sudeste",
                  "host": [
                    "{{url}}"
                  ],
                  "path": [
                    "customer",
                    "group",
                    "byGroup"
                  ],
                  "query": [
                    {
                      "key": "id",
                      "value": "",
                      "description": "Internal group ids, numbers only. Accepts **several separated by commas**: `id=4470801,4470802`.",
                      "disabled": true
                    },
                    {
                      "key": "name",
                      "value": "Atacado%20Sudeste",
                      "description": "Group names, exactly as registered. Accepts **several separated by commas**: `name=Atacado Sudeste,Varejo`."
                    },
                    {
                      "key": "externalId",
                      "value": "",
                      "description": "Group external ids. Accepts **several separated by commas**: `externalId=GRP-ATC-SE,GRP-VRJ`.",
                      "disabled": true
                    }
                  ]
                },
                "description": "### Description\n\nQueries customer groups of your store by id, name or external id.\n\n### Business rules\n\n#### Combined criteria\n\nSend at least one of `id`, `name` or `externalId`. Each one accepts **several values separated by commas**, and the criteria are combined: every group that matches any of them is returned.\n\nThe groups come in id order, without pagination.\n\n#### Name with a comma\n\nThe comma separates the values, so a group with a comma in its name is not found by `name`. Search for that group by `id` or `externalId`.\n\n### Responses\n\n**200**\n\nThe groups found, in the `groups` key.\n\nOne object per group. Without a match, it comes as `{\"groups\": []}`.\n\n**400**\n\nMissing or invalid search criterion.\n\nSend at least one of `id`, `name` or `externalId`, and `id` with numbers only. The reason comes in `message`.\n\n**401**\n\nMissing, malformed or expired token."
              },
              "response": [
                {
                  "name": "Success — one group found",
                  "originalRequest": {
                    "method": "GET",
                    "header": [],
                    "url": {
                      "raw": "{{url}}/customer/group/byGroup?name=Atacado%20Sudeste",
                      "host": [
                        "{{url}}"
                      ],
                      "path": [
                        "customer",
                        "group",
                        "byGroup"
                      ],
                      "query": [
                        {
                          "key": "id",
                          "value": "",
                          "description": "Internal group ids, numbers only. Accepts **several separated by commas**: `id=4470801,4470802`.",
                          "disabled": true
                        },
                        {
                          "key": "name",
                          "value": "Atacado%20Sudeste",
                          "description": "Group names, exactly as registered. Accepts **several separated by commas**: `name=Atacado Sudeste,Varejo`."
                        },
                        {
                          "key": "externalId",
                          "value": "",
                          "description": "Group external ids. Accepts **several separated by commas**: `externalId=GRP-ATC-SE,GRP-VRJ`.",
                          "disabled": true
                        }
                      ]
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "body": "{\n  \"groups\": [\n    {\n      \"internalId\": 4470801,\n      \"name\": \"Atacado Sudeste\",\n      \"externalId\": \"GRP-ATC-SE\",\n      \"groupTypeId\": null,\n      \"groupTypeName\": null,\n      \"details\": {\n        \"showToSeller\": true,\n        \"enableGroupDisplayInRegistration\": true,\n        \"enableGroupDisplayInMyAccount\": false,\n        \"applicationGroupDocumentType\": \"CNPJ\",\n        \"restrictionDeliveryType\": \"Allow all delivery options\",\n        \"restrictionPaymentType\": \"Restrict offline payments\"\n      }\n    }\n  ]\n}"
                },
                {
                  "name": "Refusal — no criterion",
                  "originalRequest": {
                    "method": "GET",
                    "header": [],
                    "url": {
                      "raw": "{{url}}/customer/group/byGroup?name=Atacado%20Sudeste",
                      "host": [
                        "{{url}}"
                      ],
                      "path": [
                        "customer",
                        "group",
                        "byGroup"
                      ],
                      "query": [
                        {
                          "key": "id",
                          "value": "",
                          "description": "Internal group ids, numbers only. Accepts **several separated by commas**: `id=4470801,4470802`.",
                          "disabled": true
                        },
                        {
                          "key": "name",
                          "value": "Atacado%20Sudeste",
                          "description": "Group names, exactly as registered. Accepts **several separated by commas**: `name=Atacado Sudeste,Varejo`."
                        },
                        {
                          "key": "externalId",
                          "value": "",
                          "description": "Group external ids. Accepts **several separated by commas**: `externalId=GRP-ATC-SE,GRP-VRJ`.",
                          "disabled": true
                        }
                      ]
                    }
                  },
                  "status": "Bad Request",
                  "code": 400,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "body": "{\n  \"status\": \"BAD_REQUEST\",\n  \"message\": \"id, name or externalId is required\"\n}"
                },
                {
                  "name": "Refusal — non-numeric id",
                  "originalRequest": {
                    "method": "GET",
                    "header": [],
                    "url": {
                      "raw": "{{url}}/customer/group/byGroup?name=Atacado%20Sudeste",
                      "host": [
                        "{{url}}"
                      ],
                      "path": [
                        "customer",
                        "group",
                        "byGroup"
                      ],
                      "query": [
                        {
                          "key": "id",
                          "value": "",
                          "description": "Internal group ids, numbers only. Accepts **several separated by commas**: `id=4470801,4470802`.",
                          "disabled": true
                        },
                        {
                          "key": "name",
                          "value": "Atacado%20Sudeste",
                          "description": "Group names, exactly as registered. Accepts **several separated by commas**: `name=Atacado Sudeste,Varejo`."
                        },
                        {
                          "key": "externalId",
                          "value": "",
                          "description": "Group external ids. Accepts **several separated by commas**: `externalId=GRP-ATC-SE,GRP-VRJ`.",
                          "disabled": true
                        }
                      ]
                    }
                  },
                  "status": "Bad Request",
                  "code": 400,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "body": "{\n  \"status\": \"BAD_REQUEST\",\n  \"message\": \"id must be an array of numbers\"\n}"
                }
              ]
            },
            {
              "name": "Create Customer Group",
              "request": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "url": {
                  "raw": "{{url}}/customer/group",
                  "host": [
                    "{{url}}"
                  ],
                  "path": [
                    "customer",
                    "group"
                  ]
                },
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"name\": \"Atacado Sudeste\",\n  \"externalId\": \"GRP-ATC-SE\",\n  \"showToSeller\": true,\n  \"enableGroupDisplayInRegistration\": true,\n  \"enableGroupDisplayInMyAccount\": false,\n  \"colorHexadecimal\": \"1F7A4D\",\n  \"applicationGroupDocumentType\": {\n    \"pj\": true\n  },\n  \"restrictionDeliveryType\": {\n    \"no_restriction\": true\n  },\n  \"restrictionPaymentType\": {\n    \"restrict_offline_payment\": true\n  }\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "description": "### Description\n\nCreates a customer group in your store.\n\nThe group defines which document type it applies to and which delivery and payment methods are restricted for those in it.\n\n### Business rules\n\n#### Exactly one `true` key in each object\n\nIn the three objects, one and only one key can be `true`. None and more than one are rejected, with different messages — `Pelo menos uma das opções ... deve ser definida como true.` and `Somente uma das opções ... deve ser definida como true.`\n\n#### The group type must exist beforehand\n\n`groupTypeId` and `groupTypeName` do not create a group type: they **reference** one that is already registered in your store.\n\nA value without a match is rejected with `Tipo Grupo de id X e name Y não cadastrado!`.\n\nWhen sending both, both must point to the same type.\n\n### Responses\n\n**400**\n\nGroup rejected by validation.\n\nField missing or over the limit, wrong `true` key, repeated `name` or `externalId`, or nonexistent group type.\n\n**401**\n\nMissing, malformed or expired token."
              },
              "response": [
                {
                  "name": "Success — group created",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "url": {
                      "raw": "{{url}}/customer/group",
                      "host": [
                        "{{url}}"
                      ],
                      "path": [
                        "customer",
                        "group"
                      ]
                    },
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"name\": \"Atacado Sudeste\",\n  \"externalId\": \"GRP-ATC-SE\",\n  \"showToSeller\": true,\n  \"enableGroupDisplayInRegistration\": true,\n  \"enableGroupDisplayInMyAccount\": false,\n  \"colorHexadecimal\": \"1F7A4D\",\n  \"applicationGroupDocumentType\": {\n    \"pj\": true\n  },\n  \"restrictionDeliveryType\": {\n    \"no_restriction\": true\n  },\n  \"restrictionPaymentType\": {\n    \"restrict_offline_payment\": true\n  }\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "body": "{\n  \"status\": \"SUCCESS\",\n  \"message\": \"Grupo criado com sucesso.\",\n  \"action\": \"CREATE\",\n  \"dateHour\": \"2026-09-04T12:15:16Z\",\n  \"responsable\": {\n    \"user\": \"integracao@lojaexemplo.com.br\",\n    \"origin\": \"API\"\n  },\n  \"group\": {\n    \"internalId\": 4470801,\n    \"name\": \"Atacado Sudeste\",\n    \"externalId\": \"GRP-ATC-SE\",\n    \"groupTypeId\": null,\n    \"groupTypeName\": null\n  }\n}"
                }
              ]
            },
            {
              "name": "Delete Customer Group",
              "request": {
                "method": "DELETE",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "url": {
                  "raw": "{{url}}/customer/group",
                  "host": [
                    "{{url}}"
                  ],
                  "path": [
                    "customer",
                    "group"
                  ]
                },
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"externalId\": \"GRP-ATC-SE\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "description": "### Description\n\nDeletes a customer group from your store.\n\nThe customers who were in the group remain registered — what goes away is the group and the links to it.\n\n### Business rules\n\n#### A group used in a contract is not deleted\n\nWhile the group is in the `customerGroupList` of any contract, the deletion is refused with **400**, `status: \"ERROR\"` and `action: \"DELETE\"`, and the group stays registered.\n\nA group that is not in any contract is deleted normally.\n\n### Responses\n\n**200**\n\nThe deleted group, in the creation's envelope.\n\nIt comes with `action: \"DELETE\"` and the message `Grupo deletado com sucesso.`\n\n**400**\n\nDeletion refused.\n\n`externalId` missing or nonexistent group. The reason comes in the message, in the creation's error envelope.\n\nGroup in use in a contract: `status: \"ERROR\"`, `action: \"DELETE\"` and a generic message. The group stays registered.\n\n**401**\n\nMissing, malformed or expired token."
              },
              "response": [
                {
                  "name": "Success — group deleted",
                  "originalRequest": {
                    "method": "DELETE",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "url": {
                      "raw": "{{url}}/customer/group",
                      "host": [
                        "{{url}}"
                      ],
                      "path": [
                        "customer",
                        "group"
                      ]
                    },
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"externalId\": \"GRP-ATC-SE\"\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "body": "{\n  \"status\": \"SUCCESS\",\n  \"message\": \"Grupo deletado com sucesso.\",\n  \"action\": \"DELETE\",\n  \"dateHour\": \"2026-09-04T12:15:16Z\",\n  \"responsable\": {\n    \"user\": \"integracao@lojaexemplo.com.br\",\n    \"origin\": \"API\"\n  },\n  \"group\": {\n    \"internalId\": 4470801,\n    \"name\": \"Atacado Sudeste\",\n    \"externalId\": \"GRP-ATC-SE\",\n    \"groupTypeId\": null,\n    \"groupTypeName\": null\n  }\n}"
                }
              ]
            },
            {
              "name": "Link Customer to a Group",
              "request": {
                "method": "PUT",
                "header": [],
                "url": {
                  "raw": "{{url}}/customer/:document/priceType/:customerGroupId",
                  "host": [
                    "{{url}}"
                  ],
                  "path": [
                    "customer",
                    ":document",
                    "priceType",
                    ":customerGroupId"
                  ],
                  "variable": [
                    {
                      "key": "document",
                      "value": "57578030000105",
                      "description": "Customer's CPF or CNPJ, **without punctuation**. See the rule below."
                    },
                    {
                      "key": "customerGroupId",
                      "value": "4470901",
                      "description": "Id of the customer group or of the price type. It is the `internalId` that the group query returns."
                    }
                  ]
                },
                "description": "### Description\n\nLinks a **price type** to the customer. It is what makes the customer start receiving the price table of that type.\n\n### Business rules\n\n#### The document goes without punctuation\n\nSend only the digits: `46693537308`, not `466.935.373-08`.\n\nA punctuated CNPJ carries a **slash**, which splits the path into two segments — the request does not reach this endpoint.\n\n#### Linking again responds 200\n\nIf the customer was already linked to that price type, the response is **200** with the message that the link already exists. The final state is the same.\n\n### Responses\n\n**401**\n\nMissing, malformed or expired token.\n\n**404**\n\nCustomer or group not found.\n\nThe document does not match a customer of your store.\n\nNonexistent group, from another store, or non-numeric or zero id."
              },
              "response": [
                {
                  "name": "Success — price type linked",
                  "originalRequest": {
                    "method": "PUT",
                    "header": [],
                    "url": {
                      "raw": "{{url}}/customer/57578030000105/priceType/4470901",
                      "host": [
                        "{{url}}"
                      ],
                      "path": [
                        "customer",
                        "57578030000105",
                        "priceType",
                        "4470901"
                      ]
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "body": "{\n  \"status\": \"OK\",\n  \"message\": \"PriceType associado\"\n}"
                },
                {
                  "name": "Refusal — the document does not match a customer of your store",
                  "originalRequest": {
                    "method": "PUT",
                    "header": [],
                    "url": {
                      "raw": "{{url}}/customer/57578030000105/priceType/4470901",
                      "host": [
                        "{{url}}"
                      ],
                      "path": [
                        "customer",
                        "57578030000105",
                        "priceType",
                        "4470901"
                      ]
                    }
                  },
                  "status": "Not Found",
                  "code": 404,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "body": "{\n  \"status\": \"NOT_FOUND\",\n  \"message\": \"Cliente não encontrado!\"\n}"
                },
                {
                  "name": "Refusal — nonexistent group, from another store, or non-numeric or zero id",
                  "originalRequest": {
                    "method": "PUT",
                    "header": [],
                    "url": {
                      "raw": "{{url}}/customer/57578030000105/priceType/4470901",
                      "host": [
                        "{{url}}"
                      ],
                      "path": [
                        "customer",
                        "57578030000105",
                        "priceType",
                        "4470901"
                      ]
                    }
                  },
                  "status": "Not Found",
                  "code": 404,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "body": "{\n  \"status\": \"NOT_FOUND\",\n  \"message\": \"PriceType não encontrado!\"\n}"
                }
              ]
            },
            {
              "name": "Unlink Customer from a Group",
              "request": {
                "method": "DELETE",
                "header": [],
                "url": {
                  "raw": "{{url}}/customer/:document/priceType/:customerGroupId",
                  "host": [
                    "{{url}}"
                  ],
                  "path": [
                    "customer",
                    ":document",
                    "priceType",
                    ":customerGroupId"
                  ],
                  "variable": [
                    {
                      "key": "document",
                      "value": "57578030000105",
                      "description": "Customer's CPF or CNPJ, **without punctuation**. See the rule below."
                    },
                    {
                      "key": "customerGroupId",
                      "value": "4470901",
                      "description": "Id of the customer group or of the price type linked to the customer."
                    }
                  ]
                },
                "description": "### Description\n\nUndoes the link between a customer and a **price type**. The customer stops receiving the price table of that type.\n\n### Business rules\n\n#### The document goes without punctuation\n\nSend only the digits: `46693537308`, not `466.935.373-08`.\n\nA punctuated CNPJ carries a **slash**, which splits the path into two segments — the request does not reach this endpoint.\n\n### Responses\n\n**401**\n\nMissing, malformed or expired token.\n\n**404**\n\nCustomer or group not found.\n\nThe document does not match a customer of your store.\n\nThe group does not exist or belongs to another store.\n\n**422**\n\nThe customer is not in this group.\n\nThe customer and the group exist, with no link between them."
              },
              "response": [
                {
                  "name": "Success — link removed",
                  "originalRequest": {
                    "method": "DELETE",
                    "header": [],
                    "url": {
                      "raw": "{{url}}/customer/57578030000105/priceType/4470901",
                      "host": [
                        "{{url}}"
                      ],
                      "path": [
                        "customer",
                        "57578030000105",
                        "priceType",
                        "4470901"
                      ]
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "body": "{\n  \"status\": \"OK\"\n}"
                },
                {
                  "name": "Refusal — the document does not match a customer of your store",
                  "originalRequest": {
                    "method": "DELETE",
                    "header": [],
                    "url": {
                      "raw": "{{url}}/customer/57578030000105/priceType/4470901",
                      "host": [
                        "{{url}}"
                      ],
                      "path": [
                        "customer",
                        "57578030000105",
                        "priceType",
                        "4470901"
                      ]
                    }
                  },
                  "status": "Not Found",
                  "code": 404,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "body": "{\n  \"status\": \"NOT_FOUND\",\n  \"message\": \"Cliente não encontrado!\"\n}"
                },
                {
                  "name": "Refusal — the group does not exist or belongs to another store",
                  "originalRequest": {
                    "method": "DELETE",
                    "header": [],
                    "url": {
                      "raw": "{{url}}/customer/57578030000105/priceType/4470901",
                      "host": [
                        "{{url}}"
                      ],
                      "path": [
                        "customer",
                        "57578030000105",
                        "priceType",
                        "4470901"
                      ]
                    }
                  },
                  "status": "Not Found",
                  "code": 404,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "body": "{\n  \"status\": \"NOT_FOUND\",\n  \"message\": \"PriceType não encontrado!\"\n}"
                },
                {
                  "name": "Refusal — the customer is not in this group",
                  "originalRequest": {
                    "method": "DELETE",
                    "header": [],
                    "url": {
                      "raw": "{{url}}/customer/57578030000105/priceType/4470901",
                      "host": [
                        "{{url}}"
                      ],
                      "path": [
                        "customer",
                        "57578030000105",
                        "priceType",
                        "4470901"
                      ]
                    }
                  },
                  "status": "Unprocessable Entity",
                  "code": 422,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "body": "{\n  \"status\": \"UNPROCESSABLE_ENTITY\",\n  \"message\": \"Este tipo de preço não está vinculado ao cliente\"\n}"
                }
              ]
            }
          ]
        }
      ]
    },
    {
      "name": "Credit Limit",
      "description": "Endpoints to create and manage credit limit types and assign them to customers.",
      "item": [
        {
          "name": "Create Credit Limit Type",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{url}}/creditLimit/saveTypeCreditLimit",
              "host": [
                "{{url}}"
              ],
              "path": [
                "creditLimit",
                "saveTypeCreditLimit"
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"name\": \"Crédito Padrão\",\n  \"code\": \"CREDITO-PADRAO\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "description": "### Description\n\nCreates a credit limit **type** of your store, which is later associated with the customers in **Set or Update Credit Limit for Customer**.\n\nThe type represents your store's credit modality — for example, `À Vista`, `Boleto 30 dias` or `Crédito Especial`.\n\n### Business rules\n\n#### A repeated `code` updates the name\n\nResending a `code` that already exists in your store updates the type's `name` and responds **200** with the type. The `date_created` stays the one of the creation.\n\n#### The type belongs to your store\n\nThe `code` is unique in your store. Another store can use the same `code` without affecting your type.\n\n### Responses\n\n**200**\n\nThe created or updated type.\n\n**400**\n\nMissing body or invalid `name` and `code`.\n\nSend the type as JSON, with `name` and `code` filled in and within the limits. The reason comes in `message`.\n\n**401**\n\nMissing, malformed or expired token."
          },
          "response": [
            {
              "name": "Success — type created",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "url": {
                  "raw": "{{url}}/creditLimit/saveTypeCreditLimit",
                  "host": [
                    "{{url}}"
                  ],
                  "path": [
                    "creditLimit",
                    "saveTypeCreditLimit"
                  ]
                },
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"name\": \"Crédito Padrão\",\n  \"code\": \"CREDITO-PADRAO\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "cookie": [],
              "body": "{\n  \"code\": \"CREDITO-PADRAO\",\n  \"date_created\": \"2026-09-04T10:12:45.284119-03:00\",\n  \"name\": \"Crédito Padrão\"\n}"
            },
            {
              "name": "Refusal — name or code missing or too long",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "url": {
                  "raw": "{{url}}/creditLimit/saveTypeCreditLimit",
                  "host": [
                    "{{url}}"
                  ],
                  "path": [
                    "creditLimit",
                    "saveTypeCreditLimit"
                  ]
                },
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"name\": \"Crédito Padrão\",\n  \"code\": \"CREDITO-PADRAO\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "Bad Request",
              "code": 400,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "cookie": [],
              "body": "{\n  \"status\": \"BAD_REQUEST\",\n  \"message\": \"name and code are required: name up to 50 characters and code up to 18\"\n}"
            },
            {
              "name": "Refusal — missing or empty body",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "url": {
                  "raw": "{{url}}/creditLimit/saveTypeCreditLimit",
                  "host": [
                    "{{url}}"
                  ],
                  "path": [
                    "creditLimit",
                    "saveTypeCreditLimit"
                  ]
                },
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"name\": \"Crédito Padrão\",\n  \"code\": \"CREDITO-PADRAO\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "Bad Request",
              "code": 400,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "cookie": [],
              "body": "{\n  \"status\": \"BAD_REQUEST\",\n  \"message\": \"Invalid or missing JSON body\"\n}"
            }
          ]
        },
        {
          "name": "Set or Update Credit Limit for Customer",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{url}}/creditLimit/save",
              "host": [
                "{{url}}"
              ],
              "path": [
                "creditLimit",
                "save"
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"document\": \"57.578.030/0001-05\",\n  \"credit_code\": \"CREDITO-PADRAO\",\n  \"value\": 5000,\n  \"balance\": 5000,\n  \"active\": true,\n  \"without_credit_limit\": false\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "description": "### Description\n\nCreates or updates a customer's credit limit for one of your store's types, created in **Create Credit Limit Type**. Resending for the same customer and type updates the existing limit.\n\nAll six fields are required. `0` and `false` are valid values; only `null` and empty text count as missing.\n\nTo send several customers at once, use **Set or Update Credit Limits in Batch**.\n\nThe examples use the `CREDITO-PADRAO` type, the same one as in the example of **Create Credit Limit Type**: create it first in your store.\n\n### Business rules\n\n#### The balance sent replaces the current balance\n\n`value` is the limit and `balance` is the available balance. Both replace what is stored.\n\nPurchases with the limit deduct from the balance. Resending an old balance undoes these deductions: always send the current balance from your system.\n\n#### Without changes, nothing is stored\n\nResending the same values responds **200** with the limit as it is, without storing anything.\n\n#### Document with or without mask\n\n`document` accepts CPF or CNPJ, with or without mask, including the CNPJ with letters. The response brings the document with letters and digits only.\n\n### Responses\n\n**200**\n\nThe limit as it was stored.\n\n**400**\n\nInvalid body or type not found in your store.\n\nMissing body, empty required field, field too long or of the wrong type. The reason comes in `message`.\n\nThe `credit_code` must be the `code` of a type of your store.\n\n**401**\n\nMissing, malformed or expired token."
          },
          "response": [
            {
              "name": "Success — limit set",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "url": {
                  "raw": "{{url}}/creditLimit/save",
                  "host": [
                    "{{url}}"
                  ],
                  "path": [
                    "creditLimit",
                    "save"
                  ]
                },
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"document\": \"57.578.030/0001-05\",\n  \"credit_code\": \"CREDITO-PADRAO\",\n  \"value\": 5000,\n  \"balance\": 5000,\n  \"active\": true,\n  \"without_credit_limit\": false\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "cookie": [],
              "body": "{\n  \"message\": \"Conta criada/atualizada com sucesso\",\n  \"document\": \"57578030000105\",\n  \"credit_code\": \"CREDITO-PADRAO\",\n  \"credit_type\": \"Crédito Padrão\",\n  \"value\": 5000,\n  \"balance\": 5000,\n  \"active\": true,\n  \"without_credit_limit\": false\n}"
            },
            {
              "name": "Refusal — required field missing",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "url": {
                  "raw": "{{url}}/creditLimit/save",
                  "host": [
                    "{{url}}"
                  ],
                  "path": [
                    "creditLimit",
                    "save"
                  ]
                },
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"document\": \"57.578.030/0001-05\",\n  \"credit_code\": \"CREDITO-PADRAO\",\n  \"value\": 5000,\n  \"balance\": 5000,\n  \"active\": true,\n  \"without_credit_limit\": false\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "Bad Request",
              "code": 400,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "cookie": [],
              "body": "{\n  \"status\": \"BAD_REQUEST\",\n  \"message\": \"Missing required fields: balance\"\n}"
            },
            {
              "name": "Refusal — type not found in your store",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "url": {
                  "raw": "{{url}}/creditLimit/save",
                  "host": [
                    "{{url}}"
                  ],
                  "path": [
                    "creditLimit",
                    "save"
                  ]
                },
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"document\": \"57.578.030/0001-05\",\n  \"credit_code\": \"CREDITO-PADRAO\",\n  \"value\": 5000,\n  \"balance\": 5000,\n  \"active\": true,\n  \"without_credit_limit\": false\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "Bad Request",
              "code": 400,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "cookie": [],
              "body": "{\n  \"status\": \"BAD_REQUEST\",\n  \"message\": \"Credit type not found: CREDITO-PADRAO\"\n}"
            },
            {
              "name": "Refusal — missing or empty body",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "url": {
                  "raw": "{{url}}/creditLimit/save",
                  "host": [
                    "{{url}}"
                  ],
                  "path": [
                    "creditLimit",
                    "save"
                  ]
                },
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"document\": \"57.578.030/0001-05\",\n  \"credit_code\": \"CREDITO-PADRAO\",\n  \"value\": 5000,\n  \"balance\": 5000,\n  \"active\": true,\n  \"without_credit_limit\": false\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "Bad Request",
              "code": 400,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "cookie": [],
              "body": "{\n  \"status\": \"BAD_REQUEST\",\n  \"message\": \"Invalid or missing JSON body\"\n}"
            }
          ]
        },
        {
          "name": "Set or Update Credit Limits in Batch",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{url}}/creditLimit/batch",
              "host": [
                "{{url}}"
              ],
              "path": [
                "creditLimit",
                "batch"
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"creditLimitRequest\": [\n    {\n      \"document\": \"57.578.030/0001-05\",\n      \"creditCode\": \"CREDITO-PADRAO\",\n      \"value\": 5000,\n      \"balance\": 5000,\n      \"active\": true,\n      \"withoutCreditLimit\": false\n    },\n    {\n      \"document\": \"466.935.373-08\",\n      \"creditCode\": \"CREDITO-PADRAO\",\n      \"value\": 1500,\n      \"balance\": 1200,\n      \"active\": true,\n      \"withoutCreditLimit\": false\n    }\n  ]\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "description": "### Description\n\nCreates or updates the credit limit of up to 100 customers per request, in your store.\n\nEach item is processed independently: the result of each one comes in the `status` field of the response, and a rejected item does not prevent the others.\n\nEach item follows the rules of **Set or Update Credit Limit for Customer**, including the balance one: the value sent replaces the stored one.\n\nThe examples use the `CREDITO-PADRAO` type, the same one as in the example of **Create Credit Limit Type**: create it first in your store.\n\n### Business rules\n\n#### Result of each item\n\n| `status` | Meaning |\n| --- | --- |\n| `CREATED` | Limit created. |\n| `UPDATED` | Limit changed. |\n| `UNCHANGED` | Same as stored; nothing was stored. |\n| `ERROR` | Item rejected, with the reason in `error` and the code in `errorCode`. |\n\n#### Item error codes\n\n| `errorCode` | When | What to do |\n| --- | --- | --- |\n| `INVALID_FIELD` | Missing field, too long or of the wrong type. | Fix the item. |\n| `CREDIT_TYPE_NOT_FOUND` | The `creditCode` is not a type of your store. | Create the type or fix the code. |\n| `DUPLICATE_IGNORED` | Item repeated with the same values; the first one was processed. | Nothing. |\n| `DUPLICATE_CONFLICT` | Item repeated with different values; none was processed. | Send the customer only once. |\n| `INTERNAL_ERROR` | Failure while storing the item. | Resend the item. |\n\n#### Repeated items in the same batch\n\nSend each customer and type only once per request. Items with the same document and the same `creditCode` are treated as repeated:\n\n- with the same values, only the first one is processed;\n- with different values, none of them is processed.\n\n#### Resending the batch\n\nResending the same batch is safe: the items already stored come back as `UNCHANGED`.\n\n### Responses\n\n**200**\n\nA list with one result per item.\n\nThe items come **in the same order as sent**, without the `null` items.\n\nThe batch responds 200 whenever the envelope is valid, even if **all** items were rejected. Therefore, check the `status` of each item.\n\n**400**\n\nThe body sent is not valid JSON.\n\nReview the syntax (quotes, commas and braces) and the format of each item.\n\n**401**\n\nMissing, malformed or expired token.\n\n**422**\n\nEmpty list or with more than 100 items.\n\nSend from 1 to 100 items in `creditLimitRequest`; split larger lists into several requests."
          },
          "response": [
            {
              "name": "Success — limits set",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "url": {
                  "raw": "{{url}}/creditLimit/batch",
                  "host": [
                    "{{url}}"
                  ],
                  "path": [
                    "creditLimit",
                    "batch"
                  ]
                },
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"creditLimitRequest\": [\n    {\n      \"document\": \"57.578.030/0001-05\",\n      \"creditCode\": \"CREDITO-PADRAO\",\n      \"value\": 5000,\n      \"balance\": 5000,\n      \"active\": true,\n      \"withoutCreditLimit\": false\n    },\n    {\n      \"document\": \"466.935.373-08\",\n      \"creditCode\": \"CREDITO-PADRAO\",\n      \"value\": 1500,\n      \"balance\": 1200,\n      \"active\": true,\n      \"withoutCreditLimit\": false\n    }\n  ]\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "cookie": [],
              "body": "[\n  {\n    \"document\": \"57.578.030/0001-05\",\n    \"creditCode\": \"CREDITO-PADRAO\",\n    \"value\": 5000,\n    \"balance\": 5000,\n    \"active\": true,\n    \"withoutCreditLimit\": false,\n    \"status\": \"CREATED\"\n  },\n  {\n    \"document\": \"466.935.373-08\",\n    \"creditCode\": \"CREDITO-PADRAO\",\n    \"value\": 1500,\n    \"balance\": 1200,\n    \"active\": true,\n    \"withoutCreditLimit\": false,\n    \"status\": \"UNCHANGED\"\n  }\n]"
            },
            {
              "name": "Rejected item — type not found in your store",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "url": {
                  "raw": "{{url}}/creditLimit/batch",
                  "host": [
                    "{{url}}"
                  ],
                  "path": [
                    "creditLimit",
                    "batch"
                  ]
                },
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"creditLimitRequest\": [\n    {\n      \"document\": \"57.578.030/0001-05\",\n      \"creditCode\": \"CREDITO-PADRAO\",\n      \"value\": 5000,\n      \"balance\": 5000,\n      \"active\": true,\n      \"withoutCreditLimit\": false\n    },\n    {\n      \"document\": \"466.935.373-08\",\n      \"creditCode\": \"CREDITO-PADRAO\",\n      \"value\": 1500,\n      \"balance\": 1200,\n      \"active\": true,\n      \"withoutCreditLimit\": false\n    }\n  ]\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "cookie": [],
              "body": "[\n  {\n    \"document\": \"57.578.030/0001-05\",\n    \"creditCode\": \"BOLETO-30\",\n    \"value\": 5000,\n    \"balance\": 5000,\n    \"active\": true,\n    \"withoutCreditLimit\": false,\n    \"status\": \"ERROR\",\n    \"error\": \"Credit type not found: BOLETO-30\",\n    \"errorCode\": \"CREDIT_TYPE_NOT_FOUND\"\n  }\n]"
            },
            {
              "name": "Refusal — invalid body",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "url": {
                  "raw": "{{url}}/creditLimit/batch",
                  "host": [
                    "{{url}}"
                  ],
                  "path": [
                    "creditLimit",
                    "batch"
                  ]
                },
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"creditLimitRequest\": [\n    {\n      \"document\": \"57.578.030/0001-05\",\n      \"creditCode\": \"CREDITO-PADRAO\",\n      \"value\": 5000,\n      \"balance\": 5000,\n      \"active\": true,\n      \"withoutCreditLimit\": false\n    },\n    {\n      \"document\": \"466.935.373-08\",\n      \"creditCode\": \"CREDITO-PADRAO\",\n      \"value\": 1500,\n      \"balance\": 1200,\n      \"active\": true,\n      \"withoutCreditLimit\": false\n    }\n  ]\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "Bad Request",
              "code": 400,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "cookie": [],
              "body": "{\n  \"error\": \"invalid request body\"\n}"
            },
            {
              "name": "Refusal — empty list",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "url": {
                  "raw": "{{url}}/creditLimit/batch",
                  "host": [
                    "{{url}}"
                  ],
                  "path": [
                    "creditLimit",
                    "batch"
                  ]
                },
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"creditLimitRequest\": [\n    {\n      \"document\": \"57.578.030/0001-05\",\n      \"creditCode\": \"CREDITO-PADRAO\",\n      \"value\": 5000,\n      \"balance\": 5000,\n      \"active\": true,\n      \"withoutCreditLimit\": false\n    },\n    {\n      \"document\": \"466.935.373-08\",\n      \"creditCode\": \"CREDITO-PADRAO\",\n      \"value\": 1500,\n      \"balance\": 1200,\n      \"active\": true,\n      \"withoutCreditLimit\": false\n    }\n  ]\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "Unprocessable Entity",
              "code": 422,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "cookie": [],
              "body": "{\n  \"error\": \"validation failed: creditLimitRequest cannot be empty\"\n}"
            },
            {
              "name": "Refusal — more than 100 items",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "url": {
                  "raw": "{{url}}/creditLimit/batch",
                  "host": [
                    "{{url}}"
                  ],
                  "path": [
                    "creditLimit",
                    "batch"
                  ]
                },
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"creditLimitRequest\": [\n    {\n      \"document\": \"57.578.030/0001-05\",\n      \"creditCode\": \"CREDITO-PADRAO\",\n      \"value\": 5000,\n      \"balance\": 5000,\n      \"active\": true,\n      \"withoutCreditLimit\": false\n    },\n    {\n      \"document\": \"466.935.373-08\",\n      \"creditCode\": \"CREDITO-PADRAO\",\n      \"value\": 1500,\n      \"balance\": 1200,\n      \"active\": true,\n      \"withoutCreditLimit\": false\n    }\n  ]\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "Unprocessable Entity",
              "code": 422,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "cookie": [],
              "body": "{\n  \"error\": \"validation failed: maximum batch size is 100\"\n}"
            }
          ]
        },
        {
          "name": "List Credit Limits",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{url}}/creditLimit/list?document=57.578.030%2F0001-05&limit=5",
              "host": [
                "{{url}}"
              ],
              "path": [
                "creditLimit",
                "list"
              ],
              "query": [
                {
                  "key": "document",
                  "value": "57.578.030%2F0001-05",
                  "description": "Customer's CPF or CNPJ, with or without mask. When omitted, the listing brings the store's limits."
                },
                {
                  "key": "creditCode",
                  "value": "",
                  "description": "Code of the limit type. Brings only the limits of this type.",
                  "disabled": true
                },
                {
                  "key": "updatedSince",
                  "value": "",
                  "description": "Brings only the limits changed from this date and time on, with the time zone: `2026-09-01T08:30:00-03:00`.",
                  "disabled": true
                },
                {
                  "key": "limit",
                  "value": "5",
                  "description": "Records per page. Default **5**, maximum **25**; a value above 25 is reduced to 25, and zero or negative becomes 5."
                },
                {
                  "key": "offset",
                  "value": "",
                  "description": "Starting record of the page. Default **0**.",
                  "disabled": true
                }
              ]
            },
            "description": "### Description\n\nLists your store's credit limits, from the most recently changed to the oldest, with filters by customer, type and change date.\n\n### Business rules\n\n#### Synchronizing the limits\n\nTo bring only what changed, send in `updatedSince` the date of the last synchronization and go through the pages with `offset` until an empty list comes.\n\nThe order holds between pages, so no limit repeats or is left out.\n\n### Responses\n\n**200**\n\nA list with one object per credit limit.\n\nComes as `[]` when there are no limits.\n\n**400**\n\n`updatedSince` out of format.\n\nSend the date with time and time zone, like `2026-09-01T08:30:00-03:00`.\n\n**401**\n\nMissing, malformed or expired token."
          },
          "response": [
            {
              "name": "Success — one limit found",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{url}}/creditLimit/list?document=57.578.030%2F0001-05&limit=5",
                  "host": [
                    "{{url}}"
                  ],
                  "path": [
                    "creditLimit",
                    "list"
                  ],
                  "query": [
                    {
                      "key": "document",
                      "value": "57.578.030%2F0001-05",
                      "description": "Customer's CPF or CNPJ, with or without mask. When omitted, the listing brings the store's limits."
                    },
                    {
                      "key": "creditCode",
                      "value": "",
                      "description": "Code of the limit type. Brings only the limits of this type.",
                      "disabled": true
                    },
                    {
                      "key": "updatedSince",
                      "value": "",
                      "description": "Brings only the limits changed from this date and time on, with the time zone: `2026-09-01T08:30:00-03:00`.",
                      "disabled": true
                    },
                    {
                      "key": "limit",
                      "value": "5",
                      "description": "Records per page. Default **5**, maximum **25**; a value above 25 is reduced to 25, and zero or negative becomes 5."
                    },
                    {
                      "key": "offset",
                      "value": "",
                      "description": "Starting record of the page. Default **0**.",
                      "disabled": true
                    }
                  ]
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "cookie": [],
              "body": "[\n  {\n    \"document\": \"57578030000105\",\n    \"credit_code\": \"CREDITO-PADRAO\",\n    \"credit_type\": \"Crédito Padrão\",\n    \"value\": 5000,\n    \"balance\": 5000,\n    \"active\": true,\n    \"without_credit_limit\": false,\n    \"last_updated\": \"2026-09-04T10:12:45.284119-03:00\"\n  }\n]"
            },
            {
              "name": "Refusal — updatedSince out of format",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{url}}/creditLimit/list?document=57.578.030%2F0001-05&limit=5",
                  "host": [
                    "{{url}}"
                  ],
                  "path": [
                    "creditLimit",
                    "list"
                  ],
                  "query": [
                    {
                      "key": "document",
                      "value": "57.578.030%2F0001-05",
                      "description": "Customer's CPF or CNPJ, with or without mask. When omitted, the listing brings the store's limits."
                    },
                    {
                      "key": "creditCode",
                      "value": "",
                      "description": "Code of the limit type. Brings only the limits of this type.",
                      "disabled": true
                    },
                    {
                      "key": "updatedSince",
                      "value": "",
                      "description": "Brings only the limits changed from this date and time on, with the time zone: `2026-09-01T08:30:00-03:00`.",
                      "disabled": true
                    },
                    {
                      "key": "limit",
                      "value": "5",
                      "description": "Records per page. Default **5**, maximum **25**; a value above 25 is reduced to 25, and zero or negative becomes 5."
                    },
                    {
                      "key": "offset",
                      "value": "",
                      "description": "Starting record of the page. Default **0**.",
                      "disabled": true
                    }
                  ]
                }
              },
              "status": "Bad Request",
              "code": 400,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "cookie": [],
              "body": "{\n  \"status\": \"BAD_REQUEST\",\n  \"message\": \"Invalid updatedSince: use ISO 8601 with time zone (e.g. 2026-11-05T12:00:00Z)\"\n}"
            }
          ]
        }
      ]
    },
    {
      "name": "Contracts",
      "description": "Endpoints to manage fixed-price contracts for customers or customer groups.",
      "item": [
        {
          "name": "Store Management",
          "item": [
            {
              "name": "Create Contract",
              "request": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "url": {
                  "raw": "{{url}}/priceContract",
                  "host": [
                    "{{url}}"
                  ],
                  "path": [
                    "priceContract"
                  ]
                },
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"name\": \"Tabela Atacado 2026\",\n  \"startDate\": \"2026-09-01T00:00:00\",\n  \"endDate\": \"2026-12-31T23:59:59\",\n  \"allCustomers\": false,\n  \"allPartners\": false,\n  \"active\": true,\n  \"priority\": 10,\n  \"contractType\": \"BASIC\",\n  \"isDiscountBlockedByAttendant\": false,\n  \"stateList\": [\n    \"SP\",\n    \"MG\"\n  ],\n  \"customerGroupList\": [\n    {\n      \"externalId\": \"GRUPO-ATACADO\"\n    }\n  ]\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "description": "### Description\n\nCreates a price contract: the table of special prices that the store applies to a set of customers during a period.\n\nThe creation stores the contract **header** — validity period, scope and application filters. Customers and products come in later, through **Add Customers to the Contract** and **Add Products to the Contract**.\n\nThe store is always the token's store. To create the contract of a branch, use **Create Branch Contract**.\n\n### Business rules\n\n#### Customer scope\n\n`allCustomers: true` applies the contract to **all** customers of the store, and the contract starts rejecting the addition of individual customers with 400.\n\nWith `allCustomers: false`, the contract applies only to the customers you add later, one by one.\n\n#### Which contract wins\n\nWhen more than one active contract reaches the same product for the same customer, the one with the highest `priority` wins. With tied priority, the contract restricted to specific customers wins over the one that applies to all customers. If the tie persists, the oldest contract wins.\n\n#### Countdown offer\n\n`contractType: COUNTDOWN` marks the contract as a countdown offer: the returned price starts carrying the discount and the end date of the offer.\n\nThe countdown contract only enters the price calculation with `priceBeforeAfter: true`.\n\n### Responses\n\n**401**\n\nMissing, malformed or expired token.\n\nThe detail comes in `error`.\n\n**422**\n\nInvalid body, required field or validity period.\n\nInvalid body, missing required field, date out of format or `endDate` before `startDate`. The detail comes in `error`."
              },
              "response": [
                {
                  "name": "Success — contract created",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "url": {
                      "raw": "{{url}}/priceContract",
                      "host": [
                        "{{url}}"
                      ],
                      "path": [
                        "priceContract"
                      ]
                    },
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"name\": \"Tabela Atacado 2026\",\n  \"startDate\": \"2026-09-01T00:00:00\",\n  \"endDate\": \"2026-12-31T23:59:59\",\n  \"allCustomers\": false,\n  \"allPartners\": false,\n  \"active\": true,\n  \"priority\": 10,\n  \"contractType\": \"BASIC\",\n  \"isDiscountBlockedByAttendant\": false,\n  \"stateList\": [\n    \"SP\",\n    \"MG\"\n  ],\n  \"customerGroupList\": [\n    {\n      \"externalId\": \"GRUPO-ATACADO\"\n    }\n  ]\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "body": "{\n  \"id\": 4610001,\n  \"name\": \"Tabela Atacado 2026\",\n  \"active\": true,\n  \"partner\": {\n    \"id\": 5050,\n    \"name\": \"Loja Exemplo\",\n    \"document\": \"30.424.972/0001-74\"\n  },\n  \"allCustomers\": false,\n  \"allPartners\": false,\n  \"priority\": 10,\n  \"dateStart\": \"2026-09-01T00:00:00Z\",\n  \"dateEnd\": \"2026-12-31T23:59:59Z\",\n  \"dateCreated\": \"2026-09-04T13:22:32.687284Z\",\n  \"lastUpdated\": \"2026-09-04T13:22:32.687284Z\",\n  \"priceBeforeAfter\": null,\n  \"contractType\": \"BASIC\",\n  \"isDiscountBlockedByAttendant\": false,\n  \"priceContractPartners\": [],\n  \"priceContractStates\": [\n    \"SP\",\n    \"MG\"\n  ],\n  \"priceContractCustomerGroups\": [\n    4610101\n  ],\n  \"priceContractStores\": []\n}"
                }
              ]
            },
            {
              "name": "Update Contract",
              "request": {
                "method": "PUT",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "url": {
                  "raw": "{{url}}/pricing/contract/:contractId",
                  "host": [
                    "{{url}}"
                  ],
                  "path": [
                    "pricing",
                    "contract",
                    ":contractId"
                  ],
                  "variable": [
                    {
                      "key": "contractId",
                      "value": "",
                      "description": "Contract id, returned in `id` on creation."
                    }
                  ]
                },
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"active\": true,\n  \"dateEnd\": \"2027-06-30T23:59:59\",\n  \"partners\": [\n    5057\n  ],\n  \"stateList\": [\n    \"RJ\"\n  ],\n  \"replaceFilters\": true\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "description": "### Description\n\nUpdates part of the header of a contract: status, validity period, scope and application filters. It is a **partial** update — send only the fields you want to change.\n\nIt also empties the contract at once, with `deleteAllItems` and `deleteAllCustomers`.\n\nAll fields are optional, but the body must bring **at least one** of them filled in.\n\nThe name, the type and the products and customers of the contract are not part of this body: the validity period is updated through `dateStart` and `dateEnd`, and customers and products through their own endpoints.\n\n### Business rules\n\n#### Add or replace filters\n\nWith `replaceFilters: false` (the default), the states, branches and groups sent are **added** to the ones the contract already has.\n\nWith `replaceFilters: true`, the contract filters become **exactly** the ones you sent.\n\n### Responses\n\n**400**\n\nInvalid contract or outside your scope.\n\nThe route `contractId` is not a number greater than zero.\n\nThe contract does not exist or does not belong to the token's store.\n\n**401**\n\nMissing, malformed or expired token.\n\nThe detail comes in `error`.\n\n**422**\n\nInvalid body or no field to change.\n\nBody that is not valid JSON, empty body, or none of the fields above filled in. The detail comes in `error`."
              },
              "response": [
                {
                  "name": "Success — validity period and filters updated",
                  "originalRequest": {
                    "method": "PUT",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "url": {
                      "raw": "{{url}}/pricing/contract/:contractId",
                      "host": [
                        "{{url}}"
                      ],
                      "path": [
                        "pricing",
                        "contract",
                        ":contractId"
                      ],
                      "variable": [
                        {
                          "key": "contractId",
                          "value": "",
                          "description": "Contract id, returned in `id` on creation."
                        }
                      ]
                    },
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"active\": true,\n  \"dateEnd\": \"2027-06-30T23:59:59\",\n  \"partners\": [\n    5057\n  ],\n  \"stateList\": [\n    \"RJ\"\n  ],\n  \"replaceFilters\": true\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "body": "{\n  \"id\": 4610001,\n  \"active\": true,\n  \"allCustomers\": false,\n  \"allPartners\": false,\n  \"replaceFilters\": true,\n  \"priceContractPartners\": [\n    {\n      \"id\": 5057,\n      \"name\": \"Loja Exemplo — Filial Campinas\",\n      \"document\": \"30.424.972/0002-55\"\n    }\n  ],\n  \"priceContractStates\": [\n    \"RJ\"\n  ],\n  \"priceContractCustomerGroups\": [\n    4610101\n  ]\n}"
                },
                {
                  "name": "Refusal — the route `contractId` is not a number greater than zero",
                  "originalRequest": {
                    "method": "PUT",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "url": {
                      "raw": "{{url}}/pricing/contract/:contractId",
                      "host": [
                        "{{url}}"
                      ],
                      "path": [
                        "pricing",
                        "contract",
                        ":contractId"
                      ],
                      "variable": [
                        {
                          "key": "contractId",
                          "value": "",
                          "description": "Contract id, returned in `id` on creation."
                        }
                      ]
                    },
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"active\": true,\n  \"dateEnd\": \"2027-06-30T23:59:59\",\n  \"partners\": [\n    5057\n  ],\n  \"stateList\": [\n    \"RJ\"\n  ],\n  \"replaceFilters\": true\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    }
                  },
                  "status": "Bad Request",
                  "code": 400,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "body": "{\n  \"error\": \"invalid contract id: \\\"...\\\"\"\n}"
                },
                {
                  "name": "Refusal — the contract does not exist or does not belong to the token's store",
                  "originalRequest": {
                    "method": "PUT",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "url": {
                      "raw": "{{url}}/pricing/contract/:contractId",
                      "host": [
                        "{{url}}"
                      ],
                      "path": [
                        "pricing",
                        "contract",
                        ":contractId"
                      ],
                      "variable": [
                        {
                          "key": "contractId",
                          "value": "",
                          "description": "Contract id, returned in `id` on creation."
                        }
                      ]
                    },
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"active\": true,\n  \"dateEnd\": \"2027-06-30T23:59:59\",\n  \"partners\": [\n    5057\n  ],\n  \"stateList\": [\n    \"RJ\"\n  ],\n  \"replaceFilters\": true\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    }
                  },
                  "status": "Bad Request",
                  "code": 400,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "body": "{\n  \"error\": \"price contract not found\"\n}"
                }
              ]
            },
            {
              "name": "List Contracts",
              "request": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{url}}/pricing/contract/list?limit=20&offset=0",
                  "host": [
                    "{{url}}"
                  ],
                  "path": [
                    "pricing",
                    "contract",
                    "list"
                  ],
                  "query": [
                    {
                      "key": "limit",
                      "value": "20",
                      "description": "Contracts per page. Default **20**, maximum **50**. Above the maximum, the maximum applies."
                    },
                    {
                      "key": "offset",
                      "value": "0",
                      "description": "How many contracts to skip. Default **0**."
                    }
                  ]
                },
                "description": "### Description\n\nLists the price contracts of your store, from the most recent to the oldest, with pagination.\n\nThe listing returns the header of each contract. The customers and products of a contract do not come here.\n\n### Responses\n\n**200**\n\nArray of contracts.\n\nEach contract comes in the format of the creation response, with `allPartners`, `priceContractPartners`, `priceContractStates`, `priceContractCustomerGroups` and `priceContractStores` always `null`.\n\n**400**\n\nInvalid pagination or page with no contracts.\n\n`limit` or `offset` is not numeric.\n\nThe store has no contract at all on the requested page.\n\n**401**\n\nMissing, malformed or expired token.\n\nThe detail comes in `error`."
              },
              "response": [
                {
                  "name": "Success — one contract",
                  "originalRequest": {
                    "method": "GET",
                    "header": [],
                    "url": {
                      "raw": "{{url}}/pricing/contract/list?limit=20&offset=0",
                      "host": [
                        "{{url}}"
                      ],
                      "path": [
                        "pricing",
                        "contract",
                        "list"
                      ],
                      "query": [
                        {
                          "key": "limit",
                          "value": "20",
                          "description": "Contracts per page. Default **20**, maximum **50**. Above the maximum, the maximum applies."
                        },
                        {
                          "key": "offset",
                          "value": "0",
                          "description": "How many contracts to skip. Default **0**."
                        }
                      ]
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "body": "[\n  {\n    \"id\": 4610001,\n    \"name\": \"Tabela Atacado 2026\",\n    \"active\": true,\n    \"partner\": {\n      \"id\": 5050,\n      \"name\": \"Loja Exemplo\",\n      \"document\": \"30.424.972/0001-74\"\n    },\n    \"allCustomers\": false,\n    \"allPartners\": null,\n    \"priority\": 10,\n    \"dateStart\": \"2026-09-01T00:00:00Z\",\n    \"dateEnd\": \"2027-06-30T23:59:59Z\",\n    \"dateCreated\": \"2026-09-04T13:22:32.687284Z\",\n    \"lastUpdated\": \"2026-09-04T13:22:32.687284Z\",\n    \"priceBeforeAfter\": null,\n    \"contractType\": \"BASIC\",\n    \"isDiscountBlockedByAttendant\": false,\n    \"priceContractPartners\": null,\n    \"priceContractStates\": null,\n    \"priceContractCustomerGroups\": null,\n    \"priceContractStores\": null\n  }\n]"
                },
                {
                  "name": "Refusal — non-numeric `limit`",
                  "originalRequest": {
                    "method": "GET",
                    "header": [],
                    "url": {
                      "raw": "{{url}}/pricing/contract/list?limit=20&offset=0",
                      "host": [
                        "{{url}}"
                      ],
                      "path": [
                        "pricing",
                        "contract",
                        "list"
                      ],
                      "query": [
                        {
                          "key": "limit",
                          "value": "20",
                          "description": "Contracts per page. Default **20**, maximum **50**. Above the maximum, the maximum applies."
                        },
                        {
                          "key": "offset",
                          "value": "0",
                          "description": "How many contracts to skip. Default **0**."
                        }
                      ]
                    }
                  },
                  "status": "Bad Request",
                  "code": 400,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "body": "{\n  \"error\": \"invalid limit\"\n}"
                },
                {
                  "name": "Refusal — non-numeric `offset`",
                  "originalRequest": {
                    "method": "GET",
                    "header": [],
                    "url": {
                      "raw": "{{url}}/pricing/contract/list?limit=20&offset=0",
                      "host": [
                        "{{url}}"
                      ],
                      "path": [
                        "pricing",
                        "contract",
                        "list"
                      ],
                      "query": [
                        {
                          "key": "limit",
                          "value": "20",
                          "description": "Contracts per page. Default **20**, maximum **50**. Above the maximum, the maximum applies."
                        },
                        {
                          "key": "offset",
                          "value": "0",
                          "description": "How many contracts to skip. Default **0**."
                        }
                      ]
                    }
                  },
                  "status": "Bad Request",
                  "code": 400,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "body": "{\n  \"error\": \"invalid offset\"\n}"
                },
                {
                  "name": "Refusal — the store has no contract at all on the requested page",
                  "originalRequest": {
                    "method": "GET",
                    "header": [],
                    "url": {
                      "raw": "{{url}}/pricing/contract/list?limit=20&offset=0",
                      "host": [
                        "{{url}}"
                      ],
                      "path": [
                        "pricing",
                        "contract",
                        "list"
                      ],
                      "query": [
                        {
                          "key": "limit",
                          "value": "20",
                          "description": "Contracts per page. Default **20**, maximum **50**. Above the maximum, the maximum applies."
                        },
                        {
                          "key": "offset",
                          "value": "0",
                          "description": "How many contracts to skip. Default **0**."
                        }
                      ]
                    }
                  },
                  "status": "Bad Request",
                  "code": 400,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "body": "{\n  \"error\": \"priceContract.list.empty\"\n}"
                }
              ]
            },
            {
              "name": "Add Customers to the Contract",
              "request": {
                "method": "PUT",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "url": {
                  "raw": "{{url}}/pricing/contract/:contractId/customers",
                  "host": [
                    "{{url}}"
                  ],
                  "path": [
                    "pricing",
                    "contract",
                    ":contractId",
                    "customers"
                  ],
                  "variable": [
                    {
                      "key": "contractId",
                      "value": "",
                      "description": "Contract id, returned in `id` on creation."
                    }
                  ]
                },
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"customers\": [\n    \"57.578.030/0001-05\",\n    \"466.935.373-08\"\n  ]\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "description": "### Description\n\nAdds customers to a contract, by each one's document. The customers start receiving the contract prices.\n\nSend from 1 to 100 documents per request. Those that are not found come back in `notFound`, without preventing the others.\n\n### Business rules\n\n#### A contract for all customers does not take individual customers\n\nA contract created with `allCustomers: true` already applies to all customers of the store and rejects the addition with **400** and `priceContract.customers.addNotAllowed`. To build a customer list, the contract must have `allCustomers: false`.\n\n#### A document that does not exist in the database comes back in `notFound`\n\nThe customer must exist on the platform, but does not need to have bought from your store.\n\nThe document goes **with the mask** — CPF `000.000.000-00`, CNPJ `00.000.000/0000-00`: with digits only it is not found and comes back in `notFound.customers`, even if the customer exists.\n\nA document that does not resolve does not interrupt the request: it comes back in `notFound.customers` and the others are stored. The response is 200 even when no document resolved.\n\n### Responses\n\n**400**\n\nInvalid contract or customer addition rejected.\n\nThe route `contractId` is not a number greater than zero.\n\nThe contract does not exist or does not belong to the token's store.\n\nThe contract applies to all customers and does not accept individual customers.\n\n**401**\n\nMissing, malformed or expired token.\n\nThe detail comes in `error`.\n\n**422**\n\nInvalid body or customer list.\n\nBody that is not valid JSON, or `customers` out of the accepted range (see the field). The detail comes in `error`."
              },
              "response": [
                {
                  "name": "Success — one customer linked and one not found",
                  "originalRequest": {
                    "method": "PUT",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "url": {
                      "raw": "{{url}}/pricing/contract/:contractId/customers",
                      "host": [
                        "{{url}}"
                      ],
                      "path": [
                        "pricing",
                        "contract",
                        ":contractId",
                        "customers"
                      ],
                      "variable": [
                        {
                          "key": "contractId",
                          "value": "",
                          "description": "Contract id, returned in `id` on creation."
                        }
                      ]
                    },
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"customers\": [\n    \"57.578.030/0001-05\",\n    \"466.935.373-08\"\n  ]\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "body": "{\n  \"id\": 4610001,\n  \"customers\": [\n    \"57.578.030/0001-05\"\n  ],\n  \"notFound\": {\n    \"customers\": [\n      \"466.935.373-08\"\n    ]\n  }\n}"
                },
                {
                  "name": "Refusal — the route `contractId` is not a number greater than zero",
                  "originalRequest": {
                    "method": "PUT",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "url": {
                      "raw": "{{url}}/pricing/contract/:contractId/customers",
                      "host": [
                        "{{url}}"
                      ],
                      "path": [
                        "pricing",
                        "contract",
                        ":contractId",
                        "customers"
                      ],
                      "variable": [
                        {
                          "key": "contractId",
                          "value": "",
                          "description": "Contract id, returned in `id` on creation."
                        }
                      ]
                    },
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"customers\": [\n    \"57.578.030/0001-05\",\n    \"466.935.373-08\"\n  ]\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    }
                  },
                  "status": "Bad Request",
                  "code": 400,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "body": "{\n  \"error\": \"invalid contract id: \\\"...\\\"\"\n}"
                },
                {
                  "name": "Refusal — the contract does not exist or does not belong to the token's store",
                  "originalRequest": {
                    "method": "PUT",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "url": {
                      "raw": "{{url}}/pricing/contract/:contractId/customers",
                      "host": [
                        "{{url}}"
                      ],
                      "path": [
                        "pricing",
                        "contract",
                        ":contractId",
                        "customers"
                      ],
                      "variable": [
                        {
                          "key": "contractId",
                          "value": "",
                          "description": "Contract id, returned in `id` on creation."
                        }
                      ]
                    },
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"customers\": [\n    \"57.578.030/0001-05\",\n    \"466.935.373-08\"\n  ]\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    }
                  },
                  "status": "Bad Request",
                  "code": 400,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "body": "{\n  \"error\": \"priceContract.notFound\"\n}"
                },
                {
                  "name": "Refusal — the contract applies to all customers and does not accept individual customers",
                  "originalRequest": {
                    "method": "PUT",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "url": {
                      "raw": "{{url}}/pricing/contract/:contractId/customers",
                      "host": [
                        "{{url}}"
                      ],
                      "path": [
                        "pricing",
                        "contract",
                        ":contractId",
                        "customers"
                      ],
                      "variable": [
                        {
                          "key": "contractId",
                          "value": "",
                          "description": "Contract id, returned in `id` on creation."
                        }
                      ]
                    },
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"customers\": [\n    \"57.578.030/0001-05\",\n    \"466.935.373-08\"\n  ]\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    }
                  },
                  "status": "Bad Request",
                  "code": 400,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "body": "{\n  \"error\": \"priceContract.customers.addNotAllowed\"\n}"
                }
              ]
            },
            {
              "name": "Remove Customers from the Contract",
              "request": {
                "method": "DELETE",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "url": {
                  "raw": "{{url}}/pricing/contract/:contractId/customers",
                  "host": [
                    "{{url}}"
                  ],
                  "path": [
                    "pricing",
                    "contract",
                    ":contractId",
                    "customers"
                  ],
                  "variable": [
                    {
                      "key": "contractId",
                      "value": "",
                      "description": "Contract id, returned in `id` on creation."
                    }
                  ]
                },
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"customers\": [\n    \"57.578.030/0001-05\"\n  ]\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "description": "### Description\n\nRemoves customers from a contract, by each one's document. The customers stop receiving the contract prices.\n\nSend from 1 to 100 documents per request. Those that are not in the contract come back in `notFound`, without preventing the others.\n\n### Business rules\n\n#### A document outside the contract comes back in `notFound`\n\nA document that is not linked to the contract does not interrupt the request: it comes back in `notFound.customers` and the others are removed. The response is 200 even when no document was removed.\n\nSend the document **with the mask**, as in the addition: with digits only it comes back in `notFound.customers`, even if it is in the contract.\n\nTo empty the whole list at once, use `deleteAllCustomers` in **Update Contract**.\n\n### Responses\n\n**400**\n\nInvalid contract or outside your scope.\n\nThe route `contractId` is not a number greater than zero.\n\nThe contract does not exist or does not belong to the token's store.\n\n**401**\n\nMissing, malformed or expired token.\n\nThe detail comes in `error`.\n\n**422**\n\nInvalid body or customer list.\n\nBody that is not valid JSON, or `customers` out of the accepted range (see the field). The detail comes in `error`."
              },
              "response": [
                {
                  "name": "Success — customer removed",
                  "originalRequest": {
                    "method": "DELETE",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "url": {
                      "raw": "{{url}}/pricing/contract/:contractId/customers",
                      "host": [
                        "{{url}}"
                      ],
                      "path": [
                        "pricing",
                        "contract",
                        ":contractId",
                        "customers"
                      ],
                      "variable": [
                        {
                          "key": "contractId",
                          "value": "",
                          "description": "Contract id, returned in `id` on creation."
                        }
                      ]
                    },
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"customers\": [\n    \"57.578.030/0001-05\"\n  ]\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "body": "{\n  \"id\": 4610001,\n  \"customers\": [\n    \"57.578.030/0001-05\"\n  ],\n  \"notFound\": {\n    \"customers\": []\n  }\n}"
                },
                {
                  "name": "Refusal — the route `contractId` is not a number greater than zero",
                  "originalRequest": {
                    "method": "DELETE",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "url": {
                      "raw": "{{url}}/pricing/contract/:contractId/customers",
                      "host": [
                        "{{url}}"
                      ],
                      "path": [
                        "pricing",
                        "contract",
                        ":contractId",
                        "customers"
                      ],
                      "variable": [
                        {
                          "key": "contractId",
                          "value": "",
                          "description": "Contract id, returned in `id` on creation."
                        }
                      ]
                    },
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"customers\": [\n    \"57.578.030/0001-05\"\n  ]\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    }
                  },
                  "status": "Bad Request",
                  "code": 400,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "body": "{\n  \"error\": \"invalid contract id: \\\"...\\\"\"\n}"
                },
                {
                  "name": "Refusal — the contract does not exist or does not belong to the token's store",
                  "originalRequest": {
                    "method": "DELETE",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "url": {
                      "raw": "{{url}}/pricing/contract/:contractId/customers",
                      "host": [
                        "{{url}}"
                      ],
                      "path": [
                        "pricing",
                        "contract",
                        ":contractId",
                        "customers"
                      ],
                      "variable": [
                        {
                          "key": "contractId",
                          "value": "",
                          "description": "Contract id, returned in `id` on creation."
                        }
                      ]
                    },
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"customers\": [\n    \"57.578.030/0001-05\"\n  ]\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    }
                  },
                  "status": "Bad Request",
                  "code": 400,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "body": "{\n  \"error\": \"priceContract.notFound\"\n}"
                }
              ]
            },
            {
              "name": "Add Products to the Contract",
              "request": {
                "method": "PUT",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "url": {
                  "raw": "{{url}}/pricing/contract/:contractId/items",
                  "host": [
                    "{{url}}"
                  ],
                  "path": [
                    "pricing",
                    "contract",
                    ":contractId",
                    "items"
                  ],
                  "variable": [
                    {
                      "key": "contractId",
                      "value": "",
                      "description": "Contract id, returned in `id` on creation."
                    }
                  ]
                },
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"items\": [\n    {\n      \"partnerPartCode\": \"PRODUTO-TESTE-001\",\n      \"price\": 149.9,\n      \"targetMargin\": 18.5,\n      \"totalCost\": 120\n    },\n    {\n      \"partnerPartCode\": \"SKU-B-002\",\n      \"price\": 89.9\n    }\n  ]\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "description": "### Description\n\nAdds products to the contract with the price of each one, or updates the price of those already in it.\n\nEach product is processed independently: the result of each one comes in the `status` field of the response.\n\nSend from 1 to 100 products per request.\n\n`items[].value` is the legacy name of `items[].price` and is still accepted, with the same effect. When both are sent in the same item, `price` applies.\n\n### How to identify the product\n\nEach product must carry **one** of the two forms, in this order of precedence:\n\n| Form | Fields | When to use |\n| --- | --- | --- |\n| By partner code | `partnerPartCode` | You identify the product by your own code. |\n| By attribute | `skuAttributeValue` with `skuAttributeName` in the envelope | You have contracted the product catalog service with your own attribute. |\n\nUnlike the stock submission, different forms can coexist in the same submission: each product is resolved by the form it carries.\n\n### Business rules\n\n#### The product must belong to the store\n\nThe product is resolved within the catalog of the store that owns the contract. What does not resolve comes back in `notFound.items` and the others are stored.\n\n#### A product repeated in the same submission is not processed\n\nTwo products of the same submission that resolve to the same SKU — by the repeated code or by the attribute — both go to `notFound.items` and neither is stored. Send each product only once per request.\n\n#### A product rejected by value comes back in the list and does not bring down the submission\n\nNegative price, negative cost, margin outside 0 to 100 and a product without any form of identification are rejected **item by item**: the product comes back in `items` with `status: ERROR` and the reason in `error`, and the others are stored. The response is 200.\n\n### Responses\n\n**400**\n\nInvalid contract or outside your scope.\n\nThe route `contractId` is not a number greater than zero.\n\nThe contract does not exist or does not belong to the token's store.\n\n**401**\n\nMissing, malformed or expired token.\n\nThe detail comes in `error`.\n\n**422**\n\nInvalid body or product list.\n\nBody that is not valid JSON, or `items` missing, empty or with more than 100 entries. The detail comes in `error`."
              },
              "response": [
                {
                  "name": "Success — identification by partner code",
                  "originalRequest": {
                    "method": "PUT",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "url": {
                      "raw": "{{url}}/pricing/contract/:contractId/items",
                      "host": [
                        "{{url}}"
                      ],
                      "path": [
                        "pricing",
                        "contract",
                        ":contractId",
                        "items"
                      ],
                      "variable": [
                        {
                          "key": "contractId",
                          "value": "",
                          "description": "Contract id, returned in `id` on creation."
                        }
                      ]
                    },
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"items\": [\n    {\n      \"partnerPartCode\": \"PRODUTO-TESTE-001\",\n      \"price\": 149.9,\n      \"targetMargin\": 18.5,\n      \"totalCost\": 120\n    },\n    {\n      \"partnerPartCode\": \"SKU-B-002\",\n      \"price\": 89.9\n    }\n  ]\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "body": "{\n  \"id\": 4610001,\n  \"items\": [\n    {\n      \"skuId\": 10996361,\n      \"price\": 149.9,\n      \"targetMargin\": 18.5,\n      \"totalCost\": 120,\n      \"status\": \"inserted\"\n    },\n    {\n      \"skuId\": 500102,\n      \"price\": 89.9,\n      \"targetMargin\": null,\n      \"totalCost\": null,\n      \"status\": \"inserted\"\n    }\n  ],\n  \"notFound\": {\n    \"items\": []\n  }\n}"
                },
                {
                  "name": "Success — identification by attribute, with a rejected item",
                  "originalRequest": {
                    "method": "PUT",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "url": {
                      "raw": "{{url}}/pricing/contract/:contractId/items",
                      "host": [
                        "{{url}}"
                      ],
                      "path": [
                        "pricing",
                        "contract",
                        ":contractId",
                        "items"
                      ],
                      "variable": [
                        {
                          "key": "contractId",
                          "value": "",
                          "description": "Contract id, returned in `id` on creation."
                        }
                      ]
                    },
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"skuAttributeName\": \"codigo-produto-teste\",\n  \"items\": [\n    {\n      \"skuAttributeValue\": \"PRODUTO-TESTE-001\",\n      \"price\": 139.9\n    },\n    {\n      \"skuAttributeValue\": \"SKU-Z-999\",\n      \"price\": 10\n    }\n  ]\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "body": "{\n  \"id\": 4610001,\n  \"items\": [\n    {\n      \"skuId\": 10996361,\n      \"price\": 139.9,\n      \"targetMargin\": null,\n      \"totalCost\": null,\n      \"status\": \"updated\"\n    },\n    {\n      \"price\": 50,\n      \"targetMargin\": null,\n      \"totalCost\": null,\n      \"status\": \"ERROR\",\n      \"error\": \"must provide skuId, partnerPartCode, or skuAttributeValue\"\n    }\n  ],\n  \"notFound\": {\n    \"items\": [\n      {\n        \"skuAttributeValue\": \"SKU-Z-999\",\n        \"price\": 10,\n        \"targetMargin\": null,\n        \"totalCost\": null\n      }\n    ]\n  }\n}"
                },
                {
                  "name": "Refusal — the route `contractId` is not a number greater than zero",
                  "originalRequest": {
                    "method": "PUT",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "url": {
                      "raw": "{{url}}/pricing/contract/:contractId/items",
                      "host": [
                        "{{url}}"
                      ],
                      "path": [
                        "pricing",
                        "contract",
                        ":contractId",
                        "items"
                      ],
                      "variable": [
                        {
                          "key": "contractId",
                          "value": "",
                          "description": "Contract id, returned in `id` on creation."
                        }
                      ]
                    },
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"items\": [\n    {\n      \"partnerPartCode\": \"PRODUTO-TESTE-001\",\n      \"price\": 149.9,\n      \"targetMargin\": 18.5,\n      \"totalCost\": 120\n    },\n    {\n      \"partnerPartCode\": \"SKU-B-002\",\n      \"price\": 89.9\n    }\n  ]\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    }
                  },
                  "status": "Bad Request",
                  "code": 400,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "body": "{\n  \"error\": \"invalid contract id: \\\"...\\\"\"\n}"
                },
                {
                  "name": "Refusal — the contract does not exist or does not belong to the token's store",
                  "originalRequest": {
                    "method": "PUT",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "url": {
                      "raw": "{{url}}/pricing/contract/:contractId/items",
                      "host": [
                        "{{url}}"
                      ],
                      "path": [
                        "pricing",
                        "contract",
                        ":contractId",
                        "items"
                      ],
                      "variable": [
                        {
                          "key": "contractId",
                          "value": "",
                          "description": "Contract id, returned in `id` on creation."
                        }
                      ]
                    },
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"items\": [\n    {\n      \"partnerPartCode\": \"PRODUTO-TESTE-001\",\n      \"price\": 149.9,\n      \"targetMargin\": 18.5,\n      \"totalCost\": 120\n    },\n    {\n      \"partnerPartCode\": \"SKU-B-002\",\n      \"price\": 89.9\n    }\n  ]\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    }
                  },
                  "status": "Bad Request",
                  "code": 400,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "body": "{\n  \"error\": \"priceContract.notFound\"\n}"
                }
              ]
            },
            {
              "name": "Remove Products from the Contract",
              "request": {
                "method": "DELETE",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "url": {
                  "raw": "{{url}}/pricing/contract/:contractId/items",
                  "host": [
                    "{{url}}"
                  ],
                  "path": [
                    "pricing",
                    "contract",
                    ":contractId",
                    "items"
                  ],
                  "variable": [
                    {
                      "key": "contractId",
                      "value": "",
                      "description": "Contract id, returned in `id` on creation."
                    }
                  ]
                },
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"items\": [\n    {\n      \"partnerPartCode\": \"PRODUTO-TESTE-001\"\n    },\n    {\n      \"partnerPartCode\": \"SKU-Z-999\"\n    }\n  ]\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "description": "### Description\n\nRemoves products from the contract. The products go back to being sold at the store's list price.\n\nSend from 1 to 100 products per request, identified in the same way as in the addition. The price is not sent in the removal.\n\n### How to identify the product\n\nEach product must carry **one** of the two forms, in this order of precedence:\n\n| Form | Fields | When to use |\n| --- | --- | --- |\n| By partner code | `partnerPartCode` | You identify the product by your own code. |\n| By attribute | `skuAttributeValue` with `skuAttributeName` in the envelope | You have contracted the product catalog service with your own attribute. |\n\n### Business rules\n\n#### A product outside the contract comes back in `notFound`\n\nA product that is not in the contract does not interrupt the request: it comes back in `notFound.items` and the others are removed. The response is 200 even when no product was removed.\n\nTo empty the whole list at once, use `deleteAllItems` in **Update Contract**.\n\n### Responses\n\n**400**\n\nInvalid contract or outside your scope.\n\nThe route `contractId` is not a number greater than zero.\n\nThe contract does not exist or does not belong to the token's store.\n\n**401**\n\nMissing, malformed or expired token.\n\nThe detail comes in `error`.\n\n**422**\n\nInvalid body or product list.\n\nBody that is not valid JSON, or `items` missing, empty or with more than 100 entries. The detail comes in `error`."
              },
              "response": [
                {
                  "name": "Success — product removed",
                  "originalRequest": {
                    "method": "DELETE",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "url": {
                      "raw": "{{url}}/pricing/contract/:contractId/items",
                      "host": [
                        "{{url}}"
                      ],
                      "path": [
                        "pricing",
                        "contract",
                        ":contractId",
                        "items"
                      ],
                      "variable": [
                        {
                          "key": "contractId",
                          "value": "",
                          "description": "Contract id, returned in `id` on creation."
                        }
                      ]
                    },
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"items\": [\n    {\n      \"partnerPartCode\": \"PRODUTO-TESTE-001\"\n    },\n    {\n      \"partnerPartCode\": \"SKU-Z-999\"\n    }\n  ]\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "body": "{\n  \"id\": 4610001,\n  \"items\": [\n    {\n      \"skuId\": 10996361,\n      \"partnerPartCode\": \"PRODUTO-TESTE-001\",\n      \"value\": 139.9,\n      \"price\": null,\n      \"targetMargin\": null,\n      \"totalCost\": null\n    }\n  ],\n  \"notFound\": {\n    \"items\": [\n      {\n        \"partnerPartCode\": \"SKU-Z-999\",\n        \"price\": null,\n        \"targetMargin\": null,\n        \"totalCost\": null\n      }\n    ]\n  }\n}"
                },
                {
                  "name": "Refusal — the route `contractId` is not a number greater than zero",
                  "originalRequest": {
                    "method": "DELETE",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "url": {
                      "raw": "{{url}}/pricing/contract/:contractId/items",
                      "host": [
                        "{{url}}"
                      ],
                      "path": [
                        "pricing",
                        "contract",
                        ":contractId",
                        "items"
                      ],
                      "variable": [
                        {
                          "key": "contractId",
                          "value": "",
                          "description": "Contract id, returned in `id` on creation."
                        }
                      ]
                    },
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"items\": [\n    {\n      \"partnerPartCode\": \"PRODUTO-TESTE-001\"\n    },\n    {\n      \"partnerPartCode\": \"SKU-Z-999\"\n    }\n  ]\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    }
                  },
                  "status": "Bad Request",
                  "code": 400,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "body": "{\n  \"error\": \"invalid contract id: \\\"...\\\"\"\n}"
                },
                {
                  "name": "Refusal — the contract does not exist or does not belong to the token's store",
                  "originalRequest": {
                    "method": "DELETE",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "url": {
                      "raw": "{{url}}/pricing/contract/:contractId/items",
                      "host": [
                        "{{url}}"
                      ],
                      "path": [
                        "pricing",
                        "contract",
                        ":contractId",
                        "items"
                      ],
                      "variable": [
                        {
                          "key": "contractId",
                          "value": "",
                          "description": "Contract id, returned in `id` on creation."
                        }
                      ]
                    },
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"items\": [\n    {\n      \"partnerPartCode\": \"PRODUTO-TESTE-001\"\n    },\n    {\n      \"partnerPartCode\": \"SKU-Z-999\"\n    }\n  ]\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    }
                  },
                  "status": "Bad Request",
                  "code": 400,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "body": "{\n  \"error\": \"priceContract.notFound\"\n}"
                }
              ]
            }
          ]
        },
        {
          "name": "Parent Account Management",
          "item": [
            {
              "name": "Create Branch Contract",
              "request": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "url": {
                  "raw": "{{url}}/priceContract/store/:partnerId",
                  "host": [
                    "{{url}}"
                  ],
                  "path": [
                    "priceContract",
                    "store",
                    ":partnerId"
                  ],
                  "variable": [
                    {
                      "key": "partnerId",
                      "value": "",
                      "description": "Id of the **branch** that owns the contract. It must be linked to the token's parent account."
                    }
                  ]
                },
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"name\": \"Tabela Atacado Filial 2026\",\n  \"startDate\": \"2026-09-01T00:00:00\",\n  \"endDate\": \"2026-12-31T23:59:59\",\n  \"allCustomers\": false,\n  \"allPartners\": false,\n  \"active\": true,\n  \"priority\": 10,\n  \"contractType\": \"BASIC\",\n  \"isDiscountBlockedByAttendant\": false,\n  \"stateList\": [\n    \"SP\",\n    \"MG\"\n  ],\n  \"customerGroupList\": [\n    {\n      \"externalId\": \"GRUPO-ATACADO\"\n    }\n  ]\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "description": "### Description\n\nAllows a **parent** account to create a price contract in one of its **branches**.\n\nThe creation stores the contract **header** — validity period, scope and application filters. Customers and products come in later, through **Add Customers to the Branch Contract** and **Add Products to the Branch Contract**.\n\nThe body and the response are identical to those of the creation in your own store — the difference is the branch that owns the contract, which comes in the route and is validated against the links of your parent account.\n\n### Business rules\n\n#### Customer scope\n\n`allCustomers: true` applies the contract to **all** customers of the store, and the contract starts rejecting the addition of individual customers with 400.\n\nWith `allCustomers: false`, the contract applies only to the customers you add later, one by one.\n\n#### Which contract wins\n\nWhen more than one active contract reaches the same product for the same customer, the one with the highest `priority` wins. With tied priority, the contract restricted to specific customers wins over the one that applies to all customers. If the tie persists, the oldest contract wins.\n\n#### Countdown offer\n\n`contractType: COUNTDOWN` marks the contract as a countdown offer: the returned price starts carrying the discount and the end date of the offer.\n\nThe countdown contract only enters the price calculation with `priceBeforeAfter: true`.\n\n### Responses\n\n**400**\n\nThe route `partnerId` is not numeric.\n\n**401**\n\nMissing, malformed or expired token.\n\nThe detail comes in `error`.\n\n**403**\n\nBranch not linked to your parent account.\n\n**422**\n\nInvalid body, required field or validity period.\n\nInvalid body, missing required field, date out of format or `endDate` before `startDate`. The detail comes in `error`."
              },
              "response": [
                {
                  "name": "Success — contract created",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "url": {
                      "raw": "{{url}}/priceContract/store/:partnerId",
                      "host": [
                        "{{url}}"
                      ],
                      "path": [
                        "priceContract",
                        "store",
                        ":partnerId"
                      ],
                      "variable": [
                        {
                          "key": "partnerId",
                          "value": "",
                          "description": "Id of the **branch** that owns the contract. It must be linked to the token's parent account."
                        }
                      ]
                    },
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"name\": \"Tabela Atacado Filial 2026\",\n  \"startDate\": \"2026-09-01T00:00:00\",\n  \"endDate\": \"2026-12-31T23:59:59\",\n  \"allCustomers\": false,\n  \"allPartners\": false,\n  \"active\": true,\n  \"priority\": 10,\n  \"contractType\": \"BASIC\",\n  \"isDiscountBlockedByAttendant\": false,\n  \"stateList\": [\n    \"SP\",\n    \"MG\"\n  ],\n  \"customerGroupList\": [\n    {\n      \"externalId\": \"GRUPO-ATACADO\"\n    }\n  ]\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "body": "{\n  \"id\": 4610002,\n  \"name\": \"Tabela Atacado Filial 2026\",\n  \"active\": true,\n  \"partner\": {\n    \"id\": 5057,\n    \"name\": \"Loja Exemplo — Filial Campinas\",\n    \"document\": \"30.424.972/0002-55\"\n  },\n  \"allCustomers\": false,\n  \"allPartners\": false,\n  \"priority\": 10,\n  \"dateStart\": \"2026-09-01T00:00:00Z\",\n  \"dateEnd\": \"2026-12-31T23:59:59Z\",\n  \"dateCreated\": \"2026-09-04T13:22:32.687284Z\",\n  \"lastUpdated\": \"2026-09-04T13:22:32.687284Z\",\n  \"priceBeforeAfter\": null,\n  \"contractType\": \"BASIC\",\n  \"isDiscountBlockedByAttendant\": false,\n  \"priceContractPartners\": [],\n  \"priceContractStates\": [\n    \"SP\",\n    \"MG\"\n  ],\n  \"priceContractCustomerGroups\": [\n    4610101\n  ],\n  \"priceContractStores\": []\n}"
                },
                {
                  "name": "Refusal — the route `partnerId` is not numeric",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "url": {
                      "raw": "{{url}}/priceContract/store/:partnerId",
                      "host": [
                        "{{url}}"
                      ],
                      "path": [
                        "priceContract",
                        "store",
                        ":partnerId"
                      ],
                      "variable": [
                        {
                          "key": "partnerId",
                          "value": "",
                          "description": "Id of the **branch** that owns the contract. It must be linked to the token's parent account."
                        }
                      ]
                    },
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"name\": \"Tabela Atacado Filial 2026\",\n  \"startDate\": \"2026-09-01T00:00:00\",\n  \"endDate\": \"2026-12-31T23:59:59\",\n  \"allCustomers\": false,\n  \"allPartners\": false,\n  \"active\": true,\n  \"priority\": 10,\n  \"contractType\": \"BASIC\",\n  \"isDiscountBlockedByAttendant\": false,\n  \"stateList\": [\n    \"SP\",\n    \"MG\"\n  ],\n  \"customerGroupList\": [\n    {\n      \"externalId\": \"GRUPO-ATACADO\"\n    }\n  ]\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    }
                  },
                  "status": "Bad Request",
                  "code": 400,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "body": "{\n  \"error\": \"Invalid target partner ID\"\n}"
                },
                {
                  "name": "Refusal — branch not linked to your parent account",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "url": {
                      "raw": "{{url}}/priceContract/store/:partnerId",
                      "host": [
                        "{{url}}"
                      ],
                      "path": [
                        "priceContract",
                        "store",
                        ":partnerId"
                      ],
                      "variable": [
                        {
                          "key": "partnerId",
                          "value": "",
                          "description": "Id of the **branch** that owns the contract. It must be linked to the token's parent account."
                        }
                      ]
                    },
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"name\": \"Tabela Atacado Filial 2026\",\n  \"startDate\": \"2026-09-01T00:00:00\",\n  \"endDate\": \"2026-12-31T23:59:59\",\n  \"allCustomers\": false,\n  \"allPartners\": false,\n  \"active\": true,\n  \"priority\": 10,\n  \"contractType\": \"BASIC\",\n  \"isDiscountBlockedByAttendant\": false,\n  \"stateList\": [\n    \"SP\",\n    \"MG\"\n  ],\n  \"customerGroupList\": [\n    {\n      \"externalId\": \"GRUPO-ATACADO\"\n    }\n  ]\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    }
                  },
                  "status": "Forbidden",
                  "code": 403,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "body": "{\n  \"error\": \"Access denied: Invalid partnership\"\n}"
                }
              ]
            },
            {
              "name": "Update Branch Contract",
              "request": {
                "method": "PUT",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "url": {
                  "raw": "{{url}}/pricing/contract/:contractId/store/:partnerId",
                  "host": [
                    "{{url}}"
                  ],
                  "path": [
                    "pricing",
                    "contract",
                    ":contractId",
                    "store",
                    ":partnerId"
                  ],
                  "variable": [
                    {
                      "key": "contractId",
                      "value": "",
                      "description": "Contract id, returned in `id` on creation."
                    },
                    {
                      "key": "partnerId",
                      "value": "",
                      "description": "Id of the **branch** that owns the contract. It must be linked to the token's parent account."
                    }
                  ]
                },
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"active\": true,\n  \"dateEnd\": \"2027-06-30T23:59:59\",\n  \"partners\": [\n    5057\n  ],\n  \"stateList\": [\n    \"RJ\"\n  ],\n  \"replaceFilters\": true\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "description": "### Description\n\nAllows a **parent** account to update part of the header of a contract of one of its **branches**: status, validity period, scope and application filters. It is a **partial** update — send only the fields you want to change.\n\nThe body and the response are identical to those of the update in your own store — the difference is the branch that owns the contract, which comes in the route and is validated against the links of your parent account.\n\nAll fields are optional, but the body must bring **at least one** of them filled in.\n\nThe name, the type and the products and customers of the contract are not part of this body: the validity period is updated through `dateStart` and `dateEnd`, and customers and products through their own endpoints.\n\n### Business rules\n\n#### Add or replace filters\n\nWith `replaceFilters: false` (the default), the states, branches and groups sent are **added** to the ones the contract already has.\n\nWith `replaceFilters: true`, the contract filters become **exactly** the ones you sent.\n\n### Responses\n\n**400**\n\nInvalid branch or contract.\n\nThe route `partnerId` is not numeric.\n\nThe route `contractId` is not a number greater than zero.\n\nThe contract does not exist or does not belong to the branch provided.\n\n**401**\n\nMissing, malformed or expired token.\n\nThe detail comes in `error`.\n\n**403**\n\nBranch not linked to your parent account.\n\n**422**\n\nInvalid body or no field to change.\n\nBody that is not valid JSON, empty body, or none of the fields above filled in. The detail comes in `error`."
              },
              "response": [
                {
                  "name": "Success — validity period and filters updated",
                  "originalRequest": {
                    "method": "PUT",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "url": {
                      "raw": "{{url}}/pricing/contract/:contractId/store/:partnerId",
                      "host": [
                        "{{url}}"
                      ],
                      "path": [
                        "pricing",
                        "contract",
                        ":contractId",
                        "store",
                        ":partnerId"
                      ],
                      "variable": [
                        {
                          "key": "contractId",
                          "value": "",
                          "description": "Contract id, returned in `id` on creation."
                        },
                        {
                          "key": "partnerId",
                          "value": "",
                          "description": "Id of the **branch** that owns the contract. It must be linked to the token's parent account."
                        }
                      ]
                    },
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"active\": true,\n  \"dateEnd\": \"2027-06-30T23:59:59\",\n  \"partners\": [\n    5057\n  ],\n  \"stateList\": [\n    \"RJ\"\n  ],\n  \"replaceFilters\": true\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "body": "{\n  \"id\": 4610002,\n  \"active\": true,\n  \"allCustomers\": false,\n  \"allPartners\": false,\n  \"replaceFilters\": true,\n  \"priceContractPartners\": [\n    {\n      \"id\": 5057,\n      \"name\": \"Loja Exemplo — Filial Campinas\",\n      \"document\": \"30.424.972/0002-55\"\n    }\n  ],\n  \"priceContractStates\": [\n    \"RJ\"\n  ],\n  \"priceContractCustomerGroups\": [\n    4610101\n  ]\n}"
                },
                {
                  "name": "Refusal — the route `partnerId` is not numeric",
                  "originalRequest": {
                    "method": "PUT",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "url": {
                      "raw": "{{url}}/pricing/contract/:contractId/store/:partnerId",
                      "host": [
                        "{{url}}"
                      ],
                      "path": [
                        "pricing",
                        "contract",
                        ":contractId",
                        "store",
                        ":partnerId"
                      ],
                      "variable": [
                        {
                          "key": "contractId",
                          "value": "",
                          "description": "Contract id, returned in `id` on creation."
                        },
                        {
                          "key": "partnerId",
                          "value": "",
                          "description": "Id of the **branch** that owns the contract. It must be linked to the token's parent account."
                        }
                      ]
                    },
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"active\": true,\n  \"dateEnd\": \"2027-06-30T23:59:59\",\n  \"partners\": [\n    5057\n  ],\n  \"stateList\": [\n    \"RJ\"\n  ],\n  \"replaceFilters\": true\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    }
                  },
                  "status": "Bad Request",
                  "code": 400,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "body": "{\n  \"error\": \"Invalid target partner ID\"\n}"
                },
                {
                  "name": "Refusal — the route `contractId` is not a number greater than zero",
                  "originalRequest": {
                    "method": "PUT",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "url": {
                      "raw": "{{url}}/pricing/contract/:contractId/store/:partnerId",
                      "host": [
                        "{{url}}"
                      ],
                      "path": [
                        "pricing",
                        "contract",
                        ":contractId",
                        "store",
                        ":partnerId"
                      ],
                      "variable": [
                        {
                          "key": "contractId",
                          "value": "",
                          "description": "Contract id, returned in `id` on creation."
                        },
                        {
                          "key": "partnerId",
                          "value": "",
                          "description": "Id of the **branch** that owns the contract. It must be linked to the token's parent account."
                        }
                      ]
                    },
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"active\": true,\n  \"dateEnd\": \"2027-06-30T23:59:59\",\n  \"partners\": [\n    5057\n  ],\n  \"stateList\": [\n    \"RJ\"\n  ],\n  \"replaceFilters\": true\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    }
                  },
                  "status": "Bad Request",
                  "code": 400,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "body": "{\n  \"error\": \"invalid contract id: \\\"...\\\"\"\n}"
                },
                {
                  "name": "Refusal — the contract does not exist or does not belong to the branch provided",
                  "originalRequest": {
                    "method": "PUT",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "url": {
                      "raw": "{{url}}/pricing/contract/:contractId/store/:partnerId",
                      "host": [
                        "{{url}}"
                      ],
                      "path": [
                        "pricing",
                        "contract",
                        ":contractId",
                        "store",
                        ":partnerId"
                      ],
                      "variable": [
                        {
                          "key": "contractId",
                          "value": "",
                          "description": "Contract id, returned in `id` on creation."
                        },
                        {
                          "key": "partnerId",
                          "value": "",
                          "description": "Id of the **branch** that owns the contract. It must be linked to the token's parent account."
                        }
                      ]
                    },
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"active\": true,\n  \"dateEnd\": \"2027-06-30T23:59:59\",\n  \"partners\": [\n    5057\n  ],\n  \"stateList\": [\n    \"RJ\"\n  ],\n  \"replaceFilters\": true\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    }
                  },
                  "status": "Bad Request",
                  "code": 400,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "body": "{\n  \"error\": \"price contract not found\"\n}"
                },
                {
                  "name": "Refusal — branch not linked to your parent account",
                  "originalRequest": {
                    "method": "PUT",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "url": {
                      "raw": "{{url}}/pricing/contract/:contractId/store/:partnerId",
                      "host": [
                        "{{url}}"
                      ],
                      "path": [
                        "pricing",
                        "contract",
                        ":contractId",
                        "store",
                        ":partnerId"
                      ],
                      "variable": [
                        {
                          "key": "contractId",
                          "value": "",
                          "description": "Contract id, returned in `id` on creation."
                        },
                        {
                          "key": "partnerId",
                          "value": "",
                          "description": "Id of the **branch** that owns the contract. It must be linked to the token's parent account."
                        }
                      ]
                    },
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"active\": true,\n  \"dateEnd\": \"2027-06-30T23:59:59\",\n  \"partners\": [\n    5057\n  ],\n  \"stateList\": [\n    \"RJ\"\n  ],\n  \"replaceFilters\": true\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    }
                  },
                  "status": "Forbidden",
                  "code": 403,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "body": "{\n  \"error\": \"Access denied: Invalid partnership\"\n}"
                }
              ]
            },
            {
              "name": "List Branch Contracts",
              "request": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{url}}/pricing/contract/list/store/:partnerId?limit=20&offset=0",
                  "host": [
                    "{{url}}"
                  ],
                  "path": [
                    "pricing",
                    "contract",
                    "list",
                    "store",
                    ":partnerId"
                  ],
                  "query": [
                    {
                      "key": "limit",
                      "value": "20",
                      "description": "Contracts per page. Default **20**, maximum **50**. Above the maximum, the maximum applies."
                    },
                    {
                      "key": "offset",
                      "value": "0",
                      "description": "How many contracts to skip. Default **0**."
                    }
                  ],
                  "variable": [
                    {
                      "key": "partnerId",
                      "value": "",
                      "description": "Id of the **branch** that owns the contract. It must be linked to the token's parent account."
                    }
                  ]
                },
                "description": "### Description\n\nAllows a **parent** account to list the price contracts of one of its **branches**, from the most recent to the oldest, with pagination.\n\nThe response is identical to that of the listing of your own store — the difference is the branch queried, which comes in the route and is validated against the links of your parent account.\n\n### Responses\n\n**200**\n\nArray of contracts.\n\nEach contract comes in the format of the creation response, with `allPartners`, `priceContractPartners`, `priceContractStates`, `priceContractCustomerGroups` and `priceContractStores` always `null`.\n\n**400**\n\nInvalid branch or pagination, or empty page.\n\nThe route `partnerId` is not numeric.\n\n`limit` or `offset` is not numeric.\n\nThe store has no contract at all on the requested page.\n\n**401**\n\nMissing, malformed or expired token.\n\nThe detail comes in `error`.\n\n**403**\n\nBranch not linked to your parent account."
              },
              "response": [
                {
                  "name": "Success — one contract",
                  "originalRequest": {
                    "method": "GET",
                    "header": [],
                    "url": {
                      "raw": "{{url}}/pricing/contract/list/store/:partnerId?limit=20&offset=0",
                      "host": [
                        "{{url}}"
                      ],
                      "path": [
                        "pricing",
                        "contract",
                        "list",
                        "store",
                        ":partnerId"
                      ],
                      "query": [
                        {
                          "key": "limit",
                          "value": "20",
                          "description": "Contracts per page. Default **20**, maximum **50**. Above the maximum, the maximum applies."
                        },
                        {
                          "key": "offset",
                          "value": "0",
                          "description": "How many contracts to skip. Default **0**."
                        }
                      ],
                      "variable": [
                        {
                          "key": "partnerId",
                          "value": "",
                          "description": "Id of the **branch** that owns the contract. It must be linked to the token's parent account."
                        }
                      ]
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "body": "[\n  {\n    \"id\": 4610002,\n    \"name\": \"Tabela Atacado Filial 2026\",\n    \"active\": true,\n    \"partner\": {\n      \"id\": 5057,\n      \"name\": \"Loja Exemplo — Filial Campinas\",\n      \"document\": \"30.424.972/0002-55\"\n    },\n    \"allCustomers\": false,\n    \"allPartners\": null,\n    \"priority\": 10,\n    \"dateStart\": \"2026-09-01T00:00:00Z\",\n    \"dateEnd\": \"2027-06-30T23:59:59Z\",\n    \"dateCreated\": \"2026-09-04T13:22:32.687284Z\",\n    \"lastUpdated\": \"2026-09-04T13:22:32.687284Z\",\n    \"priceBeforeAfter\": null,\n    \"contractType\": \"BASIC\",\n    \"isDiscountBlockedByAttendant\": false,\n    \"priceContractPartners\": null,\n    \"priceContractStates\": null,\n    \"priceContractCustomerGroups\": null,\n    \"priceContractStores\": null\n  }\n]"
                },
                {
                  "name": "Refusal — the route `partnerId` is not numeric",
                  "originalRequest": {
                    "method": "GET",
                    "header": [],
                    "url": {
                      "raw": "{{url}}/pricing/contract/list/store/:partnerId?limit=20&offset=0",
                      "host": [
                        "{{url}}"
                      ],
                      "path": [
                        "pricing",
                        "contract",
                        "list",
                        "store",
                        ":partnerId"
                      ],
                      "query": [
                        {
                          "key": "limit",
                          "value": "20",
                          "description": "Contracts per page. Default **20**, maximum **50**. Above the maximum, the maximum applies."
                        },
                        {
                          "key": "offset",
                          "value": "0",
                          "description": "How many contracts to skip. Default **0**."
                        }
                      ],
                      "variable": [
                        {
                          "key": "partnerId",
                          "value": "",
                          "description": "Id of the **branch** that owns the contract. It must be linked to the token's parent account."
                        }
                      ]
                    }
                  },
                  "status": "Bad Request",
                  "code": 400,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "body": "{\n  \"error\": \"Invalid target partner ID\"\n}"
                },
                {
                  "name": "Refusal — non-numeric `limit`",
                  "originalRequest": {
                    "method": "GET",
                    "header": [],
                    "url": {
                      "raw": "{{url}}/pricing/contract/list/store/:partnerId?limit=20&offset=0",
                      "host": [
                        "{{url}}"
                      ],
                      "path": [
                        "pricing",
                        "contract",
                        "list",
                        "store",
                        ":partnerId"
                      ],
                      "query": [
                        {
                          "key": "limit",
                          "value": "20",
                          "description": "Contracts per page. Default **20**, maximum **50**. Above the maximum, the maximum applies."
                        },
                        {
                          "key": "offset",
                          "value": "0",
                          "description": "How many contracts to skip. Default **0**."
                        }
                      ],
                      "variable": [
                        {
                          "key": "partnerId",
                          "value": "",
                          "description": "Id of the **branch** that owns the contract. It must be linked to the token's parent account."
                        }
                      ]
                    }
                  },
                  "status": "Bad Request",
                  "code": 400,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "body": "{\n  \"error\": \"invalid limit\"\n}"
                },
                {
                  "name": "Refusal — non-numeric `offset`",
                  "originalRequest": {
                    "method": "GET",
                    "header": [],
                    "url": {
                      "raw": "{{url}}/pricing/contract/list/store/:partnerId?limit=20&offset=0",
                      "host": [
                        "{{url}}"
                      ],
                      "path": [
                        "pricing",
                        "contract",
                        "list",
                        "store",
                        ":partnerId"
                      ],
                      "query": [
                        {
                          "key": "limit",
                          "value": "20",
                          "description": "Contracts per page. Default **20**, maximum **50**. Above the maximum, the maximum applies."
                        },
                        {
                          "key": "offset",
                          "value": "0",
                          "description": "How many contracts to skip. Default **0**."
                        }
                      ],
                      "variable": [
                        {
                          "key": "partnerId",
                          "value": "",
                          "description": "Id of the **branch** that owns the contract. It must be linked to the token's parent account."
                        }
                      ]
                    }
                  },
                  "status": "Bad Request",
                  "code": 400,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "body": "{\n  \"error\": \"invalid offset\"\n}"
                },
                {
                  "name": "Refusal — the store has no contract at all on the requested page",
                  "originalRequest": {
                    "method": "GET",
                    "header": [],
                    "url": {
                      "raw": "{{url}}/pricing/contract/list/store/:partnerId?limit=20&offset=0",
                      "host": [
                        "{{url}}"
                      ],
                      "path": [
                        "pricing",
                        "contract",
                        "list",
                        "store",
                        ":partnerId"
                      ],
                      "query": [
                        {
                          "key": "limit",
                          "value": "20",
                          "description": "Contracts per page. Default **20**, maximum **50**. Above the maximum, the maximum applies."
                        },
                        {
                          "key": "offset",
                          "value": "0",
                          "description": "How many contracts to skip. Default **0**."
                        }
                      ],
                      "variable": [
                        {
                          "key": "partnerId",
                          "value": "",
                          "description": "Id of the **branch** that owns the contract. It must be linked to the token's parent account."
                        }
                      ]
                    }
                  },
                  "status": "Bad Request",
                  "code": 400,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "body": "{\n  \"error\": \"priceContract.list.empty\"\n}"
                },
                {
                  "name": "Refusal — branch not linked to your parent account",
                  "originalRequest": {
                    "method": "GET",
                    "header": [],
                    "url": {
                      "raw": "{{url}}/pricing/contract/list/store/:partnerId?limit=20&offset=0",
                      "host": [
                        "{{url}}"
                      ],
                      "path": [
                        "pricing",
                        "contract",
                        "list",
                        "store",
                        ":partnerId"
                      ],
                      "query": [
                        {
                          "key": "limit",
                          "value": "20",
                          "description": "Contracts per page. Default **20**, maximum **50**. Above the maximum, the maximum applies."
                        },
                        {
                          "key": "offset",
                          "value": "0",
                          "description": "How many contracts to skip. Default **0**."
                        }
                      ],
                      "variable": [
                        {
                          "key": "partnerId",
                          "value": "",
                          "description": "Id of the **branch** that owns the contract. It must be linked to the token's parent account."
                        }
                      ]
                    }
                  },
                  "status": "Forbidden",
                  "code": 403,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "body": "{\n  \"error\": \"Access denied: Invalid partnership\"\n}"
                }
              ]
            },
            {
              "name": "Add Customers to the Branch Contract",
              "request": {
                "method": "PUT",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "url": {
                  "raw": "{{url}}/pricing/contract/:contractId/customers/store/:partnerId",
                  "host": [
                    "{{url}}"
                  ],
                  "path": [
                    "pricing",
                    "contract",
                    ":contractId",
                    "customers",
                    "store",
                    ":partnerId"
                  ],
                  "variable": [
                    {
                      "key": "contractId",
                      "value": "",
                      "description": "Contract id, returned in `id` on creation."
                    },
                    {
                      "key": "partnerId",
                      "value": "",
                      "description": "Id of the **branch** that owns the contract. It must be linked to the token's parent account."
                    }
                  ]
                },
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"customers\": [\n    \"57.578.030/0001-05\",\n    \"466.935.373-08\"\n  ]\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "description": "### Description\n\nAllows a **parent** account to add customers to a contract of one of its **branches**, by each one's document. The customers start receiving the contract prices.\n\nThe body and the response are identical to those of the addition in your own store — the difference is the branch that owns the contract, which comes in the route and is validated against the links of your parent account.\n\n### Business rules\n\n#### A contract for all customers does not take individual customers\n\nA contract created with `allCustomers: true` already applies to all customers of the branch and rejects the addition with **400** and `priceContract.customers.addNotAllowed`. To build a customer list, the contract must have `allCustomers: false`.\n\n#### A document that does not exist in the database comes back in `notFound`\n\nThe customer must exist on the platform, but does not need to have bought from your store.\n\nThe document goes **with the mask** — CPF `000.000.000-00`, CNPJ `00.000.000/0000-00`: with digits only it is not found and comes back in `notFound.customers`, even if the customer exists.\n\nA document that does not resolve does not interrupt the request: it comes back in `notFound.customers` and the others are stored. The response is 200 even when no document resolved.\n\n### Responses\n\n**400**\n\nInvalid branch, contract or customer addition.\n\nThe route `partnerId` is not numeric.\n\nThe route `contractId` is not a number greater than zero.\n\nThe contract does not exist or does not belong to the branch provided.\n\nThe contract applies to all customers and does not accept individual customers.\n\n**401**\n\nMissing, malformed or expired token.\n\nThe detail comes in `error`.\n\n**403**\n\nBranch not linked to your parent account.\n\n**422**\n\nInvalid body or customer list.\n\nBody that is not valid JSON, or `customers` out of the accepted range (see the field). The detail comes in `error`."
              },
              "response": [
                {
                  "name": "Success — one customer linked and one not found",
                  "originalRequest": {
                    "method": "PUT",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "url": {
                      "raw": "{{url}}/pricing/contract/:contractId/customers/store/:partnerId",
                      "host": [
                        "{{url}}"
                      ],
                      "path": [
                        "pricing",
                        "contract",
                        ":contractId",
                        "customers",
                        "store",
                        ":partnerId"
                      ],
                      "variable": [
                        {
                          "key": "contractId",
                          "value": "",
                          "description": "Contract id, returned in `id` on creation."
                        },
                        {
                          "key": "partnerId",
                          "value": "",
                          "description": "Id of the **branch** that owns the contract. It must be linked to the token's parent account."
                        }
                      ]
                    },
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"customers\": [\n    \"57.578.030/0001-05\",\n    \"466.935.373-08\"\n  ]\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "body": "{\n  \"id\": 4610002,\n  \"customers\": [\n    \"57.578.030/0001-05\"\n  ],\n  \"notFound\": {\n    \"customers\": [\n      \"466.935.373-08\"\n    ]\n  }\n}"
                },
                {
                  "name": "Refusal — the route `partnerId` is not numeric",
                  "originalRequest": {
                    "method": "PUT",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "url": {
                      "raw": "{{url}}/pricing/contract/:contractId/customers/store/:partnerId",
                      "host": [
                        "{{url}}"
                      ],
                      "path": [
                        "pricing",
                        "contract",
                        ":contractId",
                        "customers",
                        "store",
                        ":partnerId"
                      ],
                      "variable": [
                        {
                          "key": "contractId",
                          "value": "",
                          "description": "Contract id, returned in `id` on creation."
                        },
                        {
                          "key": "partnerId",
                          "value": "",
                          "description": "Id of the **branch** that owns the contract. It must be linked to the token's parent account."
                        }
                      ]
                    },
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"customers\": [\n    \"57.578.030/0001-05\",\n    \"466.935.373-08\"\n  ]\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    }
                  },
                  "status": "Bad Request",
                  "code": 400,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "body": "{\n  \"error\": \"Invalid target partner ID\"\n}"
                },
                {
                  "name": "Refusal — the route `contractId` is not a number greater than zero",
                  "originalRequest": {
                    "method": "PUT",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "url": {
                      "raw": "{{url}}/pricing/contract/:contractId/customers/store/:partnerId",
                      "host": [
                        "{{url}}"
                      ],
                      "path": [
                        "pricing",
                        "contract",
                        ":contractId",
                        "customers",
                        "store",
                        ":partnerId"
                      ],
                      "variable": [
                        {
                          "key": "contractId",
                          "value": "",
                          "description": "Contract id, returned in `id` on creation."
                        },
                        {
                          "key": "partnerId",
                          "value": "",
                          "description": "Id of the **branch** that owns the contract. It must be linked to the token's parent account."
                        }
                      ]
                    },
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"customers\": [\n    \"57.578.030/0001-05\",\n    \"466.935.373-08\"\n  ]\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    }
                  },
                  "status": "Bad Request",
                  "code": 400,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "body": "{\n  \"error\": \"invalid contract id: \\\"...\\\"\"\n}"
                },
                {
                  "name": "Refusal — the contract does not exist or does not belong to the branch provided",
                  "originalRequest": {
                    "method": "PUT",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "url": {
                      "raw": "{{url}}/pricing/contract/:contractId/customers/store/:partnerId",
                      "host": [
                        "{{url}}"
                      ],
                      "path": [
                        "pricing",
                        "contract",
                        ":contractId",
                        "customers",
                        "store",
                        ":partnerId"
                      ],
                      "variable": [
                        {
                          "key": "contractId",
                          "value": "",
                          "description": "Contract id, returned in `id` on creation."
                        },
                        {
                          "key": "partnerId",
                          "value": "",
                          "description": "Id of the **branch** that owns the contract. It must be linked to the token's parent account."
                        }
                      ]
                    },
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"customers\": [\n    \"57.578.030/0001-05\",\n    \"466.935.373-08\"\n  ]\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    }
                  },
                  "status": "Bad Request",
                  "code": 400,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "body": "{\n  \"error\": \"priceContract.notFound\"\n}"
                },
                {
                  "name": "Refusal — the contract applies to all customers and does not accept individual customers",
                  "originalRequest": {
                    "method": "PUT",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "url": {
                      "raw": "{{url}}/pricing/contract/:contractId/customers/store/:partnerId",
                      "host": [
                        "{{url}}"
                      ],
                      "path": [
                        "pricing",
                        "contract",
                        ":contractId",
                        "customers",
                        "store",
                        ":partnerId"
                      ],
                      "variable": [
                        {
                          "key": "contractId",
                          "value": "",
                          "description": "Contract id, returned in `id` on creation."
                        },
                        {
                          "key": "partnerId",
                          "value": "",
                          "description": "Id of the **branch** that owns the contract. It must be linked to the token's parent account."
                        }
                      ]
                    },
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"customers\": [\n    \"57.578.030/0001-05\",\n    \"466.935.373-08\"\n  ]\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    }
                  },
                  "status": "Bad Request",
                  "code": 400,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "body": "{\n  \"error\": \"priceContract.customers.addNotAllowed\"\n}"
                },
                {
                  "name": "Refusal — branch not linked to your parent account",
                  "originalRequest": {
                    "method": "PUT",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "url": {
                      "raw": "{{url}}/pricing/contract/:contractId/customers/store/:partnerId",
                      "host": [
                        "{{url}}"
                      ],
                      "path": [
                        "pricing",
                        "contract",
                        ":contractId",
                        "customers",
                        "store",
                        ":partnerId"
                      ],
                      "variable": [
                        {
                          "key": "contractId",
                          "value": "",
                          "description": "Contract id, returned in `id` on creation."
                        },
                        {
                          "key": "partnerId",
                          "value": "",
                          "description": "Id of the **branch** that owns the contract. It must be linked to the token's parent account."
                        }
                      ]
                    },
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"customers\": [\n    \"57.578.030/0001-05\",\n    \"466.935.373-08\"\n  ]\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    }
                  },
                  "status": "Forbidden",
                  "code": 403,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "body": "{\n  \"error\": \"Access denied: Invalid partnership\"\n}"
                }
              ]
            },
            {
              "name": "Remove Customers from the Branch Contract",
              "request": {
                "method": "DELETE",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "url": {
                  "raw": "{{url}}/pricing/contract/:contractId/customers/store/:partnerId",
                  "host": [
                    "{{url}}"
                  ],
                  "path": [
                    "pricing",
                    "contract",
                    ":contractId",
                    "customers",
                    "store",
                    ":partnerId"
                  ],
                  "variable": [
                    {
                      "key": "contractId",
                      "value": "",
                      "description": "Contract id, returned in `id` on creation."
                    },
                    {
                      "key": "partnerId",
                      "value": "",
                      "description": "Id of the **branch** that owns the contract. It must be linked to the token's parent account."
                    }
                  ]
                },
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"customers\": [\n    \"57.578.030/0001-05\"\n  ]\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "description": "### Description\n\nAllows a **parent** account to remove customers from a contract of one of its **branches**, by each one's document. The customers stop receiving the contract prices.\n\nThe body and the response are identical to those of the removal in your own store — the difference is the branch that owns the contract, which comes in the route and is validated against the links of your parent account.\n\n### Business rules\n\n#### A document outside the contract comes back in `notFound`\n\nA document that is not linked to the contract does not interrupt the request: it comes back in `notFound.customers` and the others are removed. The response is 200 even when no document was removed.\n\nSend the document **with the mask**, as in the addition: with digits only it comes back in `notFound.customers`, even if it is in the contract.\n\nTo empty the whole list at once, use `deleteAllCustomers` in **Update Branch Contract**.\n\n### Responses\n\n**400**\n\nInvalid branch or contract.\n\nThe route `partnerId` is not numeric.\n\nThe route `contractId` is not a number greater than zero.\n\nThe contract does not exist or does not belong to the branch provided.\n\n**401**\n\nMissing, malformed or expired token.\n\nThe detail comes in `error`.\n\n**403**\n\nBranch not linked to your parent account.\n\n**422**\n\nInvalid body or customer list.\n\nBody that is not valid JSON, or `customers` out of the accepted range (see the field). The detail comes in `error`."
              },
              "response": [
                {
                  "name": "Success — customer removed",
                  "originalRequest": {
                    "method": "DELETE",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "url": {
                      "raw": "{{url}}/pricing/contract/:contractId/customers/store/:partnerId",
                      "host": [
                        "{{url}}"
                      ],
                      "path": [
                        "pricing",
                        "contract",
                        ":contractId",
                        "customers",
                        "store",
                        ":partnerId"
                      ],
                      "variable": [
                        {
                          "key": "contractId",
                          "value": "",
                          "description": "Contract id, returned in `id` on creation."
                        },
                        {
                          "key": "partnerId",
                          "value": "",
                          "description": "Id of the **branch** that owns the contract. It must be linked to the token's parent account."
                        }
                      ]
                    },
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"customers\": [\n    \"57.578.030/0001-05\"\n  ]\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "body": "{\n  \"id\": 4610002,\n  \"customers\": [\n    \"57.578.030/0001-05\"\n  ],\n  \"notFound\": {\n    \"customers\": []\n  }\n}"
                },
                {
                  "name": "Refusal — the route `partnerId` is not numeric",
                  "originalRequest": {
                    "method": "DELETE",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "url": {
                      "raw": "{{url}}/pricing/contract/:contractId/customers/store/:partnerId",
                      "host": [
                        "{{url}}"
                      ],
                      "path": [
                        "pricing",
                        "contract",
                        ":contractId",
                        "customers",
                        "store",
                        ":partnerId"
                      ],
                      "variable": [
                        {
                          "key": "contractId",
                          "value": "",
                          "description": "Contract id, returned in `id` on creation."
                        },
                        {
                          "key": "partnerId",
                          "value": "",
                          "description": "Id of the **branch** that owns the contract. It must be linked to the token's parent account."
                        }
                      ]
                    },
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"customers\": [\n    \"57.578.030/0001-05\"\n  ]\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    }
                  },
                  "status": "Bad Request",
                  "code": 400,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "body": "{\n  \"error\": \"Invalid target partner ID\"\n}"
                },
                {
                  "name": "Refusal — the route `contractId` is not a number greater than zero",
                  "originalRequest": {
                    "method": "DELETE",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "url": {
                      "raw": "{{url}}/pricing/contract/:contractId/customers/store/:partnerId",
                      "host": [
                        "{{url}}"
                      ],
                      "path": [
                        "pricing",
                        "contract",
                        ":contractId",
                        "customers",
                        "store",
                        ":partnerId"
                      ],
                      "variable": [
                        {
                          "key": "contractId",
                          "value": "",
                          "description": "Contract id, returned in `id` on creation."
                        },
                        {
                          "key": "partnerId",
                          "value": "",
                          "description": "Id of the **branch** that owns the contract. It must be linked to the token's parent account."
                        }
                      ]
                    },
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"customers\": [\n    \"57.578.030/0001-05\"\n  ]\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    }
                  },
                  "status": "Bad Request",
                  "code": 400,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "body": "{\n  \"error\": \"invalid contract id: \\\"...\\\"\"\n}"
                },
                {
                  "name": "Refusal — the contract does not exist or does not belong to the branch provided",
                  "originalRequest": {
                    "method": "DELETE",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "url": {
                      "raw": "{{url}}/pricing/contract/:contractId/customers/store/:partnerId",
                      "host": [
                        "{{url}}"
                      ],
                      "path": [
                        "pricing",
                        "contract",
                        ":contractId",
                        "customers",
                        "store",
                        ":partnerId"
                      ],
                      "variable": [
                        {
                          "key": "contractId",
                          "value": "",
                          "description": "Contract id, returned in `id` on creation."
                        },
                        {
                          "key": "partnerId",
                          "value": "",
                          "description": "Id of the **branch** that owns the contract. It must be linked to the token's parent account."
                        }
                      ]
                    },
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"customers\": [\n    \"57.578.030/0001-05\"\n  ]\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    }
                  },
                  "status": "Bad Request",
                  "code": 400,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "body": "{\n  \"error\": \"priceContract.notFound\"\n}"
                },
                {
                  "name": "Refusal — branch not linked to your parent account",
                  "originalRequest": {
                    "method": "DELETE",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "url": {
                      "raw": "{{url}}/pricing/contract/:contractId/customers/store/:partnerId",
                      "host": [
                        "{{url}}"
                      ],
                      "path": [
                        "pricing",
                        "contract",
                        ":contractId",
                        "customers",
                        "store",
                        ":partnerId"
                      ],
                      "variable": [
                        {
                          "key": "contractId",
                          "value": "",
                          "description": "Contract id, returned in `id` on creation."
                        },
                        {
                          "key": "partnerId",
                          "value": "",
                          "description": "Id of the **branch** that owns the contract. It must be linked to the token's parent account."
                        }
                      ]
                    },
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"customers\": [\n    \"57.578.030/0001-05\"\n  ]\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    }
                  },
                  "status": "Forbidden",
                  "code": 403,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "body": "{\n  \"error\": \"Access denied: Invalid partnership\"\n}"
                }
              ]
            },
            {
              "name": "Add Products to the Branch Contract",
              "request": {
                "method": "PUT",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "url": {
                  "raw": "{{url}}/pricing/contract/:contractId/items/store/:partnerId",
                  "host": [
                    "{{url}}"
                  ],
                  "path": [
                    "pricing",
                    "contract",
                    ":contractId",
                    "items",
                    "store",
                    ":partnerId"
                  ],
                  "variable": [
                    {
                      "key": "contractId",
                      "value": "",
                      "description": "Contract id, returned in `id` on creation."
                    },
                    {
                      "key": "partnerId",
                      "value": "",
                      "description": "Id of the **branch** that owns the contract. It must be linked to the token's parent account."
                    }
                  ]
                },
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"items\": [\n    {\n      \"partnerPartCode\": \"PRODUTO-TESTE-001\",\n      \"price\": 149.9,\n      \"targetMargin\": 18.5,\n      \"totalCost\": 120\n    },\n    {\n      \"partnerPartCode\": \"SKU-B-002\",\n      \"price\": 89.9\n    }\n  ]\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "description": "### Description\n\nAllows a **parent** account to add products to the contract of one of its **branches** with the price of each one, or to update the price of those already in it.\n\nEach product is processed independently: the result of each one comes in the `status` field of the response.\n\nThe body and the response are identical to those of the submission for your own store — the difference is the branch that owns the contract, which comes in the route and is validated against the links of your parent account.\n\n`items[].value` is the legacy name of `items[].price` and is still accepted, with the same effect. When both are sent in the same item, `price` applies.\n\n### How to identify the product\n\nEach product must carry **one** of the two forms, in this order of precedence:\n\n| Form | Fields | When to use |\n| --- | --- | --- |\n| By partner code | `partnerPartCode` | You identify the product by your own code. |\n| By attribute | `skuAttributeValue` with `skuAttributeName` in the envelope | You have contracted the product catalog service with your own attribute. |\n\nUnlike the stock submission, different forms can coexist in the same submission: each product is resolved by the form it carries.\n\n### Business rules\n\n#### The product must belong to the store\n\nThe product is resolved within the catalog of the store that owns the contract. What does not resolve comes back in `notFound.items` and the others are stored.\n\n#### A product repeated in the same submission is not processed\n\nTwo products of the same submission that resolve to the same SKU — by the repeated code or by the attribute — both go to `notFound.items` and neither is stored. Send each product only once per request.\n\n#### A product rejected by value comes back in the list and does not bring down the submission\n\nNegative price, negative cost, margin outside 0 to 100 and a product without any form of identification are rejected **item by item**: the product comes back in `items` with `status: ERROR` and the reason in `error`, and the others are stored. The response is 200.\n\n### Responses\n\n**400**\n\nInvalid branch or contract.\n\nThe route `partnerId` is not numeric.\n\nThe route `contractId` is not a number greater than zero.\n\nThe contract does not exist or does not belong to the branch provided.\n\n**401**\n\nMissing, malformed or expired token.\n\nThe detail comes in `error`.\n\n**403**\n\nBranch not linked to your parent account.\n\n**422**\n\nInvalid body or product list.\n\nBody that is not valid JSON, or `items` missing, empty or with more than 100 entries. The detail comes in `error`."
              },
              "response": [
                {
                  "name": "Success — identification by partner code",
                  "originalRequest": {
                    "method": "PUT",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "url": {
                      "raw": "{{url}}/pricing/contract/:contractId/items/store/:partnerId",
                      "host": [
                        "{{url}}"
                      ],
                      "path": [
                        "pricing",
                        "contract",
                        ":contractId",
                        "items",
                        "store",
                        ":partnerId"
                      ],
                      "variable": [
                        {
                          "key": "contractId",
                          "value": "",
                          "description": "Contract id, returned in `id` on creation."
                        },
                        {
                          "key": "partnerId",
                          "value": "",
                          "description": "Id of the **branch** that owns the contract. It must be linked to the token's parent account."
                        }
                      ]
                    },
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"items\": [\n    {\n      \"partnerPartCode\": \"PRODUTO-TESTE-001\",\n      \"price\": 149.9,\n      \"targetMargin\": 18.5,\n      \"totalCost\": 120\n    },\n    {\n      \"partnerPartCode\": \"SKU-B-002\",\n      \"price\": 89.9\n    }\n  ]\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "body": "{\n  \"id\": 4610002,\n  \"items\": [\n    {\n      \"skuId\": 10996361,\n      \"price\": 149.9,\n      \"targetMargin\": 18.5,\n      \"totalCost\": 120,\n      \"status\": \"inserted\"\n    },\n    {\n      \"skuId\": 500102,\n      \"price\": 89.9,\n      \"targetMargin\": null,\n      \"totalCost\": null,\n      \"status\": \"inserted\"\n    }\n  ],\n  \"notFound\": {\n    \"items\": []\n  }\n}"
                },
                {
                  "name": "Success — identification by attribute, with a rejected item",
                  "originalRequest": {
                    "method": "PUT",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "url": {
                      "raw": "{{url}}/pricing/contract/:contractId/items/store/:partnerId",
                      "host": [
                        "{{url}}"
                      ],
                      "path": [
                        "pricing",
                        "contract",
                        ":contractId",
                        "items",
                        "store",
                        ":partnerId"
                      ],
                      "variable": [
                        {
                          "key": "contractId",
                          "value": "",
                          "description": "Contract id, returned in `id` on creation."
                        },
                        {
                          "key": "partnerId",
                          "value": "",
                          "description": "Id of the **branch** that owns the contract. It must be linked to the token's parent account."
                        }
                      ]
                    },
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"skuAttributeName\": \"codigo-produto-teste\",\n  \"items\": [\n    {\n      \"skuAttributeValue\": \"PRODUTO-TESTE-001\",\n      \"price\": 139.9\n    },\n    {\n      \"skuAttributeValue\": \"SKU-Z-999\",\n      \"price\": 10\n    }\n  ]\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "body": "{\n  \"id\": 4610002,\n  \"items\": [\n    {\n      \"skuId\": 10996361,\n      \"price\": 139.9,\n      \"targetMargin\": null,\n      \"totalCost\": null,\n      \"status\": \"updated\"\n    },\n    {\n      \"price\": 50,\n      \"targetMargin\": null,\n      \"totalCost\": null,\n      \"status\": \"ERROR\",\n      \"error\": \"must provide skuId, partnerPartCode, or skuAttributeValue\"\n    }\n  ],\n  \"notFound\": {\n    \"items\": [\n      {\n        \"skuAttributeValue\": \"SKU-Z-999\",\n        \"price\": 10,\n        \"targetMargin\": null,\n        \"totalCost\": null\n      }\n    ]\n  }\n}"
                },
                {
                  "name": "Refusal — the route `partnerId` is not numeric",
                  "originalRequest": {
                    "method": "PUT",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "url": {
                      "raw": "{{url}}/pricing/contract/:contractId/items/store/:partnerId",
                      "host": [
                        "{{url}}"
                      ],
                      "path": [
                        "pricing",
                        "contract",
                        ":contractId",
                        "items",
                        "store",
                        ":partnerId"
                      ],
                      "variable": [
                        {
                          "key": "contractId",
                          "value": "",
                          "description": "Contract id, returned in `id` on creation."
                        },
                        {
                          "key": "partnerId",
                          "value": "",
                          "description": "Id of the **branch** that owns the contract. It must be linked to the token's parent account."
                        }
                      ]
                    },
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"items\": [\n    {\n      \"partnerPartCode\": \"PRODUTO-TESTE-001\",\n      \"price\": 149.9,\n      \"targetMargin\": 18.5,\n      \"totalCost\": 120\n    },\n    {\n      \"partnerPartCode\": \"SKU-B-002\",\n      \"price\": 89.9\n    }\n  ]\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    }
                  },
                  "status": "Bad Request",
                  "code": 400,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "body": "{\n  \"error\": \"Invalid target partner ID\"\n}"
                },
                {
                  "name": "Refusal — the route `contractId` is not a number greater than zero",
                  "originalRequest": {
                    "method": "PUT",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "url": {
                      "raw": "{{url}}/pricing/contract/:contractId/items/store/:partnerId",
                      "host": [
                        "{{url}}"
                      ],
                      "path": [
                        "pricing",
                        "contract",
                        ":contractId",
                        "items",
                        "store",
                        ":partnerId"
                      ],
                      "variable": [
                        {
                          "key": "contractId",
                          "value": "",
                          "description": "Contract id, returned in `id` on creation."
                        },
                        {
                          "key": "partnerId",
                          "value": "",
                          "description": "Id of the **branch** that owns the contract. It must be linked to the token's parent account."
                        }
                      ]
                    },
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"items\": [\n    {\n      \"partnerPartCode\": \"PRODUTO-TESTE-001\",\n      \"price\": 149.9,\n      \"targetMargin\": 18.5,\n      \"totalCost\": 120\n    },\n    {\n      \"partnerPartCode\": \"SKU-B-002\",\n      \"price\": 89.9\n    }\n  ]\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    }
                  },
                  "status": "Bad Request",
                  "code": 400,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "body": "{\n  \"error\": \"invalid contract id: \\\"...\\\"\"\n}"
                },
                {
                  "name": "Refusal — the contract does not exist or does not belong to the branch provided",
                  "originalRequest": {
                    "method": "PUT",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "url": {
                      "raw": "{{url}}/pricing/contract/:contractId/items/store/:partnerId",
                      "host": [
                        "{{url}}"
                      ],
                      "path": [
                        "pricing",
                        "contract",
                        ":contractId",
                        "items",
                        "store",
                        ":partnerId"
                      ],
                      "variable": [
                        {
                          "key": "contractId",
                          "value": "",
                          "description": "Contract id, returned in `id` on creation."
                        },
                        {
                          "key": "partnerId",
                          "value": "",
                          "description": "Id of the **branch** that owns the contract. It must be linked to the token's parent account."
                        }
                      ]
                    },
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"items\": [\n    {\n      \"partnerPartCode\": \"PRODUTO-TESTE-001\",\n      \"price\": 149.9,\n      \"targetMargin\": 18.5,\n      \"totalCost\": 120\n    },\n    {\n      \"partnerPartCode\": \"SKU-B-002\",\n      \"price\": 89.9\n    }\n  ]\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    }
                  },
                  "status": "Bad Request",
                  "code": 400,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "body": "{\n  \"error\": \"priceContract.notFound\"\n}"
                },
                {
                  "name": "Refusal — branch not linked to your parent account",
                  "originalRequest": {
                    "method": "PUT",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "url": {
                      "raw": "{{url}}/pricing/contract/:contractId/items/store/:partnerId",
                      "host": [
                        "{{url}}"
                      ],
                      "path": [
                        "pricing",
                        "contract",
                        ":contractId",
                        "items",
                        "store",
                        ":partnerId"
                      ],
                      "variable": [
                        {
                          "key": "contractId",
                          "value": "",
                          "description": "Contract id, returned in `id` on creation."
                        },
                        {
                          "key": "partnerId",
                          "value": "",
                          "description": "Id of the **branch** that owns the contract. It must be linked to the token's parent account."
                        }
                      ]
                    },
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"items\": [\n    {\n      \"partnerPartCode\": \"PRODUTO-TESTE-001\",\n      \"price\": 149.9,\n      \"targetMargin\": 18.5,\n      \"totalCost\": 120\n    },\n    {\n      \"partnerPartCode\": \"SKU-B-002\",\n      \"price\": 89.9\n    }\n  ]\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    }
                  },
                  "status": "Forbidden",
                  "code": 403,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "body": "{\n  \"error\": \"Access denied: Invalid partnership\"\n}"
                }
              ]
            },
            {
              "name": "Remove Products from the Branch Contract",
              "request": {
                "method": "DELETE",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "url": {
                  "raw": "{{url}}/pricing/contract/:contractId/items/store/:partnerId",
                  "host": [
                    "{{url}}"
                  ],
                  "path": [
                    "pricing",
                    "contract",
                    ":contractId",
                    "items",
                    "store",
                    ":partnerId"
                  ],
                  "variable": [
                    {
                      "key": "contractId",
                      "value": "",
                      "description": "Contract id, returned in `id` on creation."
                    },
                    {
                      "key": "partnerId",
                      "value": "",
                      "description": "Id of the **branch** that owns the contract. It must be linked to the token's parent account."
                    }
                  ]
                },
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"items\": [\n    {\n      \"partnerPartCode\": \"PRODUTO-TESTE-001\"\n    },\n    {\n      \"partnerPartCode\": \"SKU-Z-999\"\n    }\n  ]\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "description": "### Description\n\nAllows a **parent** account to remove products from the contract of one of its **branches**. The products go back to being sold at the branch's list price.\n\nThe body and the response are identical to those of the removal in your own store — the difference is the branch that owns the contract, which comes in the route and is validated against the links of your parent account.\n\n### How to identify the product\n\nEach product must carry **one** of the two forms, in this order of precedence:\n\n| Form | Fields | When to use |\n| --- | --- | --- |\n| By partner code | `partnerPartCode` | You identify the product by your own code. |\n| By attribute | `skuAttributeValue` with `skuAttributeName` in the envelope | You have contracted the product catalog service with your own attribute. |\n\n### Business rules\n\n#### A product outside the contract comes back in `notFound`\n\nA product that is not in the contract does not interrupt the request: it comes back in `notFound.items` and the others are removed. The response is 200 even when no product was removed.\n\nTo empty the whole list at once, use `deleteAllItems` in **Update Branch Contract**.\n\n### Responses\n\n**400**\n\nInvalid branch or contract.\n\nThe route `partnerId` is not numeric.\n\nThe route `contractId` is not a number greater than zero.\n\nThe contract does not exist or does not belong to the branch provided.\n\n**401**\n\nMissing, malformed or expired token.\n\nThe detail comes in `error`.\n\n**403**\n\nBranch not linked to your parent account.\n\n**422**\n\nInvalid body or product list.\n\nBody that is not valid JSON, or `items` missing, empty or with more than 100 entries. The detail comes in `error`."
              },
              "response": [
                {
                  "name": "Success — product removed",
                  "originalRequest": {
                    "method": "DELETE",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "url": {
                      "raw": "{{url}}/pricing/contract/:contractId/items/store/:partnerId",
                      "host": [
                        "{{url}}"
                      ],
                      "path": [
                        "pricing",
                        "contract",
                        ":contractId",
                        "items",
                        "store",
                        ":partnerId"
                      ],
                      "variable": [
                        {
                          "key": "contractId",
                          "value": "",
                          "description": "Contract id, returned in `id` on creation."
                        },
                        {
                          "key": "partnerId",
                          "value": "",
                          "description": "Id of the **branch** that owns the contract. It must be linked to the token's parent account."
                        }
                      ]
                    },
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"items\": [\n    {\n      \"partnerPartCode\": \"PRODUTO-TESTE-001\"\n    },\n    {\n      \"partnerPartCode\": \"SKU-Z-999\"\n    }\n  ]\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "body": "{\n  \"id\": 4610002,\n  \"items\": [\n    {\n      \"skuId\": 10996361,\n      \"partnerPartCode\": \"PRODUTO-TESTE-001\",\n      \"value\": 139.9,\n      \"price\": null,\n      \"targetMargin\": null,\n      \"totalCost\": null\n    }\n  ],\n  \"notFound\": {\n    \"items\": [\n      {\n        \"partnerPartCode\": \"SKU-Z-999\",\n        \"price\": null,\n        \"targetMargin\": null,\n        \"totalCost\": null\n      }\n    ]\n  }\n}"
                },
                {
                  "name": "Refusal — the route `partnerId` is not numeric",
                  "originalRequest": {
                    "method": "DELETE",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "url": {
                      "raw": "{{url}}/pricing/contract/:contractId/items/store/:partnerId",
                      "host": [
                        "{{url}}"
                      ],
                      "path": [
                        "pricing",
                        "contract",
                        ":contractId",
                        "items",
                        "store",
                        ":partnerId"
                      ],
                      "variable": [
                        {
                          "key": "contractId",
                          "value": "",
                          "description": "Contract id, returned in `id` on creation."
                        },
                        {
                          "key": "partnerId",
                          "value": "",
                          "description": "Id of the **branch** that owns the contract. It must be linked to the token's parent account."
                        }
                      ]
                    },
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"items\": [\n    {\n      \"partnerPartCode\": \"PRODUTO-TESTE-001\"\n    },\n    {\n      \"partnerPartCode\": \"SKU-Z-999\"\n    }\n  ]\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    }
                  },
                  "status": "Bad Request",
                  "code": 400,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "body": "{\n  \"error\": \"Invalid target partner ID\"\n}"
                },
                {
                  "name": "Refusal — the route `contractId` is not a number greater than zero",
                  "originalRequest": {
                    "method": "DELETE",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "url": {
                      "raw": "{{url}}/pricing/contract/:contractId/items/store/:partnerId",
                      "host": [
                        "{{url}}"
                      ],
                      "path": [
                        "pricing",
                        "contract",
                        ":contractId",
                        "items",
                        "store",
                        ":partnerId"
                      ],
                      "variable": [
                        {
                          "key": "contractId",
                          "value": "",
                          "description": "Contract id, returned in `id` on creation."
                        },
                        {
                          "key": "partnerId",
                          "value": "",
                          "description": "Id of the **branch** that owns the contract. It must be linked to the token's parent account."
                        }
                      ]
                    },
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"items\": [\n    {\n      \"partnerPartCode\": \"PRODUTO-TESTE-001\"\n    },\n    {\n      \"partnerPartCode\": \"SKU-Z-999\"\n    }\n  ]\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    }
                  },
                  "status": "Bad Request",
                  "code": 400,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "body": "{\n  \"error\": \"invalid contract id: \\\"...\\\"\"\n}"
                },
                {
                  "name": "Refusal — the contract does not exist or does not belong to the branch provided",
                  "originalRequest": {
                    "method": "DELETE",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "url": {
                      "raw": "{{url}}/pricing/contract/:contractId/items/store/:partnerId",
                      "host": [
                        "{{url}}"
                      ],
                      "path": [
                        "pricing",
                        "contract",
                        ":contractId",
                        "items",
                        "store",
                        ":partnerId"
                      ],
                      "variable": [
                        {
                          "key": "contractId",
                          "value": "",
                          "description": "Contract id, returned in `id` on creation."
                        },
                        {
                          "key": "partnerId",
                          "value": "",
                          "description": "Id of the **branch** that owns the contract. It must be linked to the token's parent account."
                        }
                      ]
                    },
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"items\": [\n    {\n      \"partnerPartCode\": \"PRODUTO-TESTE-001\"\n    },\n    {\n      \"partnerPartCode\": \"SKU-Z-999\"\n    }\n  ]\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    }
                  },
                  "status": "Bad Request",
                  "code": 400,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "body": "{\n  \"error\": \"priceContract.notFound\"\n}"
                },
                {
                  "name": "Refusal — branch not linked to your parent account",
                  "originalRequest": {
                    "method": "DELETE",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      }
                    ],
                    "url": {
                      "raw": "{{url}}/pricing/contract/:contractId/items/store/:partnerId",
                      "host": [
                        "{{url}}"
                      ],
                      "path": [
                        "pricing",
                        "contract",
                        ":contractId",
                        "items",
                        "store",
                        ":partnerId"
                      ],
                      "variable": [
                        {
                          "key": "contractId",
                          "value": "",
                          "description": "Contract id, returned in `id` on creation."
                        },
                        {
                          "key": "partnerId",
                          "value": "",
                          "description": "Id of the **branch** that owns the contract. It must be linked to the token's parent account."
                        }
                      ]
                    },
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"items\": [\n    {\n      \"partnerPartCode\": \"PRODUTO-TESTE-001\"\n    },\n    {\n      \"partnerPartCode\": \"SKU-Z-999\"\n    }\n  ]\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    }
                  },
                  "status": "Forbidden",
                  "code": 403,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "body": "{\n  \"error\": \"Access denied: Invalid partnership\"\n}"
                }
              ]
            }
          ]
        }
      ]
    },
    {
      "name": "Price Rule",
      "description": "Services for creating and managing price rules.",
      "item": [
        {
          "name": "List Price Rules",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{url}}/v1/priceRule?name=Desconto%20Atacado&limit=5",
              "host": [
                "{{url}}"
              ],
              "path": [
                "v1",
                "priceRule"
              ],
              "query": [
                {
                  "key": "name",
                  "value": "Desconto%20Atacado",
                  "description": "Filters by the rule name. See **The name filter is exact**."
                },
                {
                  "key": "limit",
                  "value": "5",
                  "description": "Rules per page. Default **5**, maximum **25** — a value above that is reduced to 25, without error."
                },
                {
                  "key": "offset",
                  "value": "",
                  "description": "First record of the page. Default **0**.",
                  "disabled": true
                }
              ]
            },
            "description": "### Description\n\nLists the **active** price rules of your store. A deactivated rule does not appear here.\n\n### Business rules\n\n#### The name filter is exact\n\n`name` compares the whole name, not a part of it: `?name=Desconto` does **not** find the rule `Desconto Atacado`.\n\nSend the full name, with the same spaces and accents as registered.\n\n### Responses\n\n**200**\n\nA list with one rule per item.\n\nComes as `[]` when nothing matches the filter.\n\n**400**\n\nNon-numeric `limit` or `offset`.\n\nSend whole numbers.\n\n**401**\n\nMissing, malformed or expired token."
          },
          "response": [
            {
              "name": "Success — filtering by the exact name",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{url}}/v1/priceRule?name=Desconto%20Atacado&limit=5",
                  "host": [
                    "{{url}}"
                  ],
                  "path": [
                    "v1",
                    "priceRule"
                  ],
                  "query": [
                    {
                      "key": "name",
                      "value": "Desconto%20Atacado",
                      "description": "Filters by the rule name. See **The name filter is exact**."
                    },
                    {
                      "key": "limit",
                      "value": "5",
                      "description": "Rules per page. Default **5**, maximum **25** — a value above that is reduced to 25, without error."
                    },
                    {
                      "key": "offset",
                      "value": "",
                      "description": "First record of the page. Default **0**.",
                      "disabled": true
                    }
                  ]
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "cookie": [],
              "body": "[\n  {\n    \"id\": 4210001,\n    \"name\": \"Desconto Atacado\",\n    \"priority\": 10,\n    \"type\": \"PERCENT\",\n    \"value\": -5,\n    \"cumulative\": false,\n    \"stateRegistration\": false,\n    \"isDiscountBlockedByAttendant\": false,\n    \"quantity\": 100,\n    \"warehouseState\": null,\n    \"customerState\": null,\n    \"customerTagId\": null,\n    \"customerCnae\": null,\n    \"customerTypeId\": null,\n    \"customerTypeName\": \"\",\n    \"customerPaysIcms\": false,\n    \"skuNcm\": null,\n    \"skuStockId\": null,\n    \"skuPartnerTagId\": null,\n    \"createdBy\": \"integracao@lojaexemplo.com.br\"\n  }\n]"
            },
            {
              "name": "Refusal — non-numeric `limit` or `offset`",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{url}}/v1/priceRule?name=Desconto%20Atacado&limit=5",
                  "host": [
                    "{{url}}"
                  ],
                  "path": [
                    "v1",
                    "priceRule"
                  ],
                  "query": [
                    {
                      "key": "name",
                      "value": "Desconto%20Atacado",
                      "description": "Filters by the rule name. See **The name filter is exact**."
                    },
                    {
                      "key": "limit",
                      "value": "5",
                      "description": "Rules per page. Default **5**, maximum **25** — a value above that is reduced to 25, without error."
                    },
                    {
                      "key": "offset",
                      "value": "",
                      "description": "First record of the page. Default **0**.",
                      "disabled": true
                    }
                  ]
                }
              },
              "status": "Bad Request",
              "code": 400,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "cookie": [],
              "body": "{\n  \"error\": \"invalid limit\"\n}"
            }
          ]
        },
        {
          "name": "Create Price Rule",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{url}}/v1/priceRule",
              "host": [
                "{{url}}"
              ],
              "path": [
                "v1",
                "priceRule"
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"name\": \"Desconto Atacado\",\n  \"priority\": 10,\n  \"type\": \"PERCENT\",\n  \"value\": -5,\n  \"cumulative\": false,\n  \"customerHasStateRegistration\": false,\n  \"quantity\": 100\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "description": "### Description\n\nCreates a price rule for your store.\n\nThe rule starts being evaluated in every price quotation: when the product and the customer meet all the configured criteria, the value is applied.\n\nNumbers and booleans are also accepted as strings (`\"priority\": \"10\"`, `\"cumulative\": \"true\"`).\n\n### Business rules\n\n#### A configured criterion is a required criterion\n\nEach optional field you fill in **narrows** the rule: it is applied only when the product and the customer meet **all** of them. Leave out what is not a condition.\n\n#### A rule that would zero the price is not applied\n\nIf the rule value would take the price to zero or to a negative number, the rule is ignored in the quotation — the price does not become negative and no error is raised.\n\n#### Order of application\n\nFirst the non-promotional rules, then the non-cumulative ones, then by `priority` (lowest first) and, on a tie, the one that makes the price cheapest.\n\n### Responses\n\n**201**\n\nThe created rule.\n\n`promotionalBeforeAfter` is stored, but it does not come back in the response.\n\n**401**\n\nMissing, malformed or expired token.\n\n**404**\n\nCustomer or product tag not found.\n\n`customerTagId` or `skuPartnerTagId` nonexistent or from another store.\n\n**422**\n\nInvalid body.\n\nMissing required field, `type` other than `PERCENT`/`REAL` or body that cannot be parsed."
          },
          "response": [
            {
              "name": "Success — percentage discount",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "url": {
                  "raw": "{{url}}/v1/priceRule",
                  "host": [
                    "{{url}}"
                  ],
                  "path": [
                    "v1",
                    "priceRule"
                  ]
                },
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"name\": \"Desconto Atacado\",\n  \"priority\": 10,\n  \"type\": \"PERCENT\",\n  \"value\": -5,\n  \"cumulative\": false,\n  \"customerHasStateRegistration\": false,\n  \"quantity\": 100\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "Created",
              "code": 201,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "cookie": [],
              "body": "{\n  \"id\": 4210001,\n  \"name\": \"Desconto Atacado\",\n  \"priority\": 10,\n  \"type\": \"PERCENT\",\n  \"value\": -5,\n  \"cumulative\": false,\n  \"stateRegistration\": false,\n  \"isDiscountBlockedByAttendant\": false,\n  \"quantity\": 100,\n  \"warehouseState\": null,\n  \"customerState\": null,\n  \"customerTagId\": null,\n  \"customerCnae\": null,\n  \"customerTypeId\": null,\n  \"customerTypeName\": \"\",\n  \"customerPaysIcms\": false,\n  \"skuNcm\": null,\n  \"skuStockId\": null,\n  \"skuPartnerTagId\": null,\n  \"createdBy\": \"integracao@lojaexemplo.com.br\"\n}"
            },
            {
              "name": "Refusal — customer or product tag not found",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "url": {
                  "raw": "{{url}}/v1/priceRule",
                  "host": [
                    "{{url}}"
                  ],
                  "path": [
                    "v1",
                    "priceRule"
                  ]
                },
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"name\": \"Desconto Atacado\",\n  \"priority\": 10,\n  \"type\": \"PERCENT\",\n  \"value\": -5,\n  \"cumulative\": false,\n  \"customerHasStateRegistration\": false,\n  \"quantity\": 100\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "Not Found",
              "code": 404,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "cookie": [],
              "body": "{\n  \"error\": \"Tag de produto não encontrada\"\n}"
            },
            {
              "name": "Refusal — missing required field",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "url": {
                  "raw": "{{url}}/v1/priceRule",
                  "host": [
                    "{{url}}"
                  ],
                  "path": [
                    "v1",
                    "priceRule"
                  ]
                },
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"name\": \"Desconto Atacado\",\n  \"priority\": 10,\n  \"type\": \"PERCENT\",\n  \"value\": -5,\n  \"cumulative\": false,\n  \"customerHasStateRegistration\": false,\n  \"quantity\": 100\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "Unprocessable Entity",
              "code": 422,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "cookie": [],
              "body": "{\n  \"error\": \"cumulative is required\"\n}"
            },
            {
              "name": "Refusal — `type` other than `PERCENT`/`REAL`",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "url": {
                  "raw": "{{url}}/v1/priceRule",
                  "host": [
                    "{{url}}"
                  ],
                  "path": [
                    "v1",
                    "priceRule"
                  ]
                },
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"name\": \"Desconto Atacado\",\n  \"priority\": 10,\n  \"type\": \"PERCENT\",\n  \"value\": -5,\n  \"cumulative\": false,\n  \"customerHasStateRegistration\": false,\n  \"quantity\": 100\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "Unprocessable Entity",
              "code": 422,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "cookie": [],
              "body": "{\n  \"error\": \"invalid type\"\n}"
            },
            {
              "name": "Refusal — body that cannot be parsed",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "url": {
                  "raw": "{{url}}/v1/priceRule",
                  "host": [
                    "{{url}}"
                  ],
                  "path": [
                    "v1",
                    "priceRule"
                  ]
                },
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"name\": \"Desconto Atacado\",\n  \"priority\": 10,\n  \"type\": \"PERCENT\",\n  \"value\": -5,\n  \"cumulative\": false,\n  \"customerHasStateRegistration\": false,\n  \"quantity\": 100\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "Unprocessable Entity",
              "code": 422,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "cookie": [],
              "body": "{\n  \"error\": \"invalid request body: ...\"\n}"
            }
          ]
        },
        {
          "name": "Delete Price Rule",
          "request": {
            "method": "DELETE",
            "header": [],
            "url": {
              "raw": "{{url}}/v1/priceRule/:id",
              "host": [
                "{{url}}"
              ],
              "path": [
                "v1",
                "priceRule",
                ":id"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": "4210001",
                  "description": "Rule id, as it came in `id` on creation or in the listing."
                }
              ]
            },
            "description": "### Description\n\nDeactivates a price rule.\n\nIt is a **logical** deletion: the rule is no longer applied in quotations and leaves the listing, but its history is kept — there is no way to reactivate it through this API.\n\n### Responses\n\n**202**\n\n**202 Accepted, no body.** It is the confirmation.\n\n**400**\n\nNon-numeric or zero `id`.\n\n**401**\n\nMissing, malformed or expired token.\n\n**404**\n\nRule not found or already deactivated.\n\nNonexistent id, a rule from another store or one **already deactivated**. A second call with the same id returns 404."
          },
          "response": [
            {
              "name": "Refusal — non-numeric or zero `id`",
              "originalRequest": {
                "method": "DELETE",
                "header": [],
                "url": {
                  "raw": "{{url}}/v1/priceRule/4210001",
                  "host": [
                    "{{url}}"
                  ],
                  "path": [
                    "v1",
                    "priceRule",
                    "4210001"
                  ]
                }
              },
              "status": "Bad Request",
              "code": 400,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "cookie": [],
              "body": "{\n  \"error\": \"invalid id\"\n}"
            },
            {
              "name": "Refusal — rule not found or already deactivated",
              "originalRequest": {
                "method": "DELETE",
                "header": [],
                "url": {
                  "raw": "{{url}}/v1/priceRule/4210001",
                  "host": [
                    "{{url}}"
                  ],
                  "path": [
                    "v1",
                    "priceRule",
                    "4210001"
                  ]
                }
              },
              "status": "Not Found",
              "code": 404,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "cookie": [],
              "body": "{\n  \"error\": \"Regra de preço não encontrada\"\n}"
            }
          ]
        }
      ]
    },
    {
      "name": "Quotes",
      "description": "Services for querying and answering quotes requested by customers.",
      "item": [
        {
          "name": "List Pending Quotes",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{url}}/partnerBudgets/pending?limit=5&offset=0",
              "host": [
                "{{url}}"
              ],
              "path": [
                "partnerBudgets",
                "pending"
              ],
              "query": [
                {
                  "key": "limit",
                  "value": "5",
                  "description": "Quotes per page. Default **5**, maximum **50** — a value above that is reduced to 50, without error."
                },
                {
                  "key": "offset",
                  "value": "0",
                  "description": "First quote of the page. Default **0**."
                },
                {
                  "key": "customerType",
                  "value": "",
                  "description": "Filters by customer type: `PF` or `PJ`. When omitted, it brings both.",
                  "disabled": true
                }
              ]
            },
            "description": "### Description\n\nLists the open quote requests for your store — quotation requests that customers made for products you sell and that have not been answered yet.\n\nEach item brings the product, the requested quantity and the customer's location, which is what you need to price it.\n\n### Business rules\n\n#### Without pending quotes, the response is 422\n\nWhen there is nothing to answer, the response is `422` with the message `Não existem orçamentos pendentes.` It is also what you get when the `offset` goes past the last quote.\n\n### Responses\n\n**200**\n\nAn array with one object per pending quote.\n\n**401**\n\nMissing, malformed or expired token.\n\n**422**\n\nNo pending quote or invalid filter.\n\nNo pending quote (`Não existem orçamentos pendentes.`), or `customerType` other than `PF`/`PJ`."
          },
          "response": [
            {
              "name": "Success — two pending quotes",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{url}}/partnerBudgets/pending?limit=5&offset=0",
                  "host": [
                    "{{url}}"
                  ],
                  "path": [
                    "partnerBudgets",
                    "pending"
                  ],
                  "query": [
                    {
                      "key": "limit",
                      "value": "5",
                      "description": "Quotes per page. Default **5**, maximum **50** — a value above that is reduced to 50, without error."
                    },
                    {
                      "key": "offset",
                      "value": "0",
                      "description": "First quote of the page. Default **0**."
                    },
                    {
                      "key": "customerType",
                      "value": "",
                      "description": "Filters by customer type: `PF` or `PJ`. When omitted, it brings both.",
                      "disabled": true
                    }
                  ]
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "cookie": [],
              "body": "[\n  {\n    \"id\": 4480101,\n    \"active\": true,\n    \"product\": {\n      \"name\": \"Kit Embreagem Completo — Linha Pesada\",\n      \"manufacturer\": \"Fabricante Exemplo\",\n      \"mfrPartCode\": \"FE-500101\",\n      \"composition\": \"UNITARY\",\n      \"imageSet\": {\n        \"baseUrl\": \"https://images.lojaexemplo.cws.digital/produtos\",\n        \"availableSizes\": [\n          \"pp\",\n          \"p\",\n          \"m\",\n          \"g\",\n          \"gg\",\n          \"full\"\n        ],\n        \"paths\": [\n          \"/50/01/kit-embreagem-completo-500101-1756992000000.jpg\"\n        ]\n      }\n    },\n    \"quantity\": 5,\n    \"customer\": {\n      \"city\": \"São Paulo\",\n      \"state\": \"SP\",\n      \"type\": \"PF\"\n    },\n    \"dateCreated\": \"2026-09-01T13:42:07Z\",\n    \"formNotification\": {\n      \"formNotificationId\": 4480901,\n      \"formNotificationCustomAttributes\": []\n    }\n  },\n  {\n    \"id\": 4480102,\n    \"active\": true,\n    \"product\": {\n      \"name\": \"Kit Embreagem Completo — Linha Pesada\",\n      \"manufacturer\": \"Fabricante Exemplo\",\n      \"mfrPartCode\": \"FE-500101\",\n      \"composition\": \"UNITARY\",\n      \"imageSet\": {\n        \"baseUrl\": \"https://images.lojaexemplo.cws.digital/produtos\",\n        \"availableSizes\": [\n          \"pp\",\n          \"p\",\n          \"m\",\n          \"g\",\n          \"gg\",\n          \"full\"\n        ],\n        \"paths\": [\n          \"/50/01/kit-embreagem-completo-500101-1756992000000.jpg\"\n        ]\n      }\n    },\n    \"quantity\": 1,\n    \"customer\": {\n      \"city\": \"São Paulo\",\n      \"state\": \"SP\",\n      \"type\": \"PJ\"\n    },\n    \"dateCreated\": \"2026-09-01T13:42:07Z\",\n    \"formNotification\": {\n      \"formNotificationId\": 4480902,\n      \"formNotificationCustomAttributes\": []\n    }\n  }\n]"
            }
          ]
        },
        {
          "name": "Get Quote Details",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{url}}/partnerBudgets/:id",
              "host": [
                "{{url}}"
              ],
              "path": [
                "partnerBudgets",
                ":id"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": "4480101",
                  "description": "Quote id, as it came in `id` in the pending listing."
                }
              ]
            },
            "description": "### Description\n\nReturns a quote by its id, with its current state: whether it is still pending, whether you have already answered it and how much you quoted, and whether it became an order.\n\n### Responses\n\n**200**\n\nThe quote.\n\nThe marked fields appear only under the stated condition.\n\nThe price, the lead time and the product code appear **in two places** in an answered quote: inside `stock` and also at the root of the object. They are the same value — read them from wherever you prefer, and do not treat the root as a second piece of data.\n\n**401**\n\nMissing, malformed or expired token.\n\n**404**\n\nQuote not found.\n\nNonexistent id **or** a quote from another store. The same response in both cases, without a body."
          },
          "response": [
            {
              "name": "Success — quote already answered, which became an order",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{url}}/partnerBudgets/4480101",
                  "host": [
                    "{{url}}"
                  ],
                  "path": [
                    "partnerBudgets",
                    "4480101"
                  ]
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "cookie": [],
              "body": "{\n  \"id\": 4480101,\n  \"active\": true,\n  \"product\": {\n    \"name\": \"Kit Embreagem Completo — Linha Pesada\",\n    \"manufacturer\": \"Fabricante Exemplo\",\n    \"mfrPartCode\": \"FE-500101\",\n    \"composition\": \"UNITARY\",\n    \"imageSet\": {\n      \"baseUrl\": \"https://images.lojaexemplo.cws.digital/produtos\",\n      \"availableSizes\": [\n        \"pp\",\n        \"p\",\n        \"m\",\n        \"g\",\n        \"gg\",\n        \"full\"\n      ],\n      \"paths\": [\n        \"/50/01/kit-embreagem-completo-500101-1756992000000.jpg\"\n      ]\n    }\n  },\n  \"stock\": {\n    \"price\": 1250,\n    \"leadTime\": 7,\n    \"partnerPartCode\": \"SKU-A-001\"\n  },\n  \"quantity\": 5,\n  \"customer\": {\n    \"city\": \"São Paulo\",\n    \"state\": \"SP\",\n    \"type\": \"PF\"\n  },\n  \"dateCreated\": \"2026-09-01T13:42:07Z\",\n  \"price\": 1250,\n  \"priceFormats\": {\n    \"value\": \"1250.00\",\n    \"mask\": \"R$1250.00\"\n  },\n  \"leadTime\": 7,\n  \"partnerPartCode\": \"SKU-A-001\",\n  \"partnerInternalPartCode\": \"SKU-A-001\",\n  \"partnerOrderId\": 900201,\n  \"formNotification\": {\n    \"formNotificationId\": 4480901,\n    \"formNotificationCustomAttributes\": []\n  }\n}"
            }
          ]
        },
        {
          "name": "Answer Quote",
          "request": {
            "method": "PUT",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{url}}/partnerBudgets/:id",
              "host": [
                "{{url}}"
              ],
              "path": [
                "partnerBudgets",
                ":id"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": "4480101",
                  "description": "Quote id, as it came in `id` in the pending listing."
                }
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"price\": 1250,\n  \"leadTime\": 7,\n  \"partnerPartCode\": \"SKU-A-001\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "description": "### Description\n\nAnswers a pending quote: you provide the price, the delivery lead time and your product code, and CWS creates the corresponding stock and presents your offer to the customer.\n\n### Business rules\n\n#### Answering creates the product stock\n\nWhen you answer, CWS stores a stock with the price, the lead time and the code you provided, in the **quantity the customer requested**, and links this stock to the quote.\n\nThat is why `partnerPartCode` is required — it is the code by which you will recognize the item when the order arrives.\n\n#### The stock is created in your first warehouse\n\nThe created stock is associated with the **first warehouse of your store**.\n\n#### A quote is answered only once\n\nA quote that already has an answer is rejected with `Orcamento já respondido`.\n\n#### The quotation closes at the fifth answered quote\n\nThe customer's request accepts answers from several partners. On the **first** answer the customer is notified that the product was found; from the **fifth** on, the request is closed and the quotes not yet answered are discarded.\n\n### Responses\n\n**200**\n\nThe answered quote.\n\nIt comes with the answered-quote fields filled in.\n\nThe response also brings the `Location` header with the quote URL.\n\nThe price, the lead time and the product code appear **in two places** in an answered quote: inside `stock` and also at the root of the object. They are the same value — read them from wherever you prefer, and do not treat the root as a second piece of data.\n\n**401**\n\nMissing, malformed or expired token.\n\n**422**\n\nInvalid body or unavailable quote.\n\nMissing or out-of-range required field. See the description of each field; the reason comes in the message.\n\nQuote **already answered**: `Orcamento já respondido`. Each quote accepts one answer.\n\nNonexistent quote or quote from another store: `Orcamento não encontrado`."
          },
          "response": [
            {
              "name": "Success — quote answered",
              "originalRequest": {
                "method": "PUT",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "url": {
                  "raw": "{{url}}/partnerBudgets/4480101",
                  "host": [
                    "{{url}}"
                  ],
                  "path": [
                    "partnerBudgets",
                    "4480101"
                  ]
                },
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"price\": 1250,\n  \"leadTime\": 7,\n  \"partnerPartCode\": \"SKU-A-001\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "cookie": [],
              "body": "{\n  \"id\": 4480101,\n  \"active\": true,\n  \"product\": {\n    \"name\": \"Kit Embreagem Completo — Linha Pesada\",\n    \"manufacturer\": \"Fabricante Exemplo\",\n    \"mfrPartCode\": \"FE-500101\",\n    \"composition\": \"UNITARY\",\n    \"imageSet\": {\n      \"baseUrl\": \"https://images.lojaexemplo.cws.digital/produtos\",\n      \"availableSizes\": [\n        \"pp\",\n        \"p\",\n        \"m\",\n        \"g\",\n        \"gg\",\n        \"full\"\n      ],\n      \"paths\": [\n        \"/50/01/kit-embreagem-completo-500101-1756992000000.jpg\"\n      ]\n    }\n  },\n  \"stock\": {\n    \"price\": 1250,\n    \"leadTime\": 7,\n    \"partnerPartCode\": \"SKU-A-001\"\n  },\n  \"quantity\": 5,\n  \"customer\": {\n    \"city\": \"São Paulo\",\n    \"state\": \"SP\",\n    \"type\": \"PF\"\n  },\n  \"dateCreated\": \"2026-09-01T13:42:07Z\",\n  \"price\": 1250,\n  \"priceFormats\": {\n    \"value\": \"1250.00\",\n    \"mask\": \"R$1250.00\"\n  },\n  \"leadTime\": 7,\n  \"partnerPartCode\": \"SKU-A-001\",\n  \"partnerInternalPartCode\": \"SKU-A-001\",\n  \"formNotification\": {\n    \"formNotificationId\": 4480901,\n    \"formNotificationCustomAttributes\": []\n  }\n}"
            }
          ]
        },
        {
          "name": "Decline Quote",
          "request": {
            "method": "DELETE",
            "header": [],
            "url": {
              "raw": "{{url}}/partnerBudgets/:id",
              "host": [
                "{{url}}"
              ],
              "path": [
                "partnerBudgets",
                ":id"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": "4480102",
                  "description": "Quote id, as it came in `id` in the pending listing."
                }
              ]
            },
            "description": "### Description\n\nDeclines a pending quote: it tells CWS that you will not quote that product.\n\nThe quote leaves your pending list and the customer does not receive an offer from you.\n\n### Business rules\n\n#### Declining cannot be undone\n\nThere is no endpoint to revert it: a declined quote does not return to the pending list and can no longer be answered.\n\nIf there is a chance of quoting, leave it pending instead of declining.\n\n### Responses\n\n**204**\n\n**204 No Content, no body.** It is the confirmation.\n\n**401**\n\nMissing, malformed or expired token.\n\n**422**\n\nQuote not found.\n\nNonexistent quote or quote from another store: `Orcamento não encontrado`."
          },
          "response": []
        },
        {
          "name": "Get Quote by Order ID",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{url}}/partnerBudgetsByPartnerOrder/:partnerOrderId",
              "host": [
                "{{url}}"
              ],
              "path": [
                "partnerBudgetsByPartnerOrder",
                ":partnerOrderId"
              ],
              "variable": [
                {
                  "key": "partnerOrderId",
                  "value": "900201",
                  "description": "Id of the **order**, not of the quote. It is the `id` of the Orders endpoints, and the same value that appears in `partnerOrderId` in the quote."
                }
              ]
            },
            "description": "### Description\n\nReturns the quotes that originated an order. Use it when you receive an order and need to trace which quotation it came from — the price and the lead time you provided in the quote are here.\n\n### Business rules\n\n#### The response is a list\n\nAn order may have originated from more than one quote — one per quoted item. Expect an array even when there is only one.\n\n### Responses\n\n**200**\n\nA list with one object per quote.\n\nAll of them come with the answered-quote fields filled in, since they generated an order.\n\nThe price, the lead time and the product code appear **in two places** in an answered quote: inside `stock` and also at the root of the object. They are the same value — read them from wherever you prefer, and do not treat the root as a second piece of data.\n\n**401**\n\nMissing, malformed or expired token.\n\n**404**\n\nNo quote for this order.\n\nOrder without a linked quote, nonexistent or from another store. The same response in all three cases, without a body."
          },
          "response": [
            {
              "name": "Success — the quote that originated the order",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{url}}/partnerBudgetsByPartnerOrder/900201",
                  "host": [
                    "{{url}}"
                  ],
                  "path": [
                    "partnerBudgetsByPartnerOrder",
                    "900201"
                  ]
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "cookie": [],
              "body": "[\n  {\n    \"id\": 4480101,\n    \"active\": true,\n    \"product\": {\n      \"name\": \"Kit Embreagem Completo — Linha Pesada\",\n      \"manufacturer\": \"Fabricante Exemplo\",\n      \"mfrPartCode\": \"FE-500101\",\n      \"composition\": \"UNITARY\",\n      \"imageSet\": {\n        \"baseUrl\": \"https://images.lojaexemplo.cws.digital/produtos\",\n        \"availableSizes\": [\n          \"pp\",\n          \"p\",\n          \"m\",\n          \"g\",\n          \"gg\",\n          \"full\"\n        ],\n        \"paths\": [\n          \"/50/01/kit-embreagem-completo-500101-1756992000000.jpg\"\n        ]\n      }\n    },\n    \"stock\": {\n      \"price\": 1250,\n      \"leadTime\": 7,\n      \"partnerPartCode\": \"SKU-A-001\"\n    },\n    \"quantity\": 5,\n    \"customer\": {\n      \"city\": \"São Paulo\",\n      \"state\": \"SP\",\n      \"type\": \"PF\"\n    },\n    \"dateCreated\": \"2026-09-01T13:42:07Z\",\n    \"price\": 1250,\n    \"priceFormats\": {\n      \"value\": \"1250.00\",\n      \"mask\": \"R$1250.00\"\n    },\n    \"leadTime\": 7,\n    \"partnerPartCode\": \"SKU-A-001\",\n    \"partnerInternalPartCode\": \"SKU-A-001\",\n    \"partnerOrderId\": 900201,\n    \"formNotification\": {\n      \"formNotificationId\": 4480901,\n      \"formNotificationCustomAttributes\": []\n    }\n  }\n]"
            }
          ]
        }
      ]
    },
    {
      "name": "Custom Cart",
      "description": "Endpoints to create, edit and delete custom shopping carts for customers.",
      "item": [
        {
          "name": "Create Custom Cart",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{url}}/customCart/create",
              "host": [
                "{{url}}"
              ],
              "path": [
                "customCart",
                "create"
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"cartName\": \"Proposta Ana Paula — setembro\",\n  \"document\": \"466.935.373-08\",\n  \"products\": [\n    {\n      \"brand\": \"Bosch\",\n      \"mfrPartCode\": \"TESTE-API-001\",\n      \"composition\": \"UNITARY\",\n      \"warehouseId\": 1001,\n      \"quantity\": 2\n    }\n  ]\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "description": "### Description\n\nCreates a cart with pre-selected products for a customer and returns the **access link** to the cart, for you to send to the customer.\n\nThe customer opens the link and completes the purchase with the items already assembled.\n\n### How to identify the product\n\nEach item must carry **one** of these forms:\n\n| Form | Fields |\n| --- | --- |\n| By manufacturer data | `brand`, `mfrPartCode`, `composition` and `warehouseId`, all four together. |\n| By attribute | `skuAttributeName`, `skuAttributeValue` and `warehouseId`, all three together. Available to those who have contracted the product catalog service with their own attribute. |\n| By your product code | `partnerPartCode` and `warehouseId`, both together. |\n\n**All items in the same request must use the same form.** A request that mixes forms is rejected as a whole with 400.\n\nThe examples use the sandbox test product, which is already registered: change only the `warehouseId` to the id of one of your warehouses.\n\n### Business rules\n\n#### The cart link comes in the `message` field\n\nThe response has no field of its own for the URL: the link arrives in `message`.\n\n#### Cart store\n\nWithout `storeDocument`, the cart is created in your store when it has an active portal. Without a portal, it goes to the only store with an active portal you are linked to; with none or more than one, send the `storeDocument`.\n\nWith `storeDocument`, the cart is created in the store of that CNPJ. The store must have an active portal, and you must be its owner or have an authorized link with it.\n\nThe customer of `document` and the seller of `sellerEmail` are looked up in the cart store, and the link belongs to that store.\n\n#### Seller who owns the stock\n\nWithout `sellerDocument`, the stock is yours. With `sellerDocument`, the warehouse and the stock of each item must belong to the seller of that document, and you must be that seller or the owner of the cart store.\n\nA warehouse of another seller or an inactive one is treated as product not found.\n\n#### Customer's open cart\n\nWhen the cart type allows reusing the customer's open cart, the items go into it, and `status` comes as `updated`.\n\n### Responses\n\n**200**\n\nThe cart link and the `cartId`.\n\n`status` comes as `ok`, or `updated` when the items went into the customer's open cart.\n\n**400**\n\nInvalid body or cart rejected.\n\nRequired field missing, more than **100** items or items without a single complete identification form.\n\nNo `storeDocument` and no single store with an active portal for you: send the `storeDocument`.\n\nCustomer of `document` or seller of `sellerEmail` not registered in the cart store.\n\nInsufficient stock, more than one stock for the item or cart type rule not met.\n\nNothing is saved. The reason comes in `message`; for an item, with its number and the fields you sent.\n\n**401**\n\nMissing, malformed or expired token.\n\n**404**\n\nStore, seller or product not found.\n\nThe `storeDocument` or the `sellerDocument` does not point to a store or seller linked to you.\n\nThe product is not in the given warehouse, or the warehouse does not belong to the seller or is inactive."
          },
          "response": [
            {
              "name": "Success — cart created",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "url": {
                  "raw": "{{url}}/customCart/create",
                  "host": [
                    "{{url}}"
                  ],
                  "path": [
                    "customCart",
                    "create"
                  ]
                },
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"cartName\": \"Proposta Ana Paula — setembro\",\n  \"document\": \"466.935.373-08\",\n  \"products\": [\n    {\n      \"brand\": \"Bosch\",\n      \"mfrPartCode\": \"TESTE-API-001\",\n      \"composition\": \"UNITARY\",\n      \"warehouseId\": 1001,\n      \"quantity\": 2\n    }\n  ]\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "cookie": [],
              "body": "{\n  \"status\": \"ok\",\n  \"message\": \"https://lojaexemplo.cws.digital/carrinho-personalizado/k7m2p9x4t1c6b8v3n5q0w7z2y4d6f8h1\",\n  \"cartId\": 4470001\n}"
            },
            {
              "name": "Success — cart in the CNPJ store",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "url": {
                  "raw": "{{url}}/customCart/create",
                  "host": [
                    "{{url}}"
                  ],
                  "path": [
                    "customCart",
                    "create"
                  ]
                },
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"cartName\": \"Proposta Ana Paula — setembro\",\n  \"document\": \"466.935.373-08\",\n  \"storeDocument\": \"30.424.972/0001-74\",\n  \"products\": [\n    {\n      \"partnerPartCode\": \"PRODUTO-TESTE-001\",\n      \"warehouseId\": 1001,\n      \"quantity\": 1\n    }\n  ]\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "cookie": [],
              "body": "{\n  \"status\": \"ok\",\n  \"message\": \"https://lojaexemplo.cws.digital/carrinho-personalizado/k7m2p9x4t1c6b8v3n5q0w7z2y4d6f8h1\",\n  \"cartId\": 4470001\n}"
            },
            {
              "name": "Refusal — insufficient stock",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "url": {
                  "raw": "{{url}}/customCart/create",
                  "host": [
                    "{{url}}"
                  ],
                  "path": [
                    "customCart",
                    "create"
                  ]
                },
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"cartName\": \"Proposta Ana Paula — setembro\",\n  \"document\": \"466.935.373-08\",\n  \"products\": [\n    {\n      \"brand\": \"Bosch\",\n      \"mfrPartCode\": \"TESTE-API-001\",\n      \"composition\": \"UNITARY\",\n      \"warehouseId\": 1001,\n      \"quantity\": 2\n    }\n  ]\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "Bad Request",
              "code": 400,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "cookie": [],
              "body": "{\n  \"status\": \"BAD_REQUEST\",\n  \"message\": \"quantity exceeds available stock (item 1: brand=\\\"Bosch\\\", mfrPartCode=\\\"TESTE-API-001\\\", composition=\\\"UNITARY\\\", warehouseId=1001)\"\n}"
            },
            {
              "name": "Refusal — storeDocument required",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "url": {
                  "raw": "{{url}}/customCart/create",
                  "host": [
                    "{{url}}"
                  ],
                  "path": [
                    "customCart",
                    "create"
                  ]
                },
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"cartName\": \"Proposta Ana Paula — setembro\",\n  \"document\": \"466.935.373-08\",\n  \"products\": [\n    {\n      \"brand\": \"Bosch\",\n      \"mfrPartCode\": \"TESTE-API-001\",\n      \"composition\": \"UNITARY\",\n      \"warehouseId\": 1001,\n      \"quantity\": 2\n    }\n  ]\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "Bad Request",
              "code": 400,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "cookie": [],
              "body": "{\n  \"status\": \"BAD_REQUEST\",\n  \"message\": \"storeDocument is required\"\n}"
            },
            {
              "name": "Refusal — product not found",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "url": {
                  "raw": "{{url}}/customCart/create",
                  "host": [
                    "{{url}}"
                  ],
                  "path": [
                    "customCart",
                    "create"
                  ]
                },
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"cartName\": \"Proposta Ana Paula — setembro\",\n  \"document\": \"466.935.373-08\",\n  \"products\": [\n    {\n      \"brand\": \"Bosch\",\n      \"mfrPartCode\": \"TESTE-API-001\",\n      \"composition\": \"UNITARY\",\n      \"warehouseId\": 1001,\n      \"quantity\": 2\n    }\n  ]\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "Not Found",
              "code": 404,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "cookie": [],
              "body": "{\n  \"status\": \"NOT_FOUND\",\n  \"message\": \"product not found (item 1: brand=\\\"Bosch\\\", mfrPartCode=\\\"TESTE-API-001\\\", composition=\\\"UNITARY\\\", warehouseId=1001)\"\n}"
            },
            {
              "name": "Refusal — store not found",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "url": {
                  "raw": "{{url}}/customCart/create",
                  "host": [
                    "{{url}}"
                  ],
                  "path": [
                    "customCart",
                    "create"
                  ]
                },
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"cartName\": \"Proposta Ana Paula — setembro\",\n  \"document\": \"466.935.373-08\",\n  \"products\": [\n    {\n      \"brand\": \"Bosch\",\n      \"mfrPartCode\": \"TESTE-API-001\",\n      \"composition\": \"UNITARY\",\n      \"warehouseId\": 1001,\n      \"quantity\": 2\n    }\n  ]\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "Not Found",
              "code": 404,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "cookie": [],
              "body": "{\n  \"status\": \"NOT_FOUND\",\n  \"message\": \"store not found (storeDocument)\"\n}"
            }
          ]
        },
        {
          "name": "Edit Custom Cart",
          "request": {
            "method": "PUT",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{url}}/customCart/edit",
              "host": [
                "{{url}}"
              ],
              "path": [
                "customCart",
                "edit"
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"cartId\": 4470001,\n  \"updateType\": \"complement\",\n  \"document\": \"466.935.373-08\",\n  \"products\": [\n    {\n      \"brand\": \"Bosch\",\n      \"mfrPartCode\": \"TESTE-API-001\",\n      \"composition\": \"UNITARY\",\n      \"warehouseId\": 1001,\n      \"quantity\": 5\n    }\n  ]\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "description": "### Description\n\nApplies new items to an existing cart, without generating another link: the `cartId` and the URL stay the same.\n\nThe items follow the same identification forms and the same `sellerDocument` as **Create Custom Cart**. The store is the cart's own store.\n\n### Business rules\n\n#### The two values of `updateType`\n\n`complement` looks up the item by the same product and the same `key` and **adds** the quantity sent to the one already there; the new metadata is merged with the old one.\n\n`replacement` **deletes** the items that were in the cart and stores only the ones you sent; the metadata is also replaced.\n\nThe values are compared exactly, in lowercase.\n\n#### Carts that can be edited\n\nOnly a cart that has not become an order nor been canceled or deleted. The cart must belong to your store, or to a store you are linked to.\n\n### Responses\n\n**200**\n\nThe changed cart, with the same URL and `cartId`.\n\nSame structure as the creation: `status`, `message` with the URL and `cartId`.\n\n**400**\n\nInvalid body or change rejected.\n\nNo `cartId`, or `updateType` missing or other than `complement` and `replacement`.\n\nBody, items, customer, seller or stock rejected by the same rules as the creation.\n\nCart that has already become an order, been canceled or deleted.\n\nThe cart does not change. The reason comes in `message`.\n\n**401**\n\nMissing, malformed or expired token.\n\n**404**\n\nCart, seller or product not found.\n\nThe cart does not exist or belongs to another store: the same response in both cases.\n\n`sellerDocument` or product not found, as in the creation. The cart does not change."
          },
          "response": [
            {
              "name": "Success — items applied to the cart",
              "originalRequest": {
                "method": "PUT",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "url": {
                  "raw": "{{url}}/customCart/edit",
                  "host": [
                    "{{url}}"
                  ],
                  "path": [
                    "customCart",
                    "edit"
                  ]
                },
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"cartId\": 4470001,\n  \"updateType\": \"complement\",\n  \"document\": \"466.935.373-08\",\n  \"products\": [\n    {\n      \"brand\": \"Bosch\",\n      \"mfrPartCode\": \"TESTE-API-001\",\n      \"composition\": \"UNITARY\",\n      \"warehouseId\": 1001,\n      \"quantity\": 5\n    }\n  ]\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "cookie": [],
              "body": "{\n  \"status\": \"ok\",\n  \"message\": \"https://lojaexemplo.cws.digital/carrinho-personalizado/k7m2p9x4t1c6b8v3n5q0w7z2y4d6f8h1\",\n  \"cartId\": 4470001\n}"
            },
            {
              "name": "Refusal — invalid updateType",
              "originalRequest": {
                "method": "PUT",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "url": {
                  "raw": "{{url}}/customCart/edit",
                  "host": [
                    "{{url}}"
                  ],
                  "path": [
                    "customCart",
                    "edit"
                  ]
                },
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"cartId\": 4470001,\n  \"updateType\": \"complement\",\n  \"document\": \"466.935.373-08\",\n  \"products\": [\n    {\n      \"brand\": \"Bosch\",\n      \"mfrPartCode\": \"TESTE-API-001\",\n      \"composition\": \"UNITARY\",\n      \"warehouseId\": 1001,\n      \"quantity\": 5\n    }\n  ]\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "Bad Request",
              "code": 400,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "cookie": [],
              "body": "{\n  \"status\": \"BAD_REQUEST\",\n  \"message\": \"invalid updateType: use complement or replacement\"\n}"
            },
            {
              "name": "Refusal — cart not found",
              "originalRequest": {
                "method": "PUT",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "url": {
                  "raw": "{{url}}/customCart/edit",
                  "host": [
                    "{{url}}"
                  ],
                  "path": [
                    "customCart",
                    "edit"
                  ]
                },
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"cartId\": 4470001,\n  \"updateType\": \"complement\",\n  \"document\": \"466.935.373-08\",\n  \"products\": [\n    {\n      \"brand\": \"Bosch\",\n      \"mfrPartCode\": \"TESTE-API-001\",\n      \"composition\": \"UNITARY\",\n      \"warehouseId\": 1001,\n      \"quantity\": 5\n    }\n  ]\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "Not Found",
              "code": 404,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "cookie": [],
              "body": "{\n  \"status\": \"NOT_FOUND\",\n  \"message\": \"custom cart not found: 4470001\"\n}"
            }
          ]
        },
        {
          "name": "Delete Custom Cart by ID",
          "request": {
            "method": "DELETE",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{url}}/customCart/deleteById/:id",
              "host": [
                "{{url}}"
              ],
              "path": [
                "customCart",
                "deleteById",
                ":id"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": "4470001",
                  "description": "Cart id, as it came in `cartId` on creation."
                }
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"customKey\": [\n    \"proposta-item-1\"\n  ]\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "description": "### Description\n\nDeletes a custom cart, or only some of its items.\n\nWithout a body, the whole cart is deleted, and the link stops working for the customer.\n\n### Business rules\n\n#### Delete only some items\n\nSend in `customKey` the keys (`products[].key`) of the items to remove. Only the default cart accepts deleting part of the items.\n\nWith no item left, the whole cart is deleted.\n\n#### Carts that can be deleted\n\nOnly a cart that has not become an order nor been canceled or deleted. The cart must belong to your store, or to a store you are linked to.\n\n### Responses\n\n**200**\n\nCart or items deleted.\n\n**400**\n\nDeletion rejected.\n\n`id` that is not a number, or a body that is not valid JSON.\n\nCart that has already become an order, been canceled or deleted.\n\nEmpty `customKey`, no item with the keys sent or in a cart that is not the default one.\n\nThe cart does not change. The reason comes in `message`.\n\n**401**\n\nMissing, malformed or expired token.\n\n**404**\n\nThe cart does not exist or is not in your scope."
          },
          "response": [
            {
              "name": "Success — cart deleted",
              "originalRequest": {
                "method": "DELETE",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "url": {
                  "raw": "{{url}}/customCart/deleteById/4470001",
                  "host": [
                    "{{url}}"
                  ],
                  "path": [
                    "customCart",
                    "deleteById",
                    "4470001"
                  ]
                },
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"customKey\": [\n    \"proposta-item-1\"\n  ]\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "cookie": [],
              "body": "{\n  \"status\": \"OK\"\n}"
            },
            {
              "name": "Success — items removed",
              "originalRequest": {
                "method": "DELETE",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "url": {
                  "raw": "{{url}}/customCart/deleteById/4470001",
                  "host": [
                    "{{url}}"
                  ],
                  "path": [
                    "customCart",
                    "deleteById",
                    "4470001"
                  ]
                },
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"customKey\": [\n    \"proposta-item-1\"\n  ]\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "cookie": [],
              "body": "{\n  \"status\": \"OK\"\n}"
            },
            {
              "name": "Refusal — partial deletion not allowed",
              "originalRequest": {
                "method": "DELETE",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "url": {
                  "raw": "{{url}}/customCart/deleteById/4470001",
                  "host": [
                    "{{url}}"
                  ],
                  "path": [
                    "customCart",
                    "deleteById",
                    "4470001"
                  ]
                },
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"customKey\": [\n    \"proposta-item-1\"\n  ]\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "Bad Request",
              "code": 400,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "cookie": [],
              "body": "{\n  \"status\": \"BAD_REQUEST\",\n  \"message\": \"partial delete is not allowed for this cart type\"\n}"
            },
            {
              "name": "Refusal — cart not found",
              "originalRequest": {
                "method": "DELETE",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "url": {
                  "raw": "{{url}}/customCart/deleteById/4470001",
                  "host": [
                    "{{url}}"
                  ],
                  "path": [
                    "customCart",
                    "deleteById",
                    "4470001"
                  ]
                },
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"customKey\": [\n    \"proposta-item-1\"\n  ]\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "Not Found",
              "code": 404,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "cookie": [],
              "body": "{\n  \"status\": \"NOT_FOUND\",\n  \"message\": \"custom cart not found: 4470001\"\n}"
            }
          ]
        }
      ]
    },
    {
      "name": "Seller Module",
      "description": "Endpoints to manage sellers and their customer portfolios.",
      "item": [
        {
          "name": "List Sellers",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{url}}/sellerModule/listSellers?limit=20&offset=0",
              "host": [
                "{{url}}"
              ],
              "path": [
                "sellerModule",
                "listSellers"
              ],
              "query": [
                {
                  "key": "limit",
                  "value": "20",
                  "description": "Sellers per page. Default **20**, maximum **200**. A value above that is reduced to 200, and an invalid value uses the default, with no error."
                },
                {
                  "key": "offset",
                  "value": "0",
                  "description": "First seller of the page. Default **0**."
                },
                {
                  "key": "email",
                  "value": "",
                  "description": "**Exact** search by the login e-mail, case-insensitive. With `email`, `limit` and `offset` do not apply.",
                  "disabled": true
                }
              ]
            },
            "description": "### Description\n\nLists your store's sellers, with each one's permissions, from newest to oldest.\n\nThe other routes of the module identify the seller by CPF/CNPJ or by login e-mail.\n\n### Responses\n\n**200**\n\nArray with one object per seller.\n\nComes as `[]` when there is no seller, when the `offset` goes past the last one or when the `email` is not of a seller of your store.\n\n**401**\n\nMissing, malformed or expired token."
          },
          "response": [
            {
              "name": "Success — one seller of the store",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{url}}/sellerModule/listSellers?limit=20&offset=0",
                  "host": [
                    "{{url}}"
                  ],
                  "path": [
                    "sellerModule",
                    "listSellers"
                  ],
                  "query": [
                    {
                      "key": "limit",
                      "value": "20",
                      "description": "Sellers per page. Default **20**, maximum **200**. A value above that is reduced to 200, and an invalid value uses the default, with no error."
                    },
                    {
                      "key": "offset",
                      "value": "0",
                      "description": "First seller of the page. Default **0**."
                    },
                    {
                      "key": "email",
                      "value": "",
                      "description": "**Exact** search by the login e-mail, case-insensitive. With `email`, `limit` and `offset` do not apply.",
                      "disabled": true
                    }
                  ]
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "cookie": [],
              "body": "[\n  {\n    \"id\": \"7c3f1a8e-4b62-4d05-9e17-5a2c8d3f6b04\",\n    \"username\": \"vendedor@lojaexemplo.com.br\",\n    \"document\": \"528.871.928-41\",\n    \"restrictedCustomers\": true,\n    \"enabledFreight\": false,\n    \"enabledInsertFreight\": false,\n    \"enabledCustomerRegistration\": false,\n    \"enableDiscountItemValue\": true,\n    \"enableAddItemValue\": false,\n    \"enableDiscountBranch\": true,\n    \"enableDiscountSeller\": false,\n    \"enableCoupon\": true,\n    \"enableChatSupport\": false,\n    \"createdAt\": \"2026-09-01T13:42:07.512034Z\",\n    \"updatedAt\": \"2026-09-01T13:42:07.512034Z\",\n    \"attendantCode\": \"VEND-001\",\n    \"enableRestrictedCustomers\": true,\n    \"enableRestrictedGroupsAttendant\": false,\n    \"allowedSellersId\": [],\n    \"profile\": null\n  }\n]"
            }
          ]
        },
        {
          "name": "Add Seller",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{url}}/sellerModule/addSeller",
              "host": [
                "{{url}}"
              ],
              "path": [
                "sellerModule",
                "addSeller"
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"username\": \"vendedor@lojaexemplo.com.br\",\n  \"restrictedCustomers\": true,\n  \"enabledFreight\": false,\n  \"enabledInsertFreight\": false,\n  \"enabledCustomerRegistration\": false,\n  \"enableDiscountItemValue\": true,\n  \"enableDiscountBranch\": true,\n  \"attendantCode\": \"VEND-001\",\n  \"accessStartTime\": \"08:00\",\n  \"accessEndTime\": \"18:00\",\n  \"blockSaturdayAccess\": true,\n  \"blockSundayAccess\": true,\n  \"profileCode\": \"PERFIL-VENDEDOR\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "description": "### Description\n\nRegisters a seller of your store from an account that already exists: you identify the account and define the permissions it gets in customer service.\n\n### Business rules\n\n#### The account must exist and be active\n\nThe seller is not created from scratch: the route looks for an **active account of your store** by `username` or by `document` and promotes it to seller. A nonexistent account, a disabled one or one from another store is rejected.\n\nWith both fields, the search is by `username`.\n\n#### Account that is already a seller\n\nIf the account is already a seller of your store, the response is **422** and nothing is changed, even if the profile or partners sent would be rejected.\n\n#### Branch and seller discounts depend on the item discount\n\n`enableDiscountBranch` and `enableDiscountSeller` are only considered when **`enableDiscountItemValue` or `enableAddItemValue`** is `true`. Otherwise both are stored as `false`, even if you send them as `true`.\n\n#### Profile: one of the two, or none\n\nSend `profileCode` **or** `profileName`, never both. The profile must exist in your store.\n\nWith neither, the seller has **no profile** and the response brings `profile: null`. Stores configured to require a profile on registration reject this case.\n\n#### Access window: both or neither\n\n`accessStartTime` and `accessEndTime` are a pair. Sending only one is rejected; sending both requires the `HH:mm` format and **different** values.\n\nSending neither leaves the seller with no time restriction.\n\n#### Partners need an authorized partnership\n\nEach item of `partners` identifies the partner by the CPF/CNPJ in `document`, which must have an **authorized** partnership with your store. A repeated document counts once.\n\nExactly one of the partners must come with `defaultPartner: true`.\n\n#### The seller joins their own portfolio\n\nThe created seller already appears in their own portfolio, to buy on their own behalf. They are listed by **List Seller's Customer Portfolio**.\n\n### Responses\n\n**200**\n\nThe created seller and its effective permissions.\n\nOne identification field comes back: `username` when you sent it; otherwise, `document`, masked.\n\n**400**\n\nInvalid body or rejected by validation.\n\nThe body came missing, empty or with invalid JSON.\n\nRequired fields, document, profile, access window or partners outside the rules of this endpoint.\n\nAccount or profile not found in your store. The reasons come together in `message`, split by ` | `.\n\n**401**\n\nMissing, malformed or expired token.\n\n**422**\n\nThe account is already a seller of your store."
          },
          "response": [
            {
              "name": "Success — seller identified by e-mail",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "url": {
                  "raw": "{{url}}/sellerModule/addSeller",
                  "host": [
                    "{{url}}"
                  ],
                  "path": [
                    "sellerModule",
                    "addSeller"
                  ]
                },
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"username\": \"vendedor@lojaexemplo.com.br\",\n  \"restrictedCustomers\": true,\n  \"enabledFreight\": false,\n  \"enabledInsertFreight\": false,\n  \"enabledCustomerRegistration\": false,\n  \"enableDiscountItemValue\": true,\n  \"enableDiscountBranch\": true,\n  \"attendantCode\": \"VEND-001\",\n  \"accessStartTime\": \"08:00\",\n  \"accessEndTime\": \"18:00\",\n  \"blockSaturdayAccess\": true,\n  \"blockSundayAccess\": true,\n  \"profileCode\": \"PERFIL-VENDEDOR\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "cookie": [],
              "body": "{\n  \"id\": \"7c3f1a8e-4b62-4d05-9e17-5a2c8d3f6b04\",\n  \"username\": \"vendedor@lojaexemplo.com.br\",\n  \"restrictedCustomers\": true,\n  \"enabledFreight\": false,\n  \"enabledInsertFreight\": false,\n  \"enabledCustomerRegistration\": false,\n  \"enableDiscountItemValue\": true,\n  \"enableAddItemValue\": false,\n  \"enableDiscountBranch\": true,\n  \"enableDiscountFranchise\": false,\n  \"enableDiscountSeller\": false,\n  \"enableCoupon\": true,\n  \"enableChatSupport\": false,\n  \"createdAt\": \"2026-09-01T13:42:07.512034Z\",\n  \"updatedAt\": \"2026-09-01T13:42:07.512034Z\",\n  \"attendantCode\": \"VEND-001\",\n  \"enableRestrictedCustomers\": false,\n  \"enableRestrictedGroupsAttendant\": false,\n  \"allowedSellersId\": [],\n  \"canViewHighDiscountOrders\": false,\n  \"profile\": {\n    \"id\": 4470301,\n    \"code\": \"PERFIL-VENDEDOR\",\n    \"name\": \"Vendedor Padrão\"\n  }\n}"
            },
            {
              "name": "Refusal — missing body",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "url": {
                  "raw": "{{url}}/sellerModule/addSeller",
                  "host": [
                    "{{url}}"
                  ],
                  "path": [
                    "sellerModule",
                    "addSeller"
                  ]
                },
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"username\": \"vendedor@lojaexemplo.com.br\",\n  \"restrictedCustomers\": true,\n  \"enabledFreight\": false,\n  \"enabledInsertFreight\": false,\n  \"enabledCustomerRegistration\": false,\n  \"enableDiscountItemValue\": true,\n  \"enableDiscountBranch\": true,\n  \"attendantCode\": \"VEND-001\",\n  \"accessStartTime\": \"08:00\",\n  \"accessEndTime\": \"18:00\",\n  \"blockSaturdayAccess\": true,\n  \"blockSundayAccess\": true,\n  \"profileCode\": \"PERFIL-VENDEDOR\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "Bad Request",
              "code": 400,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "cookie": [],
              "body": "{\n  \"status\": \"BAD_REQUEST\",\n  \"message\": \"Body not provided\"\n}"
            },
            {
              "name": "Refusal — validation failures",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "url": {
                  "raw": "{{url}}/sellerModule/addSeller",
                  "host": [
                    "{{url}}"
                  ],
                  "path": [
                    "sellerModule",
                    "addSeller"
                  ]
                },
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"username\": \"vendedor@lojaexemplo.com.br\",\n  \"restrictedCustomers\": true,\n  \"enabledFreight\": false,\n  \"enabledInsertFreight\": false,\n  \"enabledCustomerRegistration\": false,\n  \"enableDiscountItemValue\": true,\n  \"enableDiscountBranch\": true,\n  \"attendantCode\": \"VEND-001\",\n  \"accessStartTime\": \"08:00\",\n  \"accessEndTime\": \"18:00\",\n  \"blockSaturdayAccess\": true,\n  \"blockSundayAccess\": true,\n  \"profileCode\": \"PERFIL-VENDEDOR\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "Bad Request",
              "code": 400,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "cookie": [],
              "body": "{\n  \"status\": \"BAD_REQUEST\",\n  \"message\": \"Use only profileCode or profileName, not both | Access window start and end must both be provided\"\n}"
            },
            {
              "name": "Refusal — the account is already a seller",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "url": {
                  "raw": "{{url}}/sellerModule/addSeller",
                  "host": [
                    "{{url}}"
                  ],
                  "path": [
                    "sellerModule",
                    "addSeller"
                  ]
                },
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"username\": \"vendedor@lojaexemplo.com.br\",\n  \"restrictedCustomers\": true,\n  \"enabledFreight\": false,\n  \"enabledInsertFreight\": false,\n  \"enabledCustomerRegistration\": false,\n  \"enableDiscountItemValue\": true,\n  \"enableDiscountBranch\": true,\n  \"attendantCode\": \"VEND-001\",\n  \"accessStartTime\": \"08:00\",\n  \"accessEndTime\": \"18:00\",\n  \"blockSaturdayAccess\": true,\n  \"blockSundayAccess\": true,\n  \"profileCode\": \"PERFIL-VENDEDOR\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "Unprocessable Entity",
              "code": 422,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "cookie": [],
              "body": "{\n  \"status\": \"UNPROCESSABLE_ENTITY\",\n  \"message\": \"The account already belongs to a seller\"\n}"
            }
          ]
        },
        {
          "name": "Remove Seller",
          "request": {
            "method": "DELETE",
            "header": [],
            "url": {
              "raw": "{{url}}/sellerModule/deleteSeller/:id",
              "host": [
                "{{url}}"
              ],
              "path": [
                "sellerModule",
                "deleteSeller",
                ":id"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": "",
                  "description": "Seller id, as it came in `id` in the listing. **It is a UUID**."
                }
              ]
            },
            "description": "### Description\n\nRemoves a seller from your store. The account keeps existing — what goes away is the seller link and the customer service permissions.\n\n### Responses\n\n**401**\n\nMissing, malformed or expired token."
          },
          "response": [
            {
              "name": "Success — seller removed",
              "originalRequest": {
                "method": "DELETE",
                "header": [],
                "url": {
                  "raw": "{{url}}/sellerModule/deleteSeller/:id",
                  "host": [
                    "{{url}}"
                  ],
                  "path": [
                    "sellerModule",
                    "deleteSeller",
                    ":id"
                  ],
                  "variable": [
                    {
                      "key": "id",
                      "value": "",
                      "description": "Seller id, as it came in `id` in the listing. **It is a UUID**."
                    }
                  ]
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "cookie": [],
              "body": "{\n  \"status\": true\n}"
            }
          ]
        },
        {
          "name": "List Seller's Customer Portfolio",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{url}}/sellerModule/listCustomers/:id?limit=20&offset=0",
              "host": [
                "{{url}}"
              ],
              "path": [
                "sellerModule",
                "listCustomers",
                ":id"
              ],
              "query": [
                {
                  "key": "limit",
                  "value": "20",
                  "description": "Customers per page. Default **20**, maximum **200**. A value above that is reduced to 200, and an invalid value uses the default, with no error."
                },
                {
                  "key": "offset",
                  "value": "0",
                  "description": "First customer of the page. Default **0**."
                },
                {
                  "key": "email",
                  "value": "",
                  "description": "**Exact** search by the customer's login e-mail. With `email`, `limit` and `offset` do not apply.",
                  "disabled": true
                }
              ],
              "variable": [
                {
                  "key": "id",
                  "value": "",
                  "description": "Identifies the seller of your store by the **unmasked** CPF/CNPJ or by the login e-mail."
                }
              ]
            },
            "description": "### Description\n\nLists a seller's customer portfolio — the customers that are linked to them —, from the newest link to the oldest.\n\n### Responses\n\n**200**\n\nArray with one object per link.\n\nComes as `[]` when the seller has no customer in the portfolio or is not found in your store.\n\n**401**\n\nMissing, malformed or expired token."
          },
          "response": [
            {
              "name": "Success — one customer in the portfolio",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{url}}/sellerModule/listCustomers/:id?limit=20&offset=0",
                  "host": [
                    "{{url}}"
                  ],
                  "path": [
                    "sellerModule",
                    "listCustomers",
                    ":id"
                  ],
                  "query": [
                    {
                      "key": "limit",
                      "value": "20",
                      "description": "Customers per page. Default **20**, maximum **200**. A value above that is reduced to 200, and an invalid value uses the default, with no error."
                    },
                    {
                      "key": "offset",
                      "value": "0",
                      "description": "First customer of the page. Default **0**."
                    },
                    {
                      "key": "email",
                      "value": "",
                      "description": "**Exact** search by the customer's login e-mail. With `email`, `limit` and `offset` do not apply.",
                      "disabled": true
                    }
                  ],
                  "variable": [
                    {
                      "key": "id",
                      "value": "",
                      "description": "Identifies the seller of your store by the **unmasked** CPF/CNPJ or by the login e-mail."
                    }
                  ]
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "cookie": [],
              "body": "[\n  {\n    \"id\": \"2f9d4c17-8a53-41be-b06d-9c1e7f28a5d3\",\n    \"username\": \"compras@auroradistribuidora.com.br\",\n    \"document\": \"57.578.030/0001-05\",\n    \"customerName\": \"Comercial Aurora Ltda\",\n    \"createdAt\": \"2026-09-02T10:15:33.204118Z\",\n    \"updatedAt\": \"2026-09-02T10:15:33.204118Z\"\n  }\n]"
            }
          ]
        },
        {
          "name": "Link Customer to Seller",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{url}}/sellerModule/addCustomer/:attendantIdOrDocument?uniqueAttendant=false",
              "host": [
                "{{url}}"
              ],
              "path": [
                "sellerModule",
                "addCustomer",
                ":attendantIdOrDocument"
              ],
              "query": [
                {
                  "key": "uniqueAttendant",
                  "value": "false",
                  "description": "`true` leaves this seller as the customer's only seller in your store. Default **`false`**, which allows several sellers for the same customer. See **`uniqueAttendant` leaves a single seller**."
                }
              ],
              "variable": [
                {
                  "key": "attendantIdOrDocument",
                  "value": "",
                  "description": "Identifies the seller of your store by the **unmasked** CPF/CNPJ or by the login e-mail."
                }
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"document\": \"57.578.030/0001-05\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "description": "### Description\n\nLinks a customer to a seller's portfolio. From the link on, the customer is served by that seller.\n\n### Business rules\n\n#### The customer must belong to your store\n\nThe link is only created for an active account registered as a customer in your store. A customer from another store, a disabled account or a document without registration is rejected.\n\nWith `username`, the search is by e-mail only, even if you also send `document`. Spaces at the start and end of the e-mail are ignored.\n\n#### Link that already exists\n\nRepeating a link that already exists responds **422**. A link removed before becomes valid again, with the same `id`.\n\n#### `uniqueAttendant` leaves a single seller\n\nWith `uniqueAttendant=true`, the customer leaves the portfolio of the other sellers of your store and stays only with this one.\n\nIf the customer is already in the portfolio of this seller and of others, the response is **200** with the link that already existed. If this is already the customer's only seller, **422**.\n\n### Responses\n\n**200**\n\nThe link created or the one that already existed.\n\nThe identification fields reflect what you sent: only `username`, only `document`, or both.\n\n**400**\n\nInvalid body or registration not found.\n\nThe body came missing, empty, with invalid JSON or without `username` and `document`.\n\nThe seller in the path was not found in your store, or their document has no account.\n\nThe customer was not found in your store or has a disabled account. The reason comes in `message`.\n\n**401**\n\nMissing, malformed or expired token.\n\n**422**\n\nThe customer is already in the seller's portfolio."
          },
          "response": [
            {
              "name": "Success — customer linked by document",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "url": {
                  "raw": "{{url}}/sellerModule/addCustomer/:attendantIdOrDocument?uniqueAttendant=false",
                  "host": [
                    "{{url}}"
                  ],
                  "path": [
                    "sellerModule",
                    "addCustomer",
                    ":attendantIdOrDocument"
                  ],
                  "query": [
                    {
                      "key": "uniqueAttendant",
                      "value": "false",
                      "description": "`true` leaves this seller as the customer's only seller in your store. Default **`false`**, which allows several sellers for the same customer. See **`uniqueAttendant` leaves a single seller**."
                    }
                  ],
                  "variable": [
                    {
                      "key": "attendantIdOrDocument",
                      "value": "",
                      "description": "Identifies the seller of your store by the **unmasked** CPF/CNPJ or by the login e-mail."
                    }
                  ]
                },
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"document\": \"57.578.030/0001-05\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "cookie": [],
              "body": "{\n  \"id\": \"2f9d4c17-8a53-41be-b06d-9c1e7f28a5d3\",\n  \"document\": \"57.578.030/0001-05\",\n  \"createdAt\": \"2026-09-02T10:15:33.204118Z\",\n  \"updatedAt\": \"2026-09-02T10:15:33.204118Z\"\n}"
            },
            {
              "name": "Refusal — seller not found",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "url": {
                  "raw": "{{url}}/sellerModule/addCustomer/:attendantIdOrDocument?uniqueAttendant=false",
                  "host": [
                    "{{url}}"
                  ],
                  "path": [
                    "sellerModule",
                    "addCustomer",
                    ":attendantIdOrDocument"
                  ],
                  "query": [
                    {
                      "key": "uniqueAttendant",
                      "value": "false",
                      "description": "`true` leaves this seller as the customer's only seller in your store. Default **`false`**, which allows several sellers for the same customer. See **`uniqueAttendant` leaves a single seller**."
                    }
                  ],
                  "variable": [
                    {
                      "key": "attendantIdOrDocument",
                      "value": "",
                      "description": "Identifies the seller of your store by the **unmasked** CPF/CNPJ or by the login e-mail."
                    }
                  ]
                },
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"document\": \"57.578.030/0001-05\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "Bad Request",
              "code": 400,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "cookie": [],
              "body": "{\n  \"status\": \"BAD_REQUEST\",\n  \"message\": \"No seller found with this ID\"\n}"
            },
            {
              "name": "Refusal — customer not found",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "url": {
                  "raw": "{{url}}/sellerModule/addCustomer/:attendantIdOrDocument?uniqueAttendant=false",
                  "host": [
                    "{{url}}"
                  ],
                  "path": [
                    "sellerModule",
                    "addCustomer",
                    ":attendantIdOrDocument"
                  ],
                  "query": [
                    {
                      "key": "uniqueAttendant",
                      "value": "false",
                      "description": "`true` leaves this seller as the customer's only seller in your store. Default **`false`**, which allows several sellers for the same customer. See **`uniqueAttendant` leaves a single seller**."
                    }
                  ],
                  "variable": [
                    {
                      "key": "attendantIdOrDocument",
                      "value": "",
                      "description": "Identifies the seller of your store by the **unmasked** CPF/CNPJ or by the login e-mail."
                    }
                  ]
                },
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"document\": \"57.578.030/0001-05\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "Bad Request",
              "code": 400,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "cookie": [],
              "body": "{\n  \"status\": \"BAD_REQUEST\",\n  \"message\": \"Account not found\"\n}"
            },
            {
              "name": "Refusal — customer already in the portfolio",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "url": {
                  "raw": "{{url}}/sellerModule/addCustomer/:attendantIdOrDocument?uniqueAttendant=false",
                  "host": [
                    "{{url}}"
                  ],
                  "path": [
                    "sellerModule",
                    "addCustomer",
                    ":attendantIdOrDocument"
                  ],
                  "query": [
                    {
                      "key": "uniqueAttendant",
                      "value": "false",
                      "description": "`true` leaves this seller as the customer's only seller in your store. Default **`false`**, which allows several sellers for the same customer. See **`uniqueAttendant` leaves a single seller**."
                    }
                  ],
                  "variable": [
                    {
                      "key": "attendantIdOrDocument",
                      "value": "",
                      "description": "Identifies the seller of your store by the **unmasked** CPF/CNPJ or by the login e-mail."
                    }
                  ]
                },
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"document\": \"57.578.030/0001-05\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "Unprocessable Entity",
              "code": 422,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "cookie": [],
              "body": "{\n  \"status\": \"UNPROCESSABLE_ENTITY\",\n  \"message\": \"Customer already in the seller's portfolio\"\n}"
            }
          ]
        },
        {
          "name": "Unlink Customer from Seller",
          "request": {
            "method": "DELETE",
            "header": [],
            "url": {
              "raw": "{{url}}/sellerModule/deleteCustomer/:idAttendant/:idCustomer",
              "host": [
                "{{url}}"
              ],
              "path": [
                "sellerModule",
                "deleteCustomer",
                ":idAttendant",
                ":idCustomer"
              ],
              "variable": [
                {
                  "key": "idAttendant",
                  "value": "",
                  "description": "Identifies the seller of your store by the **unmasked** CPF/CNPJ or by the login e-mail."
                },
                {
                  "key": "idCustomer",
                  "value": "",
                  "description": "Identifies the customer by the **unmasked** CPF/CNPJ or by the login e-mail."
                }
              ]
            },
            "description": "### Description\n\nUndoes the link between a customer and a seller. The customer leaves that seller's portfolio; the customer's registration is not affected.\n\n### Responses\n\n**401**\n\nMissing, malformed or expired token.\n\n**404**\n\nLink not found.\n\nSeller, customer or link not found in your store, or link already removed."
          },
          "response": [
            {
              "name": "Success — link removed",
              "originalRequest": {
                "method": "DELETE",
                "header": [],
                "url": {
                  "raw": "{{url}}/sellerModule/deleteCustomer/:idAttendant/:idCustomer",
                  "host": [
                    "{{url}}"
                  ],
                  "path": [
                    "sellerModule",
                    "deleteCustomer",
                    ":idAttendant",
                    ":idCustomer"
                  ],
                  "variable": [
                    {
                      "key": "idAttendant",
                      "value": "",
                      "description": "Identifies the seller of your store by the **unmasked** CPF/CNPJ or by the login e-mail."
                    },
                    {
                      "key": "idCustomer",
                      "value": "",
                      "description": "Identifies the customer by the **unmasked** CPF/CNPJ or by the login e-mail."
                    }
                  ]
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "cookie": [],
              "body": "{\n  \"status\": true\n}"
            },
            {
              "name": "Refusal — link not found",
              "originalRequest": {
                "method": "DELETE",
                "header": [],
                "url": {
                  "raw": "{{url}}/sellerModule/deleteCustomer/:idAttendant/:idCustomer",
                  "host": [
                    "{{url}}"
                  ],
                  "path": [
                    "sellerModule",
                    "deleteCustomer",
                    ":idAttendant",
                    ":idCustomer"
                  ],
                  "variable": [
                    {
                      "key": "idAttendant",
                      "value": "",
                      "description": "Identifies the seller of your store by the **unmasked** CPF/CNPJ or by the login e-mail."
                    },
                    {
                      "key": "idCustomer",
                      "value": "",
                      "description": "Identifies the customer by the **unmasked** CPF/CNPJ or by the login e-mail."
                    }
                  ]
                }
              },
              "status": "Not Found",
              "code": 404,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "cookie": [],
              "body": "{\n  \"status\": \"NOT_FOUND\",\n  \"message\": \"Customer not found\"\n}"
            }
          ]
        },
        {
          "name": "Manage Portfolio in Batch",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{url}}/sellerModule/manageBulkWallet/:attendantInfo",
              "host": [
                "{{url}}"
              ],
              "path": [
                "sellerModule",
                "manageBulkWallet",
                ":attendantInfo"
              ],
              "variable": [
                {
                  "key": "attendantInfo",
                  "value": "",
                  "description": "Identifies the seller in **three** ways: the seller **UUID**, the **CPF/CNPJ** of their account holder, or the login **e-mail**. The route recognizes which one you sent."
                }
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"action\": \"BIND\",\n  \"users\": [\n    {\n      \"document\": \"57.578.030/0001-05\"\n    },\n    {\n      \"username\": \"contato@lojaexemplo.com.br\"\n    }\n  ]\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "description": "### Description\n\nBuilds a seller's portfolio in batch: links, unlinks or replaces the customer list in a single call, instead of one request per customer.\n\nDo not send `attendantId` or `storeId`: both are resolved by the backend, from the path and from your token.\n\n### Business rules\n\n#### Processing is asynchronous\n\nThe `200` response confirms that CWS **received** the list, not that the links were created.\n\nProcessing happens in the background and there is no route to check the result — check the portfolio afterwards with `GET /sellerModule/listCustomers/:id`.\n\n#### `REPLACE` removes what is not in the list\n\nWith `REPLACE`, the portfolio becomes exactly the list sent: whoever was linked and does not appear in `users` is unlinked.\n\n### Responses\n\n**400**\n\nInvalid body or seller not found.\n\nMissing body, no `action` or `users`, or a value outside what is accepted. See each field; the reason comes in the message.\n\nSeller not found by the form given in the path. The reason comes in the message.\n\n**401**\n\nMissing, malformed or expired token."
          },
          "response": [
            {
              "name": "Success — batch received for processing",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "url": {
                  "raw": "{{url}}/sellerModule/manageBulkWallet/:attendantInfo",
                  "host": [
                    "{{url}}"
                  ],
                  "path": [
                    "sellerModule",
                    "manageBulkWallet",
                    ":attendantInfo"
                  ],
                  "variable": [
                    {
                      "key": "attendantInfo",
                      "value": "",
                      "description": "Identifies the seller in **three** ways: the seller **UUID**, the **CPF/CNPJ** of their account holder, or the login **e-mail**. The route recognizes which one you sent."
                    }
                  ]
                },
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"action\": \"BIND\",\n  \"users\": [\n    {\n      \"document\": \"57.578.030/0001-05\"\n    },\n    {\n      \"username\": \"contato@lojaexemplo.com.br\"\n    }\n  ]\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "cookie": [],
              "body": "{\n  \"status\": \"OK\",\n  \"message\": \"Os dados foram recebidos e o processamento será realizado em segundo plano.\"\n}"
            }
          ]
        }
      ]
    },
    {
      "name": "SKU Priority",
      "description": "Endpoints to manage the display priority of products (SKUs) in search results.",
      "item": [
        {
          "name": "Remove Product Priority",
          "request": {
            "method": "DELETE",
            "header": [],
            "url": {
              "raw": "{{url}}/searchSkuPriority/:id",
              "host": [
                "{{url}}"
              ],
              "path": [
                "searchSkuPriority",
                ":id"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": "",
                  "description": "Priority id, as it came in `id` on creation or in the lookup by product code."
                }
              ]
            },
            "description": "### Description\n\nRemoves a product's priority.\n\nIt goes back to the store's default search behavior, and the product remains available — only the priority goes away.\n\n### Responses\n\n**204**\n\n**204 No Content, no body.**\n\n**400**\n\n`id` not provided.\n\n**401**\n\nMissing, malformed or expired token.\n\n**404**\n\nPriority not found.\n\nNonexistent priority, one from another store, or one **already removed**."
          },
          "response": [
            {
              "name": "Refusal — `id` not provided",
              "originalRequest": {
                "method": "DELETE",
                "header": [],
                "url": {
                  "raw": "{{url}}/searchSkuPriority/:id",
                  "host": [
                    "{{url}}"
                  ],
                  "path": [
                    "searchSkuPriority",
                    ":id"
                  ],
                  "variable": [
                    {
                      "key": "id",
                      "value": "",
                      "description": "Priority id, as it came in `id` on creation or in the lookup by product code."
                    }
                  ]
                }
              },
              "status": "Bad Request",
              "code": 400,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "cookie": [],
              "body": "{\n  \"error\": \"id level é um campo obrigatório.\"\n}"
            },
            {
              "name": "Refusal — priority not found",
              "originalRequest": {
                "method": "DELETE",
                "header": [],
                "url": {
                  "raw": "{{url}}/searchSkuPriority/:id",
                  "host": [
                    "{{url}}"
                  ],
                  "path": [
                    "searchSkuPriority",
                    ":id"
                  ],
                  "variable": [
                    {
                      "key": "id",
                      "value": "",
                      "description": "Priority id, as it came in `id` on creation or in the lookup by product code."
                    }
                  ]
                }
              },
              "status": "Not Found",
              "code": 404,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "cookie": [],
              "body": "{\n  \"status\": \"NOT_FOUND\",\n  \"message\": \"Serviço não encontrado\"\n}"
            }
          ]
        },
        {
          "name": "Get Priority by Product Code",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{url}}/searchSkuPriority/find",
              "host": [
                "{{url}}"
              ],
              "path": [
                "searchSkuPriority",
                "find"
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"partCode\": \"TESTE-API-001\",\n  \"brand\": \"Bosch\",\n  \"composition\": \"UNITARY\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "description": "### Description\n\nLooks up the search priority of a product, identified by the manufacturer code, the brand and the composition.\n\n### How to identify the product\n\nSend the three fields together: `partCode`, `brand` and `composition`. None of them identifies the product alone.\n\n`composition` accepts `UNITARY`, `PAIR`, `KIT`, `WARRANTY` and `SET`, always in uppercase.\n\nIf any of the three is missing, or if the product is not found, the response is `404` with `Sku não encontrado`.\n\n### Responses\n\n**401**\n\nMissing, malformed or expired token.\n\n**404**\n\nProduct or priority not found.\n\nProduct not found, or incomplete identification.\n\nThe product exists but has no priority in your store."
          },
          "response": [
            {
              "name": "Success — found by manufacturer data",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "url": {
                  "raw": "{{url}}/searchSkuPriority/find",
                  "host": [
                    "{{url}}"
                  ],
                  "path": [
                    "searchSkuPriority",
                    "find"
                  ]
                },
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"partCode\": \"TESTE-API-001\",\n  \"brand\": \"Bosch\",\n  \"composition\": \"UNITARY\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "cookie": [],
              "body": "{\n  \"id\": 20601,\n  \"dateCreated\": \"2026-09-04T13:20:11Z\",\n  \"lastUpdated\": \"2026-09-04T13:20:11Z\",\n  \"priorityLevel\": 5,\n  \"sku\": {\n    \"id\": 10996361\n  },\n  \"store\": {\n    \"id\": 4470\n  }\n}"
            },
            {
              "name": "Refusal — product not found, or incomplete identification",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "url": {
                  "raw": "{{url}}/searchSkuPriority/find",
                  "host": [
                    "{{url}}"
                  ],
                  "path": [
                    "searchSkuPriority",
                    "find"
                  ]
                },
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"partCode\": \"TESTE-API-001\",\n  \"brand\": \"Bosch\",\n  \"composition\": \"UNITARY\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "Not Found",
              "code": 404,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "cookie": [],
              "body": "{\n  \"status\": \"NOT_FOUND\",\n  \"message\": \"Sku não encontrado\"\n}"
            },
            {
              "name": "Refusal — the product exists but has no priority in your store",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "url": {
                  "raw": "{{url}}/searchSkuPriority/find",
                  "host": [
                    "{{url}}"
                  ],
                  "path": [
                    "searchSkuPriority",
                    "find"
                  ]
                },
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"partCode\": \"TESTE-API-001\",\n  \"brand\": \"Bosch\",\n  \"composition\": \"UNITARY\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "Not Found",
              "code": 404,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "cookie": [],
              "body": "{\n  \"status\": \"NOT_FOUND\",\n  \"message\": \"Serviço não encontrado\"\n}"
            }
          ]
        },
        {
          "name": "Set Product Priority",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{url}}/searchSkuPriority",
              "host": [
                "{{url}}"
              ],
              "path": [
                "searchSkuPriority"
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"priorityLevel\": 5,\n  \"partCode\": \"TESTE-API-001\",\n  \"brand\": \"Bosch\",\n  \"composition\": \"UNITARY\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "description": "### Description\n\nSets the priority level of a product in your store's searches.\n\nEach product has **one** priority per store: to change the level of a product that already has a priority, use **Update Product Priority**.\n\n### How to identify the product\n\nSend the three fields together: `partCode`, `brand` and `composition`. None of them identifies the product alone.\n\n`composition` accepts `UNITARY`, `PAIR`, `KIT`, `WARRANTY` and `SET`, always in uppercase.\n\nIf any of the three is missing, or if the product is not found, the response is `404` with `Sku não encontrado`.\n\n### Responses\n\n**201**\n\nThe created record.\n\n**400**\n\nInvalid level or product already prioritized.\n\n`priorityLevel` missing or outside the range from 1 to 5. The message cites the field and the rejected value.\n\nThe product **already has a priority** in this store. Use the update.\n\n**401**\n\nMissing, malformed or expired token.\n\n**404**\n\nProduct not found.\n\nThe same 404 comes when no identification is sent."
          },
          "response": [
            {
              "name": "Success — priority set",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "url": {
                  "raw": "{{url}}/searchSkuPriority",
                  "host": [
                    "{{url}}"
                  ],
                  "path": [
                    "searchSkuPriority"
                  ]
                },
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"priorityLevel\": 5,\n  \"partCode\": \"TESTE-API-001\",\n  \"brand\": \"Bosch\",\n  \"composition\": \"UNITARY\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "Created",
              "code": 201,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "cookie": [],
              "body": "{\n  \"id\": 20601,\n  \"dateCreated\": \"2026-09-04T13:20:11Z\",\n  \"lastUpdated\": \"2026-09-04T13:20:11Z\",\n  \"priorityLevel\": 5,\n  \"sku\": {\n    \"id\": 10996361\n  },\n  \"store\": {\n    \"id\": 4470\n  }\n}"
            },
            {
              "name": "Refusal — the product **already has a priority** in this store",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "url": {
                  "raw": "{{url}}/searchSkuPriority",
                  "host": [
                    "{{url}}"
                  ],
                  "path": [
                    "searchSkuPriority"
                  ]
                },
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"priorityLevel\": 5,\n  \"partCode\": \"TESTE-API-001\",\n  \"brand\": \"Bosch\",\n  \"composition\": \"UNITARY\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "Bad Request",
              "code": 400,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "cookie": [],
              "body": "{\n  \"status\": \"BAD_REQUEST\",\n  \"message\": \"Já existe um registro de prioridade para o sku informado\"\n}"
            },
            {
              "name": "Refusal — product not found",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "url": {
                  "raw": "{{url}}/searchSkuPriority",
                  "host": [
                    "{{url}}"
                  ],
                  "path": [
                    "searchSkuPriority"
                  ]
                },
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"priorityLevel\": 5,\n  \"partCode\": \"TESTE-API-001\",\n  \"brand\": \"Bosch\",\n  \"composition\": \"UNITARY\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "Not Found",
              "code": 404,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "cookie": [],
              "body": "{\n  \"status\": \"NOT_FOUND\",\n  \"message\": \"Sku não encontrado\"\n}"
            }
          ]
        },
        {
          "name": "Update Product Priority",
          "request": {
            "method": "PUT",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{url}}/searchSkuPriority",
              "host": [
                "{{url}}"
              ],
              "path": [
                "searchSkuPriority"
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"priorityLevel\": 3,\n  \"partCode\": \"TESTE-API-001\",\n  \"brand\": \"Bosch\",\n  \"composition\": \"UNITARY\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "description": "### Description\n\nChanges the priority level of a product that **already has** a priority in your store.\n\nThe product is identified in the body, as on creation — not by the record id.\n\n### How to identify the product\n\nSend the three fields together: `partCode`, `brand` and `composition`. None of them identifies the product alone.\n\n`composition` accepts `UNITARY`, `PAIR`, `KIT`, `WARRANTY` and `SET`, always in uppercase.\n\nIf any of the three is missing, or if the product is not found, the response is `404` with `Sku não encontrado`.\n\n### Responses\n\n**200**\n\nThe updated record.\n\nIt comes with a new `lastUpdated` and the same `id`.\n\n**400**\n\nInvalid `priorityLevel`.\n\n`priorityLevel` missing or outside the range from 1 to 5. The message cites the field and the rejected value.\n\n**401**\n\nMissing, malformed or expired token.\n\n**404**\n\nProduct or priority not found.\n\nProduct not found.\n\nThe product exists but **has no priority** in this store. Use **Set Product Priority** to create it."
          },
          "response": [
            {
              "name": "Success — level changed",
              "originalRequest": {
                "method": "PUT",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "url": {
                  "raw": "{{url}}/searchSkuPriority",
                  "host": [
                    "{{url}}"
                  ],
                  "path": [
                    "searchSkuPriority"
                  ]
                },
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"priorityLevel\": 3,\n  \"partCode\": \"TESTE-API-001\",\n  \"brand\": \"Bosch\",\n  \"composition\": \"UNITARY\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "cookie": [],
              "body": "{\n  \"id\": 20601,\n  \"dateCreated\": \"2026-09-04T13:20:11Z\",\n  \"lastUpdated\": \"2026-09-04T15:42:03Z\",\n  \"priorityLevel\": 3,\n  \"sku\": {\n    \"id\": 10996361\n  },\n  \"store\": {\n    \"id\": 4470\n  }\n}"
            },
            {
              "name": "Refusal — product not found",
              "originalRequest": {
                "method": "PUT",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "url": {
                  "raw": "{{url}}/searchSkuPriority",
                  "host": [
                    "{{url}}"
                  ],
                  "path": [
                    "searchSkuPriority"
                  ]
                },
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"priorityLevel\": 3,\n  \"partCode\": \"TESTE-API-001\",\n  \"brand\": \"Bosch\",\n  \"composition\": \"UNITARY\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "Not Found",
              "code": 404,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "cookie": [],
              "body": "{\n  \"status\": \"NOT_FOUND\",\n  \"message\": \"Sku não encontrado\"\n}"
            },
            {
              "name": "Refusal — the product exists but **has no priority** in this store",
              "originalRequest": {
                "method": "PUT",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "url": {
                  "raw": "{{url}}/searchSkuPriority",
                  "host": [
                    "{{url}}"
                  ],
                  "path": [
                    "searchSkuPriority"
                  ]
                },
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"priorityLevel\": 3,\n  \"partCode\": \"TESTE-API-001\",\n  \"brand\": \"Bosch\",\n  \"composition\": \"UNITARY\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "Not Found",
              "code": 404,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "cookie": [],
              "body": "{\n  \"error\": \"Não existe prioridade cadastrada para o sku: null\"\n}"
            }
          ]
        }
      ]
    },
    {
      "name": "CashBack",
      "description": "Endpoints for querying balances and managing customer cashback.",
      "item": [
        {
          "name": "Get Marketplace Total Cashback Balance",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{url}}/v1/cashback/total",
              "host": [
                "{{url}}"
              ],
              "path": [
                "v1",
                "cashback",
                "total"
              ]
            },
            "description": "### Description\n\nReturns the cashback balance of your store, summed by type and by status.\n\nIt is the consolidated view: one number per status, with no detail per customer or per order.\n\n### Business rules\n\n#### Balance statuses\n\nIn `credit` and in `debit`, **the key is the status and the value is the total in that status, in reais**. There are no fixed fields: only the statuses with a balance appear.\n\n| Status | Where it appears | Meaning |\n| --- | --- | --- |\n| `TO_RELEASE` | `credit` | Granted, still in the grace period: the customer cannot use it. |\n| `RELEASED` | `credit` | Released for use. |\n| `CANCELLED` | `credit` · `debit` | Cancelled. |\n| `INVALID_EXPIRED` | `credit` | Credit that expired without being used. |\n| `IN_USE` | `debit` | Reserved in an open cart. |\n| `USED` | `debit` | Actually consumed in a purchase. |\n| `EXPIRED` | `debit` | Debit of a balance that expired. |\n\n### Responses\n\n**200**\n\nThe store's totals by status, in `credit` and `debit`.\n\n**401**\n\nMissing, malformed or expired token.\n\n**404**\n\nThe store has no cashback entry."
          },
          "response": [
            {
              "name": "Success — consolidated balance of the store",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{url}}/v1/cashback/total",
                  "host": [
                    "{{url}}"
                  ],
                  "path": [
                    "v1",
                    "cashback",
                    "total"
                  ]
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "cookie": [],
              "body": "{\n  \"credit\": {\n    \"TO_RELEASE\": 1284.36,\n    \"RELEASED\": 7350.09,\n    \"CANCELLED\": 118.24,\n    \"INVALID_EXPIRED\": 942.71\n  },\n  \"debit\": {\n    \"IN_USE\": 260.5,\n    \"USED\": 4810.62,\n    \"EXPIRED\": 331.08\n  }\n}"
            },
            {
              "name": "Refusal — the store has no cashback entry",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{url}}/v1/cashback/total",
                  "host": [
                    "{{url}}"
                  ],
                  "path": [
                    "v1",
                    "cashback",
                    "total"
                  ]
                }
              },
              "status": "Not Found",
              "code": 404,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "cookie": [],
              "body": "{\n  \"status\": \"NOT_FOUND\",\n  \"message\": \"No record found.\"\n}"
            }
          ]
        },
        {
          "name": "Get Customer Cashback History",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{url}}/v1/cashback/customers/:document/statement?limit=20&offset=0",
              "host": [
                "{{url}}"
              ],
              "path": [
                "v1",
                "cashback",
                "customers",
                ":document",
                "statement"
              ],
              "query": [
                {
                  "key": "status",
                  "value": "",
                  "description": "Filters the entries by status. Accepts **several separated by commas**: `status=TO_RELEASE,RELEASED`. When omitted, it brings all of them.",
                  "disabled": true
                },
                {
                  "key": "limit",
                  "value": "20",
                  "description": "Entries per page. Default **20**, maximum **50**. A value above that is reduced to 50, and an invalid value uses the default, with no error."
                },
                {
                  "key": "offset",
                  "value": "0",
                  "description": "How many entries to skip before the page. Default **0**."
                }
              ],
              "variable": [
                {
                  "key": "document",
                  "value": "46693537308",
                  "description": "Customer's CPF or CNPJ, with numbers only (and letters, in the alphanumeric CNPJ). See **Document with numbers only in the route**."
                }
              ]
            },
            "description": "### Description\n\nLists the cashback statement of a customer of your store: one item per entry, earned or spent, from the most recent to the oldest.\n\nAccepted values in `status`: `TO_RELEASE`, `RELEASED`, `CANCELLED`, `INVALID_EXPIRED` (credit entries) and `IN_USE`, `USED`, `EXPIRED` (debit entries).\n\n### Business rules\n\n#### Document with numbers only in the route\n\nSend the customer's CPF or CNPJ **without `.`, `/` and `-`**: `46693537308`. The slash of a formatted CNPJ breaks the route.\n\n#### An unknown status is ignored\n\nA value outside the list does not cause an error: it is dropped from the filter. With no valid value, the statement brings all statuses.\n\n#### A nonexistent customer and an empty statement respond differently\n\nA document with no customer in your store responds `404` with the message `Customer not found in the CWS database.`\n\nA customer with no entry in the filter, or an `offset` past the end, responds `404` with the message `No record found.`\n\n### Responses\n\n**200**\n\nA list with one object per entry.\n\nThe entries come from the most recent to the oldest.\n\n**401**\n\nMissing, malformed or expired token.\n\n**404**\n\nCustomer or entry not found.\n\nThe document does not match any customer **of your store**.\n\nThe customer exists, but there is no entry in the requested filter, or the `offset` went past the end."
          },
          "response": [
            {
              "name": "Success — statement with earning and use",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{url}}/v1/cashback/customers/46693537308/statement?limit=20&offset=0",
                  "host": [
                    "{{url}}"
                  ],
                  "path": [
                    "v1",
                    "cashback",
                    "customers",
                    "46693537308",
                    "statement"
                  ],
                  "query": [
                    {
                      "key": "status",
                      "value": "",
                      "description": "Filters the entries by status. Accepts **several separated by commas**: `status=TO_RELEASE,RELEASED`. When omitted, it brings all of them.",
                      "disabled": true
                    },
                    {
                      "key": "limit",
                      "value": "20",
                      "description": "Entries per page. Default **20**, maximum **50**. A value above that is reduced to 50, and an invalid value uses the default, with no error."
                    },
                    {
                      "key": "offset",
                      "value": "0",
                      "description": "How many entries to skip before the page. Default **0**."
                    }
                  ]
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "cookie": [],
              "body": "[\n  {\n    \"externalOrderId\": \"PED-EXT-900201\",\n    \"partnerOrderId\": null,\n    \"value\": 11.8,\n    \"createDate\": \"2026-09-04T14:15:02.534996Z\",\n    \"status\": \"TO_RELEASE\",\n    \"expirationDate\": null,\n    \"type\": \"credit\"\n  },\n  {\n    \"externalOrderId\": null,\n    \"partnerOrderId\": 900201,\n    \"value\": 15,\n    \"createDate\": \"2026-08-22T18:03:41.229713Z\",\n    \"status\": \"USED\",\n    \"expirationDate\": null,\n    \"type\": \"debit\"\n  },\n  {\n    \"externalOrderId\": null,\n    \"partnerOrderId\": 900201,\n    \"value\": 42.35,\n    \"createDate\": \"2026-08-14T11:47:09.161938Z\",\n    \"status\": \"RELEASED\",\n    \"expirationDate\": \"2026-11-12T00:00:00Z\",\n    \"type\": \"credit\"\n  }\n]"
            },
            {
              "name": "Refusal — the document does not match any customer **of your store**",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{url}}/v1/cashback/customers/46693537308/statement?limit=20&offset=0",
                  "host": [
                    "{{url}}"
                  ],
                  "path": [
                    "v1",
                    "cashback",
                    "customers",
                    "46693537308",
                    "statement"
                  ],
                  "query": [
                    {
                      "key": "status",
                      "value": "",
                      "description": "Filters the entries by status. Accepts **several separated by commas**: `status=TO_RELEASE,RELEASED`. When omitted, it brings all of them.",
                      "disabled": true
                    },
                    {
                      "key": "limit",
                      "value": "20",
                      "description": "Entries per page. Default **20**, maximum **50**. A value above that is reduced to 50, and an invalid value uses the default, with no error."
                    },
                    {
                      "key": "offset",
                      "value": "0",
                      "description": "How many entries to skip before the page. Default **0**."
                    }
                  ]
                }
              },
              "status": "Not Found",
              "code": 404,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "cookie": [],
              "body": "{\n  \"status\": \"NOT_FOUND\",\n  \"message\": \"Customer not found in the CWS database.\"\n}"
            },
            {
              "name": "Refusal — the customer exists, but there is no entry in the requested filter, or the `offset` went past the end",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{url}}/v1/cashback/customers/46693537308/statement?limit=20&offset=0",
                  "host": [
                    "{{url}}"
                  ],
                  "path": [
                    "v1",
                    "cashback",
                    "customers",
                    "46693537308",
                    "statement"
                  ],
                  "query": [
                    {
                      "key": "status",
                      "value": "",
                      "description": "Filters the entries by status. Accepts **several separated by commas**: `status=TO_RELEASE,RELEASED`. When omitted, it brings all of them.",
                      "disabled": true
                    },
                    {
                      "key": "limit",
                      "value": "20",
                      "description": "Entries per page. Default **20**, maximum **50**. A value above that is reduced to 50, and an invalid value uses the default, with no error."
                    },
                    {
                      "key": "offset",
                      "value": "0",
                      "description": "How many entries to skip before the page. Default **0**."
                    }
                  ]
                }
              },
              "status": "Not Found",
              "code": 404,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "cookie": [],
              "body": "{\n  \"status\": \"NOT_FOUND\",\n  \"message\": \"No record found.\"\n}"
            }
          ]
        },
        {
          "name": "Grant Cashback for External Order",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{url}}/v1/cashback/external-order",
              "host": [
                "{{url}}"
              ],
              "path": [
                "v1",
                "cashback",
                "external-order"
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"cpfCnpj\": \"466.935.373-08\",\n  \"externalOrderId\": \"PED-EXT-900201\",\n  \"documentPartner\": \"30.424.972/0001-74\",\n  \"value\": 12.34,\n  \"deliveryDate\": \"2026-09-10\",\n  \"timeToReleasePoints\": 30,\n  \"status\": \"TO_RELEASE\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "description": "### Description\n\nGrants cashback to a customer from an order that happened **outside the CWS platform**: a sale at your counter, in your own e-commerce or in another channel.\n\nYou inform who bought, the order number in your system, the partner that sold and **the cashback value in reais, already calculated**. Each call records one credit.\n\n### Business rules\n\n#### One customer, by document or by e-mail\n\nSend **one of the two**. If you send both, the `cpfCnpj` is the one that counts.\n\nThe customer must already exist in your store: a customer from another store, or a document without registration, is rejected.\n\n#### One credit per external order and partner\n\nThe pair `externalOrderId` + `documentPartner` is unique in your store. A second call with the same pair is **rejected**, not duplicated: this is what protects you from granting cashback twice when a delivery is reprocessed.\n\nOrder sold by more than one partner: make **one call per partner**, with the same `externalOrderId`.\n\nUse the real order number in your system, not a value generated at each attempt. It cannot contain `/`, because it goes in the route of **Update External Order Cashback**.\n\n#### The cashback value is what you send\n\nCWS records `value` as it came, **rounded to two decimal places**. There is no calculation by product, category or program percentage.\n\nA value that becomes zero after rounding (below one cent) is rejected.\n\n#### `documentPartner` and the marketplace sale\n\nThe informed document defines who sold the order.\n\nWhen it is the document of **your own store**, nothing else is required. When it is the document of **another partner**, there must be an authorized marketplace partnership between your store and it; otherwise, the order is rejected.\n\n#### Status and grace period\n\nWithout `status`, the credit is born `TO_RELEASE` and stays in the grace period. With `RELEASED`, it is born released, with today's release date.\n\nWithout `timeToReleasePoints`, or with `0`, the grace period configured in the store's loyalty program applies.\n\n#### A rejection brings a single reason\n\nThe validations stop at the first problem, and `message` brings only that one. When there is a rejection, nothing is recorded.\n\n### Responses\n\n**201**\n\nThe recorded credit.\n\n**401**\n\nMissing, malformed or expired token.\n\n**422**\n\nInvalid body or rejected by a cashback rule.\n\nInvalid body. See the description of each field; the reason comes in `message`.\n\nCustomer outside your store, partner unregistered or not partnered, or no loyalty program. The reason comes in `message`.\n\nExternal order already granted for this partner. Do not repeat the call."
          },
          "response": [
            {
              "name": "Success — cashback in the grace period",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "url": {
                  "raw": "{{url}}/v1/cashback/external-order",
                  "host": [
                    "{{url}}"
                  ],
                  "path": [
                    "v1",
                    "cashback",
                    "external-order"
                  ]
                },
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"cpfCnpj\": \"466.935.373-08\",\n  \"externalOrderId\": \"PED-EXT-900201\",\n  \"documentPartner\": \"30.424.972/0001-74\",\n  \"value\": 12.34,\n  \"deliveryDate\": \"2026-09-10\",\n  \"timeToReleasePoints\": 30,\n  \"status\": \"TO_RELEASE\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "Created",
              "code": 201,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "cookie": [],
              "body": "{\n  \"externalOrderId\": \"PED-EXT-900201\",\n  \"partnerId\": 4471,\n  \"value\": 12.34,\n  \"status\": \"TO_RELEASE\",\n  \"deliveryDate\": \"2026-09-10\",\n  \"releaseDate\": null,\n  \"expirationDate\": null,\n  \"timeToReleasePoints\": 30\n}"
            },
            {
              "name": "Refusal — external order already granted",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "url": {
                  "raw": "{{url}}/v1/cashback/external-order",
                  "host": [
                    "{{url}}"
                  ],
                  "path": [
                    "v1",
                    "cashback",
                    "external-order"
                  ]
                },
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"cpfCnpj\": \"466.935.373-08\",\n  \"externalOrderId\": \"PED-EXT-900201\",\n  \"documentPartner\": \"30.424.972/0001-74\",\n  \"value\": 12.34,\n  \"deliveryDate\": \"2026-09-10\",\n  \"timeToReleasePoints\": 30,\n  \"status\": \"TO_RELEASE\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "Unprocessable Entity",
              "code": 422,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "cookie": [],
              "body": "{\n  \"status\": \"UNPROCESSABLE_ENTITY\",\n  \"message\": \"External order number is already associated with another granted cashback.\"\n}"
            },
            {
              "name": "Refusal — invalid body",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "url": {
                  "raw": "{{url}}/v1/cashback/external-order",
                  "host": [
                    "{{url}}"
                  ],
                  "path": [
                    "v1",
                    "cashback",
                    "external-order"
                  ]
                },
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"cpfCnpj\": \"466.935.373-08\",\n  \"externalOrderId\": \"PED-EXT-900201\",\n  \"documentPartner\": \"30.424.972/0001-74\",\n  \"value\": 12.34,\n  \"deliveryDate\": \"2026-09-10\",\n  \"timeToReleasePoints\": 30,\n  \"status\": \"TO_RELEASE\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "Unprocessable Entity",
              "code": 422,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "cookie": [],
              "body": "{\n  \"status\": \"UNPROCESSABLE_ENTITY\",\n  \"message\": \"<motivo>\"\n}"
            }
          ]
        },
        {
          "name": "Update External Order Cashback",
          "request": {
            "method": "PUT",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{url}}/v1/cashback/external-order/:externalOrderId",
              "host": [
                "{{url}}"
              ],
              "path": [
                "v1",
                "cashback",
                "external-order",
                ":externalOrderId"
              ],
              "variable": [
                {
                  "key": "externalOrderId",
                  "value": "PED-EXT-900201",
                  "description": "External order number, as sent in **Grant Cashback for External Order**."
                }
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"documentPartner\": \"30.424.972/0001-74\",\n  \"status\": \"RELEASED\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "description": "### Description\n\nChanges a cashback already granted for an external order: releases the credit that was in the grace period, cancels the grant, fixes the value, the delivery date or the grace period.\n\nThe credit is identified by the `externalOrderId` in the route and by the `documentPartner` in the body, the same ones used in **Grant Cashback for External Order**.\n\n### Business rules\n\n#### Only what you send changes\n\nAn omitted field keeps the current value. `value` follows the grant rule: rounded to two decimal places and greater than zero. `timeToReleasePoints` equal to `0` goes back to the grace period of the store's loyalty program.\n\n#### Status and release date\n\nWith `status: RELEASED`, the credit is released with today's date. With another status, the release date is cleared. Without `status`, the current status and date stay as they are.\n\n#### Released cashback is not changed\n\nA credit that is already `RELEASED` is **rejected** with `422`, and nothing is changed.\n\n#### Cashback granted per item is not changed\n\nAn external order granted by the previous version of this API, with one entry per item, has more than one credit for the same `externalOrderId` and partner. It is **rejected** with `422` by this route, and nothing is changed.\n\n#### A credit from another store responds as nonexistent\n\nOnly the credits of your store are found. An `externalOrderId` from another store responds with the same `404` as an order that does not exist.\n\n### Responses\n\n**200**\n\nThe credit after the update.\n\n**401**\n\nMissing, malformed or expired token.\n\n**404**\n\nCredit not found in your store.\n\nThere is no credit for the `externalOrderId` and the `documentPartner` in your store.\n\n**422**\n\nInvalid body or rejected by a cashback rule.\n\nInvalid body. See the description of each field; the reason comes in `message`.\n\nPartner unregistered or not partnered, or `timeToReleasePoints` `0` with no loyalty program. The reason comes in `message`.\n\nThe credit has already been released and can no longer be changed.\n\nThe credit was granted per item."
          },
          "response": [
            {
              "name": "Success — cashback released",
              "originalRequest": {
                "method": "PUT",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "url": {
                  "raw": "{{url}}/v1/cashback/external-order/PED-EXT-900201",
                  "host": [
                    "{{url}}"
                  ],
                  "path": [
                    "v1",
                    "cashback",
                    "external-order",
                    "PED-EXT-900201"
                  ]
                },
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"documentPartner\": \"30.424.972/0001-74\",\n  \"status\": \"RELEASED\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "cookie": [],
              "body": "{\n  \"externalOrderId\": \"PED-EXT-900201\",\n  \"partnerId\": 4471,\n  \"value\": 12.34,\n  \"status\": \"RELEASED\",\n  \"deliveryDate\": \"2026-09-10\",\n  \"releaseDate\": \"2026-09-12\",\n  \"expirationDate\": \"2026-12-11\",\n  \"timeToReleasePoints\": 30\n}"
            },
            {
              "name": "Refusal — credit not found in your store",
              "originalRequest": {
                "method": "PUT",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "url": {
                  "raw": "{{url}}/v1/cashback/external-order/PED-EXT-900201",
                  "host": [
                    "{{url}}"
                  ],
                  "path": [
                    "v1",
                    "cashback",
                    "external-order",
                    "PED-EXT-900201"
                  ]
                },
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"documentPartner\": \"30.424.972/0001-74\",\n  \"status\": \"RELEASED\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "Not Found",
              "code": 404,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "cookie": [],
              "body": "{\n  \"status\": \"NOT_FOUND\",\n  \"message\": \"No record found for the informed external order number.\"\n}"
            },
            {
              "name": "Refusal — cashback already released",
              "originalRequest": {
                "method": "PUT",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "url": {
                  "raw": "{{url}}/v1/cashback/external-order/PED-EXT-900201",
                  "host": [
                    "{{url}}"
                  ],
                  "path": [
                    "v1",
                    "cashback",
                    "external-order",
                    "PED-EXT-900201"
                  ]
                },
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"documentPartner\": \"30.424.972/0001-74\",\n  \"value\": 15\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "Unprocessable Entity",
              "code": 422,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "cookie": [],
              "body": "{\n  \"status\": \"UNPROCESSABLE_ENTITY\",\n  \"message\": \"Released cashback cannot be changed.\"\n}"
            },
            {
              "name": "Refusal — invalid body",
              "originalRequest": {
                "method": "PUT",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "url": {
                  "raw": "{{url}}/v1/cashback/external-order/PED-EXT-900201",
                  "host": [
                    "{{url}}"
                  ],
                  "path": [
                    "v1",
                    "cashback",
                    "external-order",
                    "PED-EXT-900201"
                  ]
                },
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"documentPartner\": \"30.424.972/0001-74\",\n  \"status\": \"RELEASED\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "Unprocessable Entity",
              "code": 422,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "cookie": [],
              "body": "{\n  \"status\": \"UNPROCESSABLE_ENTITY\",\n  \"message\": \"<motivo>\"\n}"
            },
            {
              "name": "Refusal — the credit was granted per item",
              "originalRequest": {
                "method": "PUT",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "url": {
                  "raw": "{{url}}/v1/cashback/external-order/PED-EXT-900201",
                  "host": [
                    "{{url}}"
                  ],
                  "path": [
                    "v1",
                    "cashback",
                    "external-order",
                    "PED-EXT-900201"
                  ]
                },
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"documentPartner\": \"30.424.972/0001-74\",\n  \"status\": \"RELEASED\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "Unprocessable Entity",
              "code": 422,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "cookie": [],
              "body": "{\n  \"status\": \"UNPROCESSABLE_ENTITY\",\n  \"message\": \"Cashback registered per item cannot be changed through this route.\"\n}"
            }
          ]
        }
      ]
    }
  ],
  "auth": {
    "type": "bearer",
    "bearer": [
      {
        "key": "token",
        "value": "{{access_token}}",
        "type": "string"
      }
    ]
  },
  "variable": [
    {
      "key": "url",
      "value": "https://api.sandbox.cws.digital",
      "type": "string"
    },
    {
      "key": "access_token",
      "value": "",
      "type": "string"
    },
    {
      "key": "refresh_token",
      "value": "",
      "type": "string"
    },
    {
      "key": "client_basic_auth",
      "value": "YXBpLXdzOnBhc3N3b3JkLW1hc3Rlcg==",
      "type": "string"
    }
  ]
}
