Skip to main content
POST
/
invoices
/
batch
Create 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-10-01",
        "fromDate": "2023-10-01",
        "toDate": "2023-10-31"
      },
      "invoiceItems": [
        {
          "title": "Item Title",
          "description": "Item description",
          "quantity": 1,
          "price": 100,
          "fromDate": "2023-10-01",
          "toDate": "2023-10-31"
        }
      ],
      "customerIdentifier": "<string>"
    }
  ]
}
'
{
  "status": "error",
  "message": "Forbidden",
  "errors": [
    {}
  ]
}
SystemUser permission: JobService:create

Authorizations

Authorization
string
header
required

JWT bearer token obtained from POST /auth/system-login using your client credentials.

Body

application/json

Invoice data that needs to be created

invoices
object[]

List of invoices to be created

Response

Bad request — validation error

status
string
Example:

"error"

message
string
Example:

"Forbidden"

errors
object[]