{
  "info": {
    "name": "XQustoms Tariff API v2",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
    "description": "\n\nScopes: keys carry scopes tariff:classify, tariff:lookup, tariff:calculate, tariff:feedback and tariff:ask (reserved; no public route requires it yet). Each operation names its scope in x-required-scope. Legacy permissions map as tariff:read = classify + lookup + feedback and tariff:calculate = calculate; keys issued before the scope rollout keep full access. A key without the scope gets 403 INSUFFICIENT_SCOPE {error, required_scope}; a key that may not send feedback gets 403 FEEDBACK_NOT_ALLOWED.\n\nRate limit: only keys with a configured per-minute limit are limited. Above it the answer is 429 RATE_LIMITED {error, retry_after_seconds} with a Retry-After header (seconds); wait and retry. Denied and successful logged calls count, 429 answers do not.\n\nTest keys: keys with the prefix xqt_test_ run the same engine on the same data, are never billed and consume no quota (meta.quota_remaining is null). Their answers carry meta.test_mode = true (where a meta object exists) and the header x-xqustoms-test: true.\n\nAttribution: optional request headers X-Integration and X-End-Customer-Ref (max 128 characters, control characters removed) are stored with the usage entry for reporting. They never change the result. Do not send personal data."
  },
  "variable": [
    {
      "key": "base_url",
      "value": "https://xqustoms.com/api/v2/tariff"
    },
    {
      "key": "api_key",
      "value": ""
    }
  ],
  "item": [
    {
      "name": "Unified analysis (classification, duties, documents, optional landed cost) — 1 quota unit",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "x-api-key",
            "value": "{{api_key}}"
          },
          {
            "key": "content-type",
            "value": "application/json"
          },
          {
            "key": "x-request-id",
            "value": "{{$guid}}"
          },
          {
            "key": "X-Integration",
            "value": "",
            "disabled": true,
            "description": "Optional usage attribution (max 128 chars, no personal data)."
          },
          {
            "key": "X-End-Customer-Ref",
            "value": "",
            "disabled": true,
            "description": "Optional usage attribution (max 128 chars, no personal data)."
          }
        ],
        "url": "{{base_url}}/analyze",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"description\": \"pamuklu tişört\",\n  \"destination_country\": \"US\",\n  \"origin_country\": \"TR\"\n}"
        }
      }
    },
    {
      "name": "v2 alias of /api/v1/bulk-calculate (same body, same billing, adds api_version)",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "x-api-key",
            "value": "{{api_key}}"
          },
          {
            "key": "content-type",
            "value": "application/json"
          },
          {
            "key": "x-request-id",
            "value": "{{$guid}}"
          },
          {
            "key": "X-Integration",
            "value": "",
            "disabled": true,
            "description": "Optional usage attribution (max 128 chars, no personal data)."
          },
          {
            "key": "X-End-Customer-Ref",
            "value": "",
            "disabled": true,
            "description": "Optional usage attribution (max 128 chars, no personal data)."
          }
        ],
        "url": "{{base_url}}/batch",
        "body": {
          "mode": "raw",
          "raw": "{}"
        }
      }
    },
    {
      "name": "v2 alias of /api/v1/calculate (same body, same billing, adds api_version)",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "x-api-key",
            "value": "{{api_key}}"
          },
          {
            "key": "content-type",
            "value": "application/json"
          },
          {
            "key": "x-request-id",
            "value": "{{$guid}}"
          },
          {
            "key": "X-Integration",
            "value": "",
            "disabled": true,
            "description": "Optional usage attribution (max 128 chars, no personal data)."
          },
          {
            "key": "X-End-Customer-Ref",
            "value": "",
            "disabled": true,
            "description": "Optional usage attribution (max 128 chars, no personal data)."
          }
        ],
        "url": "{{base_url}}/calculate",
        "body": {
          "mode": "raw",
          "raw": "{}"
        }
      }
    },
    {
      "name": "Service health (no API key, no quota)",
      "request": {
        "method": "GET",
        "header": [
          {
            "key": "content-type",
            "value": "application/json"
          },
          {
            "key": "x-request-id",
            "value": "{{$guid}}"
          }
        ],
        "url": "{{base_url}}/health"
      }
    },
    {
      "name": "v2 alias of /api/v1/lookup (same body, same billing, adds api_version)",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "x-api-key",
            "value": "{{api_key}}"
          },
          {
            "key": "content-type",
            "value": "application/json"
          },
          {
            "key": "x-request-id",
            "value": "{{$guid}}"
          },
          {
            "key": "X-Integration",
            "value": "",
            "disabled": true,
            "description": "Optional usage attribution (max 128 chars, no personal data)."
          },
          {
            "key": "X-End-Customer-Ref",
            "value": "",
            "disabled": true,
            "description": "Optional usage attribution (max 128 chars, no personal data)."
          }
        ],
        "url": "{{base_url}}/lookup",
        "body": {
          "mode": "raw",
          "raw": "{}"
        }
      }
    },
    {
      "name": "v2 alias of /api/v1/search (same body, same billing, adds api_version)",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "x-api-key",
            "value": "{{api_key}}"
          },
          {
            "key": "content-type",
            "value": "application/json"
          },
          {
            "key": "x-request-id",
            "value": "{{$guid}}"
          },
          {
            "key": "X-Integration",
            "value": "",
            "disabled": true,
            "description": "Optional usage attribution (max 128 chars, no personal data)."
          },
          {
            "key": "X-End-Customer-Ref",
            "value": "",
            "disabled": true,
            "description": "Optional usage attribution (max 128 chars, no personal data)."
          }
        ],
        "url": "{{base_url}}/search",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"destination_country\": \"DE\",\n  \"query\": \"pamuklu tişört\",\n  \"declarable_only\": true,\n  \"limit\": 5\n}"
        }
      }
    },
    {
      "name": "Official data sources (free)",
      "request": {
        "method": "GET",
        "header": [
          {
            "key": "x-api-key",
            "value": "{{api_key}}"
          },
          {
            "key": "content-type",
            "value": "application/json"
          },
          {
            "key": "x-request-id",
            "value": "{{$guid}}"
          },
          {
            "key": "X-Integration",
            "value": "",
            "disabled": true,
            "description": "Optional usage attribution (max 128 chars, no personal data)."
          },
          {
            "key": "X-End-Customer-Ref",
            "value": "",
            "disabled": true,
            "description": "Optional usage attribution (max 128 chars, no personal data)."
          }
        ],
        "url": "{{base_url}}/sources"
      }
    },
    {
      "name": "v2 alias of /api/v1/validate-code (same body, same billing, adds api_version)",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "x-api-key",
            "value": "{{api_key}}"
          },
          {
            "key": "content-type",
            "value": "application/json"
          },
          {
            "key": "x-request-id",
            "value": "{{$guid}}"
          },
          {
            "key": "X-Integration",
            "value": "",
            "disabled": true,
            "description": "Optional usage attribution (max 128 chars, no personal data)."
          },
          {
            "key": "X-End-Customer-Ref",
            "value": "",
            "disabled": true,
            "description": "Optional usage attribution (max 128 chars, no personal data)."
          }
        ],
        "url": "{{base_url}}/validate",
        "body": {
          "mode": "raw",
          "raw": "{}"
        }
      }
    }
  ]
}
