agency-invoicing

PATCH /v1/agency-invoicing/profile

Change your invoicing identity or defaults.

Tous les points de terminaison agency-invoicing

Authentification

Envoyez une clé API en tant que jeton du porteur. La clé doit posséder l'autorisation agency.invoicing.manage ; une clé qui ne l'a pas est refusée avec le code 403, et non 404.

Où insérer l'ID de votre organisation

Cet point de terminaison prend org_id comme paramètre de requête. Omettez-le et l'appel couvrira l'ensemble de votre sous-arbre de location ; envoyez-le pour restreindre l'appel à une seule organisation.

L'identifiant de votre organisation se trouve sur l'écran des clés API de votre tableau de bord, à côté de la clé elle-même. Il s'agit du même identifiant pour chaque appel que vous effectuez.

Essayer

Remplacez tout ce qui se trouve entre crochets par vos propres valeurs, et le espace réservé à la clé par une clé de votre tableau de bord.

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

Connecté ? La console d'API de votre tableau de bord saisit votre véritable ID d'organisation ainsi que votre propre clé, et exécute la requête sur l'API de production afin que vous puissiez voir la réponse réelle. Ouvrir ce point de terminaison dans la console API

Détails

⛔ `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ètres

NomTypeObligatoireQu'est-ce que c'est
org_id (query)UuidNonWhich 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…

Corps de la requête

NomTypeObligatoireQu'est-ce que c'est
business_namestringNon
addressstringNon
emailstringNon
phonestringNon
websitestringNon
tax_number_labelstringNon
tax_numberstringNon
payment_instructionsstringNon
logo_sha256stringNon
accent_colourstringNon
default_currencystringNon
default_payment_terms_daysintegerNon
default_footerstringNon
default_notesstringNon
number_prefixstringNon
number_paddingintegerNon

Réponse

NomTypeObligatoireQu'est-ce que c'est
business_namestringNon
addressstringNonThe registered address, one line per newline. Free-form because address shape is a property of a country, not of our schema.
emailstringNon
phonestringNon
websitestringNon
tax_number_labelstringNonWhat 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_numberstringNon
payment_instructionsstringNonBank 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_sha256stringNonA 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_colourstringNon
default_currencystringOui
default_payment_terms_daysintegerNon
default_footerstringNon
default_notesstringNon
number_prefixstringOui
number_paddingintegerNon
next_numberintegerOuiThe next sequence number. ⛔ Read-only. Rewinding it would mint a duplicate number for a document already in a client's hands.
next_number_previewstringNonWhat the next invoice will be called, e.g. `INV-0042`.

Erreurs que cet point de terminaison peut renvoyer

401 · 403 · 404 · 422 · 429