RE: Creating invoices via REST API
I am having trouble with creating invoices via the rest API. In particular how to correctly add a line item. Does anyone have any sample requests for creating an invoice including invoice items?
Hi,
There’s a really handy sample Postman collection here:
https://netsuite.custhelp.com/app/answers/detail/a_id/86958
And based off that, the minimal amount you need for an Invoice will be something like this:
{
"entity": { "id": 1 },
"item": {
"items":[
{
"item": { "id": 12 },
"rate": 10,
"amount": 10
}
]
}
}
Thanks,
Chris