Find Purchases
You can query our database for a specific purchase by purchase_id using a GET request to /merchant-purchase/:purchase_id
var axios = require('axios');
var config = {
method: 'get',
url: '{{baseUrl}}/api/v1/merchant-purchase/46',
headers: {
'Authorization': 'Bearer {{secret}}'
}
};
axios(config)
.then(function (response) {
console.log(JSON.stringify(response.data));
})
.catch(function (error) {
console.log(error);
});
Example Response
{
"purchase_id": 46,
"customer_url": "{{baseUrl}}/p/UMa_euNe",
"status": "Cancelled"
}