结算加密货币地址列表
curl --request POST \
--url https://sandbox-pay.epay123.net/api/channelbiz/cbcoinpay/settleAddressList \
--header 'Content-Type: application/json' \
--data '
{
"version": "1.0.1",
"signType": "MD5",
"sign": "xxxxxx",
"reqTime": "1622016572190",
"mchNo": "M1234567890",
"appId": "88808634c46ff1a7807888888",
"pageNumber": 1,
"pageSize": 20,
"requestId": "12345678909",
"tokenId": "TRON_USDT",
"address": "TX123456789021345678",
"remark": "remark"
}
'import requests
url = "https://sandbox-pay.epay123.net/api/channelbiz/cbcoinpay/settleAddressList"
payload = {
"version": "1.0.1",
"signType": "MD5",
"sign": "xxxxxx",
"reqTime": "1622016572190",
"mchNo": "M1234567890",
"appId": "88808634c46ff1a7807888888",
"pageNumber": 1,
"pageSize": 20,
"requestId": "12345678909",
"tokenId": "TRON_USDT",
"address": "TX123456789021345678",
"remark": "remark"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
version: '1.0.1',
signType: 'MD5',
sign: 'xxxxxx',
reqTime: '1622016572190',
mchNo: 'M1234567890',
appId: '88808634c46ff1a7807888888',
pageNumber: 1,
pageSize: 20,
requestId: '12345678909',
tokenId: 'TRON_USDT',
address: 'TX123456789021345678',
remark: 'remark'
})
};
fetch('https://sandbox-pay.epay123.net/api/channelbiz/cbcoinpay/settleAddressList', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://sandbox-pay.epay123.net/api/channelbiz/cbcoinpay/settleAddressList",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'version' => '1.0.1',
'signType' => 'MD5',
'sign' => 'xxxxxx',
'reqTime' => '1622016572190',
'mchNo' => 'M1234567890',
'appId' => '88808634c46ff1a7807888888',
'pageNumber' => 1,
'pageSize' => 20,
'requestId' => '12345678909',
'tokenId' => 'TRON_USDT',
'address' => 'TX123456789021345678',
'remark' => 'remark'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://sandbox-pay.epay123.net/api/channelbiz/cbcoinpay/settleAddressList"
payload := strings.NewReader("{\n \"version\": \"1.0.1\",\n \"signType\": \"MD5\",\n \"sign\": \"xxxxxx\",\n \"reqTime\": \"1622016572190\",\n \"mchNo\": \"M1234567890\",\n \"appId\": \"88808634c46ff1a7807888888\",\n \"pageNumber\": 1,\n \"pageSize\": 20,\n \"requestId\": \"12345678909\",\n \"tokenId\": \"TRON_USDT\",\n \"address\": \"TX123456789021345678\",\n \"remark\": \"remark\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://sandbox-pay.epay123.net/api/channelbiz/cbcoinpay/settleAddressList")
.header("Content-Type", "application/json")
.body("{\n \"version\": \"1.0.1\",\n \"signType\": \"MD5\",\n \"sign\": \"xxxxxx\",\n \"reqTime\": \"1622016572190\",\n \"mchNo\": \"M1234567890\",\n \"appId\": \"88808634c46ff1a7807888888\",\n \"pageNumber\": 1,\n \"pageSize\": 20,\n \"requestId\": \"12345678909\",\n \"tokenId\": \"TRON_USDT\",\n \"address\": \"TX123456789021345678\",\n \"remark\": \"remark\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox-pay.epay123.net/api/channelbiz/cbcoinpay/settleAddressList")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"version\": \"1.0.1\",\n \"signType\": \"MD5\",\n \"sign\": \"xxxxxx\",\n \"reqTime\": \"1622016572190\",\n \"mchNo\": \"M1234567890\",\n \"appId\": \"88808634c46ff1a7807888888\",\n \"pageNumber\": 1,\n \"pageSize\": 20,\n \"requestId\": \"12345678909\",\n \"tokenId\": \"TRON_USDT\",\n \"address\": \"TX123456789021345678\",\n \"remark\": \"remark\"\n}"
response = http.request(request)
puts response.read_body{
"code": 200,
"msg": "成功",
"data": {
"addrList": [
{
"serverRequestId": "1234567890",
"requestId": "BIZ1234567890",
"mchNo": "M1234567890",
"isvNo": "<string>",
"appId": "1234567890",
"ifCode": "cbcoinpay",
"createdWay": "API",
"tokenId": "TRON_USDT",
"address": "TX1234567890",
"channelAddrId": "1234567890",
"remark": "TRON Address",
"status": 1,
"errMsg": "Expired",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
],
"addrTotal": 20
},
"sign": "<string>"
}钱包结算接口
结算加密货币地址列表
商户向平台申报用于接收结算款项的加密货币地址。
POST
/
api
/
channelbiz
/
cbcoinpay
/
settleAddressList
结算加密货币地址列表
curl --request POST \
--url https://sandbox-pay.epay123.net/api/channelbiz/cbcoinpay/settleAddressList \
--header 'Content-Type: application/json' \
--data '
{
"version": "1.0.1",
"signType": "MD5",
"sign": "xxxxxx",
"reqTime": "1622016572190",
"mchNo": "M1234567890",
"appId": "88808634c46ff1a7807888888",
"pageNumber": 1,
"pageSize": 20,
"requestId": "12345678909",
"tokenId": "TRON_USDT",
"address": "TX123456789021345678",
"remark": "remark"
}
'import requests
url = "https://sandbox-pay.epay123.net/api/channelbiz/cbcoinpay/settleAddressList"
payload = {
"version": "1.0.1",
"signType": "MD5",
"sign": "xxxxxx",
"reqTime": "1622016572190",
"mchNo": "M1234567890",
"appId": "88808634c46ff1a7807888888",
"pageNumber": 1,
"pageSize": 20,
"requestId": "12345678909",
"tokenId": "TRON_USDT",
"address": "TX123456789021345678",
"remark": "remark"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
version: '1.0.1',
signType: 'MD5',
sign: 'xxxxxx',
reqTime: '1622016572190',
mchNo: 'M1234567890',
appId: '88808634c46ff1a7807888888',
pageNumber: 1,
pageSize: 20,
requestId: '12345678909',
tokenId: 'TRON_USDT',
address: 'TX123456789021345678',
remark: 'remark'
})
};
fetch('https://sandbox-pay.epay123.net/api/channelbiz/cbcoinpay/settleAddressList', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://sandbox-pay.epay123.net/api/channelbiz/cbcoinpay/settleAddressList",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'version' => '1.0.1',
'signType' => 'MD5',
'sign' => 'xxxxxx',
'reqTime' => '1622016572190',
'mchNo' => 'M1234567890',
'appId' => '88808634c46ff1a7807888888',
'pageNumber' => 1,
'pageSize' => 20,
'requestId' => '12345678909',
'tokenId' => 'TRON_USDT',
'address' => 'TX123456789021345678',
'remark' => 'remark'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://sandbox-pay.epay123.net/api/channelbiz/cbcoinpay/settleAddressList"
payload := strings.NewReader("{\n \"version\": \"1.0.1\",\n \"signType\": \"MD5\",\n \"sign\": \"xxxxxx\",\n \"reqTime\": \"1622016572190\",\n \"mchNo\": \"M1234567890\",\n \"appId\": \"88808634c46ff1a7807888888\",\n \"pageNumber\": 1,\n \"pageSize\": 20,\n \"requestId\": \"12345678909\",\n \"tokenId\": \"TRON_USDT\",\n \"address\": \"TX123456789021345678\",\n \"remark\": \"remark\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://sandbox-pay.epay123.net/api/channelbiz/cbcoinpay/settleAddressList")
.header("Content-Type", "application/json")
.body("{\n \"version\": \"1.0.1\",\n \"signType\": \"MD5\",\n \"sign\": \"xxxxxx\",\n \"reqTime\": \"1622016572190\",\n \"mchNo\": \"M1234567890\",\n \"appId\": \"88808634c46ff1a7807888888\",\n \"pageNumber\": 1,\n \"pageSize\": 20,\n \"requestId\": \"12345678909\",\n \"tokenId\": \"TRON_USDT\",\n \"address\": \"TX123456789021345678\",\n \"remark\": \"remark\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox-pay.epay123.net/api/channelbiz/cbcoinpay/settleAddressList")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"version\": \"1.0.1\",\n \"signType\": \"MD5\",\n \"sign\": \"xxxxxx\",\n \"reqTime\": \"1622016572190\",\n \"mchNo\": \"M1234567890\",\n \"appId\": \"88808634c46ff1a7807888888\",\n \"pageNumber\": 1,\n \"pageSize\": 20,\n \"requestId\": \"12345678909\",\n \"tokenId\": \"TRON_USDT\",\n \"address\": \"TX123456789021345678\",\n \"remark\": \"remark\"\n}"
response = http.request(request)
puts response.read_body{
"code": 200,
"msg": "成功",
"data": {
"addrList": [
{
"serverRequestId": "1234567890",
"requestId": "BIZ1234567890",
"mchNo": "M1234567890",
"isvNo": "<string>",
"appId": "1234567890",
"ifCode": "cbcoinpay",
"createdWay": "API",
"tokenId": "TRON_USDT",
"address": "TX1234567890",
"channelAddrId": "1234567890",
"remark": "TRON Address",
"status": 1,
"errMsg": "Expired",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
],
"addrTotal": 20
},
"sign": "<string>"
}Body
application/json
结算加密货币地址列表请求参数
版本号
Example:
"1.0.1"
签名类型,目前只支持MD5方式
Example:
"MD5"
签名值,详见签名算法
Example:
"xxxxxx"
时间戳,13位时间戳
Example:
"1622016572190"
商户号
Example:
"M1234567890"
商户应用ID
Example:
"88808634c46ff1a7807888888"
支持分页: 默认1开始
Example:
1
支持分页: 默认20页
Example:
20
请求ID
Example:
"12345678909"
结算币种的唯一标识
Example:
"TRON_USDT"
提币地址
Example:
"TX123456789021345678"
备注
Example:
"remark"
