Get transaction details
Request to get the details of a transaction, including the charging transaction and the refund if applicable.
GET /v2/transactions/vouchers/detail?reservation_id={reservation_id}&operation_type={operation_type}
Example:
GET /v2/transactions/vouchers/detail?reservation_id=163&operation_type=payment_link
Query parameters
| PARAMETER | TYPE | REQ. | DESCRIPTION |
| reservation_id | Integer | Yes | Integer representing the unique reservation identifier in Autocore. |
| operation_type | String | Yes | String representing the unique operation type in Autocore. Accepted values are: automated, terminal_payment, payment_link |
Response Body
The following section describes the fields returned by the endpoint:
hotel
| FIELD | TYPE | DESCRIPTION |
id | Integer | Internal hotel ID in Autocore. |
channel_mannager_id | String | Hotel identifier in the Channel Manager. |
name | String | Name of the hotel. |
data
| FIELD | TYPE | DESCRIPTION |
operation_type | String | Type of operation performed. Accepted values: automated, terminal_payment, payment_link. |
id | Integer | Internal operation ID in Autocore. |
reservation_id | String | Unique reservation identifier. |
portal_code | String | Null | Portal code if applicable. |
checkin_date | Date | Null | Reservation check-in date (YYYY-MM-DD) if applicable. |
guest | String | Guest full name. |
bank | String | Bank associated with the payment. |
payment_type | String | Payment type or concept. |
payment_status_code | String | Technical payment status code. |
payment_status | String | Human-readable payment status. |
transaction | Object | Null | Information about the processed transaction. May be null. |
refound | Object | Null | Information about the refund. May be null. |
generated_at | String | Report generation timestamp (DD-MM-YYYY hh ss AM/PM). |
Transaction Object (nullable)
This object may be null. If null, none of the following fields are present.
| FIELD | TYPE | DESCRIPTION |
status_code | String | Transaction status code. |
status | String | Human-readable transaction status. |
status_detail | String | Detailed status description. |
carrier | String | Payment processor/network (e.g., RedeBan). |
transaction_id | String | Carrier-generated transaction identifier. |
description | String | Description of the processed payment. |
payment_method | String | Payment method used (credit_card, etc.). |
payment_card_info | Object | Credit card information used in the transaction. |
installments | String | Number of installments. |
payment_date | Datetime | Date and time of the payment. |
amount | Float | Processed amount. |
currency | String | Currency of the transaction. |
voucher_url | String | URL to the payment voucher. |
Payment Card Info
| FIELD | TYPE | DESCRIPTION |
card_holder | String | Card holder name. |
card_num | String | Masked card number. |
card_type | String | Card brand or type. |
Refund Object (nullable)
This object may be null. If null, none of the following fields are present.
| FIELD | TYPE | DESCRIPTION |
status_code | String | Refund status code. |
status | String | Human-readable refund status. |
status_detail | String | Detailed refund status description. |
transaction_id | String | Transaction ID associated with the refund. |
refund_date | Datetime | Date and time the refund was processed. |
amount | Float | Refunded amount. |
currency | String | Currency of the refund. |
voucher_url | String | URL to the refund voucher. |
Status Codes
The following status codes may appear in root, transaction, or refound.
| CODE | ORIGINAL (ES) |
pending | Pendiente |
invalid_card | Tarjeta no válida |
rejected | Rechazado |
applied | Aplicado |
cancelled | Cancelado |
early_checkout | Salida anticipada |
overdue | Vencido |
in_process | En proceso |
partial_refound | Reembolso parcial |
total_refound | Reembolso total |
rejected_refound | Reembolso rechazado |
pending_refound | Reembolso pendiente |
in_process_refound | Reembolso en proceso |
in_validation | En validación |
cancelled_charge | Cobro cancelado |
no_card_data | Sin datos de pago |
invalid_card_data | Datos de pago inválidos |
error | Error |
Status Detail Values
The following values may appear inside transaction.status_detail or refound.status_detail.
| DETAIL (ES) |
Recaudo: Aprobado |
Recaudo: Aprobación pendiente |
Recaudo: Rechazado |
Recaudo: Cancelado |
Reembolso: Aprobado |
Reembolso: Aprobación pendiente |
Reembolso: Rechazado |
Supported Portals
The following values may appear in portal_code when the reservation originates from a connected OTA, wholesaler, or booking engine.
| PORTAL KEY | DESCRIPTION |
booking | Booking.com |
expedia | Expedia |
despegar | Despegar |
hyperguest | HyperGuest |
hotelbeds | Hotelbeds |
scalabed | Scalabed |
hopper | Hopper |
roomcloud | RoomCloud |
roibos | Roibos |
tbo | TBO Holidays |
roiback | Roiback |
siteminder_engine | SiteMinder Booking Engine |
channels_plus | Channels+ |
cloudbeds_engine | Cloudbeds Booking Engine |
profitroom | Profitroom |
open_travel_service | Open Travel Service |
webbeds | Webbeds |
simple_booking | Simple Booking |
airbnb | Airbnb |
hostelworld | Hostelworld |
mirai | Mirai |
gnahs | GNA Hotel Solutions (GNAHS) |
Response Example (200)
{
"hotel": {
"id": 17,
"channel_mannager_id": "0001",
"name": "Test Hotel"
},
"data": {
"operation_type": "payment_link",
"id": 163,
"reservation_id": "bk_123456789",
"portal_code": "booking",
"checkin_date": "2025-06-21",
"guest": "Jhon Doe",
"bank": "Davivienda",
"payment_type": "anticipo estadía",
"payment_status_code": "pending",
"payment_status": "Pendiente",
"transaction": null,
"refound": null,
"generated_at": "09-10-2025 02:59:32 PM"
}
}
or {
"hotel": {
"id": 17,
"channel_mannager_id": "0001",
"name": "Test Hotel"
},
"data": {
"operation_type": "payment_link",
"id": 163,
"reservation_id": "bk_123456789",
"portal_code": "booking",
"checkin_date": "2025-06-21",
"guest": "Jhon Doe",
"bank": "Davivienda",
"payment_type": "anticipo estadía",
"payment_status_code": "applied",
"payment_status": "Aplicado",
"transaction": {
"status_code": "applied",
"status": "Aplicado",
"status_detail": "Recaudo: Aprobado",
"carrier": "redeban",
"transaction_id": "RB-134687",
"description": "Pago exitoso de link de pago hz824gjch4fd por: $125,000.00",
"payment_method": "credit_card",
"payment_card_info": {
"card_holder": "David Rojas",
"card_num": "**********1111",
"card_type": "Visa"
},
"installments": "1",
"payment_date": "2025-09-24 19:39:23.825846",
"amount": 125000.0,
"currency": "COP",
"voucher_url": "localhost:8081/v1/bookings/123/vouchers?type=payment_link"
},
"refound": null,
"generated_at": "09-10-2025 02:59:32 PM"
}
}
or {
"hotel": {
"id": 17,
"channel_mannager_id": "0001",
"name": "Test Hotel"
},
"data": {
"operation_type": "payment_link",
"id": 163,
"reservation_id": "bk_123456789",
"portal_code": "booking",
"checkin_date": "2025-06-21",
"guest": "Jhon Doe",
"bank": "Davivienda",
"payment_type": "anticipo estadía",
"payment_status_code": "in_process_refound",
"payment_status": "Reembolso en proceso",
"transaction": {
"status_code": "applied",
"status": "Aplicado",
"status_detail": "Recaudo: Aprobado",
"carrier": "redeban",
"transaction_id": "RB-774454",
"description": "Pago exitoso de link de pago hz824gjch4fd por: $125,000.00",
"payment_method": "credit_card",
"payment_card_info": {
"card_holder": "David Rojas",
"card_num": "**********1111",
"card_type": "Visa"
},
"installments": "1",
"payment_date": "2025-09-24 19:39:23.825846",
"amount": 125000.0,
"currency": "COP",
"voucher_url": "localhost:8081/v1/bookings/123/vouchers?type=payment_link"
},
"refound": {
"status_code": "in_process_refound",
"status": "Reembolso en proceso",
"status_detail": "Reembolso: Aprobación pendiente",
"transaction_id": "RB-774454",
"refund_date": "2025-09-24 19:39:38.849530",
"amount": 25000.0,
"currency": "COP",
"voucher_url": "localhost:8081/v1/bookings/123/vouchers?type=payment_link&transaction_id=3234"
},
"generated_at": "09-10-2025 02:59:32 PM"
}
}
Status code: 401, 403, 404
{
"code": "Status code",
"message":"Error description",
"detail": "Error details"
}