Skip to main content
POST
/
invoices
/
generate_invoice
Generate an invoice
curl --request POST \
  --url https://api.zenskar.com/invoices/generate_invoice \
  --header 'Content-Type: application/json' \
  --header 'organisation: <api-key>' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "customer_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "contract_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "from_date": "2023-11-07T05:31:56Z",
  "to_date": "2023-11-07T05:31:56Z",
  "check_duplicate_invoice": true,
  "bill_for_date": "2023-11-07T05:31:56Z",
  "billing_cycle_start_day": 123
}
'
{
  "detail": [
    {
      "loc": [
        "<string>"
      ],
      "msg": "<string>",
      "type": "<string>"
    }
  ]
}

Documentation Index

Fetch the complete documentation index at: https://docs2.zenskar.com/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

x-api-key
string
header
default:<your-api-key>
required
organisation
string
header
default:<your-organisation-id>
required

Headers

apiversion
integer | null

Body

application/json

Generate Invoice Request Schema

customer_id
string<uuid>
required

Customer Id

contract_id
string<uuid>
required

Contract Id

from_date
string<date-time>
required

Unix time stamp of From Date

to_date
string<date-time>
required

Unix time stamp of To Date

check_duplicate_invoice
boolean | null

Check for duplicate invoice in same billing period

bill_for_date
string<date-time> | null

Bill for date for invoice generation

billing_cycle_start_day
integer | null

Day of the month on which invoice generation should take place

Response

Successful Response