reseller

PUT /v1/reseller/legal-entity

Save the company details your clients' invoices are issued under.

Alle reseller-eindpunten

Authenticatie

Stuur een API-sleutel mee als bearer token. De sleutel moet over de permissie reseller.manage beschikken; een sleutel zonder deze permissie wordt geweigerd met een 403 in plaats van een 404.

Waar je organisatie-id komt te staan

Dit eindpunt accepteert org_id als queryparameter. Laat deze achterwege en de aanroep destilleert je gehele tenant-substructie; stuur deze mee om de aanroep te beperken tot één organisatie.

Uw organisatie-id staat op het scherm met API-sleutels in uw dashboard, naast de sleutel zelf. Dit is in elke aanroep die u doet dezelfde id.

Probeer het

Vervang alles tussen punthaakjes door uw eigen waarden en de sleutelplaatsvervanger door een sleutel uit uw dashboard.

curl -X PUT https://api.zinndigital.com/v1/reseller/legal-entity \
  -H "Authorization: Bearer zdk_live_…" \
  -H "Content-Type: application/json" \
  -d '{ "name": <string>, "country": <string>, "number_prefix": <string> }'

Ingelogd? De API-console in je dashboard vult je echte organisatie-id en je eigen sleutel in, en voert het verzoek uit tegen de live API zodat je de daadwerkelijke respons kunt zien. Open dit eindpunt in de API-console

Details

Creates the entity the first time and updates it afterwards — never a second row. `number_prefix` is **globally unique across every company on the platform** because it is what keeps two issuers' invoice numbers apart, so a value already in use is a 409; and it **freezes once an invoice has been issued** under this company, because releasing it would let the next taker mint numbers you have already issued. Everything else stays editable — a company that moves office must be able to say so. Requires `reseller.manage`.

Parameters

NaamTypeVerplichtWat dit is
org_id (query)UuidNeeWhich 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…

Aanvraaglichaam

NaamTypeVerplichtWat dit is
idUuidNeeUUIDv7 identifier — sortable by creation time (docs/02 §8).
namestringJa
company_numberstringNee
address_line1stringNee
address_line2stringNee
citystringNee
regionstringNee
postcodestringNee
countrystringJaISO 3166-1 alpha-2. Stored uppercase.
vat_numberstringNee
footer_textstringNee
number_prefixstringJaThe prefix in every invoice number you issue (`AG-INV-2026-000123`). Globally unique across all companies on the platform, and frozen once you have issued an invoice.
number_prefix_lockedbooleanNeeTrue once an invoice has been issued under this company.
created_atstringNee
updated_atstringNee

Reactie

NaamTypeVerplichtWat dit is
dataResellerLegalEntity | nullJa`null` when no company details are held yet.

Fouten die dit eindpunt kan retourneren

401 · 403 · 404 · 409 · 422 · 429