Payment webhook
When a payment link is paid, a notification will be sent to the provided webhook at the moment of creating a payment link.
The notification to the webhook will be considered successful if the response has a status of 200. If the status is different from 200, it will be considered 'not notified,' and the notification will be retried every 30 minutes until a 200 status is received.
Body response parameters
| PARAMETER | TYPE | DESCRIPTION |
|---|---|---|
| payment_status | String | Payment link status. It can be 'Aplicado', 'Pendiente' or 'Rechazado' |
| amount | String | Amount payed by th guest |
| payment_date | String | Payment link payment date |
| company | String | Company name |
| hotel | String | Hotel name |
| voucher_url | String | Url to download the voucher |
| transaction_id | String | Payment transaction ID |
Webhook response
Status code: 200
{
"payment_status": "Aplicado",
"amount": 1200100.0,
"payment_date": "2024-06-25 15:33:55.406826",
"company": "CARIBE HOTELES",
"hotel": "Hotel 1525 By Gh Suites",
"voucher_url": "https://api-dev.autocore.pro/v1/bookings/398/vouchers?type=payment_link",
"transaction_id": "RB-566202"
}
Status code: 401, 403, 404
{
"code": "Status code",
"message":"Error description",
"detail": "Error details"
}