agency-invoicing
PATCH /v1/agency-invoicing/profile
Change your invoicing identity or defaults.
Autentificare
Trimiteți o cheie API ca token de tip bearer. Cheia trebuie să aibă permisiunea agency.invoicing.manage; o cheie care nu o are va fi respinsă cu 403, nu 404.
Unde merge ID-ul organizației tale
Acest punct final acceptă org_id ca parametru de interogare. Omiteți-l și apelul va acoperi întregul subarbore al chiriașului dvs.; trimiteți-l pentru a restrânge apelul la o singură organizație.
ID-ul organizației tale se află pe ecranul cheilor API din panoul de control, lângă cheia însăși. Este același ID în fiecare apel pe care îl faci.
Încearcă
Înlocuiți tot ce se află între paranteze unghiulare cu propriile valori și substituentul cheie cu o cheie din tabloul de bord.
curl -X PATCH https://api.zinndigital.com/v1/agency-invoicing/profile \
-H "Authorization: Bearer zdk_live_…" \
-H "Content-Type: application/json" \
-d '{ }'Autentificat? Consola API din panoul de control îți completează ID-ul real al organizației și propria cheie și rulează cererea în API-ul live, astfel încât să poți vedea răspunsul efectiv. Deschideți acest punct final în consola API
Detalii
⛔ `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
| Nume | Tip | Obligatoriu | Ce este |
|---|---|---|---|
org_id (query) | Uuid | Nu | Which 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… |
Corp cerere
| Nume | Tip | Obligatoriu | Ce este |
|---|---|---|---|
business_name | string | Nu | — |
address | string | Nu | — |
email | string | Nu | — |
phone | string | Nu | — |
website | string | Nu | — |
tax_number_label | string | Nu | — |
tax_number | string | Nu | — |
payment_instructions | string | Nu | — |
logo_sha256 | string | Nu | — |
accent_colour | string | Nu | — |
default_currency | string | Nu | — |
default_payment_terms_days | integer | Nu | — |
default_footer | string | Nu | — |
default_notes | string | Nu | — |
number_prefix | string | Nu | — |
number_padding | integer | Nu | — |
Răspuns
| Nume | Tip | Obligatoriu | Ce este |
|---|---|---|---|
business_name | string | Nu | — |
address | string | Nu | The registered address, one line per newline. Free-form because address shape is a property of a country, not of our schema. |
email | string | Nu | — |
phone | string | Nu | — |
website | string | Nu | — |
tax_number_label | string | Nu | What 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_number | string | Nu | — |
payment_instructions | string | Nu | Bank 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_sha256 | string | Nu | A 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_colour | string | Nu | — |
default_currency | string | Da | — |
default_payment_terms_days | integer | Nu | — |
default_footer | string | Nu | — |
default_notes | string | Nu | — |
number_prefix | string | Da | — |
number_padding | integer | Nu | — |
next_number | integer | Da | The next sequence number. ⛔ Read-only. Rewinding it would mint a duplicate number for a document already in a client's hands. |
next_number_preview | string | Nu | What the next invoice will be called, e.g. `INV-0042`. |
Erori pe care le poate returna acest punct final
401 · 403 · 404 · 422 · 429