agency-invoicing

PATCH /v1/agency-invoicing/profile

Change your invoicing identity or defaults.

すべての agency-invoicing エンドポイント

認証

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

組織 ID を入力する場所

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

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

試してみる

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

curl -X PATCH https://api.zinndigital.com/v1/agency-invoicing/profile \
  -H "Authorization: Bearer zdk_live_…" \
  -H "Content-Type: application/json" \
  -d '{  }'

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

詳細

⛔ `next_number` is deliberately NOT settable. Rewinding a sequence would mint a duplicate number for a document already in a client's hands; advancing it leaves a gap a tax authority will ask about. Requires `agency.invoicing.manage`.

パラメータ

名前タイプ必須これがその内容です
org_id (query)UuidいいえWhich of your organizations is invoicing. Required only when you belong to more than one — otherwise it is inferred from your DIRECT membership, never from the subtree-expanded…

リクエスト本文

名前タイプ必須これがその内容です
business_namestringいいえ
addressstringいいえ
emailstringいいえ
phonestringいいえ
websitestringいいえ
tax_number_labelstringいいえ
tax_numberstringいいえ
payment_instructionsstringいいえ
logo_sha256stringいいえ
accent_colourstringいいえ
default_currencystringいいえ
default_payment_terms_daysintegerいいえ
default_footerstringいいえ
default_notesstringいいえ
number_prefixstringいいえ
number_paddingintegerいいえ

返信

名前タイプ必須これがその内容です
business_namestringいいえ
addressstringいいえThe registered address, one line per newline. Free-form because address shape is a property of a country, not of our schema.
emailstringいいえ
phonestringいいえ
websitestringいいえ
tax_number_labelstringいいえWhat the agency calls its tax registration — "VAT number", "ABN", "GSTIN", "EIN". ⛔ Printed only when the number is set too: a label with no number is an empty row, and a number…
tax_numberstringいいえ
payment_instructionsstringいいえBank details or a "PayPal me at …" line, printed on the document verbatim and shown on the payment page. ⭐ Never translated — translating a payment instruction is not a safe act.
logo_sha256stringいいえA digest into the content-addressed logo store, never a URL. That is what lets the PDF inline the mark with no network call at render time.
accent_colourstringいいえ
default_currencystringはい
default_payment_terms_daysintegerいいえ
default_footerstringいいえ
default_notesstringいいえ
number_prefixstringはい
number_paddingintegerいいえ
next_numberintegerはいThe next sequence number. ⛔ Read-only. Rewinding it would mint a duplicate number for a document already in a client's hands.
next_number_previewstringいいえWhat the next invoice will be called, e.g. `INV-0042`.

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

401 · 403 · 404 · 422 · 429