API Dashboard
Escrow API
Escrow Pay
CryptoExchange API :: Listing your transactions
Listing your transactions
It is possible to list all of the transactions that you are involved in. Simply call the /2017-09-01/transaction endpoint. This will return a list of 10 transactions. In order to retrieve more, you must call the API multiple times and increment the page parameter.
curl "https://cryptoexchange.com/api/v1/escrow/partner/transactions" \
-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',
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
{
"current_page": 1,
"data": [
{
"id": "44165ddd-e469-415f-a7f0-e7f5a5c316e6",
"title": "Ford Focus 2001",
"status": "new",
"created_at": "2022-08-01 17:24:52",
"buyer_email": "[email protected]",
"seller_email": "[email protected]",
"price": "12312.330000000000000000",
"currency": "USD",
"buyer_id": null,
"seller_id": 17,
"disbursement_type": null
},
{
"id": "22d68b6a-10c8-41af-a4a7-38709be5da86",
"title": "Ford Focus 2001",
"status": "waiting_money",
"created_at": "2022-07-21 17:35:48",
"buyer_email": "[email protected]",
"seller_email": "[email protected]",
"price": "12312.330000000000000000",
"currency": "USD",
"buyer_id": 15,
"seller_id": 17,
"disbursement_type": null
},
{
"id": "6b234b9c-5d6c-45f1-b771-b84d9d705d95",
"title": "Ford Focus 2001",
"status": "rejected",
"created_at": "2022-07-21 13:15:00",
"buyer_email": "[email protected]",
"seller_email": "[email protected]",
"price": "12312.330000000000000000",
"currency": "USD",
"buyer_id": null,
"seller_id": 17,
"disbursement_type": null
}
],
"first_page_url": "http://127.0.0.1/api/v1/escrow/partner/transactions?page=1",
"from": 1,
"last_page": 1,
"last_page_url": "http://127.0.0.1/api/v1/escrow/partner/transactions?page=1",
"links": [
{
"url": null,
"label": "« Previous",
"active": false
},
{
"url": "http://127.0.0.1/api/v1/escrow/partner/transactions?page=1",
"label": "1",
"active": true
},
{
"url": null,
"label": "Next »",
"active": false
}
],
"next_page_url": null,
"path": "http://127.0.0.1/api/v1/escrow/partner/transactions",
"per_page": 10,
"prev_page_url": null,
"to": 3,
"total": 3
}