agency-invoicing

POST /v1/agency-invoicing/invoices

Start a draft invoice.

Minden agency-invoicing végpont

Hitelesítés

Küldjön egy API-kulcsot bearer tokenként. A kulcsnak rendelkeznie kell a(z) agency.invoicing.manage jogosultsággal; az ezzel nem rendelkező kulcsok esetén a rendszer 403-as hibát ad vissza 404 helyett.

A szervezet azonosítójának helye

Ez a végpont a(z) org_id paramétert lekérdezési paraméterként várja. Hagyja ki, ha a hívás az Ön teljes bérlői részfáját lefedje; küldje el a hívás egyetlen szervezetre történő szűkítéséhez.

A szervezeted azonosítója a vezérlőpult API-kulcsok képernyőjén található, közvetlenül a kulcs mellett. Ez ugyanaz az azonosító minden indított hívásban.

Próbálja ki

Cserélje ki a hegyes zárójelek közötti részt a saját értékeivel, a kulcshelyőrzőt pedig a vezérlőpultján található kulccsal.

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

Be van jelentkezve? A vezérlőpultban lévő API-konzol kitölti a valós szervezetazonosítóját és a saját kulcsát, és a kérést az éles API-n futtatja, hogy láthassa a tényleges választ. Nyissa meg ezt a végpontot az API konzolban

Részletek

Give a `client_id`, or a `client` object to create one inline — a client typed during invoicing is SAVED, so next time you can just select them. ⛔ Totals are never accepted from the caller; they are computed from the lines. Requires `agency.invoicing.manage`.

Paraméterek

NévTípusKötelezőMi ez
org_id (query)UuidNemWhich 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…

Kérés törzse

NévTípusKötelezőMi ez
client_idUuidNemUUIDv7 identifier — sortable by creation time (docs/02 §8).
clientAgencyClientWriteNem
currencystringNem
issue_datestringNem
due_datestringNem
referencestringNem
notesstringNem
footerstringNem
linesAgencyInvoiceLineWrite[]Nem

Válasz

NévTípusKötelezőMi ez
idUuidIgenUUIDv7 identifier — sortable by creation time (docs/02 §8).
numberstringNemThe 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>Igen
is_overduebooleanNem⭐ 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_idUuidNemUUIDv7 identifier — sortable by creation time (docs/02 §8).
client_namestringNem
currencystringIgen
issue_datestringIgen
due_datestringNem
referencestringNem
notesstringNem
footerstringNem
subtotal_minorintegerNem
discount_minorintegerNem
tax_minorintegerNem
total_minorintegerIgen
amount_paid_minorintegerNem
amount_due_minorintegerNem
tax_breakdownAgencyInvoiceTaxGroup[]Nem
sourcestringNemWhere the invoice came from — `time_tracking` when it was generated from tracked hours, empty when an agency typed it.
sent_atstringNem
last_sent_tostringNem
paid_atstringNem
void_reasonstringNem
created_atstringNem
linesAgencyInvoiceLine[]Nem
paymentsAgencyInvoicePayment[]Nem
portal_urlstringNemThe 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,…

Hibák, amelyeket ez a végpont visszaadhattatlan

401 · 403 · 404 · 422 · 429