Hi!
I am trying to POST a new invoice via InvoiceNinja API:
https://app.swaggerhub.com/apis/invoiceninja/invoiceninja/5.3.28#/invoices/storeInvoice
I correctly set up request headers (I can GET data from API, etc).
But when I POST to /api/v1/invoices
with body:
{
"client_id": "Wkwvk1soJn",
"design_id": "1VDtbOa5UA",
"line_items": [
{
"product_key": "Product key",
"cost": 54,
"quantity": "6.5",
},
...
]
}
I get:
{"message"=>"The given data was invalid.", "errors"=>{"client_id"=>["The client id field is required."]}}
There is client_id
in the request body, but API says itโs required. I donโt see what I am doing wrong. Could anybody please help?