Update Stock Prices

Change/Update the price of the stock amount.

PATCH
/stock/price
/stock/price

The Authorization access token

Authorization

Authorization
Required
Bearer <token>

In: header

Request Body

application/jsonRequired

game
Required
string

Game type to set price for

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

amount
Required
number

Amount for the price

price
Required
string

Price value

notestring

Additional note for the price

curl -X PATCH "https://api.t4b.top/stock/price" \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  -d '{
    "game": "FREE_FIRE",
    "amount": 100,
    "price": "10.50",
    "note": "Special discount price"
  }'

Ok

{
  "data": {
    "message": [
      "string"
    ],
    "stockPrice": [
      {
        "id": 0,
        "owner": 0,
        "game": "FREE_FIRE",
        "amount": 0,
        "price": "string",
        "note": "string",
        "createdAt": "2019-08-24T14:15:22Z",
        "updatedAt": "2019-08-24T14:15:22Z"
      }
    ]
  },
  "statusCode": 200
}