List hotels
Through this endpoint, you can query the data of available hotels for integration with the virtual payment terminal:
GET https://[base_url]/v2/hotels
You can paginte through the data using offset and limit, like this:
Endpoint response
{
"paginate_info": {
"start": 0,
"items": 10,
"total_items": 14,
"total_pages": 2,
"links": {
"first": "http://[base_url]/v2/terminalpayments?offset=0&limit=10",
"previous": "http://[base_url]/v2/terminalpayments?offset=0&limit=10",
"next": "http://[base_url]/v2/terminalpayments?offset=10&limit=10",
"last": "http://[base_url]/v2/terminalpayments?offset=20&limit=10"
}
},
"data": [
{
"id": 1,
"name": "Hotel Azuan Suites",
"currency": "COP"
},
{
"id": 2,
"name": "Hotel Avexi Suites",
"currency": "COP"
}
]
}