Transactions
Get All Transactions
This endpoint retrieves all transactions associated to current user.
HTTP Request
GET /v1/transactions
Query Parameters
Parameter | Default | Description |
---|---|---|
page | 1 | The current page |
count | 30 | The number of items per page |
type | optional | Possible values are in or out |
start_date | optional | Format : YYYY-MM-DD |
end_date | optional | Format : YYYY-MM-DD |
Example
- Request
- Response
$ curl --request GET --url 'https://app.winesitting.com/v1/transactions?type=in&start_date=2030-01-01&end_date=2030-01-31' \
--header 'AccessKey: YourAccessKey' \
--header 'SecretKey: YourSecretKey' \
--header 'content-type: application/json'
[
{
"id": 10257484,
"type": "e",
"source": 68521,
"destination": {
"id": 59296,
"code": "ARRIVEE-WISSOUS-B"
},
"bottle_id": 3663313,
"format": "3",
"wine_id": 98,
"wine": "Chateau Marquis de Terme",
"color": "Rouge",
"millesime": 2018,
"description": null,
"comment": "Sortie : 32588",
"created_at": "2019-06-21T12:39:49+02:00",
},
{
"id": 10257483,
"type": "e",
"source": 8462,
"destination": {
"id": 59296,
"code": "ARRIVEE-WISSOUS-B"
},
"bottle_id": 3663312,
"format": "3",
"wine_id": 53707,
"wine": "Domaine Anne Claude Leflaive",
"color": "Rouge",
"millesime": 2018,
"description": null,
"comment": "Sortie : 32588",
"created_at": "2019-06-21T12:39:49+02:00",
},
...
]