Skip to content

ImportApi_Upload

POST
/api/ImportApi/Upload
curl --request POST \
--url https://salesapi.caspeco.net/api/ImportApi/Upload \
--header 'Content-Type: application/json' \
--data '{ "Version": 1, "Head": { "SystemName": "example", "ComputerName": "example", "GuId": "example", "Vendor": "example", "Hash": "example", "SecretRev": 1 }, "Data": { "Tickets": [ { "Orders": [ { "DateTime": "2026-04-15T12:00:00Z", "DateTimeXml": "example", "OperatorId": "example", "OperatorName": "example", "TableId": "example", "Lines": [ { "MixedLines": [], "Addons": [], "IsCorrection": true, "ArticleId": "example", "ArticleName": "example", "ArticleGroup": { "Parent": {}, "Id": "example", "Name": "example" }, "EanCode": "example", "Quantity": 1, "PriceExVat": 1, "Vat": 1, "Cost": 1, "DiscountExVat": 1, "TotalPriceIncVatAndDisc": 1, "Tags": { "additionalProperty": {} } } ], "Tags": { "additionalProperty": {} } } ], "SiteId": "example", "SiteName": "example", "ZoneId": "example", "ZoneName": "example", "ReceiptId": "example", "TableId": "example", "NumGuests": 1, "OperatorId": "example", "OperatorName": "example", "Tip": 1, "TakeAway": true, "Payment": "example", "Currency": "example", "ProjectId": "example", "ProjectName": "example", "IsCorrection": true, "Tags": { "additionalProperty": {} }, "TableOpen": "2026-04-15T12:00:00Z", "TableClose": "2026-04-15T12:00:00Z", "TableOpenXml": "example", "TableCloseXml": "example" } ] } }'
Caspeco-Storage-Auth-Id
string

Used in Article

Caspeco-Storage-Auth-Secret
string

Used in Article

AuthKey
string

Used in ExportAPI

object
Version
integer format: int32
Head
object
SystemName
string
ComputerName
string
GuId
string
Vendor
string
Hash
string
SecretRev
integer format: int32
Data
object
Tickets
Array<object>
object
Orders
Array<object>
object
DateTime
string format: date-time
DateTimeXml
string
OperatorId
string
OperatorName
string
TableId
string
Lines
Array<object>
object
MixedLines
Array<object> recursive
Addons
Array<object> recursive
IsCorrection
boolean
ArticleId
string
ArticleName
string
ArticleGroup
object
Parent
object recursive
Id
string
Name
string
EanCode
string
Quantity
number format: double
PriceExVat
number format: double
Vat
number format: double
Cost
number format: double
DiscountExVat
number format: double
TotalPriceIncVatAndDisc
number format: double
Tags
object
key
additional properties
object
Tags
object
key
additional properties
object
SiteId
string
SiteName
string
ZoneId
string
ZoneName
string
ReceiptId
string
TableId
string
NumGuests
integer format: int32
OperatorId
string
OperatorName
string
Tip
number format: double
TakeAway
boolean
Payment
string
Currency
string
ProjectId
string
ProjectName
string
IsCorrection
boolean
Tags
object
key
additional properties
object
TableOpen
string format: date-time
TableClose
string format: date-time
TableOpenXml
string
TableCloseXml
string
Examplegenerated
{
"Version": 1,
"Head": {
"SystemName": "example",
"ComputerName": "example",
"GuId": "example",
"Vendor": "example",
"Hash": "example",
"SecretRev": 1
},
"Data": {
"Tickets": [
{
"Orders": [
{
"DateTime": "2026-04-15T12:00:00Z",
"DateTimeXml": "example",
"OperatorId": "example",
"OperatorName": "example",
"TableId": "example",
"Lines": [
{
"MixedLines": [],
"Addons": [],
"IsCorrection": true,
"ArticleId": "example",
"ArticleName": "example",
"ArticleGroup": {
"Parent": {},
"Id": "example",
"Name": "example"
},
"EanCode": "example",
"Quantity": 1,
"PriceExVat": 1,
"Vat": 1,
"Cost": 1,
"DiscountExVat": 1,
"TotalPriceIncVatAndDisc": 1,
"Tags": {
"additionalProperty": {}
}
}
],
"Tags": {
"additionalProperty": {}
}
}
],
"SiteId": "example",
"SiteName": "example",
"ZoneId": "example",
"ZoneName": "example",
"ReceiptId": "example",
"TableId": "example",
"NumGuests": 1,
"OperatorId": "example",
"OperatorName": "example",
"Tip": 1,
"TakeAway": true,
"Payment": "example",
"Currency": "example",
"ProjectId": "example",
"ProjectName": "example",
"IsCorrection": true,
"Tags": {
"additionalProperty": {}
},
"TableOpen": "2026-04-15T12:00:00Z",
"TableClose": "2026-04-15T12:00:00Z",
"TableOpenXml": "example",
"TableCloseXml": "example"
}
]
}
}

OK

object
Examplegenerated
{}