agency-invoicing
PATCH /v1/agency-invoicing/profile
Change your invoicing identity or defaults.
Аутентификација
Пошаљите API кључ као bearer токен. Кључ мора имати дозволу agency.invoicing.manage; кључ без ње се одбија уз 403, а не 404.
Где се уноси ID ваше организације
Ова крајња тачка прихвата org_id као параметар упита. Изоставите га и позив ће обухватити цело подстабло вашег закупа; пошаљите га да бисте сузили позив на једну организацију.
Идентификатор ваше организације се налази на екрану са API кључевима на вашој контролној табли, поред самог кључа. То је исти идентификатор у сваком позиву који упутите.
Испробајте
Замените све што је у угластим заградама сопственим вредностима, а чувар места кључа кључем са своје контролне табле.
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_name | string | Не | — |
address | string | Не | — |
email | string | Не | — |
phone | string | Не | — |
website | string | Не | — |
tax_number_label | string | Не | — |
tax_number | string | Не | — |
payment_instructions | string | Не | — |
logo_sha256 | string | Не | — |
accent_colour | string | Не | — |
default_currency | string | Не | — |
default_payment_terms_days | integer | Не | — |
default_footer | string | Не | — |
default_notes | string | Не | — |
number_prefix | string | Не | — |
number_padding | integer | Не | — |
Одговор
| Назив | Тип | Обавезно | Шта је ово |
|---|---|---|---|
business_name | string | Не | — |
address | string | Не | The registered address, one line per newline. Free-form because address shape is a property of a country, not of our schema. |
email | string | Не | — |
phone | string | Не | — |
website | string | Не | — |
tax_number_label | string | Не | 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_number | string | Не | — |
payment_instructions | string | Не | 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_sha256 | string | Не | 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_colour | string | Не | — |
default_currency | string | Да | — |
default_payment_terms_days | integer | Не | — |
default_footer | string | Не | — |
default_notes | string | Не | — |
number_prefix | string | Да | — |
number_padding | integer | Не | — |
next_number | integer | Да | The next sequence number. ⛔ Read-only. Rewinding it would mint a duplicate number for a document already in a client's hands. |
next_number_preview | string | Не | What the next invoice will be called, e.g. INV-0042. |
Грешке које ова крајња тачка може вратити
401 · 403 · 404 · 422 · 429