API Dashboard
Escrow API
Escrow Pay
CryptoExchange API :: Funding a transaction
Funding a transaction
Transactions must be funded before the seller can ship the items. A transaction can be funded in multiple crypto currencies, such Bitcoin, USDT.
Fetching available payment methods
Not all payment methods are available to all customers on all transactions. Because of this, we offer an API endpoint to allow you to fetch what payment methods are available on the transaction.
curl "https://cryptoexchange.com/api/v1/escrow/partner/transactions/44165ddd-e469-415f-a7f0-e7f5a5c316e6/payment_methods" \
-X GET \
-H "Authorization:Bearer your-api-key" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => 'https://cryptoexchange.com/api/v1/escrow/partner/transactions/44165ddd-e469-415f-a7f0-e7f5a5c316e6/payment_methods',
CURLOPT_RETURNTRANSFER => 1,
CURLOPT_HTTPHEADER => array(
'Accept: application/json',
'Authorization:Bearer your-api-key',
'Content-Type: application/json'
),
));
$output = curl_exec($curl);
echo $output;
curl_close($curl);
Example Response
{
"currency": "BTC",
"address": "2MvSVw4d9Mc2EWtqGUEFBe337ajA3vWue5k",
"amount": 0.60577678848595
}