Skip to main content
POST
/
api
/
admin
/
billing
/
invoices
/
generate
Generate invoices
curl --request POST \
  --url https://api.example.com/api/admin/billing/invoices/generate \
  --header 'Content-Type: application/json' \
  --cookie better-auth.session_token= \
  --data '
{
  "year": 2021,
  "month": 6.5,
  "ownerType": "user",
  "ownerId": "<string>"
}
'

Authorizations

better-auth.session_token
string
cookie
required

Body

application/json
year
number
required
Required range: x >= 2020
month
number
required
Required range: 1 <= x <= 12
ownerType
Available options:
user
ownerId
string

Response

200

Default Response