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

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

contractPlanId
string

ID of the contract plan associated with the invoice

invoiceData
object

Data for the invoice

invoiceItems
object[]

List of items in the invoice

I