Skip to main content
POST
cURL

Headers

X-CSRF-Token
string
required

Echoes the token from the current session. Required on every unsafe method.

Idempotency-Key
string
required
Required string length: 8 - 128

Body

application/json
productId
string<uuid>
required
quantity
integer
required
Required range: 1 <= x <= 10
recipient
string
required
quote
object
required

A price and the moment it stops applying. The two travel together so a client cannot hold one without the other.

forSelf
boolean

Presentation only. Omniflow stores no Telegram username for a web customer, so this never decides delivery or authorisation.

promoCode
string
useWallet
boolean
default:false

Stated explicitly, so a balance is never spent by omission.

Response

Order opened

id
string<uuid>
required
productName
string
required
kind
enum<string>
required
Available options:
telegram_premium,
telegram_stars
quantity
integer
required
recipient
string
required
forSelf
boolean
required
currency
string
required
amounts
object
required
payment
object
required
delivery
object
required
createdAt
string<date-time>