InquireAI Response Data
Response Data
The expected response will always be in the form of:
{“header”:{},”value”:[]}
The header object contains the Key:Value pairs for any extracted header data. These are values that are only represented by a single value.
The value array contains repeating Key:Value pairs. This is repetitive data represented in a data table or as a multi value field and will be added to the table field/multi value field indicated in the Table setting.
{ "header": { "Order Number": "1004", "Order Date": "2018/11/16", "Ship To": "Robert Johnson, SoundCoast Musical Supply, 97 Orange Street, New Haven, CT 06510", "Bill To": "SoundCoast Musical Supply, 97 Orange Street, New Haven, CT 06510", "Amount": "$107,778.55", "Description": "Purchase Order" }, "value": [ { "Item Description": "Martin 00-28VS Acoustic Guitar", "Quantity": "10", "Unit Price": "$3,859.00", "Extended Amount": "$38,590.00" }, { "Item Description": "Martin 00-28 Standard Grand Auditorium Acoustic Guitar Aged Toner", "Quantity": "10", "Unit Price": "$3,029.00", "Extended Amount": "$30,290.00" }, { "Item Description": "Martin Road Series Custom GPRS1 Grand Performance Acoustic-Electric Guitar Natural", "Quantity": "25", "Unit Price": "$649.99", "Extended Amount": "$16,249.75" }, { "Item Description": "Martin Custom D Classic Mahogany Dreadnought Acoustic Guitar", "Quantity": "20", "Unit Price": "$999.99", "Extended Amount": "$19,999.80" }, { "Item Description": "Martin Guitar T-Shirt with White Logo", "Quantity": "100", "Unit Price": "$24.99", "Extended Amount": "$2,499.00" } ] }
{
"header": {
"Order Number": "1004",
"Order Date": "2018/11/16",
"Ship To": "Robert Johnson, SoundCoast Musical Supply, 97 Orange Street, New Haven, CT 06510",
"Bill To": "SoundCoast Musical Supply, 97 Orange Street, New Haven, CT 06510",
"Amount": "$107,778.55",
"Description": "Purchase Order"
},
"value": [
{
"Item Description": "Martin 00-28VS Acoustic Guitar",
"Quantity": "10",
"Unit Price": "$3,859.00",
"Extended Amount": "$38,590.00"
},
{
"Item Description": "Martin 00-28 Standard Grand Auditorium Acoustic Guitar Aged Toner",
"Quantity": "10",
"Unit Price": "$3,029.00",
"Extended Amount": "$30,290.00"
},
{
"Item Description": "Martin Road Series Custom GPRS1 Grand Performance Acoustic-Electric Guitar Natural",
"Quantity": "25",
"Unit Price": "$649.99",
"Extended Amount": "$16,249.75"
},
{
"Item Description": "Martin Custom D Classic Mahogany Dreadnought Acoustic Guitar",
"Quantity": "20",
"Unit Price": "$999.99",
"Extended Amount": "$19,999.80"
},
{
"Item Description": "Martin Guitar T-Shirt with White Logo",
"Quantity": "100",
"Unit Price": "$24.99",
"Extended Amount": "$2,499.00"
}
]
}
Response Field Names
Response field names need to match process field names for data to be available to GlobalCapture.
Ex. If your process field is Invoice Number but the response is returning Invoice #, the data will NOT be added to the Invoice Number process field.
This can be corrected by adding an process field that matches the returned key value and using a Set Process Field not to associate the Invoice # to the Invoice Number.
Return Data
All data is returned as type character. If the data returned does not match the type of GlobalCapture field, the process will error. Possible ways to counter this are:
Turning off Data Validation will allow the data to populate the field without an error, but the data will need to be corrected before release.
Adding details in you prompt about formatting of the data.