Create an order

post
https://api.clakta.com/v1/orders

Record a new order for a project. The owning project is resolved from the `projectId` field in the request body. Orders count towards your team's monthly order limit.

Projects using the `privacy_friendly` tracking mode must omit every personal field from `customer` and send only `ip` and `userAgent` — the order is then attached to an anonymous visitor derived from a server-computed daily session hash.

Authentication

Send your API key as a bearer token in the Authorization header.

See Authentication for how to create and scope an API key.

Bodyapplication/json

projectIdstringrequired

The project ID (e.g. proj_xxx) or slug that owns the order

orderIdstringrequired

The order ID in your system

platformstringrequired

The platform (e.g. shopify, woocommerce, etc.)

paymentMethodenum<string>required

The payment method

Allowed values:credit_carddebit_cardpixboletopaypalapple_paygoogle_paysamsung_paystripe_link

statusenum<string>required

The status

Allowed values:paidpendingrejectedrefundedcanceled

currencystring | nulloptional

The currency in ISO 4217 format (e.g. USD, BRL, etc.) - defaults to the project currency if not provided

totalPricenumberrequired

The total order price in floating point number (e.g. 10.4 for $10.40)

productsobject[]required
trackingobjectrequired
createdAtdate-time | nulloptional

The order created at, defaults to the current date

approvedDatedate-time | nulloptional

The order approved date

refundedAtdate-time | nulloptional

The order refunded at

customerobjectrequired

The customer

Response

The created order

messagestringrequired

A confirmation message.

dataobjectrequired