billing

PUT /v1/billing/profile

Replace the organization's billing profile.

Sve billing krajnje tačke

Autentifikacija

Pošaljite API ključ kao bearer token. Ključ mora imati dozvolu billing.invoice.manage; ključ bez nje se odbija sa 403, a ne sa 404.

Gde ide ID vaše organizacije

Ova krajnja tačka prihvata org_id kao parametar upita. Izostavite ga i poziv obuhvata celokupno stablo vašeg zakupca; pošaljite ga da biste suzili poziv na jednu organizaciju.

ID vaše organizacije nalazi se na ekranu sa API ključevima u vašoj kontrolnoj tabli, pored samog ključa. To je isti ID u svakom pozivu koji uputite.

Isprobajte

Zamenite bilo šta u uglastim zagradama sopstvenim vrednostima, a ključni placeholder sa ključem sa vaše kontrolne table.

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

Prijavljeni ste? API konzola na vašoj kontrolnoj tabli automatski popunjava ID vaše stvarne organizacije i vaš sopstveni ključ, i izvršava zahtev nad API-jem uživo tako da možete videti stvarni odgovor. Otvorite ovu krajnju tačku u API konzoli

Detalji

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.

Parametri

NazivVrstaObaveznoŠta je ovo
org_id (query)UuidNeThe organization whose profile to replace; defaults to the caller's own.

Telo zahteva

NazivVrstaObaveznoŠta je ovo
legal_namestringNe
company_namestringNe
billing_addressBillingAddressDaA 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_numberstringNe
tax_idLabelValueNe
custom_invoice_fieldsLabelValue[]Ne
billing_emailstringNe
invoice_localestringNe

Odgovor

NazivVrstaObaveznoŠta je ovo
org_idstringDa
legal_namestringDa
company_namestringDa
billing_addressBillingAddressDaA 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_numberstringDa
vat_statusstring<unvalidated, pending, valid, invalid>DaState 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_idLabelValueNeA free-label secondary tax id (US EIN, AU ABN, …). Null when unset.
custom_invoice_fieldsLabelValue[]DaUp to five customer-defined `{label, value}` lines, rendered verbatim.
billing_emailstringDaWhere invoices are delivered; blank means the account email.
invoice_localestringDaPreferred invoice language; blank means the account language.
updated_atstringNeWhen the profile was last saved. Null if it has never been saved.

Greške koje ovaj krajnji tačka može da vrati

401 · 403 · 422 · 429