curl --request POST \
--url https://api.getenso.ai/invoices/batch \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"invoices": [
{
"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"
}
],
"customerIdentifier": "<string>"
}
]
}
'Create multiple invoices in batch
curl --request POST \
--url https://api.getenso.ai/invoices/batch \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"invoices": [
{
"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"
}
],
"customerIdentifier": "<string>"
}
]
}
'Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Invoice data that needs to be created
List of invoices to be created
Show child attributes
ID of the contract plan associated with the invoice
List of items in the invoice
Show child attributes
Title of the invoice item
Description of the invoice item
Unit price of the invoice item
Quantity of the invoice item
Start date for the invoice item
End date for the invoice item
Identifier for the customer associated with the invoice. This can be passed in case contractPlanId is not passed. If both contractPlanId and customerIdentifier are passed, contractPlanId will be used.