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