agency-invoicing

PATCH /v1/agency-invoicing/profile

Change your invoicing identity or defaults.

Բոլոր agency-invoicing վերջնակետերը

Նույնականացում

Ուղարկեք API բանալին որպես bearer token: Բանալին պետք է ունենա agency.invoicing.manage թույլտվությունը. առանց դրա բանալին մերժվում է 403, և ոչ թե 404 կարգավիճակով:

Որտեղ տեղադրվում է ձեր կազմակերպության ID-ն

Այs վերջնակետը ընդունում է 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