PLN Prepaid

πŸ“˜

Notes:

  • In the Sandbox we cannot test all the product code that we have in Production. We only can test the product code that we have in the scenario.
  • We cannot test all RC that we have (both in Sandbox and Prod), we only can test RC that we have in the scenario.
  • If total of kWh exceed limit, then the user has exceed the limit of token charging limit from what is allowed by PLN.
  • For more detail, please check this document
  • Inquiry
{
  "partnerId": "ayopop",
  "accountNumber": "14987654321",
  "productCode": "PLSTPL20"
}
{
    "responseCode": 300,
    "success": true,
    "message": {
        "ID": "Inkuiri berhasil",
        "EN": "Inquiry is successful"
    },
    "data": {
        "inquiryId": 2692456,
        "accountNumber": "14987654321",
        "customerName": "ERNI TEDJAWATI",
        "productName": "PLN Prepaid 20.000",
        "productCode": "PLSTPL20",
        "category": "Listrik",
        "amount": 20000,
        "totalAdmin": 0,
        "processingFee": 0,
        "denom": "",
        "validity": "",
        "customerDetails": [
            {
                "key": "Nama Pelanggan",
                "value": "ERNI TEDJAWATI"
            },
            {
                "key": "Tanggal & Waktu Pembayaran",
                "value": "03 Aug 2022 | 21:16"
            },
            {
                "key": "No Meter",
                "value": "14987654321"
            }
        ],
        "billDetails": [
            {
                "billId": "1",
                "billInfo": [],
                "isMandatory": true,
                "key": "Harga Produk",
                "value": 20000
            },
            {
                "billId": "0",
                "billInfo": [],
                "isMandatory": true,
                "key": "Biaya Administrasi",
                "value": 0
            }
        ],
        "productDetails": [
            {
                "key": "No Meter",
                "value": "14987654321"
            },
            {
                "key": "Tarif/Daya",
                "value": "R1  /1300 VA"
            }
        ],
        "extraFields": []
    }
}
  • Payment
{
  "partnerId": "ayopop",
  "accountNumber": "14987654321",
  "productCode": "PLSTPL20",
  "inquiryId": 2681076,
  "amount": 20000,
  "refNumber": "12345"
}
{
    "responseCode": 299,
    "success": true,
    "message": {
        "ID": "Transaksi sedang dalam proses",
        "EN": "Your transaction is processing"
    },
    "data": {
        "refNumber": "cropdrdevtest1",
        "transactionId": 112247,
        "accountNumber": "0814111111200",
        "amount": 1000,
        "totalAdmin": 0,
        "processingFee": 0,
        "denom": "",
        "productCode": "PPLSIND12",
        "productName": "Indosat Pulsa 12.000 -AR",
        "category": "Pulsa",
        "token": "",
        "customerDetails": [],
        "billDetails": [],
        "productDetails": [],
        "extraFields": []
    }
}
  • Status
{
    "responseCode": 0,
    "success": true,
    "message": {
        "ID": "Transaksi Anda Telah Berhasil",
        "EN": "Your transaction was successful"
    },
    "data": {
        "refNumber": "vrdse4jm gde",
        "transactionId": 180207,
        "accountNumber": "14987654321",
        "amount": 20000,
        "totalAdmin": 0,
        "processingFee": 0,
        "denom": "",
        "productCode": "PLSTPL20",
        "productName": "PLN Prepaid 20.000",
        "category": "Listrik",
        "token": "4693 4186 5175 8301 6729",
        "customerName": "ERNI TEDJAWATI",
        "validity": "",
        "customerDetails": [
            {
                "key": "Nama Pelanggan",
                "value": "ERNI TEDJAWATI"
            },
            {
                "key": "Tanggal & Waktu Pembayaran",
                "value": "03 Aug 2022 | 21:40"
            },
            {
                "key": "No Meter",
                "value": "14987654321"
            }
        ],
        "billDetails": [
            {
                "billId": "1",
                "billInfo": [],
                "key": "Harga Produk",
                "value": 20000
            },
            {
                "billId": "0",
                "billInfo": [],
                "key": "Biaya Administrasi",
                "value": 0
            }
        ],
        "productDetails": [
            {
                "key": "No Meter",
                "value": "14987654321"
            },
            {
                "key": "Tarif/Daya",
                "value": "R1  /1300 VA"
            },
            {
                "key": "RP Bayar",
                "value": "Rp.20.000"
            },
            {
                "key": "JML KWH",
                "value": "33, 1"
            },
            {
                "key": "Stroom/Token",
                "value": "4693 4186 5175 8301 6729"
            },
            {
                "key": "Nomor Referensi",
                "value": "1TKT21R3984489836675"
            },
            {
                "key": "Meterai",
                "value": "Rp.0,00"
            },
            {
                "key": "PPN",
                "value": "Rp.0,00"
            },
            {
                "key": "PPJ",
                "value": "Rp.1.457,00"
            },
            {
                "key": "Angsuran",
                "value": "Rp.0,00"
            },
            {
                "key": "RP Stroom/Token",
                "value": "Rp.18.543,00"
            },
            {
                "key": "No. IDPEL",
                "value": "14987654321"
            }
        ],
        "extraFields": []
    }
}