Skip to main content
POST
Capture an order
Coming soon – this endpoint isn’t available yet. Until it ships, it returns 501 Not Implemented with the error code NOT_IMPLEMENTED.
Capture is the last request of the BNPL checkout. It replaces the separate requests to create the invoice, upload its files and create each service – Tilta creates the financing, collection and insurance services, one each. The captured amount moves from the order to the invoice, and the order moves to CAPTURED. The invoice takes the contact of the order, so that contact receives the emails about the invoice. Capture doesn’t accept another contact; to change it, replace the order before you capture it. Capturing an AUTHORIZED order confirms it implicitly. A CONFIRMED order must be captured within 90 days of its confirmation. The response is the created invoice without its services. To read the services, call List services.

Authorizations

Authorization
string
header
required

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

Path Parameters

external_id
string
required

Unique identifier of an order.

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

Body

application/json

Invoice and files for the captured amount.

invoice
object
required

Invoice for the captured amount.

files
object[]
required

Files of the invoice, at most 5.

Required array length: 1 - 5 elements

Response

The order has been captured. The response is the created invoice, without its services. To read the services Tilta created, list them with GET /v1/invoices/{external_id}/services.

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 that Tilta serves, meaning at least one financing, insurance, or collection service is neither REJECTED nor CANCELLED. Otherwise null.

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
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.