agency-invoicing

PATCH /v1/agency-invoicing/profile

Change your invoicing identity or defaults.

Svi agency-invoicing krajnji točke

Autentifikacija

Pošaljite API ključ kao nosivi token. Ključ mora imati dozvolu agency.invoicing.manage; ključ bez nje se odbija s kodom 403, a ne 404.

Gdje dolazi ID vaše organizacije

Ova krajnja točka uzima org_id kao parametar upita. Izostavite ga i poziv obuhvaćett cijelo stablo vašeg najma; pošaljite ga kako biste suzili poziv na jednu organizaciju.

ID vaše organizacije nalazi se na zaslonu API ključeva u vašoj nadzornoj ploči, pored samog ključa. To je isti ID u svakom pozivu koji uputite.

Isprobajte

Zamijenite sve unutar šiljastih zagrada svojim vlastitim vrijednostima, a rezervirano mjesto za ključ s ključem iz vaše nadzorne ploče.

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

Prijavljeni ste? API konzola na vašoj nadzornoj ploči automatski unosi stvarni ID vaše organizacije i vaš vlastiti ključ te šalje zahtjev prema aktivnom API-ju kako biste mogli vidjeti stvarni odgovor. Otvori ovu krajnju točku u API konzoli

Pojedinosti

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

Parametri

NazivVrstaObaveznoŠto je to
org_id (query)UuidNeWhich 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…

Tijelo zahtjeva

NazivVrstaObaveznoŠto je to
business_namestringNe
addressstringNe
emailstringNe
phonestringNe
websitestringNe
tax_number_labelstringNe
tax_numberstringNe
payment_instructionsstringNe
logo_sha256stringNe
accent_colourstringNe
default_currencystringNe
default_payment_terms_daysintegerNe
default_footerstringNe
default_notesstringNe
number_prefixstringNe
number_paddingintegerNe

Odgovor

NazivVrstaObaveznoŠto je to
business_namestringNe
addressstringNeThe registered address, one line per newline. Free-form because address shape is a property of a country, not of our schema.
emailstringNe
phonestringNe
websitestringNe
tax_number_labelstringNeWhat 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_numberstringNe
payment_instructionsstringNeBank 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_sha256stringNeA 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_colourstringNe
default_currencystringDa
default_payment_terms_daysintegerNe
default_footerstringNe
default_notesstringNe
number_prefixstringDa
number_paddingintegerNe
next_numberintegerDaThe next sequence number. ⛔ Read-only. Rewinding it would mint a duplicate number for a document already in a client's hands.
next_number_previewstringNeWhat the next invoice will be called, e.g. `INV-0042`.

Pogreške koje ova krajnja točka može vratiti

401 · 403 · 404 · 422 · 429