Place Order

Place a new order. This will create a new order and return the order ID. Make sure the amount is correct and You have enough stocks to place the order.

POST
/order
/order

The Authorization access token

Authorization

Authorization
Required
Bearer <token>

In: header

Request Body

application/jsonRequired

quantitynumber

Default: 1

game
Required
string

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

amount
Required
string

stockIdsarray<number>

uid
Required
string

callbackUrl
Required
string

curl -X POST "https://api.t4b.top/order" \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  -d '{
    "quantity": 1,
    "game": "FREE_FIRE",
    "amount": "string",
    "stockIds": [
      0
    ],
    "uid": "string",
    "callbackUrl": "string"
  }'

Ok

{
  "data": {
    "massage": "string",
    "orderId": 0,
    "order": {
      "game": "FREE_FIRE",
      "amount": "1000",
      "uid": "123456",
      "callbackUrl": "http://localhost:3000/callback",
      "id": 1,
      "userId": 1,
      "node_id": 1,
      "state": 0,
      "createdAt": "2021-09-29T08:24:00.000Z"
    }
  },
  "statusCode": 200
}