agency-invoicing

GET /v1/agency-invoicing/invoices/{invoiceId}

One invoice, with its lines, payments and payment link.

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

認証

ベアラー トークンとして API キーを送信します。このエンドポイントでは仕様に特定の権限が記載されていないため、キーに必要な最小限の権限を付与し、推測するのではなくレスポンスを確認してください。

組織 ID を入力する場所

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

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

試してみる

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

curl -X GET https://api.zinndigital.com/v1/agency-invoicing/invoices/{invoiceId} \
  -H "Authorization: Bearer zdk_live_…"

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

パラメータ

名前タイプ必須これがその内容です
invoiceId (path)Uuidはい
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…

返信

名前タイプ必須これがその内容です
idUuidはいUUIDv7 identifier — sortable by creation time (docs/02 §8).
numberstringいいえThe agency's own number. ⛔ Empty until issue: a number allocated to something that may never be sent leaves a hole in a sequence.
statusstring<draft, sent, partially_paid, paid, void>はい
is_overduebooleanいいえ⭐ DERIVED from the due date and the status, never stored — so there is no sweep to maintain a flag and nothing to go stale. A draft is never overdue however old it is: nobody ha…
client_idUuidいいえUUIDv7 identifier — sortable by creation time (docs/02 §8).
client_namestringいいえ
currencystringはい
issue_datestringはい
due_datestringいいえ
referencestringいいえ
notesstringいいえ
footerstringいいえ
subtotal_minorintegerいいえ
discount_minorintegerいいえ
tax_minorintegerいいえ
total_minorintegerはい
amount_paid_minorintegerいいえ
amount_due_minorintegerいいえ
tax_breakdownAgencyInvoiceTaxGroup[]いいえ
sourcestringいいえWhere the invoice came from — `time_tracking` when it was generated from tracked hours, empty when an agency typed it.
sent_atstringいいえ
last_sent_tostringいいえ
paid_atstringいいえ
void_reasonstringいいえ
created_atstringいいえ
linesAgencyInvoiceLine[]いいえ
paymentsAgencyInvoicePayment[]いいえ
portal_urlstringいいえThe payment link to send to the client. ⛔ Returned on a SINGLE-invoice read only, never in a list: a list is the thing that gets logged, cached and pasted into a support ticket,…

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

401 · 403 · 404 · 429