Hi,
I got 500 internal server errors while using “api/v1/invoices” API
**Request: **
Post - /api/v1/invoices
{
“assigned_user_id”: “VolejRejNm”,
“client_id”: “VolejRejNm”,
“number”: “0040”,
“po_number”: “1111”,
“terms”: “”,
“public_notes”: “”,
“private_notes”: “”,
“footer”: “”,
“custom_value1”: “”,
“custom_value2”: “”,
“custom_value3”: “”,
“custom_value4”: “”,
“tax_name1”: “”,
“tax_name2”: “”,
“tax_rate1”: “”,
“tax_rate2”: “”,
“tax_name3”: “”,
“tax_rate3”: “”,
“line_items”:[{
“product_key” : “Test”,
“notes” : “description”,
“quantity” : 1,
“cost” : 200.00
},{
“product_key” : “Test 2”,
“notes” : “description”,
“quantity” : 2,
“cost” : 100.00
}],
“discount”: “”,
“partial”: “”,
“is_amount_discount”: 0,
“uses_inclusive_taxes”: 0,
“date”: “2021-11-26”,
“partial_due_date”: “”,
“due_date”: “2021-12-31”,
“custom_surcharge1”: “”,
“custom_surcharge2”: “”,
“custom_surcharge3”: “”,
“custom_surcharge4”: “”
}
Response:
{
“message”: “Server Error”
}
I have checked all the Server/Nginx/larval logs but couldn’t find the error listed in them.
Please help with this. what I am passing wrong here!