billing

PUT /v1/billing/profile

Replace the organization's billing profile.

Lahat ng billing endpoint

Pagpapatotoo

Magpadala ng API key bilang isang bearer token. Kailangang taglayin ng key ang pahintulot na billing.invoice.manage; ang key na wala nito ay tatanggihan gamit ang 403, hindi 404.

Kung saan mapupunta ang id ng iyong organisasyon

Tinatanggap ng endpoint na ito ang org_id bilang parameter ng query. Huwag itong isama at saklaw ng tawag ang buong subtree ng iyong tenancy; ipadala ito para paliitin ang tawag sa isang organisasyon.

Ang id ng iyong organisasyon ay nasa screen ng mga API key sa iyong dashboard, sa tabi mismo ng key. Ito ang parehong id sa bawat tawag na gagawin mo.

Subukan ito

Palitan ang anuman sa loob ng mga panaklong na may anggulo ng iyong sariling mga halaga, at ang placeholder ng key na may key mula sa iyong dashboard.

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

Nakalagda? Ang API console sa iyong dashboard ay awtomatikong naglalagay ng iyong tunay na ID ng organisasyon at sariling susi, at pinapatakbo ang kahilingan laban sa live na API upang makita mo ang aktwal na tugon. Buksan ang endpoint na ito sa console ng API

Mga Detalye

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.

Mga Parameter

PangalanUriKailanganAno ito
org_id (query)UuidHindiThe organization whose profile to replace; defaults to the caller's own.

Katawan ng kahilingan

PangalanUriKailanganAno ito
legal_namestringHindi
company_namestringHindi
billing_addressBillingAddressOoA 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_numberstringHindi
tax_idLabelValueHindi
custom_invoice_fieldsLabelValue[]Hindi
billing_emailstringHindi
invoice_localestringHindi

Tugon

PangalanUriKailanganAno ito
org_idstringOo
legal_namestringOo
company_namestringOo
billing_addressBillingAddressOoA 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_numberstringOo
vat_statusstring<unvalidated, pending, valid, invalid>OoState 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_idLabelValueHindiA free-label secondary tax id (US EIN, AU ABN, …). Null when unset.
custom_invoice_fieldsLabelValue[]OoUp to five customer-defined `{label, value}` lines, rendered verbatim.
billing_emailstringOoWhere invoices are delivered; blank means the account email.
invoice_localestringOoPreferred invoice language; blank means the account language.
updated_atstringHindiWhen the profile was last saved. Null if it has never been saved.

Mga error na maibabalik ng endpoint na ito

401 · 403 · 422 · 429