reseller

POST /v1/reseller/tax-registrations

Add one of your VAT registrations.

Všechny koncové body reseller

Autentizace

Zašlete API klíč jako nosný token (bearer token). Klíč musí mít oprávnění reseller.manage; klíč bez něj je odmítnut s kódem 403, nikoli 404.

Sem patří ID vaší organizace

Tento koncový bod přijímá org_id jako parametr dotazu. Pokud ho vynecháte, volání pokryje celý podstrom vašeho nájemce; jeho odesláním volání zúžíte na jednu organizaci.

ID vaší organizace najdete na obrazovce API klíčů ve vašem přehledu, hned vedle samotného klíče. Je to stále stejné ID v každém volání, které provedete.

Vyzvednout

Nahraďte cokoli v závorkách vlastními hodnotami a zástupný symbol klíče klíčem z vašeho řídicího panelu.

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> }'

Přihlášeni? Konzole API ve vašem dashboardu automaticky doplní vaše skutečné ID organizace i váš vlastní klíč a odešle požadavek na živé API, abyste viděli reálnou odpověď. Otevřete tento koncový bod v konzoli API

Podrobnosti

**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`.

Parametry

NázevTypPožadovánoCo to je
org_id (query)UuidNeWhich 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…

Tělo požadavku

NázevTypPožadovánoCo to je
idUuidNeUUIDv7 identifier — sortable by creation time (docs/02 §8).
jurisdictionstringAnoISO 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>Ne
numberstringAnoYour 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_fromstringAnoThe 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_toobjectNeThe date it ended, or `null` while still in force.
in_forcebooleanNeWhether this registration is in force today.
created_atstringNe

Odpověď

NázevTypPožadovánoCo to je
dataResellerTaxRegistrationAno

Chyby, které může tento koncový bod vrátit

401 · 403 · 404 · 409 · 422 · 429