API Dashboard
Escrow API
Escrow Pay
CryptoExchange API :: Fetch transaction details
Fetch transaction details
Retrieving information about a transaction is a simple get request, given that you have permission to view the transaction. You are only able to see the transaction if you are the buyer, seller, broker or the partner in the transaction.
The information that is returned may be different depending on the user accessing the transaction. This can happen in multiple scenarios, such as the broker taking a broker commission that is not visible to the buyer or seller (or both). Another similar scenario is where the transaction has applicable partner fees.
Retrieve transaction by id
Use this approach to retrieve the details of a transaction by the Cryptoexchange.com transaction id.
curl "https://cryptoexchange.com/api/v1/escrow/partner/transactions/44165ddd-e469-415f-a7f0-e7f5a5c316e6" \
-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',
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
Whether you fetch a transaction by id or by reference, the same response will be returned.
{
"id": "22d68b6a-10c8-41af-a4a7-38709be5da86",
"type": "motor_vehicle",
"payload": {
"vin": "dfsdfgdgs2342342",
"odometer": {
"type": "mi",
"value": "1000"
},
"shipping": {
"type": "none",
"payer": "buyer",
"price": {
"amount": "",
"currency": "USD"
}
}
},
"buyerId": 15,
"sellerId": 17,
"initiator": "seller",
"initiatorEmail": "[email protected]",
"participantEmail": "[email protected]",
"currency": "USD",
"cryptoCurrency": "BTC",
"price": 12312.33,
"commission": 181.512058,
"commissionDescription": "$5,000.01-$25,000: $325 + 0.52% of amount over $5000",
"processingCommission": 312.34605145,
"feePayStrategy": "buyer",
"status": "waiting_money",
"paymentPlan": "full",
"createdAt": "2022-07-21T21:35:48.000000Z",
"inspectionPeriod": 1,
"registrationExpiryDate": "2022-07-22T04:00:00.000000Z",
"inspectionPeriodExpiredAt": null,
"title": "Ford Focus 2001",
"notes": "",
"buyerAddress": null,
"sellerAddress": null,
"escrowAgentComment": null,
"commodityReturnExpiredAt": null,
"commodityReturnInspectionPeriodExpiredAt": null,
"partner_id": 7,
"refNumber": "22-01075",
"typeDescription": null
}