API Reference

Create an invoice

This endpoint creates an invoice for a given customer with status draft. After create the invoice use finalize resource for finish invoice.

Body Params
string
Defaults to deferred

Method to collect payments of this invoice. Must be automatically or deferred

string
required

ID of related Customer object.

date
required

Closing date of this invoice.

string
required

The ID of the document type this subscription should create.

float

A positive number representing the amount or percentage of the discount.

string
Defaults to %

Can be $ or %. $ apply amount as discount. % apply percentage as discount.

date

The deadline for the invoice to change from receivable to overdue status in case the customer has not paid.

lines
array of objects
required

List of Invoice Line objects which represents the items for which this invoice is being charged.

lines*
string

A simple text with a 100 characters as max length.

references
array of objects

List of Invoice Reference objects which represents the documents with which the issuance of this invoice is supported. For ex. a Purchase Order

references
Response

Language
Credentials
Choose an example:
application/json