agency-invoicing

PATCH /v1/agency-invoicing/profile

Change your invoicing identity or defaults.

Minden agency-invoicing végpont

Hitelesítés

Küldjön egy API-kulcsot bearer tokenként. A kulcsnak rendelkeznie kell a(z) agency.invoicing.manage jogosultsággal; az ezzel nem rendelkező kulcsok esetén a rendszer 403-as hibát ad vissza 404 helyett.

A szervezet azonosítójának helye

Ez a végpont a(z) org_id paramétert lekérdezési paraméterként várja. Hagyja ki, ha a hívás az Ön teljes bérlői részfáját lefedje; küldje el a hívás egyetlen szervezetre történő szűkítéséhez.

A szervezeted azonosítója a vezérlőpult API-kulcsok képernyőjén található, közvetlenül a kulcs mellett. Ez ugyanaz az azonosító minden indított hívásban.

Próbálja ki

Cserélje ki a hegyes zárójelek közötti részt a saját értékeivel, a kulcshelyőrzőt pedig a vezérlőpultján található kulccsal.

curl -X PATCH https://api.zinndigital.com/v1/agency-invoicing/profile \
  -H "Authorization: Bearer zdk_live_…" \
  -H "Content-Type: application/json" \
  -d '{  }'

Be van jelentkezve? A vezérlőpultban lévő API-konzol kitölti a valós szervezetazonosítóját és a saját kulcsát, és a kérést az éles API-n futtatja, hogy láthassa a tényleges választ. Nyissa meg ezt a végpontot az API konzolban

Részletek

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

Paraméterek

NévTípusKötelezőMi ez
org_id (query)UuidNemWhich 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…

Kérés törzse

NévTípusKötelezőMi ez
business_namestringNem
addressstringNem
emailstringNem
phonestringNem
websitestringNem
tax_number_labelstringNem
tax_numberstringNem
payment_instructionsstringNem
logo_sha256stringNem
accent_colourstringNem
default_currencystringNem
default_payment_terms_daysintegerNem
default_footerstringNem
default_notesstringNem
number_prefixstringNem
number_paddingintegerNem

Válasz

NévTípusKötelezőMi ez
business_namestringNem
addressstringNemThe registered address, one line per newline. Free-form because address shape is a property of a country, not of our schema.
emailstringNem
phonestringNem
websitestringNem
tax_number_labelstringNemWhat 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_numberstringNem
payment_instructionsstringNemBank 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_sha256stringNemA 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_colourstringNem
default_currencystringIgen
default_payment_terms_daysintegerNem
default_footerstringNem
default_notesstringNem
number_prefixstringIgen
number_paddingintegerNem
next_numberintegerIgenThe next sequence number. ⛔ Read-only. Rewinding it would mint a duplicate number for a document already in a client's hands.
next_number_previewstringNemWhat the next invoice will be called, e.g. `INV-0042`.

Hibák, amelyeket ez a végpont visszaadhattatlan

401 · 403 · 404 · 422 · 429