200 |
OK is returned to indicate that the receipt was processed successfully.
The retrieved data is presented in the form of a JSON structure comprising several distinct fields. The below explanation provides further details. It's important to note that the resultant structure exclusively encompasses the detected or available data, implying that not all fields within the JSON structure will be included in the output.
general |
Summarizes general information about the receipt |
productItems |
Contains all the line items with further information |
taxes |
Contains a summary of all the tax information |
payments |
Contains all payment information |
performanceOption |
Indicates which algorithm was used for processing the receipt. At the moment there is only 'SPEED' available |
fileHash |
MD5 hash of the input file. This information can be used to check for duplicates |
version |
Version of the algorithm which was used to process the receipt |
numberOfPages |
Number of processed pages in case a receipt consists of multiple pages |
fullText |
Contains the full text information of the receipt in an unstructured format. This information can help for example if you want to store the receipts in a database and make it searchable |
ShopName |
Name of the shop |
ShopStreet |
Name of the street where the shop is located |
ShopCity |
Name of the city where the shop is located |
ShopZip |
Zip code of the city where the shop is located |
ShopState |
State where the shop is located |
ShopCountry |
Country where the shop is located |
ShopTel |
Phone number of the shop |
ShopEmail |
Email address of the shop |
ShopWeb |
Web address of the shop |
Date (deprecate) |
Date when the receipt was issued |
InvoiceDate |
Date when the receipt was issued |
Time |
Time when the receipt was issued |
ReceiptNumber(deprecate) |
Number of the issued receipt |
InvoiceNumber |
Number of the issued receipt |
TotalPrice |
Total price of the receipt |
Currency |
Currency which applies for the receipt |
Polygon |
Structure which holds the points of a polygon. The polygon describes the area in which the text was found in the image |
p1, p2, p3, p4 |
Points with x, y coordinates normalized to 1 |
TaxAmount |
Amount of tax according to a certain tax category |
TaxNetAmount |
Net amount based on which the tax is calculated for a certain tax category |
TaxGrossAmount |
Gross amount of the the tax category: TaxAmount + TaxNetAmount for the tax category |
TaxPercentage |
Percentage of the tax category (for example: 7%, 19%) |
TaxLabel |
Label of the tax information. Sometimes labels like 'A', 'B' are used to indicate a certain tax category in the product list. |
PaymentMethod |
Indicates which payment method was used. For example: girocard, visa, etc. |
PaymentCardNumber |
Card number of the car which was used to pay |
ProductId |
Id of the product on the receipt. Sometimes there are specific numbers on the receipt to identify a product |
ProductName |
Name of the product |
ProductPrice |
Price of the product. If multiple products are summarized in one line, the total of all products is given |
ProductUnitPrice |
If multiple products are summarized in one line, the unit price for a single product is given |
ProductQuantity |
If multiple products are summarized in one line, the number of products is given |
Example:
/api/v2/receipt/processing?privacy=true&polygon=true&fullText=true
{
"general": {
"ShopName": {
"value": "Amazonica Restaurant marché",
"polygon": {
"p1": {
"x": 338.0,
"y": 566.0
},
"p2": {
"x": 664.0,
"y": 553.0
},
"p3": {
"x": 665.0,
"y": 581.0
},
"p4": {
"x": 339.0,
"y": 594.0
}
},
"page": 1
},
"ShopStreet": {
"value": "Pragstrasse 9",
"polygon": {
"p1": {
"x": 257.0,
"y": 593.0
},
"p2": {
"x": 468.4666666666667,
"y": 593.0
},
"p3": {
"x": 468.4666666666667,
"y": 641.0
},
"p4": {
"x": 257.0,
"y": 641.0
}
},
"page": 1
},
"ShopCity": {
"value": "Stuttgart",
"polygon": {
"p1": {
"x": 598.6,
"y": 593.0
},
"p2": {
"x": 745.0,
"y": 593.0
},
"p3": {
"x": 745.0,
"y": 641.0
},
"p4": {
"x": 598.6,
"y": 641.0
}
},
"page": 1
},
"ShopZip": {
"value": "70376",
"polygon": {
"p1": {
"x": 501.0,
"y": 593.0
},
"p2": {
"x": 582.3333333333334,
"y": 593.0
},
"p3": {
"x": 582.3333333333334,
"y": 641.0
},
"p4": {
"x": 501.0,
"y": 641.0
}
},
"page": 1
},
"ShopTel": {
"value": "+49 711 50560620",
"polygon": {
"p1": {
"x": 324.0,
"y": 648.0
},
"p2": {
"x": 681.0,
"y": 635.0
},
"p3": {
"x": 682.0,
"y": 664.0
},
"p4": {
"x": 325.0,
"y": 677.0
}
},
"page": 1
},
"ShopEmail": {
"value": "wilhelma@marche-int.com",
"polygon": {
"p1": {
"x": 266.0,
"y": 689.0
},
"p2": {
"x": 736.0,
"y": 677.0
},
"p3": {
"x": 737.0,
"y": 705.0
},
"p4": {
"x": 267.0,
"y": 717.0
}
},
"page": 1
},
"Date": {
"value": "2022-11-06",
"polygon": {
"p1": {
"x": 583.0,
"y": 801.0
},
"p2": {
"x": 848.0,
"y": 790.0
},
"p3": {
"x": 849.0,
"y": 820.0
},
"p4": {
"x": 584.0,
"y": 831.0
}
},
"page": 1
},
"Time": {
"value": "12:48",
"polygon": {
"p1": {
"x": 583.0,
"y": 801.0
},
"p2": {
"x": 848.0,
"y": 790.0
},
"p3": {
"x": 849.0,
"y": 820.0
},
"p4": {
"x": 584.0,
"y": 831.0
}
},
"page": 1
},
"ReceiptNumber": {
"value": "951",
"polygon": {
"p1": {
"x": 0.0,
"y": 0.0
},
"p2": {
"x": 0.0,
"y": 0.0
},
"p3": {
"x": 0.0,
"y": 0.0
},
"p4": {
"x": 0.0,
"y": 0.0
}
},
"page": 0
},
"TotalPrice": {
"value": "30.9",
"polygon": {
"p1": {
"x": 762.0,
"y": 1076.0
},
"p2": {
"x": 842.0,
"y": 1071.0
},
"p3": {
"x": 844.0,
"y": 1097.0
},
"p4": {
"x": 764.0,
"y": 1102.0
}
},
"page": 1
},
"Currency": {
"value": "EUR",
"polygon": {
"p1": {
"x": 660.0,
"y": 3214.0
},
"p2": {
"x": 808.0,
"y": 3215.0
},
"p3": {
"x": 808.0,
"y": 3239.0
},
"p4": {
"x": 660.0,
"y": 3238.0
}
},
"page": 1
}
},
"productItems": [
{
"TaxPercentage": {
"value": "7.0",
"polygon": {
"p1": {
"x": 765.0,
"y": 915.0
},
"p2": {
"x": 841.9288025889967,
"y": 908.0064724919093
},
"p3": {
"x": 842.9288025889967,
"y": 936.0064724919093
},
"p4": {
"x": 766.0,
"y": 943.0
}
},
"page": 1
},
"ProductName": {
"value": "Maultaschen Beilage",
"polygon": {
"p1": {
"x": 178.0,
"y": 919.0
},
"p2": {
"x": 487.0,
"y": 921.0
},
"p3": {
"x": 487.0,
"y": 949.0
},
"p4": {
"x": 178.0,
"y": 947.0
}
},
"page": 1
},
"ProductPrice": {
"value": "11.9",
"polygon": {
"p1": {
"x": 765.0,
"y": 915.0
},
"p2": {
"x": 841.9288025889967,
"y": 908.0064724919093
},
"p3": {
"x": 842.9288025889967,
"y": 936.0064724919093
},
"p4": {
"x": 766.0,
"y": 943.0
}
},
"page": 1
}
},
{
"TaxPercentage": {
"value": "7.0",
"polygon": {
"p1": {
"x": 764.0,
"y": 954.0
},
"p2": {
"x": 840.9290322580645,
"y": 947.0064516129032
},
"p3": {
"x": 842.9290322580645,
"y": 975.0064516129032
},
"p4": {
"x": 766.0,
"y": 982.0
}
},
"page": 1
},
"ProductName": {
"value": "Schnitzel Beilage",
"polygon": {
"p1": {
"x": 177.0,
"y": 956.0
},
"p2": {
"x": 455.0,
"y": 958.0
},
"p3": {
"x": 455.0,
"y": 987.0
},
"p4": {
"x": 177.0,
"y": 985.0
}
},
"page": 1
},
"ProductPrice": {
"value": "14.5",
"polygon": {
"p1": {
"x": 764.0,
"y": 954.0
},
"p2": {
"x": 840.9290322580645,
"y": 947.0064516129032
},
"p3": {
"x": 842.9290322580645,
"y": 975.0064516129032
},
"p4": {
"x": 766.0,
"y": 982.0
}
},
"page": 1
}
},
{
"TaxPercentage": {
"value": "7.0",
"polygon": {
"p1": {
"x": 777.0,
"y": 994.0
},
"p2": {
"x": 842.0867678958786,
"y": 990.17136659436
},
"p3": {
"x": 844.0867678958786,
"y": 1017.17136659436
},
"p4": {
"x": 779.0,
"y": 1021.0
}
},
"page": 1
},
"ProductName": {
"value": "Pommes Frites Bio-Qu",
"polygon": {
"p1": {
"x": 178.0,
"y": 995.0
},
"p2": {
"x": 505.0,
"y": 1000.0
},
"p3": {
"x": 504.0,
"y": 1031.0
},
"p4": {
"x": 177.0,
"y": 1026.0
}
},
"page": 1
},
"ProductPrice": {
"value": "4.5",
"polygon": {
"p1": {
"x": 777.0,
"y": 994.0
},
"p2": {
"x": 842.0867678958786,
"y": 990.17136659436
},
"p3": {
"x": 844.0867678958786,
"y": 1017.17136659436
},
"p4": {
"x": 779.0,
"y": 1021.0
}
},
"page": 1
}
}
],
"taxes": [
{
"TaxAmount": {
"value": "2.02",
"polygon": {
"p1": {
"x": 565.0,
"y": 1279.0
},
"p2": {
"x": 631.0,
"y": 1279.0
},
"p3": {
"x": 631.0,
"y": 1308.0
},
"p4": {
"x": 565.0,
"y": 1308.0
}
},
"page": 1
},
"TaxNetAmount": {
"value": "28.88",
"polygon": {
"p1": {
"x": 372.0,
"y": 1282.0
},
"p2": {
"x": 453.0,
"y": 1282.0
},
"p3": {
"x": 453.0,
"y": 1308.0
},
"p4": {
"x": 372.0,
"y": 1308.0
}
},
"page": 1
},
"TaxGrossAmount": {
"value": "30.9",
"polygon": {
"p1": {
"x": 761.0,
"y": 1272.0
},
"p2": {
"x": 843.0,
"y": 1272.0
},
"p3": {
"x": 843.0,
"y": 1302.0
},
"p4": {
"x": 761.0,
"y": 1302.0
}
},
"page": 1
},
"TaxPercentage": {
"value": "7.0",
"polygon": {
"p1": {
"x": 163.0,
"y": 1281.0
},
"p2": {
"x": 226.0,
"y": 1281.0
},
"p3": {
"x": 226.0,
"y": 1306.0
},
"p4": {
"x": 163.0,
"y": 1306.0
}
},
"page": 1
}
}
],
"payments": [
{
"PaymentMethod": {
"value": "girocard",
"polygon": {
"p1": {
"x": 411.0,
"y": 3092.0
},
"p2": {
"x": 547.0,
"y": 3092.0
},
"p3": {
"x": 547.0,
"y": 3123.0
},
"p4": {
"x": 411.0,
"y": 3123.0
}
},
"page": 1
},
"PaymentCardNumber": {
"value": "###############4423",
"polygon": {
"p1": {
"x": 495.0,
"y": 3291.0
},
"p2": {
"x": 806.0,
"y": 3291.0
},
"p3": {
"x": 806.0,
"y": 3315.0
},
"p4": {
"x": 495.0,
"y": 3315.0
}
},
"page": 1
}
}
],
"performanceOption": "SPEED",
"fileHash": "afdf2c591ae648071b15023a74cc3068",
"version": "0.0.36",
"numberOfPages": 1,
"fullText": [
[
"marché ",
"MÖVENPICK ",
"Marche Wilhelma Stuttgart ",
"Amazonica Restaurant ",
"Pragstrasse 9, 70376 Stuttgart ",
"TEL.: +49 711 50560620 ",
"Mail: wilhelma@marche-int.com ",
"Marché Restaurant ",
"RNG-Nr.: 60812 06.11.2022 12:48 ",
"Kasse: WS667208 Kellner: 66725050 ",
"Maultaschen Beilage 11,90 ",
"Schnitzel Beilage 14,50 ",
"Pommes Frites Bio-Qu 4,50 ",
"Total in EUR 30,90 ",
"1105 Girocard 30,90 ",
"MwSt % Netto MwSt Brutto ",
"7.00 28,88 2,02 30,90 ",
"** Im Haus ** Shop:496672 ",
"****** Fiscal Information ****** ",
"Marche Mövenpick Deutschland GmbH ",
"Esslinger Str. 7, 70771 L.-Echterdingen ",
"0 USt.ID.Nr.: DE147 795 915 ",
"A food lovers' brand ",
"by Marché International ",
"Sie lieben Frische, Qualität & Genus ? ",
"Dann sind Sie bei uns genau richtig. ",
"WIR SUCHEN SIE als Teil unseres Teams. ",
"Offene Stellen: ",
"jobs.marche-international.com ",
"+ KUNDENBELEG+ ",
"Marche M?venpick ",
"Wilhelma Stuttgart ",
"Pragstra?e 9 ",
"70376 Stuttgart ",
"Vielen Dank! ",
"Terminalnummer 68250643 ",
"Datum 06.11.2022 ",
"Uhrzeit 12:47:58 ",
"Beleg-Nr. 951 ",
"Transaktions-Nr. 55729 ",
"Kartenzahlung ",
"girocard ",
"Betrag 30.90 EUR ",
"Karte ###############4423 ",
"Kartenfolgenummer 02 ",
"Vertragsnummer VU-123456789017 ",
"EMV-AID A0000003591010028001 ",
"Genehmigungs-Nr. 192248 ",
"EMV-DATA: ",
"1F0302/0000000000 ",
"Contact less ",
"Zahlung erfolgt "
]
]
}
|