Undo Stocks

Undo Stocks (NOT IN WORKING CONDITION)

PATCH
/stock/undo
/stock/undo

The Authorization access token

Authorization

Authorization
Required
Bearer <token>

In: header

Request Body

application/jsonRequired

type
Required
string

Type of operation to undo

Value in: "add" | "buy" | "refund"
curl -X PATCH "https://api.t4b.top/stock/undo" \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  -d '{
    "type": "add"
  }'

Ok

{
  "data": {
    "type": "string",
    "ids": [
      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
}