Enums
Get Enum Values
HTTP Request
GET /enums?label={enum}
Parameters
Parameter | Description |
---|---|
label | The label of the Enum to retrieve |
Enums available are:
cellar_preference
delivery_slip_preference
email_preference
invoice_state
order_status
putaway_status
Example
- Request
- Response
$ curl --request GET --url 'https://app.winesitting.com/api/v2/enums?label=order_status' \
--header 'Authorization: Bearer YourBearerToken' \
--header 'content-type: application/json'
[
{
"value": 0,
"name": "NEW",
"label": "En attente de préparation"
},
{
"value": 10,
"name": "PROCESSING",
"label": "En cours de préparation"
},
{
"value": 35,
"name": "PROCESSED",
"label": "En cours de validation"
},
{
"value": 40,
"name": "READY",
"label": "Prête"
},
{
"value": 50,
"name": "SHIPPED",
"label": "Expédiée"
},
{
"value": 60,
"name": "DELIVERED",
"label": "Livrée/Enlevée à l'entrepôt"
}
]