查询与管理收款链接
文档修订ID: r-3ac48d4601ebec0c
/cash/v1/merchant/payment-links 鉴权: API Key(Bearer)checkout:write按创建时间倒序列出这把 Key 所属账户和环境下的收款链接,返回 { ok, paymentRequests, nextCursor },没有 data 包装。每一项都是 收款链接 页里说的完整收款请求对象(上面的示例有删节)。在控制台建的链接是正式链接,会出现在正式 Key 的列表里。
分页
把上一页的 nextCursor 作为 cursor 传入就拿到下一页;最后一页的 nextCursor 为 null。cursor 不是 UUID 时返回 400 CASH_PAYMENT_REQUEST_CURSOR_INVALID;传入不存在的 id 会返回空列表,nextCursor 也是 null,和最后一页看不出区别,所以请只传接口返回的 nextCursor。status 是精确匹配:不认识的状态只会返回空列表。
详情
GET /cash/v1/merchant/payment-links/{id} 返回 { ok, paymentRequest, attempts }。attempts 是这条链接最近 20 次支付尝试,按时间倒序:都是收单订单,带 id、orderNo、amount、payableAmount、receivedAmount、underpaidToleranceBps、、、、、、 和 ,字段与收银台会话相同。付款人选了链接币种以外的加密资产时,这次尝试的 和 是该资产, 里是链接的价格(、,以及 、、、、、、、、 和 ;见 );其余尝试的 为 。id 不存在、属于别的账户或环境、或是一张账单时,返回 。
参数
| 名称 | 位置 | 类型 | 必填 | 说明 |
|---|---|---|---|---|
| status | query | string | 否 | 只列这个状态的链接:active、paused、completed、expired 或 archived。 |
| limit | query | integer | 否 | 1 到 100,默认 20。 |
| cursor | query | string | 否 | 上一页返回的 nextCursor。 |
{
"status": "active",
"limit": 20
}{
"ok": true,
"paymentRequests": [
{
"id": "0b6f4d1e-5c2a-4f7e-9d3b-8a1c2e4f6a70",
"object": "payment_link",
"kind": "link",
"environment": "live",
"status": "active",
"statusReason": null,
"payable": true,
"currency": "USDT",
"amountMode": "fixed",
"amount": "25",
"paidAmount": "0",
"paidCount": 0,
"maxUses": 100,
"title": "Coffee beans, 1 kg",
"createdAt": "2026-10-21T08:00:00.000Z",
"pageUrl": "https://moin.cash/checkout/l/4f9c2b7d1e0a8c6b5d3f2e1a0b9c8d7e"
}
],
"nextCursor": "0b6f4d1e-5c2a-4f7e-9d3b-8a1c2e4f6a70"
}代码示例
curl -X GET 'https://api.moin.cash/cash/v1/merchant/payment-links?status=active&limit=20' \
-H 'Authorization: Bearer ck_live_xxxxxxxxxxxxxxxx'