Callback Response

Contoh Script CallBack Url Untuk Menerima Update Transaksi/Harga

Contoh alamat callback url seperti ini: http://domainAnda.tld/script.php . Nama file atau alamat callback terserah Anda. Berikut contoh script untuk menerima update transaksi dari SULTAN STORE

Example Script PHP


                        
    					    file_put_contents('testing_callback.txt',file_get_contents('php://input')); // menyimpan dalam file save.txt

Example Response


                        
                            {
    "result": true,
    "data": {
        "wid": "g4m3s",
        "name": "VOUCHER SULTAN STORE",
        "price": "25000",
        "status": "waiting",
        "datetime": "28-06-2023 9:36:20",
        "note": "SN:250010230023xxxx",
        "type": "games"
    }
}                        
                    

Place an Order

[POST] https://sultanstore.co.id/api/game-feature

Parameter Type Value Req.
key string berisi apikey anda. Yes
sign string berisi formula md5(API ID + API KEY). Yes
type string order Yes
service string berisi kode layanan, cek disini. Yes
data_no string berisi data id tujuan Yes
data_zone string berisi data zone tujuan bila ada No

Example Response


                        
{
    "result": true,
    "data": {
        "trxid": "some1d",
        "data": "136216325",
        "zone": "2685",
        "service": "Mobile Legends B - 1048 Diamonds",
        "status": "waiting",
        "note": "",
        "balance": 100000,
        "price": 195695
    },
    "message": "Pesanan berhasil, pesanan akan diproses."
}                        
                    

Melakukan Cek Status Pesanan

[POST] https://sultanstore.co.id/api/game-feature

Parameter Type Value Req.
key string berisi apikey anda. Yes
sign string berisi formula md5(API ID + API KEY). Yes
type string status Yes
trxid string berisi id transaksi No
limit integer berisi limit transaksi, hapus parameter 'trxid' jika ingin melihat banyak transaksi sekaligus. No

Example Response


                                
{
    "result": true,
    "data": [
        {
            "trxid": "some1d",
            "data": "136216325",
            "zone": "2685",
            "service": "Mobile Legends B - 1048 Diamonds",
            "status": "success",
            "note": "",
            "price": 195695
        }
    ],
    "message": "Detail transaksi berhasil didapatkan."
}                                
                            
                                
{
    "result": true,
    "data": [
        {
            "trxid": "some1d",
            "data": "136216325",
            "zone": "2685",
            "service": "Mobile Legends B - 1048 Diamonds",
            "status": "success",
            "note": "",
            "price": 195695
        },
        {
            "trxid": "some1d",
            "data": "136216325",
            "zone": "2600",
            "service": "Mobile Legends B - 1048 Diamonds",
            "status": "error",
            "note": "Zone tujuan salah.",
            "price": 195695
        }
    ],
    "message": "Detail transaksi berhasil didapatkan."
}                                
                            

Mendapatkan Layanan

[POST] https://sultanstore.co.id/api/game-feature

Parameter Type Value Req.
key string berisi apikey anda. Yes
sign string berisi formula md5(API ID + API KEY). Yes
type string services Yes
filter_type string
  • game
No
filter_value string berisi tipe atau brand yang ingin diambil No

Example Response


                        
{
    "result": true,
    "data": [
        {
            "code": "EAR10-S1",
            "game": "EARTOK",
            "name": "10 Diamonds",
            "price": 1836,
            "server": "SRV-1",
            "status": "empty"
        },
        {
            "code": "MLB1048B-S1",
            "game": "Mobile Legends B",
            "name": "1048 Diamonds",
            "price": 237620,
            "server": "SRV-1",
            "status": "available"
        }
    ],
    "message": "Daftar layanan berhasil didapatkan."
}