Skip to main content
POST
/
invoices
/
batch
cURL
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>"
    }
  ]
}'

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Invoice data that needs to be created

invoices
object[]

List of invoices to be created

I