agency-invoicing

PATCH /v1/agency-invoicing/invoices/{invoiceId}

Edit a draft invoice.

Vituo vyote vya agency-invoicing

Uthibitishaji

Tuma ufunguo wa API kama tokeni ya kubeba. Ufunguo lazima uwe na ruhusa ya agency.invoicing.manage; ufunguo usio nayo unakataliwa kwa 403, si 404.

Mahali ambapo kitambulisho cha shirika lako huwekwa

Kigezo hiki kinachukua org_id kama kigezo cha utafutaji. Iache wazi na simu itashughulikia tawi lako lote la wapangaji; itume ili kupunguza simu iwe ya shirika moja tu.

Kitambulisho cha shirika lako kipo kwenye skrini ya funguo za API katika dashibodi yako, kando ya ufunguo wenyewe. Ni kitambulisho kile kile katika kila ombi unalofanya.

Jaribu

Badilisha chochote kilicho ndani ya mabano ya pembe na maadili yako mwenyewe, na kishikiliaji cha ufunguo na ufunguo kutoka kwa dashibodi yako.

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

Umeingia kwenye akaunti? Dashibodi yako ya kiweko cha API inajaza kitambulisho chako halisi cha shirika na ufunguo wako mwenyewe, na kuendesha ombi dhidi ya API ya moja kwa moja ili uweze kuona jibu halisi. Fungua sehemu hii ya mwisho (endpoint) kwenye konsole ya API

Maelezo

⛔ A `409` means the invoice has been issued and its figures are frozen. A sent invoice is a document your client is holding — void it and issue a replacement rather than restating it. Requires `agency.invoicing.manage`.

Vigezo

JinaAinaInayohitajikaKilicho hiki
invoiceId (path)UuidNdiyo
org_id (query)UuidHapanaWhich 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…

Mwili wa ombi

JinaAinaInayohitajikaKilicho hiki
currencystringHapana
issue_datestringHapana
due_datestringHapana
referencestringHapana
notesstringHapana
footerstringHapana
linesAgencyInvoiceLineWrite[]Hapana

Majibu

JinaAinaInayohitajikaKilicho hiki
idUuidNdiyoUUIDv7 identifier — sortable by creation time (docs/02 §8).
numberstringHapanaThe 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>Ndiyo
is_overduebooleanHapana⭐ 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_idUuidHapanaUUIDv7 identifier — sortable by creation time (docs/02 §8).
client_namestringHapana
currencystringNdiyo
issue_datestringNdiyo
due_datestringHapana
referencestringHapana
notesstringHapana
footerstringHapana
subtotal_minorintegerHapana
discount_minorintegerHapana
tax_minorintegerHapana
total_minorintegerNdiyo
amount_paid_minorintegerHapana
amount_due_minorintegerHapana
tax_breakdownAgencyInvoiceTaxGroup[]Hapana
sourcestringHapanaWhere the invoice came from — `time_tracking` when it was generated from tracked hours, empty when an agency typed it.
sent_atstringHapana
last_sent_tostringHapana
paid_atstringHapana
void_reasonstringHapana
created_atstringHapana
linesAgencyInvoiceLine[]Hapana
paymentsAgencyInvoicePayment[]Hapana
portal_urlstringHapanaThe 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,…

Hitilafu ambazo mwisho huu unaweza kurudisha

401 · 403 · 404 · 409 · 422 · 429