Add Account

Add a new Stock Account(SHELL ACCOUNT) to the User Accounts. Must be unique and not already in the user's inventory. Creadentials must be valid and formatted correctly.

POST
/stock/account
/stock/account

The Authorization access token

Authorization

Authorization
Required
Bearer <token>

In: header

Request Body

application/jsonRequired

game
Required
string

Game type for the account

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

region
Required
string

Region of the account

Value in: "MY" | "SG" | "ID"

credentials
Required
string

Account credentials

curl -X POST "https://api.t4b.top/stock/account" \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  -d '{
    "game": "FREE_FIRE_SHELL",
    "region": "SG",
    "credentials": "username:password:authcode"
  }'

Ok

{
  "data": {
    "quantity": 100,
    "codes": [
      {
        "id": 0,
        "owner": 0,
        "game": "FREE_FIRE_SHELL",
        "active": true,
        "accountType": "GARENA_SHELL",
        "credentials": {
          "username": "string"
        },
        "region": "MY",
        "lastBalance": 0,
        "createdAt": "2019-08-24T14:15:22Z",
        "updatedAt": "2019-08-24T14:15:22Z"
      }
    ]
  },
  "statusCode": 200
}