Skip to main content
GET
/
extra
/
get
curl -X GET https://api.example.com/extra/get \
  -H "Content-Type: application/json" \
  -b "access_token=YOUR_JWT_TOKEN"
{
  "result": [
    {
      "id_extra": 1,
      "name": "Silla Plástica",
      "value_add": 5000,
      "quantity": 50
    },
    {
      "id_extra": 2,
      "name": "Mesa Redonda",
      "value_add": 8000,
      "quantity": 20
    },
    {
      "id_extra": 3,
      "name": "Mantel",
      "value_add": 3000,
      "quantity": 100
    }
  ]
}
This endpoint returns all extras available in the system (such as chairs, tables, tablecloths, etc.). The user must be authenticated with a valid JWT token stored in the access_token cookie.

Response

result
array
Array of extra objects
id_extra
number
Unique identifier for the extraExample: 3
name
string
Name of the extra itemExample: "Silla Plástica"
value_add
number
Additional cost for the extra itemExample: 5000
quantity
number
Available quantity of the extra itemExample: 50

Status Codes

200
Success
List of extras retrieved successfully
401
Unauthorized
Token not sent or invalid (cookie missing or expired)
500
Internal Server Error
Internal server error
curl -X GET https://api.example.com/extra/get \
  -H "Content-Type: application/json" \
  -b "access_token=YOUR_JWT_TOKEN"
{
  "result": [
    {
      "id_extra": 1,
      "name": "Silla Plástica",
      "value_add": 5000,
      "quantity": 50
    },
    {
      "id_extra": 2,
      "name": "Mesa Redonda",
      "value_add": 8000,
      "quantity": 20
    },
    {
      "id_extra": 3,
      "name": "Mantel",
      "value_add": 3000,
      "quantity": 100
    }
  ]
}

Build docs developers (and LLMs) love