Wine Prices
Get all Wine Prices
HTTP Request
GET /wine-prices
Example
- Request
- Response
$ curl --request GET --url 'https://app.winesitting.com/api/v2/wine-prices' \
--header 'Authorization: Bearer YourBearerToken' \
--header 'content-type: application/json'
[
{
"id": 24842,
"price": 123.45,
"created_at": {
"date": "2024-09-02 11:24:11.000000",
"timezone_type": 3,
"timezone": "Europe/Paris"
},
"updated_at": {
"date": "2024-09-02 11:24:11.000000",
"timezone_type": 3,
"timezone": "Europe/Paris"
},
"format": 0.75,
"wine": {
"id": 98509,
"wine": "Domaine AF Gros",
"appelation": "Richebourg",
"region": "Bourgogne",
"color": "Rouge",
"millesime": 2020,
"alcohol": 13.5,
"ranking": "Grand Cru",
"description": null
}
},
{
"id": 24811,
"price": 23.56,
"created_at": {
"date": "2024-02-29 13:51:58.000000",
"timezone_type": 3,
"timezone": "Europe/Paris"
},
"updated_at": {
"date": "2024-02-29 13:51:58.000000",
"timezone_type": 3,
"timezone": "Europe/Paris"
},
"format": 0.15,
"wine": {
"id": 103435,
"wine": "Les Bertrand",
"appelation": "Fleurie",
"region": "Beaujolais",
"color": "Rouge",
"millesime": 2021,
"alcohol": 13.5,
"ranking": null,
"description": "Coup d'Folie"
}
}
...
]
Get a specific Wine Price
HTTP Request
GET /wine-prices/{{wineId}}/{{wineFormat}}
Query parameters
Name | Required | Type | Details |
---|---|---|---|
wineId | required | int | |
wineFormat | required | string | ex: 0.75 |
Example
- Request
- Response
$ curl --request GET --url 'https://app.winesitting.com/api/v2/wine-prices/103435/0.15' \
--header 'Authorization: Bearer YourBearerToken' \
--header 'content-type: application/json'
{
"id": 24811,
"price": 23.56,
"created_at": {
"date": "2024-02-29 13:51:58.000000",
"timezone_type": 3,
"timezone": "Europe/Paris"
},
"updated_at": {
"date": "2024-02-29 13:51:58.000000",
"timezone_type": 3,
"timezone": "Europe/Paris"
},
"format": 0.15,
"wine": {
"id": 103435,
"wine": "Les Bertrand",
"appelation": "Fleurie",
"region": "Beaujolais",
"color": "Rouge",
"millesime": 2021,
"alcohol": 13.5,
"ranking": null,
"description": "Coup d'Folie"
}
}
Create a Wine Price
HTTP Request
POST /wine-prices
Wine Price parameters
Name | Required | Type | Details |
---|---|---|---|
format | required | float | ex: 0.75 |
wine_id | required | int | |
price | required | float |
Example
- Request
- Response
$ curl --request POST --url 'https://app.winesitting.com/api/v2/wine-prices' \
--header 'Authorization: Bearer YourBearerToken' \
--header 'content-type: application/json' \
--data '
{
"price": 123.45,
"format": 0.15,
"wine_id": 15777
},
'
The created price
Edit a Wine Price
HTTP Request
PUT /wine-prices/{{wineId}}/{{wineFormat}}
Wine Price parameters
See Get a specific Wine Price for parameters.
Example
- Request
- Response
$ curl --request PUT --url 'https://app.winesitting.com/api/v2/wine-prices/15777/0.15' \
--header 'Authorization: Bearer YourBearerToken' \
--header 'content-type: application/json' \
--data '
{
"price": 12.45,
"format": 0.75,
"wine_id": 15777
},
'
The modified price
Delete a Wine Price
HTTP Request
DELETE /wine-prices/{{wineId}}/{{wineFormat}}
Parameters
See Get a specific Wine Price for parameters.
Example
- Request
- Response
$ curl --request DELETE --url 'https://app.winesitting.com/api/v2/wine-prices/15777/0.15' \
--header 'Authorization: Bearer YourBearerToken' \
--header 'content-type: application/json' \
The deleted price