Bottles
Get All Bottles
This endpoint retrieves all bottles associated to current user.
HTTP Request
GET /v1/bottles
Query Parameters
Parameter | Default | Description |
---|---|---|
page | 1 | The current page |
count | 30 | The number of items per page |
Body Parameters
Parameter | Default | Type | Description |
---|---|---|---|
future | optional | boolean | If the value is 1, you can see your future bottles else you see your bottles in stock |
Example
- Request
- Response
$ curl --request GET --url 'https://app.winesitting.com/v1/bottles' \
--header 'AccessKey: YourAccessKey' \
--header 'SecretKey: YourSecretKey' \
--header 'content-type: application/json'
--data '
{
"future": 1
},
'
[
{
"id": 2745263,
"detail": null,
"box": null,
"created_at": "2019-01-23T11:51:35+01:00",
"updated_at": "2019-01-23T11:51:35+01:00",
"format": "0.75",
"wine-id": 33496,
"wine": "Chateau de Puligny Montrachet",
"appelation": "Puligny Montrachet",
"region": "Bourgogne",
"color": "Blanc",
"millesime": 2013,
"alcohol": 12.5,
"ranking": null,
"description": "Les Enseigneres"
},
{
"id": 2745262,
"detail": null,
"box": null,
"created_at": "2019-01-23T11:51:35+01:00",
"updated_at": "2019-01-23T11:51:35+01:00",
"format": "0.75",
"wine-id": 33496,
"wine": "Chateau de Puligny Montrachet",
"appelation": "Puligny Montrachet",
"region": "Bourgogne",
"color": "Blanc",
"millesime": 2013,
"alcohol": 12.5,
"ranking": null,
"description": "Les Enseigneres"
}
]
Get Cellar
This endpoint retrieves the user cellar.
HTTP Request
GET /v1/bottles/consolidated
URL Parameters
No parameters
tip
This endpoint is the best way to get all information about user cellar (quantity, comment, id...).
Example
- Request
- Response
$ curl --request GET --url 'https://app.winesitting.com/v1/bottles/consolidated' \
--header 'AccessKey: YourAccessKey' \
--header 'SecretKey: YourSecretKey' \
--header 'content-type: application/json'
[
{
"id": 33496,
"color": "Blanc",
"region": "Bourgogne",
"appelation": "Puligny Montrachet",
"wine": "Chateau de Puligny Montrachet",
"ranking": "1er Cru",
"description": "Les Chalumeaux",
"millesime": 2008,
"alcohol": 12.5,
"format": "0.75",
"wine-price": "68.01",
"wine-comment": "my-ref",
"quantity": 12
},
{
"id": 2745262,
"color": "Blanc",
"region": "Bourgogne",
"appelation": "Puligny Montrachet",
"wine": "Domaine Francois Carillon",
"ranking": "1er Cru",
"description": "Les Champs Gains",
"millesime": 2009,
"alcohol": 12.5,
"format": "0.75",
"wine-price": "82.00",
"wine-comment": "",
"quantity": 12,
"boxes": {
"CBO6": 54
}
}
]
Get a Specific Bottle
This endpoint retrieves a specific bottle.
HTTP Request
GET /v1/bottles/{id}
URL Parameters
Parameter | Description |
---|---|
id | The id of the bottle to retrieve |
info
You can't get a specific bottle that you don't own.
Example
- Request
- Response
$ curl --request GET --url 'https://app.winesitting.com/v1/bottles/2745263' \
--header 'AccessKey: YourAccessKey' \
--header 'SecretKey: YourSecretKey' \
--header 'content-type: application/json'
{
"id": 2745263,
"detail": null,
"box": null,
"created_at": "2019-01-23T11:51:35+01:00",
"updated_at": "2019-01-23T11:51:35+01:00",
"format": "0.75",
"wine-id": 33496,
"wine": "Chateau de Puligny Montrachet",
"appelation": "Puligny Montrachet",
"region": "Bourgogne",
"color": "Blanc",
"millesime": 2013,
"alcohol": 12.5,
"ranking": null,
"description": "Les Enseigneres"
}