Skip to main content
POST
Create invoice

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Body

application/json

Create an invoice (MSP accounts only).

billing_period_start
string
required

Start date of billing period (YYYY-MM-DD)

billing_period_end
string
required

End date of billing period (YYYY-MM-DD)

account_token
string
required

Token of the managed account to invoice

Response

Invoice model

token
string
required
invoice_number
string
required

Sequential invoice number for the MSP account

total
string | null
required

Total amount for the invoice period

billing_period_start
string
required

Start date of the billing period. ISO 8601 formatted.

billing_period_end
string
required

End date of the billing period. ISO 8601 formatted.

status
string
required

Current status of the invoice

created_at
string
required

The date and time, in UTC, the invoice was created. ISO 8601 formatted.

updated_at
string
required

The date and time, in UTC, the invoice was last updated. ISO 8601 formatted.

account_token
string
required

Token of the managed account this invoice belongs to

account_name
string
required

Name of the managed account this invoice belongs to

msp_account_token
string
required

Token of the MSP account that owns this invoice