Refund Stocks

Refund Stocks (NOT IN WORKING CONDITION) If bought by Mistake. The stock can be refunded by the check codes provided.(CheckCodes are included in the stock details on bought)

PATCH
/stock/refund
/stock/refund

The Authorization access token

Authorization

Authorization
Required
Bearer <token>

In: header

Request Body

application/jsonRequired

game
Required
string

Game type for refund

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

checkCode
Required
array<string>

Array of check codes

curl -X PATCH "https://api.t4b.top/stock/refund" \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  -d '{
    "game": "FREE_FIRE",
    "checkCode": [
      "CODE1",
      "CODE2"
    ]
  }'

Ok

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