agency-invoicing

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

Edit a draft invoice.

agency-invoicing အားလုံးသော အဆုံးသတ်များ

စစ်မှန်ကြောင်း အတည်ပြုခြင်း

API သော့တစ်ခုကို bearer token အဖြစ် ပို့ပါ။ သော့တွင် agency.invoicing.manage ခွင့်ပြုချက် ပါရှိရမည်ဖြစ်ပြီး၊ ၎င်းမပါရှိသော သော့ကို 404 အစား 403 ဖြင့် ငြင်းပယ်ပါမည်။

သင့်အဖွဲ့အစည်း၏ id ထည့်သွင်းရမည့်နေရာ

ဤအစွန်အဖျား (endpoint) သည် org_id ကို မေးမြန်းချက် ကန့်သတ်ဘောင် (query parameter) အဖြစ် လက်ခံပါသည်။ ၎င်းကို ချန်လှပ်ထားပါက ခေါ်ဆိုမှုသည် သင်၏ ငှားရမ်းမှု လက်အောက်ခံသစ်ပင် (tenancy subtree) တစ်ခုလုံးကို လွှမ်းခြုံမည်ဖြစ်ပြီး၊ အဖွဲ့အစည်းတစ်ခုတည်းသို့ ကန့်သတ်ခေါ်ဆိုရန် ၎င်းကို ပေးပို့ပါ။

သင့်အဖွဲ့အစည်း id သည် သင်၏ ဒက်ရှ်ဘုတ်ရှိ API သော့များ မျက်နှာပြင်တွင်၊ သော့၏ ဘေး၌ ရှိပါသည်။ ၎င်းသည် သင်ပြုလုပ်သည့် ခေါ်ဆိုမှုတိုင်းတွင် တူညီသော id ဖြစ်ပါသည်။

စမ်းကြည့်ရန်

ထောင့်ချိတ်များအတွင်းရှိ မည်သည့်အရာကိုမဆို သင်၏ကိုယ်ပိုင်တန်ဖိုးများဖြင့် အစားထိုးပြီး သင့်ဒက်ရှ်ဘုတ်မှ သော့ချက်တစ်ခုဖြင့် key ကို အစားထိုးပါ။

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

ဝင်ရောက်ပြီးပြီလား။ သင့်ဒက်ရှ်ဘုတ်ရှိ API ကွန်ဆိုးလ်တွင် သင့်၏ တကယ့်အဖွဲ့အစည်း ID နှင့် သင့်ကိုယ်ပိုင်သော့ချက်တို့ဖြင့် ဖြည့်သွင်းပေးပြီး တကယ့်တုံ့ပြန်ချက်ကို သင်မြင်နိုင်ရန် တိုက်ရိုက် API (live API) ကို အသုံးပြု၍ တောင်းဆိုမှုကို လုပ်ဆောင်ပေးပါသည်။ ဤအဆုံးသတ်အမှတ် (endpoint) ကို API ကွန်ဆိုးလ်တွင် ဖွင့်ပါ

အသေးစိတ်အချက်အလက်များ

⛔ 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