{
  "info": {
    "name": "VatBR API",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
    "description": "IBS/CBS — Reforma Tributária"
  },
  "auth": {
    "type": "bearer",
    "bearer": [
      {
        "key": "token",
        "value": "{{apiKey}}",
        "type": "string"
      }
    ]
  },
  "variable": [
    {
      "key": "baseUrl",
      "value": "https://vatbr.com/api/public/v1"
    },
    {
      "key": "apiKey",
      "value": "sk_test_SUA_CHAVE"
    }
  ],
  "item": [
    {
      "name": "Criar cálculo (SaaS, São Paulo)",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/calculations",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "calculations"
          ]
        },
        "body": {
          "mode": "raw",
          "raw": "{\n  \"amount\": 1000,\n  \"currency\": \"BRL\",\n  \"customer\": {\n    \"cep\": \"01310-100\"\n  },\n  \"nbs\": \"1.1502.10.00\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "Criar cálculo (saúde, redução 60%)",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/calculations",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "calculations"
          ]
        },
        "body": {
          "mode": "raw",
          "raw": "{\n  \"amount\": 1000,\n  \"currency\": \"BRL\",\n  \"customer\": {\n    \"ibge\": \"3550308\"\n  },\n  \"nbs\": \"1.2302.10.00\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "Cálculo em lote (carrinho)",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/calculations/batch",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "calculations",
            "batch"
          ]
        },
        "body": {
          "mode": "raw",
          "raw": "{\n  \"customer\": {\n    \"cep\": \"01310-100\"\n  },\n  \"nbs\": \"1.1502.10.00\",\n  \"items\": [\n    {\n      \"id\": \"plano-anual\",\n      \"amount\": 1000\n    },\n    {\n      \"id\": \"addon-filial\",\n      \"amount\": 500,\n      \"customer\": {\n        \"cep\": \"89801-000\"\n      }\n    }\n  ]\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    }
  ]
}