退款(Refund)是将已支付的资金返还给付款人的操作。
| 类型 | 说明 |
|---|
| 全额退款 | 退还全部支付金额 |
| 部分退款 | 退还部分金额 |
- 只能退款到原付款地址(原路退回)
- 退款金额不能超过原支付金额
- 一笔支付可以多次部分退款
- 退款需要支付网络手续费
curl -X POST https://api.stablepay.co/v1/refunds \
-H "Authorization: Bearer sk_test_..." \
-d '{
"session_id": "sess_123",
"amount": {"value": "5000", "currency": "USDT"},
"reason": "Customer request"
}'
| 状态 | 说明 |
|---|
PENDING | 待处理 |
PROCESSING | 处理中 |
COMPLETED | 已完成 |
FAILED | 失败 |
- 因反洗钱要求,只支持原路退回
- 退款通常在 1-5 分钟内完成
- 退款完成后会通过 Webhook 通知
A Refund is an operation to return paid funds back to the payer.
| Type | Description |
|---|
| Full Refund | Return full payment amount |
| Partial Refund | Return partial amount |
- Can only refund to original payment address
- Refund amount cannot exceed original payment
- Multiple partial refunds allowed per payment
- Network fees apply to refunds
curl -X POST https://api.stablepay.co/v1/refunds \
-H "Authorization: Bearer sk_test_..." \
-d '{
"session_id": "sess_123",
"amount": {"value": "5000", "currency": "USDT"},
"reason": "Customer request"
}'
| Status | Description |
|---|
PENDING | Pending |
PROCESSING | Processing |
COMPLETED | Completed |
FAILED | Failed |
- Due to AML requirements, only original route refunds are supported
- Refunds typically complete within 1-5 minutes
- Webhook notification sent upon completion