billing

PUT /v1/billing/profile

Replace the organization's billing profile.

Dhammaan billing bixiyayaasha

Xaqiijinta aqoonsiga

U dir furaha API ah calaamad dusha ah (bearer token). Furaha waa inuu wataa ruqadda billing.invoice.manage; furaha aan wadan waxaa loo diidayaa 403, ee ma aha 404.

Meesha aqoonsiga ururkaagu galayo

Endpoint-kani wuxතික org_id oo ah cabbir su'aal ah. Ka tag oo wicitaanku wuxuu daboolayaa dhammaan geedkaaga kiraynta; soo dir si aad wicitaanka ugu koobto hal urur.

Aqoonsiga ururkaagu wuxuu ku yaallaa shaashada furayaasha API ee dashboard-kaaga, oo ku xiga furaha laftiisa. Waa isku aqoonsi wicitaan kasta oo aad sameyso.

Isku day

Ku beddel wax kasta oo ku dhex jira qeebaha xaglaha ah qiimayaashaada, sidoo kalena haystaaha furaha ku beddel fure ka dhex muuqda dashboordigaaga.

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

Ma sign-garaysay? Qalabka API ee ku jira dashboard-kaagu wuxuu buuxiyaa aqoonsigaaga ururka ee dhabta ah iyo furahaaga gaarka ah, wuxuuna ku shaqeysiiyaa codsiga API-ga nool si aad u aragto jawaabta dhabta ah. Kani ka fur barta kontoroolka ee API

Faahfaahin

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.

Cabiraha

MagacaNoocLoo baahan yahayMaxay tahay
org_id (query)UuidMayaThe organization whose profile to replace; defaults to the caller's own.

Codsiga jidhkiisa

MagacaNoocLoo baahan yahayMaxay tahay
legal_namestringMaya
company_namestringMaya
billing_addressBillingAddressHaaA 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_numberstringMaya
tax_idLabelValueMaya
custom_invoice_fieldsLabelValue[]Maya
billing_emailstringMaya
invoice_localestringMaya

Jawaab

MagacaNoocLoo baahan yahayMaxay tahay
org_idstringHaa
legal_namestringHaa
company_namestringHaa
billing_addressBillingAddressHaaA 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_numberstringHaa
vat_statusstring<unvalidated, pending, valid, invalid>HaaState 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_idLabelValueMayaA free-label secondary tax id (US EIN, AU ABN, …). Null when unset.
custom_invoice_fieldsLabelValue[]HaaUp to five customer-defined `{label, value}` lines, rendered verbatim.
billing_emailstringHaaWhere invoices are delivered; blank means the account email.
invoice_localestringHaaPreferred invoice language; blank means the account language.
updated_atstringMayaWhen the profile was last saved. Null if it has never been saved.

Cilladaha ay bartaani soo celin karto

401 · 403 · 422 · 429