billing

PUT /v1/billing/profile

Replace the organization's billing profile.

Bütün billing nöqtələri

Bütün tərtibatçı sənədləri

Doğrulama

API açarını bearer token kimi göndərin. Açar billing.invoice.manage icazəsinə malik olmalıdır; bu icazəsi olmayan açar 404 deyil, 403 xətası ilə rədd edilir.

Təşkilatınızın identifikatorunun yerləşdiyi yer

Bu son nöqtə sorğu parametri kimi org_id qəbul edir. Onu buraxın və sorğu bütün kirayə alt ağacınızı əhatə etsin; sorğunu bir təşkilatla məhdudlaşdırmaq üçün onu göndərin.

Təşkilatınızın identifikatoru idarə panelinizdəki API açarları ekranında, açarın özünün yanında yerləşir. Bu, etdiyiniz hər bir sorğuda eyni identifikatordur.

Sınaqdan keçir

Bucaqlı mötərizələrdə olan hór şeyi öz qiymətlərinizlə, açar yertutucusunu isə idarə panelinizdən bir açarla əvəz edin.

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

Sistemə daxil olmusunuz? İdarə panelinizdəki API konsolu real təşkilatınızın identifikatorunu və öz açarınızı avtomatik doldurur, sorğunu canlı API-yə qarşı icra edir ki, siz faktiki cavabı görə biləsiniz. Bu son nöqtəni API konsolunda açın

Təfərrüatlar

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.

Parametrlər

AdTipTələb olunurNədir
org_id (query)UuidXeyrThe organization whose profile to replace; defaults to the caller's own.

Sorğu gövdəsi

AdTipTələb olunurNədir
legal_namestringXeyr
company_namestringXeyr
billing_addressBillingAddressBəliA 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_numberstringXeyr
tax_idLabelValueXeyr
custom_invoice_fieldsLabelValue[]Xeyr
billing_emailstringXeyr
invoice_localestringXeyr

Cavab

AdTipTələb olunurNədir
org_idstringBəli
legal_namestringBəli
company_namestringBəli
billing_addressBillingAddressBəliA 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_numberstringBəli
vat_statusstring<unvalidated, pending, valid, invalid>BəliState 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_idLabelValueXeyrA free-label secondary tax id (US EIN, AU ABN, …). Null when unset.
custom_invoice_fieldsLabelValue[]BəliUp to five customer-defined {label, value} lines, rendered verbatim.
billing_emailstringBəliWhere invoices are delivered; blank means the account email.
invoice_localestringBəliPreferred invoice language; blank means the account language.
updated_atstringXeyrWhen the profile was last saved. Null if it has never been saved.

Bu son nöqtənin qaytara biləcəyi xətalar

401 · 403 · 422 · 429