agency-invoicing

PATCH /v1/agency-invoicing/profile

Change your invoicing identity or defaults.

Bütün agency-invoicing nöqtələri

Doğrulama

API açarını bearer token kimi göndərin. Açar agency.invoicing.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 PATCH https://api.zinndigital.com/v1/agency-invoicing/profile \
  -H "Authorization: Bearer zdk_live_…" \
  -H "Content-Type: application/json" \
  -d '{  }'

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

⛔ `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`.

Parametrlər

AdTipTələb olunurNədir
org_id (query)UuidXeyrWhich 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…

Sorğu gövdəsi

AdTipTələb olunurNədir
business_namestringXeyr
addressstringXeyr
emailstringXeyr
phonestringXeyr
websitestringXeyr
tax_number_labelstringXeyr
tax_numberstringXeyr
payment_instructionsstringXeyr
logo_sha256stringXeyr
accent_colourstringXeyr
default_currencystringXeyr
default_payment_terms_daysintegerXeyr
default_footerstringXeyr
default_notesstringXeyr
number_prefixstringXeyr
number_paddingintegerXeyr

Cavab

AdTipTələb olunurNədir
business_namestringXeyr
addressstringXeyrThe registered address, one line per newline. Free-form because address shape is a property of a country, not of our schema.
emailstringXeyr
phonestringXeyr
websitestringXeyr
tax_number_labelstringXeyrWhat 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_numberstringXeyr
payment_instructionsstringXeyrBank 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_sha256stringXeyrA 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_colourstringXeyr
default_currencystringBəli
default_payment_terms_daysintegerXeyr
default_footerstringXeyr
default_notesstringXeyr
number_prefixstringBəli
number_paddingintegerXeyr
next_numberintegerBəliThe next sequence number. ⛔ Read-only. Rewinding it would mint a duplicate number for a document already in a client's hands.
next_number_previewstringXeyrWhat the next invoice will be called, e.g. `INV-0042`.

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

401 · 403 · 404 · 422 · 429