Documentation

For those of you who already have a game topup website, you can connect your game topup website using the Open API from YKS STORE.

Profile

Get profile data

[ POST ]
https://yksgamest4re.com/api/profile
Parameter Information Required
api_id Contains Your API ID Ya
api_key Contains Your API KEY Ya
signature Contains your md5(API ID + API KEY) formula Ya
Example of Response Displayed
Successful Response Response Failed
{
  "result": true,
  "msg": "Successfully get profile data",
  "data": {
      "username": "Xosgames",
      "balance": 0,
      "role": "Basic"
  }
}
{
  "result": false,
  "msg": "API ID or API KEY not found",
}
Service

Get service data

[ POST ]
https://yksgamest4re.com/api/service
Parameter Information Required
api_id Contains Your API ID Ya
api_key Contains Your API KEY Ya
signature Contains your md5(API ID + API KEY) formula Ya
Example of Response Displayed
Successful Response Response Failed
{
  "result": true,
  "msg": "Successfully get service data",
  "data": {
      "id": "1",
      "game": "Mobile Legends",
      "nama_layanan": "14 Diamonds ( 13 + 1 Bonus )",
      "harga": {
          "basic": 3310,
          "gold": 3250,
          "platinum": 3120,
      },
      "status": "On"
  }
}
{
  "result": false,
  "msg": "API ID or API KEY not found",
}
// Atau
{
  "result": false,
  "msg": "Invalid Signature. Please check your API credentials.",
}
// Atau
{
  "result": false,
  "msg": "IP 127.0.0.1 not in whitelist",
}
Order

Make a reservation

[ POST ]
https://yksgamest4re.com/api/order
Parameter Information Required
api_id Contains Your API ID Ya
api_key Contains Your API KEY Ya
order_id Contains a Unique ID created on your system. Ya
service_id Contains Service code Ya
target_id Contains destination id data Ya
target_server Contains destination server/zone data if any No
signature Contains your md5(API ID + API KEY) formula Ya
Example of Response Displayed
Successful Response Response Failed
{
  "result": true,
  "msg": "Order successful! Order is being processed",
  "data": {
      "order_id": "123456",
      "nama_layanan": "14 Diamonds ( 13 + 1 Bonus )",
      "service_id": "1",
      "target_id": "98765",
      "target_server": "1234",
      "status": "Process",
      "note": ""
  }
}
{
  "result": false,
  "msg": "API ID or API KEY not found",
}
// Atau
{
  "result": false,
  "msg": "order_id is already available in our system",
  "data": {
      "status": "Error",
  }
}
// Atau
{
  "result": false,
  "msg": "service_id not found",
}
// Atau
{
  "result": false,
  "msg": "Your balance is insufficient"
}
Status

Get order status data

[ POST ]
https://yksgamest4re.com/api/status
Parameter Information Required
api_id Contains Your API ID Ya
api_key Contains Your API KEY Ya
order_id Berisi id transaksi Ya
signature Contains your md5(API ID + API KEY) formula Ya
Example of Response Displayed
Successful Response Response Failed
{
  "result": true,
  "msg": "Transaction details successfully obtained",
  "data": {
      "order_id": "123456",
      "status": "Sukses / Proses / Pending / Gagal",
      "note": ""
  }
}
{
  "result": false,
  "msg": "API ID or API KEY not found",
}
// Atau
{
  "result": false,
  "msg": "order_id not found",
  "data": {
      "order_id": "",
      "status": "Error"
  }
}