agency-invoicing

PATCH /v1/agency-invoicing/profile

Change your invoicing identity or defaults.

Wszystkie punkty końcowe agency-invoicing

Uwierzytelnianie

Wyślij klucz API jako token bearer. Klucz musi posiadać uprawnienie agency.invoicing.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 PATCH https://api.zinndigital.com/v1/agency-invoicing/profile \
  -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

⛔ `next_number` is deliberately NOT settable. Rewinding a sequence would mint a duplicate number for a document already in a client's hands; advancing it leaves a gap a tax authority will ask about. Requires `agency.invoicing.manage`.

Parametry

NazwaTypWymaganeCo to jest
org_id (query)UuidNieWhich of your organizations is invoicing. Required only when you belong to more than one — otherwise it is inferred from your DIRECT membership, never from the subtree-expanded…

Treść żądania

NazwaTypWymaganeCo to jest
business_namestringNie
addressstringNie
emailstringNie
phonestringNie
websitestringNie
tax_number_labelstringNie
tax_numberstringNie
payment_instructionsstringNie
logo_sha256stringNie
accent_colourstringNie
default_currencystringNie
default_payment_terms_daysintegerNie
default_footerstringNie
default_notesstringNie
number_prefixstringNie
number_paddingintegerNie

Odpowiedź

NazwaTypWymaganeCo to jest
business_namestringNie
addressstringNieThe registered address, one line per newline. Free-form because address shape is a property of a country, not of our schema.
emailstringNie
phonestringNie
websitestringNie
tax_number_labelstringNieWhat the agency calls its tax registration — "VAT number", "ABN", "GSTIN", "EIN". ⛔ Printed only when the number is set too: a label with no number is an empty row, and a number…
tax_numberstringNie
payment_instructionsstringNieBank details or a "PayPal me at …" line, printed on the document verbatim and shown on the payment page. ⭐ Never translated — translating a payment instruction is not a safe act.
logo_sha256stringNieA digest into the content-addressed logo store, never a URL. That is what lets the PDF inline the mark with no network call at render time.
accent_colourstringNie
default_currencystringTak
default_payment_terms_daysintegerNie
default_footerstringNie
default_notesstringNie
number_prefixstringTak
number_paddingintegerNie
next_numberintegerTakThe next sequence number. ⛔ Read-only. Rewinding it would mint a duplicate number for a document already in a client's hands.
next_number_previewstringNieWhat the next invoice will be called, e.g. `INV-0042`.

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

401 · 403 · 404 · 422 · 429