reseller

PUT /v1/reseller/legal-entity

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

Wszystkie punkty końcowe reseller

Wszystkie dokumentacje dla programistów

Uwierzytelnianie

Wyślij klucz API jako token bearer. Klucz musi posiadać uprawnienie reseller.manage; klucz bez niego jest odrzucany z kodem 403, a nie 404.

Miejsce na identyfikator organizacji

Ten punkt końcowy przyjmuje org_id jako parametr zapytania. Pomiń go, a wywołanie obejmie całe drzewo dzierżawy; prześlij go, aby ograniczyć wywołanie do jednej organizacji.

Identyfikator Twojej organizacji znajduje się na ekranie kluczy API w Twoim panelu, obok samego klucza. Jest to ten sam identyfikator w każdym wywołaniu, które wykonujesz.

Wypróbuj

Zastąp wszystko w nawiasach ostrych własnymi wartościami, a zastępczy znacznik klucza kluczem ze swojego pulpitu nawigacyjnego.

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

Zalogowany? Konsola API w Twoim panelu uzupełnia rzeczywiste identyfikator organizacji oraz Twój własny klucz i wykonuje żądanie względem aktywnego API, dzięki czemu możesz zobaczyć rzeczywistą odpowiedź. Otwórz ten punkt końcowy w konsoli API

Szczegóły

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.

Parametry

NazwaTypWymaganeCo to jest
org_id (query)UuidNieWhich 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…

Treść żądania

NazwaTypWymaganeCo to jest
idUuidNieUUIDv7 identifier — sortable by creation time (docs/02 §8).
namestringTak
company_numberstringNie
address_line1stringNie
address_line2stringNie
citystringNie
regionstringNie
postcodestringNie
countrystringTakISO 3166-1 alpha-2. Stored uppercase.
vat_numberstringNie
footer_textstringNie
number_prefixstringTakThe 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_lockedbooleanNieTrue once an invoice has been issued under this company.
created_atstringNie
updated_atstringNie

Odpowiedź

NazwaTypWymaganeCo to jest
dataResellerLegalEntity | nullTaknull when no company details are held yet.

Błędy, które ten punkt końcowy może zwrócić

401 · 403 · 404 · 409 · 422 · 429