退款

這一頁從系統實際的 tool 產生。授權項目是權杖要勾的項目;「核可」是 Agent 呼叫之後要不要等人在網站上核可。

refund_create

寫入可試算核可:一定要

在請款單上記錄一筆退款(只記錄,不會經金流退錢);issue_allowance 同時開統一發票的折讓。可以先試算看退款之後的請款單。一定要人核可。

給 Agent 的原文

Record a refund on a bill (only a record: no money moves). issue_allowance also issues an e-invoice allowance. Use dry_run to see the bill after the refund first.

參數

名稱型別必填說明
billstring必填Bill number (BL-000001) or id
amountstring必填
methodBANK_TRANSFER | CASH | CHECK | CREDIT_CARD | OTHER必填
refund_datedate必填
reasonstring必填
referencestring
issue_allowancebooleanAlso issue an e-invoice allowance (needs einvoices:allowance) default: false
dry_runbooleandefault: false
idempotency_keystringRequired for every call that writes (not for dry_run). The same key within 24 hours returns the first result instead of doing it again.

授權項目:refunds:create;issue_allowance 是 true 時,另外要 einvoices:allowance。

核可:不用

查退款,退款日新的在前;作廢的要帶 include_voided 才回。

給 Agent 的原文

Search refunds, newest refund date first; voided ones only with include_voided.

參數

名稱型別必填說明
limitinteger1 to 100 default: 20
cursorstring(可以是 null)next_cursor from the previous page
refund_date_fromdate(可以是 null)
refund_date_todate(可以是 null)
methodsBANK_TRANSFER | CASH | CHECK | CREDIT_CARD | OTHER[](可以是 null)
customer_refstring(可以是 null)
include_voidedbooleandefault: false

授權項目:refunds:read

refund_void

寫入核可:一定要

作廢一筆退款(紀錄留著),回更新後的請款單。一定要人核可。

給 Agent 的原文

Void a refund (the record stays). Returns the updated bill.

參數

名稱型別必填說明
refund_idstring必填
reasonstring必填
idempotency_keystring必填Required for every call that writes (not for dry_run). The same key within 24 hours returns the first result instead of doing it again.

授權項目:refunds:void