GET /v1/rules/{country}
Customs and registration rules in force
Customs and registration rules in force
Flat list of rule parameters (duty, VAT, excise, fees ...) effective on a date, each with sources, effective date and a verified flag. verified:false means indicative only. Requires scope read:pricing.
- Автентифікація: заголовок
Authorization: Bearer rv_live_...(API-ключі та scopes) - Потрібний scope:
read:pricing
openapi.json) і подається англійською, як у самому API.Параметри
| Поле | Де | Тип | Обов’язк. | Опис |
|---|---|---|---|---|
country | path | "UA" | "PL" | "LT" | "GE" | "DE" | так | Destination country (uppercase): UA, PL, LT, GE, DE. |
date | query | string | ні | Rules effective on this date (yyyy-mm-dd). Default: today. |
Відповіді
200
Rule parameters.
application/json · Схема: RulesResponse
| Поле | Тип | Обов’язк. | Опис |
|---|---|---|---|
country | "UA" | "PL" | "LT" | "GE" | "DE" | так | |
version | string | так | Version id of the rule set, e.g. "PL@2026-07-01". |
currency | string | так | |
summary | string | так | |
as_of | string | так | |
unverified_params | integer | так | How many parameters have verified:false (indicative only, not confirmed by an official source). |
rows | object[] | так | |
rows[].path | string | ні | |
rows[].value | any | ні | |
rows[].verified | boolean | ні | |
rows[].effectiveFrom | string | null | ні | |
rows[].checkedAt | string | ні | |
rows[].sources | object[] | ні | |
rows[].note | string | ні |
400
Invalid request parameters or body (code validation_error).
application/problem+json · Схема: Problem
401
Missing, malformed, unknown, revoked or expired API key (code unauthorized).
application/problem+json · Схема: Problem
403
The API key lacks the scope required by this endpoint (code insufficient_scope).
application/problem+json · Схема: Problem
422
No rules for that country on that date.
application/problem+json · Схема: Problem
429
Rate limit exceeded for the tenant plan (code rate_limited). Wait Retry-After seconds.
application/problem+json · Схема: Problem
Приклад
curl -s "https://api.importos.app/v1/rules/PL" \
-H "Authorization: Bearer $IMPORTOS_API_KEY"