Delete Account

Delete Stock Account from the User Accounts. Deleted Stock Account can't be recovered.

DELETE
/stock/account
/stock/account

The Authorization access token

Authorization

Authorization
Required
Bearer <token>

In: header

Request Body

application/jsonRequired

stockAccountId
Required
number

ID of the stock account to delete

curl -X DELETE "https://api.t4b.top/stock/account" \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  -d '{
    "stockAccountId": 1
  }'

Ok

{
  "data": {
    "message": [
      "string"
    ],
    "stockAccount": [
      {
        "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
}