curl --request POST \
--url https://api.example.com/reserve/register \
--header 'Content-Type: application/json' \
--data '
{
"v_id_reservation": "<string>",
"v_name": "<string>",
"v_email": "<string>",
"v_phone_number": "<string>",
"v_init_date": "<string>",
"v_end_date": "<string>",
"v_pax": 123,
"v_status": "<string>",
"v_extras": "<string>",
"v_amount": 123,
"v_total_value": 123,
"v_fk_rate": 123
}
'{
"message": "Registro Exitoso"
}
Register a new reservation in the system
curl --request POST \
--url https://api.example.com/reserve/register \
--header 'Content-Type: application/json' \
--data '
{
"v_id_reservation": "<string>",
"v_name": "<string>",
"v_email": "<string>",
"v_phone_number": "<string>",
"v_init_date": "<string>",
"v_end_date": "<string>",
"v_pax": 123,
"v_status": "<string>",
"v_extras": "<string>",
"v_amount": 123,
"v_total_value": 123,
"v_fk_rate": 123
}
'{
"message": "Registro Exitoso"
}
access_token cookie.
"RSV00123""Juan Pérez""[email protected]""3104567890""2025-06-10T10:00:00Z""2025-06-10T15:00:00Z"20"EN PROGRESO", "FINALIZADO"Example: "EN PROGRESO""[{}]" (empty extras)"[{\"id_extra\":1, \"quantity\":2, \"value_add\":5000}]" (with extras)"[{\"id_extra\":1, \"quantity\":2, \"value_add\":5000}]"85000900002{
"message": "Registro Exitoso"
}
access_token cookie is present.curl -X POST https://api.demet.com/reserve/register \
-H "Content-Type: application/json" \
-b "access_token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..." \
-d '{
"v_id_reservation": "RSV00123",
"v_name": "Juan Pérez",
"v_email": "[email protected]",
"v_phone_number": "3104567890",
"v_init_date": "2025-06-10T10:00:00Z",
"v_end_date": "2025-06-10T15:00:00Z",
"v_pax": 20,
"v_status": "EN PROGRESO",
"v_extras": "[{\\\"id_extra\\\":1, \\\"quantity\\\":2, \\\"value_add\\\":5000}]",
"v_amount": 85000,
"v_total_value": 90000,
"v_fk_rate": 2
}'
v_extras field must be sent as a JSON string, not as a JSON object or array