reseller
POST /v1/reseller/tax-registrations
Add one of your VAT registrations.
Аутентификација
Пошаљите API кључ као bearer токен. Кључ мора имати дозволу reseller.manage; кључ без ње се одбија уз 403, а не 404.
Где се уноси ID ваше организације
Ова крајња тачка прихвата org_id као параметар упита. Изоставите га и позив ће обухватити цело подстабло вашег закупа; пошаљите га да бисте сузили позив на једну организацију.
Идентификатор ваше организације се налази на екрану са API кључевима на вашој контролној табли, поред самог кључа. То је исти идентификатор у сваком позиву који упутите.
Испробајте
Замените све што је у угластим заградама сопственим вредностима, а чувар места кључа кључем са своје контролне табле.
curl -X POST https://api.zinndigital.com/v1/reseller/tax-registrations \
-H "Authorization: Bearer zdk_live_…" \
-H "Content-Type: application/json" \
-d '{ "jurisdiction": <string>, "number": <string>, "effective_from": <string> }'Пријављени сте? API конзола на вашој контролној табли попуњава ваш прави id организације и ваш сопствени кључ, и покреће захтев према живом API-ју како бисте могли да видите стварни одговор. Отворите ову крајњу тачку у API конзоли
Детаљи
This starts charging VAT immediately. There is no "record the number but do not charge yet" state: the registration row is the switch, so from effective_from your clients are charged at the rate for the supply and your number is printed on their invoices. The number is yours and the liability is yours — we do not hold it for approval. We check only that the value could be a VAT number at all; we do not verify it exists. Two registrations in force for one jurisdiction at once is a 422, because the rate charged would then depend on row order rather than on a decision — end the old one first. Requires reseller.manage.
Параметри
| Назив | Тип | Обавезно | Шта је ово |
|---|---|---|---|
org_id (query) | Uuid | Не | Which of your organizations this applies to. Required only when you belong to more than one here — otherwise it is inferred, and an id outside your direct memberships is a 404… |
Тело захтева
| Назив | Тип | Обавезно | Шта је ово |
|---|---|---|---|
id | Uuid | Не | UUIDv7 identifier — sortable by creation time (docs/02 §8). |
jurisdiction | string | Да | ISO country code of the registration — or EU for the Union one-stop-shop, which is a scheme rather than a member state. |
scheme | string<standard, flat_rate, oss, non_union_oss> | Не | — |
number | string | Да | Your VAT registration number, as it must appear on an invoice. Checked for shape only — we do not verify that it exists, and a number that does not will still charge your clients… |
effective_from | string | Да | The date the registration takes effect. Required and never defaulted to today: the date your tax authority gave you is usually not the day you enter it here, and guessing it… |
effective_to | object | Не | The date it ended, or null while still in force. |
in_force | boolean | Не | Whether this registration is in force today. |
created_at | string | Не | — |
Одговор
| Назив | Тип | Обавезно | Шта је ово |
|---|---|---|---|
data | ResellerTaxRegistration | Да | — |
Грешке које ова крајња тачка може вратити
401 · 403 · 404 · 409 · 422 · 429