Invoices
Get All Invoices
This endpoint retrieves all invoices associated to current user.
HTTP Request
GET /invoices
Query Parameters
See pagination
Example
- Request
- Response
$ curl --request GET --url 'https://app.winesitting.com/api/v2/invoices' \
--header 'Authorization: Bearer YourBearerToken' \
--header 'content-type: application/json'
[
{
"id": 38770,
"state": {
"value": 1,
"name": "ONGOING",
"label": "En cours"
},
"validated_at": null,
"invoice_lines": [],
"address": null,
"invoicing_company": "WineSitting",
"purchase_order": null,
"payment_mode": null,
"created_at": {
"date": "2024-08-22 11:35:16.000000",
"timezone_type": 3,
"timezone": "Europe/Paris"
},
"updated_at": {
"date": "2024-08-22 11:35:16.000000",
"timezone_type": 3,
"timezone": "Europe/Paris"
},
"subTotal": 0,
"vat": 0,
"total": 0
},
{
"id": 38756,
"state": {
"value": 4,
"name": "PAID",
"label": "Réglée"
},
"validated_at": {
"date": "2024-07-02 00:00:00.000000",
"timezone_type": 3,
"timezone": "Europe/Paris"
},
"invoice_lines": [
{
"id": 203646,
"label": null,
"quantity": 1,
"price": 12,
"vat": 20,
"product": {
"id": 138,
"name": "Nom du produit",
"description": null
}
}
],
"address": {
"id": 245324,
"firstname": "Dupont1",
"lastname": "Dupond1",
"company": "Société XXX1",
"street1": "14 rue des Mésanges",
"street2": null,
"city": "Paris",
"zipcode": "75005",
"country": "FR",
"phone": "02 34 56 78 91",
"email": null,
"vat_number": "26375245",
"detail": null,
"reference": null
},
"invoicing_company": "WineSitting",
"purchase_order": null,
"payment_mode": "cb",
"created_at": {
"date": "2024-07-02 17:11:34.000000",
"timezone_type": 3,
"timezone": "Europe/Paris"
},
"updated_at": {
"date": "2024-07-02 17:40:05.000000",
"timezone_type": 3,
"timezone": "Europe/Paris"
},
"subTotal": 12,
"vat": 2.4,
"total": 14.4
}
]
Get a Specific Invoice
This endpoint retrieves a specific Invoice.
HTTP Request
GET /invoices/{id}
Query Parameters
Parameter | Description |
---|---|
id | The id of the Invoice to retrieve |
Example
- Request
- Response
$ curl --request GET --url 'https://app.winesitting.com/api/v2/invoices/38756' \
--header 'Authorization: Bearer YourBearerToken' \
--header 'content-type: application/json'
{
"id": 38756,
"state": {
"value": 4,
"name": "PAID",
"label": "Réglée"
},
"validated_at": {
"date": "2024-07-02 00:00:00.000000",
"timezone_type": 3,
"timezone": "Europe/Paris"
},
"invoice_lines": [
{
"id": 203646,
"label": null,
"quantity": 1,
"price": 12,
"vat": 20,
"product": {
"id": 138,
"name": "Nom du produit",
"description": null
}
}
],
"address": {
"id": 245324,
"firstname": "Dupont1",
"lastname": "Dupond1",
"company": "Société XXX1",
"street1": "14 rue des Mésanges",
"street2": null,
"city": "Paris",
"zipcode": "75005",
"country": "FR",
"phone": "02 34 56 78 91",
"email": null,
"vat_number": "26375245",
"detail": null,
"reference": null
},
"invoicing_company": "WineSitting",
"purchase_order": null,
"payment_mode": "cb",
"created_at": {
"date": "2024-07-02 17:11:34.000000",
"timezone_type": 3,
"timezone": "Europe/Paris"
},
"updated_at": {
"date": "2024-07-02 17:40:05.000000",
"timezone_type": 3,
"timezone": "Europe/Paris"
},
"subTotal": 12,
"vat": 2.4,
"total": 14.4
}