llms.txt API v1 · 2026-11-02
Wallet API钱包回调接口

Credit派彩

Pay a settlement (may be 0). The closing credit carries roundClosed: true.派彩(可以是 0)。关局那笔带 roundClosed: true。

POST{callbackUrl}/credit

Implemented by the merchant · called by the platform商户实现 · 平台调用 · timeout超时 10 s

Pay a settlement. Common and transaction fields, plus:

派彩。公共字段与交易字段,另加:

roundClosedbool
true: the last transaction of the round; the round closes on success.true = 本局最后一笔,成功后关局。
bets[]array
{betCode, betAmount, payoutAmount}. On the closing credit: all bets of the round. On a mid-round credit: the bets settled by it.{betCode, betAmount, payoutAmount}。关局派彩时是本局全部注;局中派彩时是这次结算的注。

Response data: merchantTxnId (required on OK), balance after the credit.

响应 data:merchantTxnId(OK 时必填)、派彩后的 balance。

Your answer商户返回What we do平台处理
OKDone.完成。
ROUND_NOT_FOUND · ROUND_CLOSED · TXN_CONFLICT · PLAYER_NOT_FOUND · CURRENCY_MISMATCHFlagged for manual attention and alerted; retries continue (Retries) until you answer OK or we close the case.标「需人工关注」并告警;重试照常继续(重试),直到商户回 OK 或平台人工关闭。
Timeout · transport error · HTTP ≠ 200 · INTERNAL_ERROR · MAINTENANCE · invalid response超时 · 网络错误 · HTTP ≠ 200 · INTERNAL_ERROR · MAINTENANCE · 响应不合规Retry with the identical body (Retries).用相同正文重试(重试)。

Result codes结果码

In addition to the common codes listed in另可能返回通用结果码,见 Result codes结果码.

Test cases测试用例

The conformance test sends the following 9 requests to /credit. Each response must match the expected result exactly.接口对接测试会向 /credit 发送以下 9 个请求,每个响应都必须与期望结果完全一致。 All test cases全部测试用例

SIG-10 blocking阻断级 Closure of wallet round R0关闭钱包局 R0 Expected期望 OK
/credit R0 A roundClosed
DEB-04 blocking阻断级 Winning credit closing wallet round R1派彩关闭钱包局 R1(赢局) Expected期望 OK
/credit R1 T2 seq2 2A roundClosed
balance = B0 + Abalance = B0 + A
MUL-04 blocking阻断级 Closing credit关局派彩 Expected期望 OK
/credit R4 T9 seq4 4A roundClosed, 3 bet lines
MUL-06 blocking阻断级 Credit after round closure关局后的派彩 Expected期望 ROUND_CLOSED
/credit R4 new T seq5 A
MUL-07 blocking阻断级 Idempotent repeat of the closing credit关局派彩幂等重发 Expected期望 OK
/credit T9, identical body
merchantTxnId is identical to MUL-04; no second payment.merchantTxnId 与 MUL-04 一致;未重复派彩。
CRE-01 blocking阻断级 Credit for a round without a successful debit无成功扣款钱包局的派彩 Expected期望 ROUND_NOT_FOUND
/credit R7 A roundClosed
CRE-02 blocking阻断级 Credit with a reused txnId and a different amount同一交易号不同金额的派彩 Expected期望 TXN_CONFLICT
/credit T9 with amount 5A
CON-02 blocking阻断级 Closure of wallet round R14关闭钱包局 R14 Expected期望 OK
/credit R14 A roundClosed
CON-04 blocking阻断级 Concurrent credits in 10 wallet rounds10 个钱包局并发派彩 Expected期望 OK ×10
/credit R15…R24 A roundClosed, in parallel