Skip to main content
POST
Create an order
Coming soon – the behaviour described on this page isn’t live yet.
Before any invoice can be issued, you must create an order to declare the purchase intent. A new order is OPEN: Tilta does not check it against the buyer’s credit facility and holds no amount for it. To reserve credit, send the buyer a checkout with Create a checkout for an order, or confirm the order with Confirm an order when the buyer is not present. To link the order to the person at the buyer who handles it, send the contact_external_id of one of the buyer’s contacts. When you create the invoice for the order without a contact of its own, the invoice takes this contact, which then receives the emails about the invoice.
To create the buyer, its contacts and the order in one request, use Create an order checkout, or Create and confirm an order when the buyer is not present.
If the buyer has no credit facility yet, send them through an onboarding session to apply for one before confirming the order.

Authorizations

Authorization
string
header
required

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

Headers

Idempotency-Key
string

A UUID that identifies this request. If you send the same key for the same operation again, Tilta returns 409 instead of processing the request twice.

Example:

"3f2b8c1e-6d4a-4f0e-9b7a-2c5d8e1f4a90"

Body

application/json

Order to be created.

external_id
string
required

Unique identifier of an order.

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-_]+$
ordered_at
integer
required

Order creation date (unix time in seconds). It cannot be in the future

payment_method
enum<string>
required

The chosen payment method for a respective order. Available payment methods depend on a number of criteria. Check the paymentterms endpoint for available options. May be left empty if the payment method has not been chosen yet.

Available options:
CASH,
CARD,
TRANSFER,
DEBIT
Example:

"TRANSFER"

payment_term
enum<string>
required

The chosen payment term for a respective order. Available payment terms depend on a number of criteria. Check the payment_terms endpoint for available options

Available options:
PREPAYMENT,
DEFER_3D,
DEFER_7D,
DEFER_14D,
DEFER_21D,
DEFER_30D,
DEFER_45D,
DEFER_60D,
DEFER_75D,
DEFER_90D,
DEFER_120D,
SPLIT_3M,
SPLIT_6M
Example:

"DEFER_30D"

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-_]+$
comment
string | null

Additional order comment added below the order summary in related communication with the buyer.

Example:

"For Daniel without tomatoes"

delivery_address
object | null

Delivery or shipping address for orders of goods.

custom_data
object | null

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

line_items
object[]

Order line items. Please do not merge line items but provide them individually to allow for subsequent correlation with invoices.

contact_external_id
string | null

Unique identifier of an existing contact of the order's buyer. An invoice created for the order without its own contact_external_id takes this contact when all of its orders have the same contact. The contact then receives the emails about the invoice in addition to the buyer's contacts with assign_to_all_invoices. If the contact doesn't exist or belongs to another buyer, Tilta rejects the request with 400 and RELATION_NOT_FOUND.

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

Response

Order has been successfully created.

external_id
string
required

Unique identifier of an order.

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

Order status.

Available options:
OPEN,
AUTHORIZED,
CONFIRMED,
CAPTURED,
CANCELLED,
EXPIRED,
CLOSED
buyer_external_id
string
required

Unique identifier of a related buyer.

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

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

Example:

1582896122

updated_at
number
required

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

Example:

1582896122

contact
object
required

The contact of the order, or null if the order has none.

merchant_external_id
string
required

Unique identifier of a related merchant.

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

Order creation date (unix time in seconds). It cannot be in the future

payment_method
enum<string>
required

The chosen payment method for a respective order. Available payment methods depend on a number of criteria. Check the paymentterms endpoint for available options. May be left empty if the payment method has not been chosen yet.

Available options:
CASH,
CARD,
TRANSFER,
DEBIT
Example:

"TRANSFER"

payment_term
enum<string>
required

The chosen payment term for a respective order. Available payment terms depend on a number of criteria. Check the payment_terms endpoint for available options

Available options:
PREPAYMENT,
DEFER_3D,
DEFER_7D,
DEFER_14D,
DEFER_21D,
DEFER_30D,
DEFER_45D,
DEFER_60D,
DEFER_75D,
DEFER_90D,
DEFER_120D,
SPLIT_3M,
SPLIT_6M
Example:

"DEFER_30D"

amount
object
required
buyer
object
comment
string | null

Additional order comment added below the order summary in related communication with the buyer.

Example:

"For Daniel without tomatoes"

delivery_address
object | null

Delivery or shipping address for orders of goods.

custom_data
object | null

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

line_items
object[]

Order line items. Please do not merge line items but provide them individually to allow for subsequent correlation with invoices.