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",
"details": {
"type": "charge",
"id": "or0mbrcwup5u",
"external_ref_id": "test-bkg-0001",
"status_code": "applied",
"status_detail": "Aplicado",
"comments": "Pago exitoso de link de pago or0mbrcwup5u por: $2,000.00",
"transaction_id": "RB-566202",
"transaction_date": "2025-04-23T18:21:00.731000"
}
}
{
"payment_status": "Rechazado",
"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",
"details": {
"type": "charge",
"id": "or0mbrcwup5u",
"external_ref_id": "test-bkg-0001",
"status_code": "rejected",
"status_detail": "Rechazado",
"comments": "Fondos insufientes.",
"transaction_id": "RB-566202",
"transaction_date": "2024-06-25 15:33:55.406826"
}
}
Status code: 401, 403, 404
{
"code": "Status code",
"message":"Error description",
"detail": "Error details"
}