billing

PUT /v1/billing/profile

Replace the organization's billing profile.

Minden billing végpont

Hitelesítés

Küldjön egy API-kulcsot bearer tokenként. A kulcsnak rendelkeznie kell a(z) billing.invoice.manage jogosultsággal; az ezzel nem rendelkező kulcsok esetén a rendszer 403-as hibát ad vissza 404 helyett.

A szervezet azonosítójának helye

Ez a végpont a(z) org_id paramétert lekérdezési paraméterként várja. Hagyja ki, ha a hívás az Ön teljes bérlői részfáját lefedje; küldje el a hívás egyetlen szervezetre történő szűkítéséhez.

A szervezeted azonosítója a vezérlőpult API-kulcsok képernyőjén található, közvetlenül a kulcs mellett. Ez ugyanaz az azonosító minden indított hívásban.

Próbálja ki

Cserélje ki a hegyes zárójelek közötti részt a saját értékeivel, a kulcshelyőrzőt pedig a vezérlőpultján található kulccsal.

curl -X PUT https://api.zinndigital.com/v1/billing/profile \
  -H "Authorization: Bearer zdk_live_…" \
  -H "Content-Type: application/json" \
  -d '{ "billing_address": <BillingAddress> }'

Be van jelentkezve? A vezérlőpultban lévő API-konzol kitölti a valós szervezetazonosítóját és a saját kulcsát, és a kérést az éles API-n futtatja, hogy láthassa a tényleges választ. Nyissa meg ezt a végpontot az API konzolban

Részletek

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éterek

NévTípusKötelezőMi ez
org_id (query)UuidNemThe organization whose profile to replace; defaults to the caller's own.

Kérés törzse

NévTípusKötelezőMi ez
legal_namestringNem
company_namestringNem
billing_addressBillingAddressIgenA 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_numberstringNem
tax_idLabelValueNem
custom_invoice_fieldsLabelValue[]Nem
billing_emailstringNem
invoice_localestringNem

Válasz

NévTípusKötelezőMi ez
org_idstringIgen
legal_namestringIgen
company_namestringIgen
billing_addressBillingAddressIgenA 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_numberstringIgen
vat_statusstring<unvalidated, pending, valid, invalid>IgenState 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_idLabelValueNemA free-label secondary tax id (US EIN, AU ABN, …). Null when unset.
custom_invoice_fieldsLabelValue[]IgenUp to five customer-defined `{label, value}` lines, rendered verbatim.
billing_emailstringIgenWhere invoices are delivered; blank means the account email.
invoice_localestringIgenPreferred invoice language; blank means the account language.
updated_atstringNemWhen the profile was last saved. Null if it has never been saved.

Hibák, amelyeket ez a végpont visszaadhattatlan

401 · 403 · 422 · 429