Thank you for your reply.
I thought I had included the aggregator part but I’ve must have missed it.
I do have an aggregator in charge of creating the array of line items.
I’ll include a few screenshots for reference,
The PO test record has 3 line items ( see the 3 operations below)
Here is the flow, the google sheets it’s just for me to check data on my side, don’t mind that I’ll remove it once in PROD.
Here it is the Aggregator I forgot to mention in my original message:
And here is the output of the aggregator, You’ll notice the “Detailtype” field matches what the intuit documentation describes.
I ran it ‘manually’ just for testing purposes to check a few things but my goal is to send the Line items as a JSON.
[
{
"array": [
{
"Id": null,
"Amount": 1000,
"LineNum": null,
"DetailType": "ItemBasedExpenseLineDetail",
"Description": "Fountain Pumps1",
"CustomExtensions": [],
"ItemBasedExpenseLineDetail": {
"Qty": 100,
"ItemRef": {
"name": "Design:Fountains:Pump",
"value": "11"
},
"UnitPrice": 10,
"TaxCodeRef": {
"value": "NON"
},
"CustomerRef": {
"name": "Cool Cars",
"value": "3"
},
"BillableStatus": "Billable"
}
},
{
"Id": null,
"Amount": 250,
"LineNum": null,
"DetailType": "ItemBasedExpenseLineDetail",
"Description": "Sprinkler Pipes",
"CustomExtensions": [],
"ItemBasedExpenseLineDetail": {
"Qty": 100,
"ItemRef": {
"name": "Landscaping:Sprinklers:Sprinkler Pipes",
"value": "17"
},
"UnitPrice": 2.5,
"TaxCodeRef": {
"value": "NON"
},
"CustomerRef": {
"name": "Kate Whelan",
"value": "14"
},
"BillableStatus": "Billable"
}
},
{
"Id": null,
"Amount": 75,
"LineNum": null,
"DetailType": "ItemBasedExpenseLineDetail",
"Description": "Sprinkler Headsa",
"CustomExtensions": [],
"ItemBasedExpenseLineDetail": {
"Qty": 100,
"ItemRef": {
"name": "Landscaping:Sprinklers:Sprinkler Heads",
"value": "16"
},
"UnitPrice": 0.75,
"TaxCodeRef": {
"value": "NON"
},
"CustomerRef": {
"name": "Freeman Sporting Goods",
"value": "7"
},
"BillableStatus": "Billable"
}
}
],
"__IMTAGGLENGTH__": 3
}
]
Here is the specific error message from Create a PO module