cURL
curl --request POST \ --url https://api.getenso.ai/invoices/ \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "contractPlanId": "<string>", "invoiceData": { "date": "2023-12-25", "fromDate": "2023-12-25", "toDate": "2023-12-25" }, "invoiceItems": [ { "title": "<string>", "description": "<string>", "price": 123, "quantity": 123, "fromDate": "2023-12-25", "toDate": "2023-12-25" } ] }'
Create a new invoice
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Invoice data that needs to be created
ID of the contract plan associated with the invoice
Data for the invoice
Show child attributes
List of items in the invoice