Transactions
Get All Transactions
This endpoint retrieves all transactions associated to current user.
HTTP Request
GET /transactions
Query Parameters
See pagination
Query Parameters | Default | Description |
---|---|---|
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/api/v2/transactions?type=in&start_date=2030-01-01&end_date=2030-01-31' \
--header 'Authorization: Bearer YourBearerToken' \
--header 'content-type: application/json'
[
{
"id": 10257484,
"type": "e",
"source": null,
"destination": {
"id": 59296,
"code": "ARRIVEE-WISSOUS-B"
},
"comment": "Sortie : 32588",
"content": [
{
"id": 104278,
"wine": "Chateau De Briace",
"color": "Blanc",
"country": "FR",
"region": "Loire",
"appelation": "Muscadet Sevre et Maine",
"description": null,
"ranking": null,
"millesime": 2022,
"alcohol": 13,
"format": 1.5,
"price": null,
"comment": null,
"quantity": 1,
"box": "CBO6",
"reference": "104278|1.5|CBO6"
}
],
"created_at": {
"date": "2024-07-15 15:29:27.000000",
"timezone_type": 3,
"timezone": "Europe/Paris"
}
},
...
]