Skip to main content
Version: v2

Wine Prices

Get all Wine Prices

HTTP Request

GET /wine-prices

Example

$ curl --request GET --url 'https://app.winesitting.com/api/v2/wine-prices' \
--header 'Authorization: Bearer YourBearerToken' \
--header 'content-type: application/json'

Get a specific Wine Price

HTTP Request

GET /wine-prices/{{wineId}}/{{wineFormat}}

Query parameters

NameRequiredTypeDetails
wineIdrequiredint
wineFormatrequiredstringex: 0.75

Example

$ curl --request GET --url 'https://app.winesitting.com/api/v2/wine-prices/103435/0.15' \
--header 'Authorization: Bearer YourBearerToken' \
--header 'content-type: application/json'

Create a Wine Price

HTTP Request

POST /wine-prices

Wine Price parameters

NameRequiredTypeDetails
formatrequiredfloatex: 0.75
wine_idrequiredint
pricerequiredfloat

Example

$ 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
},
'

Edit a Wine Price

HTTP Request

PUT /wine-prices/{{wineId}}/{{wineFormat}}

Wine Price parameters

See Get a specific Wine Price for parameters.

Example

$ 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
},
'

Delete a Wine Price

HTTP Request

DELETE /wine-prices/{{wineId}}/{{wineFormat}}

Parameters

See Get a specific Wine Price for parameters.

Example

$ curl --request DELETE --url 'https://app.winesitting.com/api/v2/wine-prices/15777/0.15' \
--header 'Authorization: Bearer YourBearerToken' \
--header 'content-type: application/json' \