The following endpoint can be used to retrieve the details of a payment within the Hyfin application.
The following endpoint can be used to retrieve a payment. You must replace the {base_url} , {_id} and {site_id} variables with the appropriate values.
{
"_id": "61f32dc2f62bdc6a48945067",
"displayName": "VISA **** 5123",
"site": "6201825a0cf5e23261a08646",
"customer": "649dc5bb468bd5b5d863c7d1",
"type": "payment_card",
"subType": "visa",
"amount": 3515,
"totals": {
"taxes": 0,
"discounts": 0,
"total": 3515
},
"paidOn": "2021-01-01T14:32:18.000Z",
"status": "captured",
"allocations": [
{
"refType": "Invoice",
"ref": "61f32dc2f62bdc6a48951255",
"amount": 3515
}
],
"paymentTransactionEvents": [
{
"type": "sale",
"amount": 3515,
"successful": true,
"createdAt": "2021-01-01T14:32:18.000Z",
"transactionId": "53912387124235234"
}
]
}