Add Stock

Add Stock/Stocks to the User Stock Inventory. Codes must be unique and not already in the user's inventory. Codes formats are vilidated and must be formatted correctly.

POST
/stock/add
/stock/add

The Authorization access token

Authorization

Authorization
Required
Bearer <token>

In: header

Request Body

application/jsonRequired

game
Required
string

Game type for the stock

Value in: "FREE_FIRE"

codeTxt
Required
string

Code text for the stock

amountnumber

Amount of the stock

pricestring

Price of the stock

curl -X POST "https://api.t4b.top/stock/add" \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  -d '{
    "game": "FREE_FIRE",
    "codeTxt": "ABCD-1234-EFGH-5678",
    "amount": 100,
    "price": "10.50"
  }'

Ok

{
  "data": {
    "quantity": 0,
    "codes": [
      {
        "id": 0,
        "code": {
          "amount": 0,
          "serial": "string"
        },
        "game": "string"
      }
    ]
  },
  "statusCode": 200
}