Skip to main content
Version: v1

Wine Prices

Get all Wine Prices

This endpoint retrieves all wine prices associated to current user.

HTTP Request

GET /v1/wine-prices

Example

$ curl --request GET --url 'https://app.winesitting.com/v1/wine-prices' \
--header 'AccessKey: YourAccessKey' \
--header 'SecretKey: YourSecretKey' \
--header 'content-type: application/json'

Get a specific Wine Price

This endpoint lets you get a specific wine price.

HTTP Request

GET /v1/wine-prices/single

Wine Price parameters

NameRequiredTypeDetails
formatrequiredstringex: 0.75
wine_idrequiredint

Example

$ curl --request GET --url 'https://app.winesitting.com/v1/wine-prices/single?format=0.75&wine_id=15777' \
--header 'AccessKey: YourAccessKey' \
--header 'SecretKey: YourSecretKey' \
--header 'content-type: application/json'

Create a Wine Price

This endpoint lets you create a wine price.

HTTP Request

POST /v1/wine-prices

Wine Price parameters

NameRequiredTypeDetails
formatrequiredstringex: 0.75
wine_idrequiredint
pricerequiredstring

Example

$ curl --request POST --url 'https://app.winesitting.com/v1/wine-prices' \
--header 'AccessKey: YourAccessKey' \
--header 'SecretKey: YourSecretKey' \
--header 'content-type: application/json' \
--data '
{
"price": "5.53",
"format": "0.75",
"wine_id": 15777
},
'

Edit a Wine Price

This endpoint lets you edit a wine price.

HTTP Request

PUT /v1/wine-prices

Example

$ curl --request PUT --url 'https://app.winesitting.com/v1/wine-prices' \
--header 'AccessKey: YourAccessKey' \
--header 'SecretKey: YourSecretKey' \
--header 'content-type: application/json' \
--data '
{
"price": "8",
"format": "0.75",
"wine_id": 15777
},
'

Wine Price parameters

NameRequiredTypeDetails
formatrequiredstringex: 0.75
wine_idrequiredint
pricerequiredstring

Delete a Wine Price

This endpoint lets you delete a wine price.

HTTP Request

DELETE /v1/wine-prices

Parameters

NameRequiredTypeDetails
formatrequiredstringex: 0.75
wine_idrequiredint

Example

$ curl --request DELETE --url 'https://app.winesitting.com/v1/wine-prices' \
--header 'AccessKey: YourAccessKey' \
--header 'SecretKey: YourSecretKey' \
--header 'content-type: application/json' \
--data '
{
"format": "0.75",
"wine_id": 15777
},
'