Hi,
I am trying to implement the E-Document process for inbound vendor bills.
I created E-Document Templates with the below Field Mapping JSON, but I receive the error message: "Error details: You must enter at least one line item for this transaction."
As for beginning, I am trying to set the item with ID 1235, quantity=14, rate=37.90, taxcode ID 1080 and cseg_budget_categor, cseg_budget_owner are two mandatory fields that i am also trying to set the internal ID value,
see below the Field Mapping for Inbound E-documents:
{
"tranid": "2025-4565-91244",
"externalid": "${XML.Invoice.ID}",
"trandate": "31/03/2025",
"duedate": "14/04/2025",
"currency": "EUR",
"purchaseorder": "${XML.Invoice.OrderReference.ID}",
"memo": "Test E-document",
"item": [
<#list XML.Invoice.InvoiceDetails.InvoiceLine as item>
{
"item": "1235",
"quantity": "14",
"rate": "37.90",
"taxcode": "1080",
"cseg_budget_categor": "299",
"cseg_budget_owner": "84"
}
<#if item_has_next>,</#if>
</#list>
]
}
What is wrong with my syntax?
Thanks,
Sharon