billing

PUT /v1/billing/profile

Replace the organization's billing profile.

すべての billing エンドポイント

認証

ベアラー トークンとして API キーを送信します。キーには billing.invoice.manage 権限が付与されている必要があります。権限のないキーは 404 ではなく 403 で拒否されます。

組織 ID を入力する場所

このエンドポイントはクエリパラメータとして org_id を受け取ります。省略した場合はテナントサブツリー全体が対象になり、指定した場合は特定の組織のみに絞り込まれます。

組織IDは、ダッシュボードのAPIキー画面にキーのすぐ横に表示されています。これは、実行するすべての呼び出しで同じIDになります。

試してみる

アングルブラケット内のすべてをご自身の値に置き換え、キーのプレースホルダーをご利用中のダッシュボードのキーに置き換えてください。

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

ログインしていますか?ダッシュボード内のAPIコンソールでは、実際の組織IDやお客様ご自身のキーが自動入力され、ライブAPIに対してリクエストが実行されるため、実際のレスポンスを確認することができます。 API コンソールでこのエンドポイントを開く

詳細

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.

パラメータ

名前タイプ必須これがその内容です
org_id (query)UuidいいえThe organization whose profile to replace; defaults to the caller's own.

リクエスト本文

名前タイプ必須これがその内容です
legal_namestringいいえ
company_namestringいいえ
billing_addressBillingAddressはいA 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_numberstringいいえ
tax_idLabelValueいいえ
custom_invoice_fieldsLabelValue[]いいえ
billing_emailstringいいえ
invoice_localestringいいえ

返信

名前タイプ必須これがその内容です
org_idstringはい
legal_namestringはい
company_namestringはい
billing_addressBillingAddressはいA 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_numberstringはい
vat_statusstring<unvalidated, pending, valid, invalid>はいState 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_idLabelValueいいえA free-label secondary tax id (US EIN, AU ABN, …). Null when unset.
custom_invoice_fieldsLabelValue[]はいUp to five customer-defined `{label, value}` lines, rendered verbatim.
billing_emailstringはいWhere invoices are delivered; blank means the account email.
invoice_localestringはいPreferred invoice language; blank means the account language.
updated_atstringいいえWhen the profile was last saved. Null if it has never been saved.

このエンドポイントが返すエラー

401 · 403 · 422 · 429