Create a transaction

POST https://api.tamio.com/v2/transactions/create

Creates a new transaction with full customer information, product details, shipping options, and fulfillment configuration. Supports both existing customers (via customer) and new customers (via new_customer). At least one of them must be provided. Products can reference catalog items by id, variant, or pack, or use custom price and name for ad-hoc line items.

Body Parameters

affiliate string

Affiliate UUID for commission tracking.

create_transaction boolean

Must be true to proceed.

true
currency string*

Currency code. Null defaults to account base currency.

locale string

Language preference for communications.

referrer string

Referring page URL.

convert_prices boolean

Enable automatic currency conversion.

no_discounts boolean

Disable all discount applications.

coupons array of string

Coupon codes to apply.

products array of ProductItem*

Product line items (1–20).

shipping object

Shipping configuration.

fulfillment_options object

Fulfillment automation flags.

customer object

Existing customer reference.

new_customer object

New customer to create during checkout.

custom_fields object

Custom checkout fields.

Responses

200 Transaction created

Transaction created

status integer
transaction Transaction
400 Validation or business-logic error
401 Missing or invalid API key
/transactions/create
1const response = await fetch("https://api.tamio.com/v2/transactions/create", {
2 method: "POST",
3 headers: {
4 "Authorization": "Bearer YOUR_API_KEY",
5 "Content-Type": "application/json"
6 },
7 body: JSON.stringify({
8 // ... request body
9 })
10});
11const data = await response.json();
Responses
{
  "status": 200,
  "transaction": {
    "id": "string",
    "object": "transaction",
    "products": [],
    "customer_information": {},
    "payments": {},
    "locale": "string",
    "instalments": {},
    "taxes": {},
    "shipping": {},
    "has_subscriptions": false,
    "currency": "string",
    "merchant": {},
    "totals": {},
    "discounts": {},
    "invoice": {},
    "order_id": 0,
    "affiliate": {},
    "active_instalment_plan": {},
    "payout": {}
  }
}