Skip to main content
POST
Create an invoice
Creating an invoice is the legally effective step that activates financing – it transforms authorized orders into a funded obligation. When you create an invoice, Tilta captures the financing amount, schedules the merchant payout, and begins the buyer’s repayment period based on the selected payment term. An invoice can consolidate multiple orders into a single financing event, and a single order can also be split across multiple invoices (for example, for partial shipments). The invoice is approved synchronously – a successful response means the financing is active.
invoice creation is not reversible through a standard update – to correct a captured invoice you must issue a refund. Verify amounts and order associations before submitting.

Authorizations

Authorization
string
header
required

Your Tilta API key, sent as Bearer <key>.

Body

application/json
external_id
string
required

Unique identifier of an invoice.

Maximum string length: 100
Pattern: ^[a-zA-Z0-9-_]+$
buyer_external_id
string
required

Unique identifier of a buyer.

Maximum string length: 100
Pattern: ^[a-zA-Z0-9-_]+$
payment_method
enum<string>
required

The code for the payment method.

Available options:
CASH,
CARD,
TRANSFER,
DEBIT
invoice_number
string
required

Invoice number or reference.

invoiced_at
number
required

Invoice creation date (unix time in seconds).

Example:

1582896122

due_at
number
required

Invoice due date (unix time in seconds).

Example:

1582896122

amount
object
required
merchant_external_id
string

Unique identifier of a merchant. Optional only for Single-merchant platforms.

Maximum string length: 100
Pattern: ^[a-zA-Z0-9-_]+$
contact_external_id
string | null

External ID of an existing buyer contact to associate with this invoice. The contact must belong to the same buyer. When set, this contact will receive communication for this specific invoice in addition to any contacts subscribed to all invoices of the buyer.

Maximum string length: 100
Pattern: ^[a-zA-Z0-9-_]+$
order_external_ids
string[]

IDs of related orders.

Maximum string length: 100
Pattern: ^[a-zA-Z0-9-_]+$
line_items
object[]

Order line items.

billing_address
object

Billing address. If it is not provided, this will be filled with the buyer's business address.

delivery_address
object | null

Delivery address. If it is not provided, this will be filled with the buyer's default delivery address when set.

custom_data
object | null

Free-form metadata for storing integration-specific data alongside this invoice.

Response

An invoice has been successfully created.

external_id
string
required

Unique identifier of an invoice.

Maximum string length: 100
Pattern: ^[a-zA-Z0-9-_]+$
buyer_external_id
string
required

Unique identifier of a buyer.

Maximum string length: 100
Pattern: ^[a-zA-Z0-9-_]+$
merchant_external_id
string
required

Unique identifier of a merchant.

Maximum string length: 100
Pattern: ^[a-zA-Z0-9-_]+$
created_at
number
required

Timestamp indicating when the invoice was created (unix time in seconds).

Example:

1582896122

updated_at
number
required

Timestamp indicating the last time the invoice was updated (unix time in seconds).

Example:

1582896122

due_at
number
required

Invoice due date (unix time in seconds).

Example:

1582896122

status
enum<string>
required

The current status of the invoice.

Available options:
OPEN,
DUE,
CLOSED,
CANCELLED
days_past_due
integer | null
required

Days past due. Only available for invoices with status DUE.

payment_method
enum<string>
required

Invoice payment method.

Available options:
CASH,
CARD,
TRANSFER,
DEBIT
invoice_number
string
required

Invoice number or reference.

invoiced_at
number
required

Invoice creation date (unix time in seconds).

Example:

1582896122

amount
object
required
contact
object | null

The buyer contact associated with this invoice (if any).

paid_at
number

Timestamp indicating when the invoice was marked as paid (unix time in seconds).

buyer
object
services
object[]

Invoice services with their current status. Returned only when expand includes services. Ordered oldest first; a service type may appear more than once after a resubmission.

credit_note_summary
object

Summary of all Credit Notes associated with this invoice.

Example:
order_external_ids
string[]

IDs of related orders.

Maximum string length: 100
Pattern: ^[a-zA-Z0-9-_]+$
line_items
object[]

Order line items.

billing_address
object

Billing address. If it is not provided, this will be filled with the buyer's business address.

delivery_address
object | null

Delivery address. If it is not provided, this will be filled with the buyer's default delivery address when set.

custom_data
object | null

Free-form metadata for storing integration-specific data alongside this invoice.