Hey there
I’m trying to create an invoice in Xero. When I send a single line item, it works fine. The moment I add another line item to the invoice, I get an error.
My API JSON Body is as follows:
{
“Invoices”: [
{
“Type”: “ACCREC”,
“Contact”: {
“ContactNumber”: “”
},
“LineItems”: [
{
“Description”: “”,
“Quantity”: “”,
“UnitAmount”: “”
}
],
“Date”: “”,
“Reference”: “”,
“DueDate”: “”,
}
]
}
I am trying to send the following for the line item section (with an unlimited amount of lines):
“LineItems”: [
{
“Description”: “”,
“Quantity”: “”,
“UnitAmount”: “”
},
{
“Description”: “”,
“Quantity”: “”,
“UnitAmount”: “”
}
]
But, when I choose to send the data, it is sending as:
“LineItems”: [
{
“Description”: “Tools2, asdasd”,
“Quantity”: “11, 1”,
“UnitAmount”: “123, 123”
},
],
How do I force Bubble.io to not add a comma “,” between the line items and create a whole new line item as per the code I’m trying to achieve?
“LineItems”: [
{
“Description”: “”,
“Quantity”: “”,
“UnitAmount”: “”
},
{
“Description”: “”,
“Quantity”: “”,
“UnitAmount”: “”
}
]
TIA