Hi Fellow Makers,
I am building a workflow that gets data from a Google Sheet, and insert them into a JSON object using an HTTP Post module, and send this package to a Hungarian invoincig app called “Billingo” to create draft invoices. The endsite has a pretty detailed API documentation, and I’ve already created all the templates needed to create an invoice (partner id, block id, product id - all run smoothly).
My problem is that when sending the data, almost all items are missing. I don’t get a 400 error code which suggests that the JSON syntax is OK. However, all the data are missing. Error code 422 suggests that the endpoint is expecting different data set. So I tried to make sure that date is in a correct date format, strings are strings, numbers are numbers, etc… But no matter how hard I try, it just keeps falling apart. I’ve never encountered this before. Anyone has a suggestion on what to do?
I send you screenshots and bundle input/output. Thank sou guys!
Input bundle:
[
{
“ca”: null,
“qs”: ,
“url”: “https://api.billingo.hu/v3/documents”,
“data”: “{\n "partner_id": 1872007141,\n "block_id": 262536,\n "bank_account_id": 231439,\n "language": "hu",\n "currency": "USD",\n "payment_method": "bankcard",\n "electronic": false,\n "type": "draft",\n "invoice_number": "SSD-72",\n "amount": 5,00,\n "fulfillment_date": "2024-12-28T23:00:00.000Z",\n "due_date": "2024-12-28T23:00:00.000Z",\n "paid": true,\n "comment": "A számla deviza árfolyama: 385.941 HUF/USD",\n "taxcode": "HU90574104",\n "address": {\n "country_code": "US"\n },\n "items": [\n {\n "product_id": 654321,\n "name": "Feliratkozás",\n "quantity": 1,\n "net_unit_price": 5,00,\n }\n ]\n}”,
“gzip”: true,
“method”: “post”,
“headers”: ,
“timeout”: null,
“useMtls”: false,
“bodyType”: “raw”,
“contentType”: “application/json”,
“serializeUrl”: false,
“shareCookies”: false,
“parseResponse”: true,
“followRedirect”: true,
“useQuerystring”: false,
“followAllRedirects”: false,
“rejectUnauthorized”: true
}
]
Output bundle:
[
null
]