billing

GET /v1/billing/profile

Get the organization's billing profile.

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

認証

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

組織 ID を入力する場所

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

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

試してみる

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

curl -X GET https://api.zinndigital.com/v1/billing/profile \
  -H "Authorization: Bearer zdk_live_…"

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

詳細

Returns the customer's one "Bill to" block — what renders on the next invoice (docs/34 §2.5). An organization that has never saved one gets a **200 with an empty profile** (every field blank, `updated_at` null), not a 404, so the form always has a shape to render. Requires `billing.view`.

パラメータ

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

返信

名前タイプ必須これがその内容です
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