reseller

POST /v1/reseller/tax-registrations

Add one of your VAT registrations.

Усі кінцеві точки reseller

Автентифікація

Надішліть ключ API як маркер носія (bearer token). Ключ повинен мати дозвіл reseller.manage; ключ без нього відхиляється з кодом 403, а не 404.

Де вказується ідентифікатор вашої організації

Цей ендпоїнт приймає 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 у вашій панелі керування автоматично підставляє ваш реальний ідентифікатор організації та ваш власний ключ, а також виконує запит до робочого 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 r…

Тіло запиту

НазваТипОбов'язковеЩо це таке
idUuidНіUUIDv7 identifier — sortable by creation time (docs/02 §8).
jurisdictionstringТакISO country code of the registration — or `EU` for the Union one-stop-shop, which is a scheme rather than a member state.
schemestring<standard, flat_rate, oss, non_union_oss>Ні
numberstringТак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 client…
effective_fromstringТак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 eit…
effective_toobjectНіThe date it ended, or `null` while still in force.
in_forcebooleanНіWhether this registration is in force today.
created_atstringНі

Відповідь

НазваТипОбов'язковеЩо це таке
dataResellerTaxRegistrationТак

Помилки, які може повертати ця кінцева точка

401 · 403 · 404 · 409 · 422 · 429