- 文档介绍
- 认证
- 账户
- 余额
- 申请收款账户
- 收款账户
- 收单
- 入账
- 汇率
- 换汇
- 付款
- 转账
- 流水
- 账户实名更新请求
- 收款人
- 模拟
- Webhooks
- 通知
转账失败
POST
/transfer_failed
请求参数
Body 参数application/json
type
string
必需
data
object (Transfer)
必需
id
string
订单 ID
order_no
string
订单号
request_id
string
必需
reference
string
必需
from_account_id
string
转出账户
to_account_id
string
转入账户
amount
integer
金额,单位为分
currency
string
币种
purpose
string | null
转账原因
status
enum<string>
状态
枚举值:
PENDINGSUCCESSFAILED
reason
string | null
订单失败原因
create_time
string
订单创建时间
update_time
string
订单更新时间
completed_time
string | null
订单完成时间
示例
{
"type": "string",
"data": {
"id": "string",
"order_no": "string",
"request_id": "string",
"reference": "string",
"from_account_id": "string",
"to_account_id": "string",
"amount": 0,
"currency": "string",
"purpose": "string",
"status": "PENDING",
"reason": "string",
"create_time": "string",
"update_time": "string",
"completed_time": "string"
}
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://demo-api.easypayx.com/transfer_failed' \
--header 'Authorization: Bearer ' \
--header 'Content-Type: application/json' \
--data-raw '{
"type": "string",
"data": {
"id": "string",
"order_no": "string",
"request_id": "string",
"reference": "string",
"from_account_id": "string",
"to_account_id": "string",
"amount": 0,
"currency": "string",
"purpose": "string",
"status": "PENDING",
"reason": "string",
"create_time": "string",
"update_time": "string",
"completed_time": "string"
}
}'
返回响应
🟢200成功
application/json
Body
object {0}
示例
{}
修改于 2023-05-26 04:17:28