reseller

PUT /v1/reseller/brand/invoice

Set how your invoices read.

Wszystkie punkty końcowe reseller

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/brand/invoice \
  -H "Authorization: Bearer zdk_live_…" \
  -H "Content-Type: application/json" \
  -d '{  }'

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

Requires `reseller.manage`. ⭐ These are printed on **your** invoices, under your company, your VAT number and your number series — so the payment details are yours. Your clients are charged on your own payment gateway and you are the merchant of record for them. ⛔ **Changing these does not change invoices already issued**, and must not: every value is frozen onto each document when it is raised. Restating where last month's invoice was payable would be a different demand for money under the same number. Refused with 422 when your clients are still invoiced under Zinn Digital®.

Parametry

NazwaTypWymaganeCo to jest
org_id (query)UuidNieThe organization this call acts on. Optional for a caller with exactly one direct membership; **required** for anyone with more than one — which is every reseller and every agen…

Treść żądania

NazwaTypWymaganeCo to jest
footer_textstringNieSmall print at the foot of the document — typically your registered company name and number.
payment_termsstringNieWhen and how you expect to be paid.
payment_detailsstringNieRemittance details — account name, IBAN, BIC, a payment link. Line breaks are preserved exactly as you type them.
support_contactstringNieWhere your client asks about this invoice.

Odpowiedź

NazwaTypWymaganeCo to jest
configuredbooleanTakFalse when your clients are still invoiced under Zinn Digital®, in which case there is nothing here to set.
legal_entity_namestringTakThe company these invoices are issued by.
footer_textstringTak
payment_termsstringTak
payment_detailsstringTak
support_contactstringTak

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

401 · 403 · 422 · 429