agency-invoicing

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

Edit a draft invoice.

அனைத்து agency-invoicing இறுதிப்புள்ளிகளும்

அங்கீகாரம்

பியரர் டோக்கனாக (bearer token) ஒரு API விசையை அனுப்பவும். அந்த விசை agency.invoicing.manage அனுமதியைக் கொண்டிருக்க வேண்டும்; அது இல்லாத விசை 404 அல்ல, 403 குறியீட்டுடன் மறுக்கப்படும்.

உங்கள் அமைப்பு ஐடி எங்கு செல்ல வேண்டும்

இந்த எண்ட் பாயிண்ட் org_id என்பதை வினவல் அளபுருவாக (query parameter) எடுத்துக்கொள்கிறது. இதை விட்டுவிட்டால், அழைப்பு உங்கள் முழு டெனன்சி துணை மரத்தையும் (tenancy subtree) உள்ளடக்கும்; ஒரு நிறுவனத்திற்கு மட்டுமே அழைப்பைக் சுருக்க இதை அனுப்பவும்.

உங்கள் நிறுவன ஐடி உங்கள் டாஷ்போர்டில் உள்ள API விசைகள் திரையில், விசைக்கு அருகிலேயே உள்ளது. நீங்கள் செய்யும் ஒவ்வொரு அழைப்பிலும் இதுவே ஒரே ஐடி ஆகும்.

முயன்று பார்

கோண அடைப்புக்குறிகளில் உள்ள எதையும் உங்கள் சொந்த மதிப்புகளுடன் மாற்றவும், மேலும் விசை பிளேஸ்ஹோல்டரை உங்கள் டாஷ்போர்டில் உள்ள விசையுடன் மாற்றவும்.

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

உள்நுழைந்துள்ளீர்களா? உங்கள் டேஷ்போர்டில் உள்ள ஏபிஐ கன்சோல் உங்கள் உண்மையான நிறுவன ஐடி மற்றும் உங்கள் சொந்த சாவியை நிரப்புகிறது, மேலும் நேரலை ஏபிஐக்கு எதிராக கோரிக்கையை இயக்குகிறது, இதனால் நீங்கள் உண்மையான பதிலைக் காண முடியும். இந்த எண்ட்மார்க்கை ஏபிஐ கன்சோலில் திறக்கவும்

விவரங்கள்

⛔ 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`.

அளவுருக்கள்

பெயர்வகைதேவைப்படுகிறதுஅது என்ன
invoiceId (path)Uuidஆம்
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…

கோரிக்கை உடல்

பெயர்வகைதேவைப்படுகிறதுஅது என்ன
currencystringஇல்லை
issue_datestringஇல்லை
due_datestringஇல்லை
referencestringஇல்லை
notesstringஇல்லை
footerstringஇல்லை
linesAgencyInvoiceLineWrite[]இல்லை

பதில்

பெயர்வகைதேவைப்படுகிறதுஅது என்ன
idUuidஆம்UUIDv7 identifier — sortable by creation time (docs/02 §8).
numberstringஇல்லைThe 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>ஆம்
is_overduebooleanஇல்லை⭐ 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_idUuidஇல்லைUUIDv7 identifier — sortable by creation time (docs/02 §8).
client_namestringஇல்லை
currencystringஆம்
issue_datestringஆம்
due_datestringஇல்லை
referencestringஇல்லை
notesstringஇல்லை
footerstringஇல்லை
subtotal_minorintegerஇல்லை
discount_minorintegerஇல்லை
tax_minorintegerஇல்லை
total_minorintegerஆம்
amount_paid_minorintegerஇல்லை
amount_due_minorintegerஇல்லை
tax_breakdownAgencyInvoiceTaxGroup[]இல்லை
sourcestringஇல்லைWhere the invoice came from — `time_tracking` when it was generated from tracked hours, empty when an agency typed it.
sent_atstringஇல்லை
last_sent_tostringஇல்லை
paid_atstringஇல்லை
void_reasonstringஇல்லை
created_atstringஇல்லை
linesAgencyInvoiceLine[]இல்லை
paymentsAgencyInvoicePayment[]இல்லை
portal_urlstringஇல்லைThe 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,…

இந்த எண்ட்ஸ்பாயிண்ட் திரும்ப அனுப்பக்கூடிய பிழைகள்

401 · 403 · 404 · 409 · 422 · 429