Buy Stocks

Buy Stocks from the User Account. This will buy the stock and deduct the amount from the user account.

POST
/stock/buy
/stock/buy

The Authorization access token

Authorization

Authorization
Required
Bearer <token>

In: header

Request Body

application/jsonRequired

game
Required
string

Game type to buy

Value in: "FREE_FIRE" | "FREE_FIRE_SHELL" | "FREE_FIRE_SG" | "FREE_FIRE_ID"

combination
Required
array<number>

Array of combination numbers

quantitynumber

Quantity to buy

curl -X POST "https://api.t4b.top/stock/buy" \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  -d '{
    "game": "FREE_FIRE",
    "combination": [
      1,
      2,
      3
    ],
    "quantity": 1
  }'

Ok

{
  "data": {
    "available": true,
    "quantity": 0,
    "codes": [
      {
        "id": 0,
        "owner": 0,
        "game": "FREE_FIRE",
        "codeType": "UNIPIN_VOUCHER",
        "code": {
          "amount": 0,
          "serial": "string"
        },
        "amount": 0,
        "checkCode": "string",
        "price": "string",
        "createdAt": "2019-08-24T14:15:22Z",
        "updatedAt": "2019-08-24T14:15:22Z"
      }
    ]
  },
  "statusCode": 200
}