{
  "info": {
    "name": "XQustoms Tariff Intelligence",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
    "description": "Current tariff-api contract. Served on the own domain at https://xqustoms.com/api/v1. Response examples are illustrative structures, not live tariff assessments. Internal engine includes V2 intelligence features; public /v1 is the branded path to the same engine, not a new backend implementation.\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/v1"
    },
    {
      "key": "api_key",
      "value": ""
    }
  ],
  "auth": {
    "type": "apikey",
    "apikey": [
      {
        "key": "key",
        "value": "x-api-key",
        "type": "string"
      },
      {
        "key": "value",
        "value": "{{api_key}}",
        "type": "string"
      },
      {
        "key": "in",
        "value": "header",
        "type": "string"
      }
    ]
  },
  "item": [
    {
      "name": "Product lookup",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          },
          {
            "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}}/product-lookup",
        "description": "One request from an e-commerce platform or ERP: classify products and retrieve their tariff context.\n\n1 unit per input item (1–50). The batch is charged before matching; NO_MATCH items are also charged.",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"jurisdiction\": \"EU\",\n  \"country\": \"DE\",\n  \"direction\": \"import\",\n  \"partner_country\": \"CN\",\n  \"languages\": [\n    \"de\",\n    \"en\"\n  ],\n  \"candidates\": 3,\n  \"items\": [\n    {\n      \"ref\": \"SKU-COTTON-01\",\n      \"query\": \"pamuklu erkek tişört\",\n      \"qualifiers\": {\n        \"material\": \"100% Baumwolle\",\n        \"use\": \"Bekleidung\"\n      }\n    },\n    {\n      \"ref\": \"SKU-STEEL-02\",\n      \"code\": \"7208390090\"\n    }\n  ]\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "HS-Lookup",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          },
          {
            "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}}/hs-lookup",
        "description": "Retrieve a complete record for one exact national tariff code, including declaration format, documents, VAT and compliance flags.\n\n1 unit after the code is found and declarable.",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"jurisdiction\": \"EU\",\n  \"country\": \"DE\",\n  \"code\": \"6109100010\",\n  \"direction\": \"import\",\n  \"partner_country\": \"CN\",\n  \"languages\": [\n    \"de\",\n    \"en\",\n    \"tr\"\n  ],\n  \"qualifiers\": {\n    \"trade_name\": \"T-Shirt\",\n    \"material\": \"100% Baumwolle\"\n  }\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "Multilingual search",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          },
          {
            "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",
        "description": "Search official national lines by code or product description. Ranking weights product type above material and attributes.\n\n1 unit per request.",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"destination_country\": \"DE\",\n  \"query\": \"pamuklu tişört\",\n  \"declarable_only\": true,\n  \"limit\": 5\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "Tariff lookup",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          },
          {
            "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",
        "description": "Resolve destination duties, VAT, measures, preference candidates and source metadata.\n\n1 unit per request.",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"hs_code\": \"6109100010\",\n  \"destination_country\": \"DE\",\n  \"origin_country\": \"CN\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "Measures & documents",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          },
          {
            "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}}/measures",
        "description": "Return the same resolved tariff context as lookup, including measures, conditions and required documents.\n\n1 unit per request.",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"hs_code\": \"6109100010\",\n  \"destination_country\": \"DE\",\n  \"origin_country\": \"CN\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "Landed-cost calculation",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          },
          {
            "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",
        "description": "Calculate duty, VAT and supported national import charges with source-based rules.\n\n1 unit per request.",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"hs_code\": \"6109100010\",\n  \"destination_country\": \"DE\",\n  \"origin_country\": \"CN\",\n  \"customs_value\": 200,\n  \"freight\": 15,\n  \"insurance\": 2,\n  \"net_mass_kg\": 1.5,\n  \"currency\": \"EUR\",\n  \"transport_mode\": \"road\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "Bulk calculations",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          },
          {
            "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}}/bulk-calculate",
        "description": "Calculate separate item costs in one request.\n\n1 unit per input item (1–100).",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"items\": [\n    {\n      \"hs_code\": \"6109100010\",\n      \"destination_country\": \"DE\",\n      \"origin_country\": \"CN\",\n      \"customs_value\": 200,\n      \"freight\": 15,\n      \"insurance\": 2,\n      \"net_mass_kg\": 1.5,\n      \"currency\": \"EUR\",\n      \"transport_mode\": \"road\"\n    }\n  ]\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "Shipment evaluation",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          },
          {
            "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}}/evaluate-shipment",
        "description": "One shared shipment context with per-item calculations, required documents and totals.\n\n1 unit per input item (1–100).",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"origin_country\": \"CN\",\n  \"destination_country\": \"DE\",\n  \"currency\": \"EUR\",\n  \"incoterm\": \"DAP\",\n  \"transport_mode\": \"sea\",\n  \"items\": [\n    {\n      \"hs_code\": \"6109100010\",\n      \"customs_value\": 200,\n      \"freight\": 15,\n      \"insurance\": 2\n    }\n  ]\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "Code validation",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          },
          {
            "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-code",
        "description": "Validate code digits and supplied value/weight against an available country/regime rule.\n\n1 unit per request.",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"hs_code\": \"6203423100\",\n  \"country\": \"DE\",\n  \"regime\": \"import\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "Bulk shipment validation",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          },
          {
            "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}}/bulk-verify-shipment",
        "description": "Apply one country/regime rule to a shipment and all its codes, including shipment value/weight limits.\n\n1 unit per input item (1–200).",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"context\": {\n    \"trade_direction\": \"export\",\n    \"customs_regime\": \"etgb\",\n    \"origin_country\": \"TR\",\n    \"destination_country\": \"DE\",\n    \"gross_mass_kg\": 3.8\n  },\n  \"items\": [\n    {\n      \"ref\": \"ERP-1\",\n      \"hs_code\": \"420310000000\",\n      \"quantity\": 2,\n      \"unit_price\": 120,\n      \"currency\": \"EUR\"\n    }\n  ]\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "Interactive classification",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          },
          {
            "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}}/classify-interactive",
        "description": "Explainable descent through the official shared HS/EU tree with follow-up questions.\n\n1 unit when a session starts. Follow-up choices in that session are not charged.",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"item\": {\n    \"description\": \"cotton trousers\",\n    \"quantity\": 1,\n    \"unit_price\": 200,\n    \"currency\": \"EUR\"\n  },\n  \"context\": {\n    \"trade_direction\": \"import\",\n    \"customs_regime\": \"import\",\n    \"origin_country\": \"TR\",\n    \"destination_country\": \"DE\"\n  }\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "Classification feedback",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          },
          {
            "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}}/classification-feedback",
        "description": "Record a confirmation or rejection for the learning graph.\n\nNo quota unit is consumed by the current implementation.",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"description\": \"cotton t-shirt\",\n  \"hs_code\": \"6109100010\",\n  \"confirmed\": true,\n  \"context_key\": \"erp-product-review\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "Quota & usage",
      "request": {
        "method": "GET",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          },
          {
            "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}}/quota",
        "description": "Read the API key’s included quota, usage and extra-query settings.\n\nNo quota unit is consumed."
      }
    }
  ]
}
