Skip to main content
GET
/
reserve
/
get
List Reservations
curl --request GET \
  --url https://api.example.com/reserve/get
{
  "result": [
    {
      "id_reservation": "RSV00123",
      "name": "Juan Pérez",
      "email": "[email protected]",
      "phone_number": "3119876543",
      "init_date": "2025-07-15T09:00:00Z",
      "end_date": "2025-07-15T13:00:00Z",
      "pax": 30,
      "status": "EN PROGRESO",
      "extras": [
        {
          "id_extra": 1,
          "quantity": 2,
          "value_add": 3000
        },
        {
          "id_extra": 3,
          "quantity": 1,
          "value_add": 5000
        }
      ],
      "amount": 95000,
      "total_value": 120000,
      "fk_rate": 4
    },
    {
      "id_reservation": "RSV00124",
      "name": "María González",
      "email": "[email protected]",
      "phone_number": "3201234567",
      "init_date": "2025-07-20T14:00:00Z",
      "end_date": "2025-07-20T18:00:00Z",
      "pax": 15,
      "status": "EN PROGRESO",
      "extras": [],
      "amount": 50000,
      "total_value": 50000,
      "fk_rate": 2
    }
  ]
}
This endpoint returns the complete list of reservations registered in the system. It includes customer information, dates, pax, associated rate, values, and extras used in each reservation. The user must be authenticated, and the JWT token is automatically obtained from the access_token cookie.

Request

This endpoint does not require any parameters. Simply make a GET request with valid authentication.

Response

result
array
Array of reservation objects
{
  "result": [
    {
      "id_reservation": "RSV00123",
      "name": "Juan Pérez",
      "email": "[email protected]",
      "phone_number": "3119876543",
      "init_date": "2025-07-15T09:00:00Z",
      "end_date": "2025-07-15T13:00:00Z",
      "pax": 30,
      "status": "EN PROGRESO",
      "extras": [
        {
          "id_extra": 1,
          "quantity": 2,
          "value_add": 3000
        },
        {
          "id_extra": 3,
          "quantity": 1,
          "value_add": 5000
        }
      ],
      "amount": 95000,
      "total_value": 120000,
      "fk_rate": 4
    },
    {
      "id_reservation": "RSV00124",
      "name": "María González",
      "email": "[email protected]",
      "phone_number": "3201234567",
      "init_date": "2025-07-20T14:00:00Z",
      "end_date": "2025-07-20T18:00:00Z",
      "pax": 15,
      "status": "EN PROGRESO",
      "extras": [],
      "amount": 50000,
      "total_value": 50000,
      "fk_rate": 2
    }
  ]
}

Error Responses

401
Unauthorized
Token not sent or invalid. Ensure you’re authenticated and the access_token cookie is present.
500
Internal Server Error
Internal server error. Contact support if this persists.

Example Request

curl -X GET https://api.demet.com/reserve/get \
  -H "Content-Type: application/json" \
  -b "access_token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."

Notes

  • The response returns an object with a result key containing the array of reservations
  • The extras field in the response is returned as a parsed JSON array (not a string like in create/update requests)
  • All date fields are returned in ISO 8601 format
  • Empty extras will be returned as an empty array []

Build docs developers (and LLMs) love