Create purchase
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Headers
The language of the response
en
, ru
Query Parameters
The expand of the purchase (you can use multiple values separated by commas)
tarif
, parent
, api
, chatbot
"tarif,parent"
Body
The channel (or another slug for tarif, for example - video id, clip id, etc.)
"twitch"
The interval of the purchase (if tarif supports custom interval)
1 <= x <= 86400
10
The comment for the purchase
"Test comment"
Start the purchase after creation (Use only if tariff supports start)
false
Response
The ID of the purchase
x >= 1
1
The price of the purchase
10
usd
, rub
"usd"
The timestamp of the purchase creation
1640000000
The type of the order
"twitch_viewers"
The channel (or another slug for tarif, for example - video id, clip id, etc.)
"https://www.twitch.tv/twitch"
The status of the purchase
created
, awaiting
, working
, stopped
, completed
, failed
, deleted
, refunded
"active"
The service of the purchase
twitch
, trovo
, kick
, youtube
"twitch"
The parent of the purchase
The API of the purchase
true
The chatbot of the purchase
The ID of the tarif
x >= 1
1