1.1 Create Request Charge In
Api bắt buộc để tạo địa chỉ ví mới để nạp tiền

Create Request Charge In
Name
Value
Name
Type
Bắt Buộc
Description
Field
Kiểu Dữ Liệu
Giải Thích
Field
Giải Thích

Last updated
Api bắt buộc để tạo địa chỉ ví mới để nạp tiền


Last updated
{
"callbackUrl": "https://webhook.site/f3502c48-6d4c-4602-bdd0-eb0fa17d3e7e",
"networkToken": "BSC-USDT",
"requestId": "1234953493239"
}<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => 'https://apicoin.bachkhoapay.com/wallet/getReceiveAddress',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_POSTFIELDS =>'{
"callbackUrl": "https://webhook.site/f3502c48-6d4c-4602-bdd0-eb0fa17d3e7e",
"networkToken": "BSC-USDT",
"requestId": "1234953493239"
}',
CURLOPT_HTTPHEADER => array(
'Content-Type: application/json',
'api-key: ••••••'
),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
curl --location 'https://apicoin.bachkhoapay.com/wallet/getReceiveAddress' \
--header 'Content-Type: application/json' \
--header 'api-key: ••••••' \
--data '{
"callbackUrl": "https://webhook.site/f3502c48-6d4c-4602-bdd0-eb0fa17d3e7e",
"networkToken": "BSC-USDT",
"requestId": "1234953493239"
}'{
"status": true,
"data": {
"requestId": "1234953493239",
"address": "0x511e0d89343af6711b8ffea281c1e6b5fc48a181",
"qrCode": "https://image-charts.com/chart?chs=300x300&cht=qr&chl=0x511e0d89343af6711b8ffea281c1e6b5fc48a181",
"networkToken": "BSC-USDT",
"uuid": "3d1bf832-ce8a-48f3-97ea-c6226c50ce7c"
}
} "data": {
"requestId": "1234953493239",
"address": "0x511e0d89343af6711b8ffea281c1e6b5fc48a181",
"qrCode": "https://image-charts.com/chart?chs=300x300&cht=qr&chl=0x511e0d89343af6711b8ffea281c1e6b5fc48a181",
"networkToken": "BSC-USDT",
"uuid": "3d1bf832-ce8a-48f3-97ea-c6226c50ce7c"
}