Create an invoice

Creates an invoice with its line items and payments.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params
string
required
length ≥ 1

The DigiTax ID of the customer receiving the invoice.

string
required

The invoice date (YYYY-MM-DD)

string
enum
required

Specifies how the invoice amount is represented.

Allowed:
string
required
length ≥ 1

The trader's invoice number, which must be unique per business. This may be the invoice number assigned in the integrator's system.

items
array of objects
required
length ≥ 1

The line items to include in the invoice.

items*
string
required
length ≥ 1

The DigiTax ID of the item being invoiced.

number
required
> 0

The quantity of the item being invoiced. Must be greater than 0.

number
required
≥ 0

The amount charged per unit. Must be at least 0.

number
0 to 1

The discount rate applied to the invoice item. Must be between 0 and 1, inclusive, and cannot be positive when fixed_discount is positive.

number
≥ 0

The fixed discount amount applied to the invoice item. Must be at least 0 and cannot be positive when discount_rate is positive.

string

The description of the invoice item.

payments
array of objects
required
length ≥ 1

The payments to record for the invoice.

payments*
string
enum
required

The type of payment received.

Allowed:
number
required
> 0

The amount paid. Must be greater than 0.

Responses

Language
Credentials
Header
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json