Melakukan Order

[POST] https://maupedia.com/api/prepaid

Parameter Tipe Deskripsi Wajib
key string berisi apikey anda. Ya
sign string berisi formula sha1(API ID + API KEY). Ya
secret string berisi Secret Key yang telah anda buat. Ya
type string order Ya
service string berisi kode layanan, cek disini. Ya
data_no string berisi data tujuan Ya

Response Sukses

                        
{
    "result": true,
    "data": {
        "trxid": "some1d",
        "data": "085716432179",
        "code": "25",
        "service": "Xl 25.000",
        "status": "waiting",
        "note": "",
        "balance": 100000,
        "price": 25000
    },
    "message": "Pesanan berhasil, pesanan akan diproses."
}                        
                    

Response Gagal

                        
{
    "result": false,
    "data": null,
    "message": "Layanan tidak ditemukan."
}                        
                    

Melakukan Cek Status Pesanan

[POST] https://maupedia.com/api/prepaid

Parameter Tipe Deskripsi Wajib
key string berisi apikey anda. Ya
sign string berisi formula sha1(API ID + API KEY). Ya
secret string berisi Secret Key yang telah anda buat. Ya
type string status Ya
trxid string berisi id transaksi Tidak
limit integer berisi limit transaksi, hapus parameter 'trxid' jika ingin melihat banyak transaksi sekaligus. Tidak

Response Sukses

                                
{
    "result": true,
    "data": [
        {
            "trxid": "some1d",
            "data": "085716432179",
            "code": "25",
            "service": "Xl 25.000",
            "status": "success",
            "note": "",
            "price": 25000
        }
    ],
    "message": "Detail transaksi berhasil didapatkan."
}                                
                            
                                
{
    "result": true,
    "data": [
        {
            "trxid": "some1d",
            "data": "085716432179",
            "code": "25",
            "service": "Xl 25.00",
            "status": "success",
            "note": "436846846",
            "price": 25000
        },
        {
            "trxid": "some1d",
            "data": "085716432179",
            "code": "50",
            "service": "Xl 50.00",
            "status": "error",
            "note": "Nomor tujuan salah.",
            "price": 50000
        }
    ],
    "message": "Detail transaksi berhasil didapatkan."
}                                
                            

Response Gagal

                        
{
    "result": false,
    "data": null,
    "message": "Transaksi tidak ditemukan."
}                        
                    

Mendapatkan Layanan

[POST] https://maupedia.com/api/prepaid

Parameter Tipe Deskripsi Wajib
key string berisi apikey anda. Ya
sign string berisi formula sha1(API ID + API KEY). Ya
secret string berisi Secret Key yang telah anda buat. Ya
type string services Ya
filter_type string
  • type
  • brand
Tidak
filter_value string berisi tipe atau brand yang ingin diambil Tidak

Response Sukses

                        
{
    "result": true,
    "data": [
        {
            "brand": "XL",
            "code": "XL25",
            "name": "Xl 25.000",
            "note": "Pulsa Xl Rp 25.000",
            "price": {
                "current": 24759,
                "basic": 24809,
                "premium": 24759,
                "special": 24739
            },
            "status": "available",
            "multi_trx": true,
            "maintenance": "23:28 - 0:16",
            "category": "Umum",
            "prepost": "prepaid",
            "type": "pulsa-reguler"
        },
        {
            "brand": "XL",
            "code": "XL50",
            "name": "Xl 50.000",
            "note": "Pulsa Xl Rp 50.000",
            "price": {
                "current": 49675,
                "basic": 49725,
                "premium": 49675,
                "special": 49625
            },
            "status": "empty",
            "multi_trx": false,
            "maintenance": "23:45 - 0:15",
            "category": "Umum",
            "prepost": "prepaid",
            "type": "pulsa-reguler"
        }
    ],
    "message": "Daftar layanan berhasil didapatkan."
}                        
                    

Response Gagal

                        
{
    "result": false,
    "data": null,
    "message": "API Signature tidak valid."
}