agency-invoicing

POST /v1/agency-invoicing/invoices/{invoiceId}/payments

Record money received — mark it paid or part-paid.

Të gjitha pikat e skajshme agency-invoicing

Autentifikimi

Drgoni një çelës API si një token mbajtës. Çelësi duhet të ketë lejen agency.invoicing.manage; një çelës pa të refuzohet me 403, jo 404.

Ku shkon id i organizatës suaj

Ky endpoint pranon org_id si parametër kërkimi. Lëreni bosh dhe thirrja do të mbulojë të gjithë nëndrurin tuaj të qiramarrjes; dërgojeni atë për ta ngushtuar thirrjen në një organizatë të vetme.

ID-ja e organizatës suaj ndodhet në ekranin e çelësave API në panelin tuaj të kontrollit, pranë vetë çelësit. Është i njëjti ID në çdo thirrje që bëni.

Provoje

Zëvendësoni çdo gjë brenda kllapave këndore me vlerat tuaja dhe vendbanuesin e çelësit me një çelës nga paneli juaj.

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

Jeni kyçur? Konsola e API-së në panelin tuaj plotëson ID-në tuaj reale të organizatës dhe çelësin tuaj, dhe ekzekuton kërkesën kundrejt API-së live, kështu që ju mund të shihni përgjigjen aktuale. Hapni këtë pikë fundore në konsolën e API-së

Detajet

Defaults to the outstanding balance. The invoice's status is re-derived from the SUM of its payment rows, never incremented, so the two can never disagree. Requires `agency.invoicing.manage`.

Parametrat

EmriLlojiKërkohetÇfarë është kjo
invoiceId (path)UuidPo
org_id (query)UuidJoWhich 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…

Trupi i kërkesës

EmriLlojiKërkohetÇfarë është kjo
amount_minorintegerJoDefaults to the outstanding balance.
methodstring<card, wallet, crypto, bank_transfer, cash, cheque, other>Jo
notestringJo

Përgjigja

EmriLlojiKërkohetÇfarë është kjo
idUuidPoUUIDv7 identifier — sortable by creation time (docs/02 §8).
numberstringJoThe 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>Po
is_overduebooleanJo⭐ 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_idUuidJoUUIDv7 identifier — sortable by creation time (docs/02 §8).
client_namestringJo
currencystringPo
issue_datestringPo
due_datestringJo
referencestringJo
notesstringJo
footerstringJo
subtotal_minorintegerJo
discount_minorintegerJo
tax_minorintegerJo
total_minorintegerPo
amount_paid_minorintegerJo
amount_due_minorintegerJo
tax_breakdownAgencyInvoiceTaxGroup[]Jo
sourcestringJoWhere the invoice came from — `time_tracking` when it was generated from tracked hours, empty when an agency typed it.
sent_atstringJo
last_sent_tostringJo
paid_atstringJo
void_reasonstringJo
created_atstringJo
linesAgencyInvoiceLine[]Jo
paymentsAgencyInvoicePayment[]Jo
portal_urlstringJoThe 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,…

Gabimet që ky pikëndalim mund të kthejë

401 · 403 · 404 · 422 · 429