付款

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

gateway_transaction_query

寫入核可:不用

向金流查一筆交易;金流說已經付款的話,把付款記到請款單上。

給 Agent 的原文

Ask the payment gateway about a transaction; when it says paid, the payment is recorded on the bill.

參數

名稱型別必填說明
idstring必填
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.

授權項目:payments:record

核可:不用

查線上付款的金流交易(新的在前),或用 id 查一筆和它收到的通知。

給 Agent 的原文

Search online payment transactions (newest first), or get one with its notifications by id.

參數

名稱型別必填說明
idstring(可以是 null)Get one transaction with its notifications instead of searching
limitintegerdefault: 20
cursorstring(可以是 null)
created_fromdate(可以是 null)
created_todate(可以是 null)
statusesPENDING | AWAITING_PAYMENT | PAID | FAILED | UNMATCHED[](可以是 null)
keywordstringPart of the transaction number or bill number

授權項目:payments:read

payment_record

寫入核可:一定要

記錄一筆不是經金流收到的付款(例如轉帳、現金),回更新後的請款單。一定要人核可。

給 Agent 的原文

Record a manual payment (bank transfer, cash…) on a bill. Returns the updated bill.

參數

名稱型別必填說明
billstring必填Bill number (BL-000001) or id
amountstring必填
methodBANK_TRANSFER | CASH | CHECK | CREDIT_CARD | OTHER | ATM | CVS | BARCODE必填
paid_datedate必填
referencestring
notestring
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.

授權項目:payments:record

核可:不用

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

給 Agent 的原文

Search payments, newest payment date first; voided ones only with include_voided.

參數

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

授權項目:payments:read

payment_void

寫入核可:一定要

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

給 Agent 的原文

Void a manual payment (the record stays). Returns the updated bill.

參數

名稱型別必填說明
payment_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.

授權項目:payments:void

unmatched_payment_resolve

寫入核可:一定要

把一筆重複或多付的款項標成已處理,附上怎麼處理的說明。一定要人核可。

給 Agent 的原文

Mark an unmatched online payment as handled, with a note on how.

參數

名稱型別必填說明
idstring必填
notestring必填How it was handled (1 to 200 characters)
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.

授權項目:payments:record

核可:不用

查沒辦法記到請款單上的線上付款(重複或多付的款項);沒帶 include_resolved 只回還沒處理的。

給 Agent 的原文

Search online payments that could not be recorded on their bill; only unresolved ones unless include_resolved.

參數

名稱型別必填說明
limitintegerdefault: 20
cursorstring(可以是 null)
include_resolvedbooleandefault: false

授權項目:payments:read