Callback Response

Contoh Script CallBack Url Untuk Menerima Update Transaksi

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": "b4nk",
        "name": "Bank Central Asia",
        "price": "25000",
        "status": "waiting",
        "datetime": "28-06-2023 9:36:20",
        "note": "sultanstore\/12312903812938xx",
        "type": "bank"
    }
}                        
                    

Bank Transfer Order

[POST] https://sultanstore.co.id/api/bank-transfer

Parameter Type Value Req.
key string berisi apikey anda. Yes
sign string berisi formula md5(API ID + API KEY). Yes
type string pay-bank Yes
service string berisi kode layanan, cek disini. Yes
data_no string berisi data nomer akun tujuan Yes
data_an string berisi data nama akun tujuan Yes
note string berisi data pesan untuk tujuan Optional
quantity int jumlah pesanan yang ingin dilakukan Yes

Example Response


                        
{
    "result": true,
    "data": {
        "trxid": "some1d",
        "target": "085383xxxxxx",
        "name": "sultan",
        "code": "dana",
        "service": "DANA",
        "status": "waiting",
        "note": "Your order will be processed immediately.",
        "balance": 100000,
        "price": 123500
    },
    "message": "Pesanan berhasil, pesanan akan diproses"
}                        
                    

Melakukan Cek Status Pesanan

[POST] https://sultanstore.co.id/api/bank-transfer

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": "2023060xxxxxx",
            "data": "085383xxxxxx",
            "code": "dana",
            "service": "dana",
            "status": "success",
            "note": "7893XXX\\\/DAXX TOX UP MIXXXXX YOXXXXXX PUXXX WX.",
            "price": 123500
        }
    ],
    "message": "Detail transaksi berhasil didapatkan."
}                                
                            
                                
{
    "result": true,
    "data": [
        {
            "trxid": "2023060xxxxxx",
            "data": "085383xxxxxx",
            "code": "dana",
            "service": "dana",
            "status": "success",
            "note": "7893XXX\\\/DAXX TOX UP MIXXXXX YOXXXXXX PUXXX WX.",
            "price": 123500
        },
        {
            "trxid": "2023060xxxxxx",
            "data": "085383xxxxxx",
            "code": "dana",
            "service": "dana",
            "status": "success",
            "note": "7893XXX\\\/DAXX TOX UP MIXXXXX YOXXXXXX PUXXX WX.",
            "price": 123500
        }
    ],
    "message": "Detail transaksi berhasil didapatkan."
}                                
                            

Mendapatkan Layanan

[POST] https://sultanstore.co.id/api/bank-transfer

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
  • brand
No
filter_value string berisi brand yang ingin diambil No

Example Response


                        
{
    "result": true,
    "data": [
        {
            "bankCode": "harda",
            "category": "BANK",
            "bankName": "Allo Bank\/Bank Harda Internasional"
        },
        {
            "bankCode": "amar",
            "category": "amar",
            "bankName": "Amar Indonesia"
        }
    ],
    "message": "Daftar layanan berhasil didapatkan."
}