POST
/
purchases
/
create
curl --request POST \
  --url https://api.streamskill.pro/v1/purchases/create \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "tarif": {
    "id": 1,
    "quantity": 1000,
    "duration": 24
  },
  "channel": "twitch",
  "interval": 10,
  "comment": "Test comment",
  "start": false
}'
{
  "id": 1,
  "price": 10,
  "currency": "usd",
  "created_at": 1640000000,
  "order_type": "twitch_viewers",
  "channel": "https://www.twitch.tv/twitch",
  "status": "active",
  "service": "twitch",
  "parent": false,
  "api": true,
  "chatbot": false,
  "tarif": 1
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

Accept-Language
enum<string>
default:en

The language of the response

Available options:
en,
ru

Query Parameters

expand
enum<string>

The expand of the purchase (you can use multiple values separated by commas)

Available options:
tarif,
parent,
api,
chatbot
Example:

"tarif,parent"

Body

application/json

Response

200
application/json

OK

The response is of type object.