🔌 API

Error Create Invoice "MANDATORY_FIELDS_MISS

👤 YeisonCano
Q
Question
"I get this error when I try to create an Invoice with the Vtiger webservice.

This is my payload:
invoice_data = {
"subject": "Factura prueba",
"account_id": "11x7",
"assigned_user_id": "19x1",
"invoicedate": "2025-06-02",
"duedate": "2025-06-30",
"currency_id": "21x1",
"productid": "14x5",
A
Community Solution
✓ Answered
Change lineitems to LineItems

{
"subject":"Factura prueba",
"account_id":"11x7",
"assigned_user_id":"19x1",
"invoicedate":"2025-06-02",
"duedate":"2025-06-30",
"currency_id":"21x1",
"productid":"14x5",
"invoicestatus":"Created",
"LineItems":[
{
"productid":"14x5",
"quantity":1,
"listprice":100,
"comment":"",
"deleted":0
}
],
"bill_street":"Calle Falsa 123",
"ship_street":"Calle Verdadera 456",
"shtax1":0,
"shipping_handling_charge":0,
"adjustmentType":"none",
"hdnTaxType":"individual"
}
← Back to API Join to answer →