资金划转接口
根据转账Id查询转账请求信息
Body
currencystringOptional
amountnumberOptional
Responses
200
OK
*/*
post
POST /v1/transfer/request/wallet/to/spots HTTP/1.1
Host: dex-api.benpay.com
Content-Type: application/json
Accept: */*
Content-Length: 30
{
"currency": "text",
"amount": 1
}
200
OK
{
"success": true,
"data": {
"transferId": "text",
"success1": true,
"success2": true,
"done1": true,
"done2": true,
"transferFrom": "WALLET",
"transferTo": "WALLET",
"fromUserId": 1,
"toUserId": 1,
"amount": 1,
"errorCode": "text",
"createdAt": 1,
"updatedAt": 1,
"status": "PROCESSING",
"currency": "text"
},
"error": "text",
"errorField": "text",
"errorMessage": "text"
}
Body
currencystringOptional
amountnumberOptional
Responses
200
OK
*/*
post
POST /v1/transfer/request/wallet/to/contracts HTTP/1.1
Host: dex-api.benpay.com
Content-Type: application/json
Accept: */*
Content-Length: 30
{
"currency": "text",
"amount": 1
}
200
OK
{
"success": true,
"data": {
"transferId": "text",
"success1": true,
"success2": true,
"done1": true,
"done2": true,
"transferFrom": "WALLET",
"transferTo": "WALLET",
"fromUserId": 1,
"toUserId": 1,
"amount": 1,
"errorCode": "text",
"createdAt": 1,
"updatedAt": 1,
"status": "PROCESSING",
"currency": "text"
},
"error": "text",
"errorField": "text",
"errorMessage": "text"
}
Body
currencystringOptional
amountnumberOptional
Responses
200
OK
*/*
post
POST /v1/transfer/request/spots/to/wallet HTTP/1.1
Host: dex-api.benpay.com
Content-Type: application/json
Accept: */*
Content-Length: 30
{
"currency": "text",
"amount": 1
}
200
OK
{
"success": true,
"data": {
"transferId": "text",
"success1": true,
"success2": true,
"done1": true,
"done2": true,
"transferFrom": "WALLET",
"transferTo": "WALLET",
"fromUserId": 1,
"toUserId": 1,
"amount": 1,
"errorCode": "text",
"createdAt": 1,
"updatedAt": 1,
"status": "PROCESSING",
"currency": "text"
},
"error": "text",
"errorField": "text",
"errorMessage": "text"
}
Body
currencystringOptional
amountnumberOptional
Responses
200
OK
*/*
post
POST /v1/transfer/request/contracts/to/wallet HTTP/1.1
Host: dex-api.benpay.com
Content-Type: application/json
Accept: */*
Content-Length: 30
{
"currency": "text",
"amount": 1
}
200
OK
{
"success": true,
"data": {
"transferId": "text",
"success1": true,
"success2": true,
"done1": true,
"done2": true,
"transferFrom": "WALLET",
"transferTo": "WALLET",
"fromUserId": 1,
"toUserId": 1,
"amount": 1,
"errorCode": "text",
"createdAt": 1,
"updatedAt": 1,
"status": "PROCESSING",
"currency": "text"
},
"error": "text",
"errorField": "text",
"errorMessage": "text"
}
Responses
200
OK
*/*
get
GET /v1/wallet/currencyMappings HTTP/1.1
Host: dex-api.benpay.com
Accept: */*
200
OK
{
"success": true,
"data": [
{
"currencyId": 1,
"address": "text",
"name": "text",
"symbol": "text",
"decimals": 1,
"iconUrl": "text"
}
],
"error": "text",
"errorField": "text",
"errorMessage": "text"
}
Path parameters
transferIdstringRequired
Responses
200
OK
*/*
get
GET /v1/transfer/{transferId}/request HTTP/1.1
Host: dex-api.benpay.com
Accept: */*
200
OK
{
"success": true,
"data": {
"transferId": "text",
"success1": true,
"success2": true,
"done1": true,
"done2": true,
"transferFrom": "WALLET",
"transferTo": "WALLET",
"fromUserId": 1,
"toUserId": 1,
"amount": 1,
"errorCode": "text",
"createdAt": 1,
"updatedAt": 1,
"status": "PROCESSING",
"currency": "text"
},
"error": "text",
"errorField": "text",
"errorMessage": "text"
}
Path parameters
transferIdstringRequired
Responses
200
OK
*/*
get
GET /v1/transfer/{transferId}/log HTTP/1.1
Host: dex-api.benpay.com
Accept: */*
200
OK
{
"success": true,
"data": [
{
"id": 1,
"transferId": "text",
"receiver": true,
"done": true,
"success": true,
"userId": 1,
"accountId": 1,
"transferFrom": "WALLET",
"transferTo": "WALLET",
"amount": 1,
"createdAt": 1,
"updatedAt": 1,
"currency": "text"
}
],
"error": "text",
"errorField": "text",
"errorMessage": "text"
}
Query parameters
offsetIdinteger · int64OptionalDefault:
0
maxResultsinteger · int32OptionalDefault:
100
Responses
200
OK
*/*
get
GET /v1/transfer/transfer/logs HTTP/1.1
Host: dex-api.benpay.com
Accept: */*
200
OK
{
"hasMore": true,
"nextOffsetId": 1,
"results": [
{
"id": 1,
"transferId": "text",
"receiver": true,
"done": true,
"success": true,
"userId": 1,
"accountId": 1,
"transferFrom": "WALLET",
"transferTo": "WALLET",
"amount": 1,
"createdAt": 1,
"updatedAt": 1,
"currency": "text"
}
]
}
Last updated