billing

PUT /v1/billing/profile

Replace the organization's billing profile.

Tous les points de terminaison billing

Authentification

Envoyez une clé API en tant que jeton du porteur. La clé doit posséder l'autorisation billing.invoice.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 PUT https://api.zinndigital.com/v1/billing/profile \
  -H "Authorization: Bearer zdk_live_…" \
  -H "Content-Type: application/json" \
  -d '{ "billing_address": <BillingAddress> }'

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

A full replace (PUT) of the editable "Bill to" fields; an omitted field resets to blank. `billing_address` (with its required `country`, needed for tax) is the one mandatory member. Editing changes only invoices issued **afterwards** — a past invoice snapshotted the buyer block at issue time and is never rewritten (docs/34 §1.1). `vat_status` is engine-owned (the validate-not-trust flow, §2.3) and is not accepted here; changing `vat_number` resets it to `unvalidated`. Requires `billing.invoice.manage` in the target organization.

Paramètres

NomTypeObligatoireQu'est-ce que c'est
org_id (query)UuidNonThe organization whose profile to replace; defaults to the caller's own.

Corps de la requête

NomTypeObligatoireQu'est-ce que c'est
legal_namestringNon
company_namestringNon
billing_addressBillingAddressOuiA billing address. Everything is optional **except** `country`, which tax determination needs (docs/34 §2.2). `country` is an ISO 3166-1 alpha-2 code, uppercased by the server.
vat_numberstringNon
tax_idLabelValueNon
custom_invoice_fieldsLabelValue[]Non
billing_emailstringNon
invoice_localestringNon

Réponse

NomTypeObligatoireQu'est-ce que c'est
org_idstringOui
legal_namestringOui
company_namestringOui
billing_addressBillingAddressOuiA billing address. Everything is optional **except** `country`, which tax determination needs (docs/34 §2.2). `country` is an ISO 3166-1 alpha-2 code, uppercased by the server.
vat_numberstringOui
vat_statusstring<unvalidated, pending, valid, invalid>OuiState of the validate-not-trust check on `vat_number` (docs/34 §2.3). Read-only; a change to `vat_number` resets it to `unvalidated`.
tax_idLabelValueNonA free-label secondary tax id (US EIN, AU ABN, …). Null when unset.
custom_invoice_fieldsLabelValue[]OuiUp to five customer-defined `{label, value}` lines, rendered verbatim.
billing_emailstringOuiWhere invoices are delivered; blank means the account email.
invoice_localestringOuiPreferred invoice language; blank means the account language.
updated_atstringNonWhen the profile was last saved. Null if it has never been saved.

Erreurs que cet point de terminaison peut renvoyer

401 · 403 · 422 · 429