curl -X POST https://api.demet.com/rate/register \
-H "Content-Type: application/json" \
-b "access_token=YOUR_JWT_TOKEN" \
-d '{
"v_name": "Tarifa Fines de Semana",
"v_pax": 80,
"v_value4": 250000,
"v_value8": 400000,
"v_value_extra": 60000,
"v_isPartner": false,
"v_idSpace": 2
}'
{
"message": "Registro Exitoso"
}
Register a new rate for a space
curl -X POST https://api.demet.com/rate/register \
-H "Content-Type: application/json" \
-b "access_token=YOUR_JWT_TOKEN" \
-d '{
"v_name": "Tarifa Fines de Semana",
"v_pax": 80,
"v_value4": 250000,
"v_value8": 400000,
"v_value_extra": 60000,
"v_isPartner": false,
"v_idSpace": 2
}'
{
"message": "Registro Exitoso"
}
access_token cookie.
curl -X POST https://api.demet.com/rate/register \
-H "Content-Type: application/json" \
-b "access_token=YOUR_JWT_TOKEN" \
-d '{
"v_name": "Tarifa Fines de Semana",
"v_pax": 80,
"v_value4": 250000,
"v_value8": 400000,
"v_value_extra": 60000,
"v_isPartner": false,
"v_idSpace": 2
}'
{
"message": "Registro Exitoso"
}
| Status Code | Description |
|---|---|
| 200 | Rate successfully registered |
| 400 | Validation error in rate data |
| 401 | Token not sent or invalid (missing or expired cookie) |
| 404 | Associated space not found |
| 500 | Internal server error |