The following endpoint can be used to add or update a payment within the Hyfin application that were already processed.
The following endpoint can be used to add or update a payment. You must replace the {base_url} and {site_id} variable with the site id that was provided when the site was created.
{
"_id": "61f32dc2f62bdc6a48945067",
"gatewayTransactionId": "53912387124235234",
"paymentType": "payment_card",
"paymentSubType": "visa",
"displayName": "VISA **** 5123",
"amount": 3515,
"paidOn": "2021-01-01T14:32:18Z",
"status": "captured",
"invoice": {
"_id": "61f32dc2f62bdc6a48951255"
}
}
{
"success": true,
"action": "added",
"_id": "60f720d248f143332af022e0"
}
{
"success": false,
"errors": [
"invalid field2",
"missing field_name"
]
}