Get a static cryptocurrency address for deposit

Method POST
Headers
Accept application/json
Content-Type application/json
Request parameters
shop_id int Shop id
shop_key string Shop key
order_id string (min:1, max:100) Order ID in your system
coin string TRX or USDT or USDC

PHP EXAMPLE
include('FastPayApi.php');
$shopId = 742;
$shopKey = 'lSbwfqtEsQzjDkQ7J5Qf82hcHgs3lIDa';

$fastPayApi = new FastPayApi();
$fastPayApi->setShopId($apiId);
$fastPayApi->setShopKey($apiKey);
$coin = 'TRX';
$order_id = 'order_123';
$response = $fastPayApi->getAddress($coin, $order_id);
$data = json_decode ($response, true);
if ($data['status'] === 'success') {
$address = $data['data']['address']; // Address
$coin = $data['data']['coin']; // TRX or USDT or USDC
$order_id = $data['data']['order_id']; // Order ID in your system
}
Success JSON Response:
{ "status": "success", "data": { "address": "TLtQuJ9gXVpHrLgQCh79HXwdepu3j3eTjW", "coin": "TRX", "order_id": "order_123" } }

Error JSON Response:
{ "status": "error", "errors": { "error": "Shop Not found!" } }