agency-invoicing

PATCH /v1/agency-invoicing/profile

Change your invoicing identity or defaults.

Alle agency-invoicing-eindpunten

Authenticatie

Stuur een API-sleutel mee als bearer token. De sleutel moet over de permissie agency.invoicing.manage beschikken; een sleutel zonder deze permissie wordt geweigerd met een 403 in plaats van een 404.

Waar je organisatie-id komt te staan

Dit eindpunt accepteert org_id als queryparameter. Laat deze achterwege en de aanroep destilleert je gehele tenant-substructie; stuur deze mee om de aanroep te beperken tot één organisatie.

Uw organisatie-id staat op het scherm met API-sleutels in uw dashboard, naast de sleutel zelf. Dit is in elke aanroep die u doet dezelfde id.

Probeer het

Vervang alles tussen punthaakjes door uw eigen waarden en de sleutelplaatsvervanger door een sleutel uit uw dashboard.

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

Ingelogd? De API-console in je dashboard vult je echte organisatie-id en je eigen sleutel in, en voert het verzoek uit tegen de live API zodat je de daadwerkelijke respons kunt zien. Open dit eindpunt in de API-console

Details

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

Parameters

NaamTypeVerplichtWat dit is
org_id (query)UuidNeeWhich 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…

Aanvraaglichaam

NaamTypeVerplichtWat dit is
business_namestringNee
addressstringNee
emailstringNee
phonestringNee
websitestringNee
tax_number_labelstringNee
tax_numberstringNee
payment_instructionsstringNee
logo_sha256stringNee
accent_colourstringNee
default_currencystringNee
default_payment_terms_daysintegerNee
default_footerstringNee
default_notesstringNee
number_prefixstringNee
number_paddingintegerNee

Reactie

NaamTypeVerplichtWat dit is
business_namestringNee
addressstringNeeThe registered address, one line per newline. Free-form because address shape is a property of a country, not of our schema.
emailstringNee
phonestringNee
websitestringNee
tax_number_labelstringNeeWhat 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_numberstringNee
payment_instructionsstringNeeBank 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_sha256stringNeeA 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_colourstringNee
default_currencystringJa
default_payment_terms_daysintegerNee
default_footerstringNee
default_notesstringNee
number_prefixstringJa
number_paddingintegerNee
next_numberintegerJaThe next sequence number. ⛔ Read-only. Rewinding it would mint a duplicate number for a document already in a client's hands.
next_number_previewstringNeeWhat the next invoice will be called, e.g. `INV-0042`.

Fouten die dit eindpunt kan retourneren

401 · 403 · 404 · 422 · 429