RE: REST API about invoices
Hi,
is it possibile, with REST API (https://system.netsuite.com/help/helpcenter/en_US/APIs/REST_API_Browser/record/v1/2023.1/index.html#/definitions/invoice) to get the invoices (using GET /invoices) by customer id?
If yes, is there a way to download the pdf of a specific invoice or to get the link of it?
Thanks
Hi,
This will give you a list of all invoice for a given customer:
/services/rest/record/v1/invoice?q=entity ANY_OF [<CUSTOMER_ID>]
Unfortunately, I don’t believe there is any way to download a PDF via the REST API. You would need a custom RESTlet.
Thanks,
Chris