/api/v1/accounting.invoices/list
Name | Type | Method | Required | Default | Description |
---|---|---|---|---|---|
page | int | GET | no | 1 | Stránkovanie. |
(empty)
HTTP 200 - OK
Host: example.org
Content-Type: application/vnd.shoptec.v1.0+json; charset=utf-8
{
"page": 1,
"pages": 1,
"itemsCount": 1,
"itemsPerPage": 10,
"invoices": [
{
"id": 15,
"prefix": "12018",
"number": "00012",
"vs": "1201800084",
"ss": null,
"cs": "0008",
"payment": "GoPay",
"shipping": "Kuri\u00e9r TOPTRANS",
"date_due": "2018-08-25",
"date_issued": "2018-08-18",
"date_vat": "2018-08-18",
"date_paid": "2018-08-18 14:39:49",
"note": null,
"created": "2018-08-18 14:39:49",
"supplier": {
"company": "Webtec, s.r.o.",
"street": "Testovacia 99",
"postcode": "83104",
"city": "Bratislava",
"uid": "531631616",
"vatid": "5316316316136",
"vatpayer": 1,
"phone": "+421949949949",
"email": "info@example.org",
"web": null,
"note": null,
"bank_account": {
"bban": null,
"iban": null,
"swift": null,
"bank_name": null
}
},
"customer": {
"name": "J\u00e1n Nov\u00e1k",
"street": "Testovacia 1",
"postcode": "83104",
"city": "Bratislava",
"country": "Slovensko",
"company": null,
"uid": null,
"vatid": null,
"vatpayer": 0,
"phone": "00421949949949",
"email": "info@example.org",
"note": null
},
"delivery": {
"name": "J\u00e1n Nov\u00e1k",
"street": "Testovacia 1",
"postcode": "83104",
"city": "Bratislava",
"country": "Slovensko"
},
"order": {
"id": 97,
"number": "1201800084",
"created": "2018-08-18 12:09:35"
},
"items": [
{
"id": 39,
"code": "4640",
"name": "iPhone X 256 GB",
"quantity": 1,
"unit": null,
"type": "Tovar",
"price": {
"base": 100,
"discount": 0,
"vat": 20
}
},
{
"id": 40,
"code": "",
"name": "Z\u013eavov\u00fd kup\u00f3n",
"quantity": 1,
"unit": null,
"type": "Tovar",
"price": {
"base": -20,
"discount": 0,
"vat": 20
}
},
{
"id": 41,
"code": "Doprava",
"name": "Kuri\u00e9r TOPTRANS",
"quantity": 1,
"unit": null,
"type": "Slu\u017eba",
"price": {
"base": 5,
"discount": 0,
"vat": 20
}
},
{
"id": 42,
"code": "Platba",
"name": "GoPay",
"quantity": 1,
"unit": null,
"type": "Slu\u017eba",
"price": {
"base": 1,
"discount": 0,
"vat": 20
}
}
]
}
]
}
/api/v1/accounting.credit-notes/list
Name | Type | Method | Required | Default | Description |
---|---|---|---|---|---|
page | int | GET | no | 1 | Stránkovanie. |
(empty)
HTTP 200 - OK
Host: example.org
Content-Type: application/vnd.shoptec.v1.0+json; charset=utf-8
{
"page": 1,
"pages": 1,
"itemsCount": 1,
"itemsPerPage": 10,
"credit_notes": [
{
"id": 1,
"prefix": "22018",
"number": "00001",
"vs": "2201800001",
"ss": "",
"cs": "0008",
"payment": null,
"shipping": null,
"date_due": "2018-09-22",
"date_issued": "2018-09-15",
"date_vat": "2018-09-15",
"date_paid": "2018-08-18 00:00:00",
"note": "",
"created": "2018-09-15 14:58:02",
"supplier": {
"company": "Webtec, s.r.o.",
"street": "Testovacia 99",
"postcode": "83104",
"city": "Bratislava",
"uid": "531631616",
"vatid": "5316316316136",
"vatpayer": 1,
"phone": "+421949949949",
"email": "info@example.org",
"web": "https:\/\/shoptec.sk",
"note": "",
"bank_account": {
"bban": "Webtec, s.r.o.",
"iban": "SK17 1100 0000 0029 2383 9188",
"swift": "TATRSKBX",
"bank_name": "Tatra banka, a.s."
}
},
"customer": {
"name": "J\u00e1n Nov\u00e1k",
"street": "Testovacia 1",
"postcode": "83104",
"city": "Bratislava",
"country": "Slovensko",
"company": "",
"uid": "",
"vatid": "",
"vatpayer": 0,
"phone": "00421949949949",
"email": "test@example.com",
"note": ""
},
"delivery": {
"name": "J\u00e1n Nov\u00e1k",
"street": "Testovacia 1",
"postcode": "83104",
"city": "Bratislava",
"country": "Slovensko"
},
"invoice": {
"id": 15,
"number": "1201800012",
"created": "2018-08-18 14:39:49"
},
"items": [
{
"id": 1,
"code": "4640",
"name": "iPhone X 256 GB",
"quantity": 1,
"unit": "",
"type": "Tovar",
"price": {
"base": -100,
"discount": 0,
"vat": 20
}
},
{
"id": 2,
"code": "Doprava",
"name": "Kuri\u00e9r TOPTRANS",
"quantity": 1,
"unit": "",
"type": "Slu\u017eba",
"price": {
"base": -5,
"discount": 0,
"vat": 20
}
},
{
"id": 3,
"code": "Platba",
"name": "GoPay",
"quantity": 1,
"unit": "",
"type": "Slu\u017eba",
"price": {
"base": -1,
"discount": 0,
"vat": 20
}
}
]
}
]
}