We're trying to import labels for the Expense Parser, and this is the example JSON request we're using:
{
"uri": "",
"mimeType": "application/pdf",
"text": "11/10/2021, 16:42\nOffice DEPOT\nOfficeMax\nLOS GATOS (408) 356-3757\n05/30/2020 9:42 AM\nV2VT5X3P5XY56YX66\nSALE\n5379432 PRNTER, ET-4760\nSubtotal:\n***\nSales Tax:\nTotal:\nVisa\n950-1-1844-473229-20.5.2\noffice-depot-redacted.png\nAUTH CODE 083396\nTDS Chip Read\nAID A0000000031010 CITI VISA\nTVR 0800008000\nCVS PIN Verified\n499.99 SS\n90499.99\n19 45.00\n544.99\n544.99\nhttps://mail.google.com/chat/u/0/#chat/dm/qimyvgAAAAE\n5730827812\nPlease create your online rewards\naccount at officedepot.com/rewards.\nYou must complete your account to\nclaim your rewards and view your\nstatus.\nShop online at www.officedepot.com\nWE WANT TO HEAR FROM YOU!\nVisit survey.officedepot.com\nand enter the survey code below:\n1508 QP9G OY41\n****\n**\n****\n1/1",
"page": [],
"entities": [
{
"mentionText": "receipt_number",
"type": "receipt_number"
},
{
"mentionText": "amount",
"type": "total_amount"
},
{
"mentionText": "currency",
"type": "currency"
},
{
"mentionText": "date",
"type": "receipt_date"
}
]
}
This errors out in the following way:
“inputGcsSource”: “gs://receipts321/jsonimport/output 2/2301149.json”,
“status”: {
“code”: 3,
“message”: “Request contains an invalid argument.”
}
It doesn't give any details what about what is wrong in the request. Any help appreciated!