激活码自动兑换 · 后台秒级确认 · 失败自动退额
输入卖家提供的激活码,再粘贴或扫码填入 PIX 付款码,系统会在后台自动完成支付。提交后请勿重复提交,页面会自动刷新状态。
一次提交多笔 PIX 支付,单次最多 100 条。系统按激活码剩余额度逐条兑换,超出额度的部分会提示失败。
| # | 激活码 | PIX | 状态 | 订单号 |
|---|
买家端接口无需登录,激活码本身即为提交凭证。默认服务地址 https://scan.amazo.indevs.in。所有 POST 接口使用 Content-Type: application/json。
| 状态 | 含义 | 展示 |
|---|---|---|
| queued | 已入库,等待处理 | 处理中 |
| retrying | 上次失败,等待重试 | 处理中 |
| authorizing | 正在自动确认支付 | 处理中 |
| paid | 支付成功,额度已消耗 | 支付成功 |
| failed | 终态失败,额度已退回 | 支付失败 |
| expired | 超时终态,额度已退回 | 支付失败 |
| canceled | 已取消,额度已退回 | 支付失败 |
{
"code": "DP-ABCDEFGH23"
}
// 200 OK
{
"ok": true, "code": "DP-ABCDEFGH23",
"remaining": 3, "total": 5, "used": 1, "held": 1, "message": ""
}
{
"code": "DP-ABCDEFGH23",
"pix_code": "00020126...br.gov.bcb.pix..."
}
// 200 OK
{
"ok": true, "ticket_id": "Txxxxxxxx", "status": "queued",
"message": "已提交,后台处理中"
}
同一激活码 + 同一 PIX 码的未终态订单会复用原订单,不重复扣额度。
{
"items": [
{"code": "DP-AAAA...", "pix_code": "00020126..."},
{"code": "DP-AAAA...", "pix_code": "00020127..."}
]
}
// 200 OK
{
"ok": true,
"results": [
{"ok": true, "code": "DP-AAAA...", "pix_preview": "00020126...x9f2c1",
"ticket_id": "Txxxx", "status": "queued", "message": "已提交,后台处理中"}
],
"summary": {"total": 2, "submitted": 2, "reused": 0, "failed": 0}
}
单次最多 100 条;按激活码剩余额度顺序兑换,额度不足的条目返回失败但不影响其它条目。
{
"ticket_ids": ["Taaaa", "Tbbbb"]
}
// 200 OK
{
"ok": true,
"orders": [
{"ticket_id": "Taaaa", "status": "paid", "last_error": "",
"created_at": "...", "paid_at": "...", "failed_at": null, "expired_at": null}
]
}
// 200 OK
{
"ok": true, "ticket_id": "Txxxx", "status": "paid",
"last_error": "", "created_at": "...", "paid_at": "..."
}
提交成功后每 3-5 秒查询一次状态;paid / failed / expired / canceled 为终态,收到终态即停止轮询。处理中请勿重复提交同一 PIX 码。
以上即买家端全部接口,按上述请求 / 响应直接调用即可,无需额外文档。