收据解析器
开发环境
http://dev-cn.your-api-server.com
开发环境
http://dev-cn.your-api-server.com
POST
/v2/ocr/receipt_parser
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'http://dev-cn.your-api-server.com/v2/ocr/receipt_parser' \
--header 'Authorization;' \
--header 'content-type: application/json' \
--data-raw '{
"response_as_dict": true,
"attributes_as_list": false,
"show_original_response": false,
"convert_to_pdf": false
}'
响应示例响应示例
200 - 成功示例
{
"dataleon": {
"extracted_data": [
{
"invoice_number": null,
"invoice_total": 168.95,
"invoice_subtotal": null,
"barcodes": [],
"category": null,
"date": "02.04.2022",
"due_date": null,
"time": null,
"customer_information": {
"customer_name": null
},
"merchant_information": {
"merchant_name": "SC AUCHAN ROMANIA SA",
"merchant_address": null,
"merchant_phone": null,
"merchant_url": null,
"merchant_siret": null,
"merchant_siren": null,
"merchant_vat_number": null,
"merchant_gst_number": null,
"merchant_abn_number": null
},
"payment_information": {
"card_type": null,
"card_number": null,
"cash": null,
"tip": null,
"discount": null,
"change": null
},
"locale": {
"currency": null,
"language": null,
"country": null
},
"taxes": [
{
"taxes": 21.89,
"rate": null
}
],
"receipt_infos": {},
"item_lines": []
}
]
},
"microsoft": {
"extracted_data": [
{
"invoice_number": null,
"invoice_total": null,
"invoice_subtotal": null,
"barcodes": [],
"category": null,
"date": "2022-04-02",
"due_date": null,
"time": "12:29:23",
"customer_information": {
"customer_name": null
},
"merchant_information": {
"merchant_name": "SC AUCHAN ROMANIA SA",
"merchant_address": "STR. ZAHARIA STANCU, NR. 1 BRASOV, JUD. BRASOV",
"merchant_phone": null,
"merchant_url": null,
"merchant_siret": null,
"merchant_siren": null,
"merchant_vat_number": null,
"merchant_gst_number": null,
"merchant_abn_number": null
},
"payment_information": {
"card_type": null,
"card_number": null,
"cash": null,
"tip": null,
"discount": null,
"change": null
},
"locale": {
"currency": null,
"language": null,
"country": null
},
"taxes": [
{
"taxes": null,
"rate": null
}
],
"receipt_infos": {
"doc_type": null
},
"item_lines": [
{
"description": null,
"quantity": 1,
"amount": 16,
"unit_price": 16
},
{
"description": null,
"quantity": 1,
"amount": 44.01,
"unit_price": 44.01
},
{
"description": null,
"quantity": 1,
"amount": 0.89,
"unit_price": 0.89
},
{
"description": null,
"quantity": 1,
"amount": 5.55,
"unit_price": 5.55
},
{
"description": null,
"quantity": 1,
"amount": 1.75,
"unit_price": 1.75
},
{
"description": null,
"quantity": 1,
"amount": 3.6,
"unit_price": 3.6
},
{
"description": null,
"quantity": 2,
"amount": 7.1,
"unit_price": 3.55
},
{
"description": null,
"quantity": 1,
"amount": 19.4,
"unit_price": 19.4
},
{
"description": null,
"quantity": 1,
"amount": 4.55,
"unit_price": 4.55
},
{
"description": null,
"quantity": 1,
"amount": 18.7,
"unit_price": 18.7
}
]
}
]
},
"veryfi": {
"extracted_data": [
{
"invoice_number": "023673",
"invoice_total": 168.95,
"invoice_subtotal": 144.43,
"barcodes": [
{
"value": "9138579073918",
"type": "EAN13"
}
],
"category": "Grocery",
"date": "2022-04-02 12:29:23",
"due_date": null,
"time": null,
"customer_information": {
"customer_name": null
},
"merchant_information": {
"merchant_name": "Auchan",
"merchant_address": "Str. Zaharia Stancu nr. 1, Brașov, Brașov, 500167, RO",
"merchant_phone": "021-9141",
"merchant_url": null,
"merchant_siret": null,
"merchant_siren": null,
"merchant_vat_number": null,
"merchant_gst_number": null,
"merchant_abn_number": null
},
"payment_information": {
"card_type": "master_card",
"card_number": "6855",
"cash": null,
"tip": null,
"discount": null,
"change": null
},
"locale": {
"currency": "RON",
"language": null,
"country": null
},
"taxes": [
{
"taxes": null,
"rate": null
}
],
"receipt_infos": {},
"item_lines": [
{
"description": "PETR 30724BAZ.AUTO",
"quantity": 1,
"amount": null,
"unit_price": null
},
{
"description": "STICKERE PUISOR QUA",
"quantity": 1,
"amount": 16,
"unit_price": 16
},
{
"description": "SELECLINE FIERBATOR",
"quantity": 1,
"amount": 44.01,
"unit_price": 44.01
},
{
"description": "TAXA VERDE",
"quantity": 1,
"amount": 0.89,
"unit_price": 0.89
},
{
"description": "COS DREPTUNG CARLIGE",
"quantity": 1,
"amount": 5.55,
"unit_price": 5.55
},
{
"description": "CROISSANT 7 DAYS SPU",
"quantity": 1,
"amount": 1.75,
"unit_price": 1.75
},
{
"description": "PAINE CU MAIA SI MAS",
"quantity": 1,
"amount": 3.6,
"unit_price": 3.6
},
{
"description": "PATE DE PORC 20% 120",
"quantity": 2,
"amount": 7.1,
"unit_price": 3.55
},
{
"description": "NUTELLA 700G",
"quantity": 1,
"amount": 19.4,
"unit_price": 19.4
},
{
"description": "RADIERA GALET",
"quantity": 1,
"amount": 4.55,
"unit_price": 4.55
}
]
}
]
},
"amazon": {
"extracted_data": [
{
"invoice_number": "1081-00024",
"invoice_total": 168.95,
"invoice_subtotal": null,
"barcodes": [],
"category": null,
"date": "02.04.2022",
"due_date": null,
"time": null,
"customer_information": {
"customer_name": "HYPERMARCHE AUCHAN"
},
"merchant_information": {
"merchant_name": "HYPERMARCHE AUCHAN",
"merchant_address": "SC AUCHAN ROMANIA SA\nHYPERMARCHE AUCHAN\nSTR. ZAHARIA STANCU, NR. 1\nBRASOV, JUD. BRASOV",
"merchant_phone": "021-9141",
"merchant_url": null,
"merchant_siret": null,
"merchant_siren": null,
"merchant_vat_number": null,
"merchant_gst_number": null,
"merchant_abn_number": null
},
"payment_information": {
"card_type": null,
"card_number": null,
"cash": null,
"tip": null,
"discount": null,
"change": null
},
"locale": {
"currency": null,
"language": null,
"country": null
},
"taxes": [
{
"taxes": 24.52,
"rate": null
}
],
"receipt_infos": {},
"item_lines": [
{
"description": "STICKERE PUISOR DUA",
"quantity": 1,
"amount": 16,
"unit_price": 16
},
{
"description": "SELECLINE FIERBATOR",
"quantity": 1,
"amount": 44.01,
"unit_price": 44.01
},
{
"description": "TAXA VERDE",
"quantity": 1,
"amount": 0.89,
"unit_price": 0.89
},
{
"description": "COS DREPTUNG CARLIGE",
"quantity": 1,
"amount": 5.55,
"unit_price": 5.55
},
{
"description": "CROISSANT 7 DAYS SPU",
"quantity": 1,
"amount": 1.75,
"unit_price": 1.75
},
{
"description": "PAINE CU MAIA SI MAS",
"quantity": 1,
"amount": 3.6,
"unit_price": 3.6
},
{
"description": "PATE DE PORC 20% 120",
"quantity": 2,
"amount": 7.1,
"unit_price": 3.55
},
{
"description": "NUTELLA 700G",
"quantity": 1,
"amount": 19.4,
"unit_price": 19.4
},
{
"description": "RADIERA GALET",
"quantity": 1,
"amount": 4.55,
"unit_price": 4.55
},
{
"description": "GP SUPER ALKALINE LR",
"quantity": 1,
"amount": 18.7,
"unit_price": 18.7
}
]
}
]
},
"mindee": {
"extracted_data": [
{
"invoice_number": null,
"invoice_total": 137.1,
"invoice_subtotal": null,
"barcodes": [],
"category": null,
"date": null,
"due_date": null,
"time": null,
"customer_information": {
"customer_name": null
},
"merchant_information": {
"merchant_name": "BON FISCAL",
"merchant_address": "hypermarche auchan str zaharia stancu nr 1 brasov jud brasov",
"merchant_phone": null,
"merchant_url": null,
"merchant_siret": null,
"merchant_siren": null,
"merchant_vat_number": null,
"merchant_gst_number": null,
"merchant_abn_number": null
},
"payment_information": {
"card_type": null,
"card_number": null,
"cash": null,
"tip": null,
"discount": null,
"change": null
},
"locale": {
"currency": "RON",
"language": null,
"country": null
},
"taxes": [
{
"taxes": 21.89,
"rate": 19
}
],
"receipt_infos": {},
"item_lines": [
{
"description": "335 PETR STICKERE PUISOR SELECLINE OUA",
"quantity": 1,
"amount": 16,
"unit_price": 16
},
{
"description": "TAXA VERDE 1 COS DREPTUNG BUC",
"quantity": null,
"amount": 0.89,
"unit_price": null
},
{
"description": "1 CROISSANT 7 DAYS BUC x SPU",
"quantity": null,
"amount": 5.55,
"unit_price": null
},
{
"description": "1 PAINE CU MAIA BUC x SI MAS",
"quantity": null,
"amount": 1.75,
"unit_price": null
},
{
"description": "1 PATE DE PORC 20% BUC x 120",
"quantity": null,
"amount": 3.6,
"unit_price": null
},
{
"description": "2 BUC",
"quantity": null,
"amount": 7.1,
"unit_price": 3.55
},
{
"description": "NUTELLA 700G",
"quantity": 1,
"amount": 19.4,
"unit_price": 19.4
},
{
"description": "RADIERA GALET",
"quantity": 1,
"amount": 4.55,
"unit_price": 4.55
},
{
"description": "GP SUPER ALKALINE LR",
"quantity": 1,
"amount": 18.7,
"unit_price": 18.7
},
{
"description": "NIVEA BALS DUPA RAS",
"quantity": 1,
"amount": 30.5,
"unit_price": 30.5
}
]
}
]
},
"base64": {
"extracted_data": [
{
"invoice_number": "1081-00024",
"invoice_total": 168.95,
"invoice_subtotal": null,
"barcodes": [],
"category": null,
"date": "2022-04-02 12:29:23",
"due_date": null,
"time": "12:29:23",
"customer_information": {
"customer_name": null
},
"merchant_information": {
"merchant_name": "SC AUCHAN ROMANIA SA",
"merchant_address": null,
"merchant_phone": null,
"merchant_url": null,
"merchant_siret": null,
"merchant_siren": null,
"merchant_vat_number": null,
"merchant_gst_number": null,
"merchant_abn_number": null
},
"payment_information": {
"card_type": "Mastercard",
"card_number": "168,95",
"cash": null,
"tip": null,
"discount": null,
"change": null
},
"locale": {
"currency": null,
"language": null,
"country": null
},
"taxes": [
{
"taxes": 24.52,
"rate": null
}
],
"receipt_infos": {
"payment_code": null,
"host": null,
"payment_id": null,
"card_type": "Mastercard",
"receipt_number": "1081-00024"
},
"item_lines": []
}
]
},
"google": {
"extracted_data": [
{
"invoice_number": null,
"invoice_total": 168.95,
"invoice_subtotal": null,
"barcodes": [],
"category": null,
"date": "2022-04-02",
"due_date": null,
"time": "12:29:53",
"customer_information": {
"customer_name": null
},
"merchant_information": {
"merchant_name": "SC AUCHAN ROMANIA SA",
"merchant_address": "Str. Zaharia Stancu 1\nBrașov 500167\nRomânia",
"merchant_phone": "021-9141",
"merchant_url": null,
"merchant_siret": null,
"merchant_siren": null,
"merchant_vat_number": null,
"merchant_gst_number": null,
"merchant_abn_number": null
},
"payment_information": {
"card_type": null,
"card_number": "6855",
"cash": null,
"tip": null,
"discount": null,
"change": null
},
"locale": {
"currency": "RON",
"language": null,
"country": null
},
"taxes": [
{
"taxes": null,
"rate": null
}
],
"receipt_infos": {},
"item_lines": [
{
"description": null,
"quantity": null,
"amount": 16,
"unit_price": null
},
{
"description": "SELECLINE FIERBATOR",
"quantity": null,
"amount": null,
"unit_price": null
},
{
"description": "1 BUC",
"quantity": null,
"amount": 44.01,
"unit_price": null
},
{
"description": "TAXA VERDE",
"quantity": null,
"amount": 0.89,
"unit_price": null
},
{
"description": "COS DREPTUNG CARLIGE",
"quantity": null,
"amount": null,
"unit_price": null
},
{
"description": "CROISSANT 7 DAYS SPU",
"quantity": null,
"amount": null,
"unit_price": null
},
{
"description": "BUC",
"quantity": 1,
"amount": 5.55,
"unit_price": null
},
{
"description": "PAINE CU MAIA SI MAS",
"quantity": null,
"amount": null,
"unit_price": null
},
{
"description": "NUTELLA 700G",
"quantity": null,
"amount": null,
"unit_price": null
},
{
"description": "BUC",
"quantity": 1,
"amount": 1.75,
"unit_price": null
}
]
}
]
},
"klippa": {
"extracted_data": [
{
"invoice_number": "",
"invoice_total": 16895,
"invoice_subtotal": null,
"barcodes": [],
"category": null,
"date": "2022-04-02T12:29:23",
"due_date": null,
"time": null,
"customer_information": {
"customer_name": ""
},
"merchant_information": {
"merchant_name": "Auchan",
"merchant_address": "",
"merchant_phone": "",
"merchant_url": "",
"merchant_siret": "",
"merchant_siren": null,
"merchant_vat_number": null,
"merchant_gst_number": null,
"merchant_abn_number": null
},
"payment_information": {
"card_type": "creditcard",
"card_number": "6855",
"cash": null,
"tip": null,
"discount": null,
"change": null
},
"locale": {
"currency": "RON",
"language": "RO",
"country": "RO"
},
"taxes": [
{
"taxes": 0,
"rate": 0
}
],
"receipt_infos": {},
"item_lines": []
}
]
},
"tabscanner": {
"extracted_data": [
{
"invoice_number": null,
"invoice_total": 168.95,
"invoice_subtotal": 168.95,
"barcodes": [
{
"value": "9138579073918",
"type": "EAN13"
}
],
"category": null,
"date": "2022-04-02 12:29:23",
"due_date": null,
"time": null,
"customer_information": {
"customer_name": null
},
"merchant_information": {
"merchant_name": "SC AUCHAN ROMANIA SA",
"merchant_address": "",
"merchant_phone": "",
"merchant_url": "",
"merchant_siret": null,
"merchant_siren": null,
"merchant_vat_number": null,
"merchant_gst_number": null,
"merchant_abn_number": null
},
"payment_information": {
"card_type": "Mastercard",
"card_number": null,
"cash": "0",
"tip": "0",
"discount": "0",
"change": "0"
},
"locale": {
"currency": null,
"language": null,
"country": null
},
"taxes": [],
"receipt_infos": {
"address": "",
"barcodes": [
{
"value": "9138579073918",
"type": "EAN13"
}
],
"Etablishment": "",
"payment": "",
"phone_number": ""
},
"item_lines": [
{
"description": "BUC X 16,00",
"quantity": 1,
"amount": 16,
"unit_price": null
},
{
"description": "BUC X 44,01",
"quantity": 1,
"amount": 44.01,
"unit_price": null
},
{
"description": "TAXA VERDE BUC X 0,89",
"quantity": 1,
"amount": 0.89,
"unit_price": null
},
{
"description": "BUC X 5,55",
"quantity": 1,
"amount": 5.55,
"unit_price": null
},
{
"description": "BUC X 1,75",
"quantity": 1,
"amount": 1.75,
"unit_price": null
},
{
"description": "BUC X 3,60",
"quantity": 1,
"amount": 3.6,
"unit_price": null
},
{
"description": "BUC X 3,55",
"quantity": 2,
"amount": 7.1,
"unit_price": null
},
{
"description": "BUC X 19,40",
"quantity": 1,
"amount": 19.4,
"unit_price": null
},
{
"description": "BUC X 4,55",
"quantity": 1,
"amount": 4.55,
"unit_price": null
},
{
"description": "BUC X 18,70",
"quantity": 1,
"amount": 18.7,
"unit_price": null
}
]
}
]
},
"affinda": {
"extracted_data": [
{
"invoice_number": null,
"invoice_total": 168.95,
"invoice_subtotal": null,
"barcodes": [],
"category": null,
"date": "02.04.2022",
"due_date": null,
"time": "12:29:53",
"customer_information": {
"customer_name": null
},
"merchant_information": {
"merchant_name": "SC AUCHAN ROMANIA SA",
"merchant_address": "HYPERMARCHE AUCHAN STR. ZAHARIA STANCU, NR. 1 BRASOV, JUD. BRASOV",
"merchant_phone": "R017233051",
"merchant_url": null,
"merchant_siret": null,
"merchant_siren": null,
"merchant_vat_number": null,
"merchant_gst_number": null,
"merchant_abn_number": null
},
"payment_information": {
"card_type": null,
"card_number": null,
"cash": null,
"tip": null,
"discount": null,
"change": null
},
"locale": {
"currency": "USD",
"language": null,
"country": null
},
"taxes": [],
"receipt_infos": {},
"item_lines": [
{
"description": "STICKERE PUISOR OUA",
"quantity": null,
"amount": null,
"unit_price": null
},
{
"description": null,
"quantity": 1,
"amount": null,
"unit_price": 16
},
{
"description": "SELECLINE FIERBATOR",
"quantity": 1,
"amount": 44.01,
"unit_price": 44.01
},
{
"description": "TAXA VERDE",
"quantity": 1,
"amount": 0.89,
"unit_price": 0.89
},
{
"description": "COS DREPTUNG CARLIGE",
"quantity": 1,
"amount": 5.55,
"unit_price": 5.55
},
{
"description": "CROISSANT 7 DAYS SPU",
"quantity": 1,
"amount": null,
"unit_price": 1.75
},
{
"description": "PAINE CU MAIA SI MAS",
"quantity": 1,
"amount": null,
"unit_price": 3.6
},
{
"description": "PATE DE PORC 20% 120",
"quantity": 2,
"amount": null,
"unit_price": 3.55
},
{
"description": "NUTELLA 700G",
"quantity": 1,
"amount": 19.4,
"unit_price": 19.4
},
{
"description": "RADIERA GALET",
"quantity": 1,
"amount": null,
"unit_price": 4.55
}
]
}
]
},
"eden-ai": {
"status": "success",
"extracted_data": [
{
"invoice_number": "023673",
"invoice_total": 168.95,
"invoice_subtotal": 144.43,
"barcodes": [
{
"value": "9138579073918",
"type": "EAN13"
}
],
"category": "Grocery",
"date": "02.04.2022",
"due_date": null,
"time": "12:29:23",
"customer_information": {
"customer_name": "HYPERMARCHE AUCHAN"
},
"merchant_information": {
"merchant_name": "SC AUCHAN ROMANIA SA",
"merchant_address": "STR. ZAHARIA STANCU, NR. 1 BRASOV, JUD. BRASOV",
"merchant_phone": "021-9141",
"merchant_url": null,
"merchant_siret": null,
"merchant_siren": null,
"merchant_vat_number": null,
"merchant_gst_number": null,
"merchant_abn_number": null
},
"payment_information": {
"card_type": "master_card",
"card_number": "6855",
"cash": "0",
"tip": "0",
"discount": "0",
"change": "0"
},
"locale": {
"currency": "RON",
"language": "RO",
"country": "RO"
},
"taxes": [
{
"taxes": 21.89,
"rate": null
}
],
"item_lines": [
{
"description": null,
"quantity": 1,
"amount": 16,
"unit_price": 16
},
{
"description": null,
"quantity": 1,
"amount": 44.01,
"unit_price": 44.01
},
{
"description": null,
"quantity": 1,
"amount": 0.89,
"unit_price": 0.89
},
{
"description": null,
"quantity": 1,
"amount": 5.55,
"unit_price": 5.55
},
{
"description": null,
"quantity": 1,
"amount": 1.75,
"unit_price": 1.75
},
{
"description": null,
"quantity": 1,
"amount": 3.6,
"unit_price": 3.6
},
{
"description": null,
"quantity": 2,
"amount": 7.1,
"unit_price": 3.55
},
{
"description": null,
"quantity": 1,
"amount": 19.4,
"unit_price": 19.4
},
{
"description": null,
"quantity": 1,
"amount": 4.55,
"unit_price": 4.55
},
{
"description": null,
"quantity": 1,
"amount": 18.7,
"unit_price": 18.7
}
],
"receipt_infos": {
"doc_type": null,
"payment_code": null,
"host": null,
"payment_id": null,
"card_type": "Mastercard",
"receipt_number": "1081-00024",
"address": "",
"barcodes": [
{
"value": "9138579073918",
"type": "EAN13"
}
],
"Etablishment": "",
"payment": "",
"phone_number": ""
}
}
]
}
}
请求参数
Header 参数
content-type
string
必需
示例值:
application/json
Authorization
string
必需
默认值:
Bearer <your_key>
Body 参数application/json
返回响应
修改于 2024-04-11 07:26:20