API Cetak Struk

{
    "cmd": "PRNT",
    "tid": "123456",
    "uid": "H2H0165",
    "pid": "1996916@",
    "sig": "11b3c15650a6cbbdb62b97aae14b6392"
}

Contoh Request:

curl --location --request POST 'https://localhost/api/dwimas.php' \
--header 'Content-Type: application/json' \
--data-raw '{
    "cmd": "PRNT",
    "tid": "123456",
    "uid": "H2H0165",
    "pid": "1996916@",
    "sig": "11b3c15650a6cbbdb62b97aae14b6392"
}'

Contoh Response:

{
  "code": "500",
  "status": "Cetak Struk",
  "data": {
    "details": [
      [
        "Produk",
        "PLN Pasca Bayar"
      ],
      [
        "Tanggal",
        "2021-07-29 08:50:20"
      ],
      [
        "Nomor Referensi",
        "2CB1E7A82172405AB5C0000000000000"
      ],
      [
        "Nomor Pelanggan",
        "535718432084"
      ],
      [
        "Nama Pelanggan",
        "SUKIA"
      ],
      [
        "Tipe Daya",
        "R1/1300"
      ],
      [
        "Bulan",
        "Jul21"
      ],
      [
        "Meter (KWh)",
        "30656-30819"
      ],
      [
        "Tagihan",
        "Rp254.615"
      ],
      [
        "Biaya Admin",
        "Rp1.800"
      ],
      [
        "Total Bayar",
        "Rp256.415"
      ],
      [
        "",
        "Informasi Hubungi Call Center 123 Atau hubungi PLN Terdekat"
      ]
    ]
  }
}