Skip to main content

Endpoint

POST /Estado/CrearEstado

Request Body

descripcion
string
required
Description of the state (e.g., “Pendiente”, “Entregado”, “Cancelado”)

Request Example

curl -X POST https://api.example.com/Estado/CrearEstado \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_JWT_TOKEN" \
  -d '{
    "descripcion": "En Proceso"
  }'

Response

result
string
Message indicating the state was created successfully

Response Examples

"Estado creado exitosamente"

Status Codes

  • 200 OK - State created successfully
  • 400 Bad Request - Invalid request data or creation error

Source Reference

Controller: EstadoController.cs:14-28

See Also

View State

Retrieve state information

Vouchers

Create vouchers with states

Build docs developers (and LLMs) love