Test Case¶
Here is the list of test case we provide. Please use buyer_sku_code and customer_no below to get the correct response.
Prepaid¶
buyer_sku_code | customer_no | Status |
---|---|---|
maxis10 | 01700000 | Success |
maxis10 | 01700002 | Failed |
maxis10 | 01700003 | Processing then Success Callback |
maxis10 | 01700004 | Processing then Failed Callback |
Success Example¶
Request¶
{
"username": "username",
"buyer_sku_code": "maxis10",
"customer_no": "01700000",
"ref_id": "test1",
"testing": true,
"sign": "740b00a1b8784e028cc8078edf66d12b"
}
Example above will give you Success Response
Response¶
{
"data": {
"ref_id": "test1",
"customer_no": "01700000",
"buyer_sku_code": "maxis10",
"message": "Success",
"status": "Success",
"rc": "00",
"sn": "1234567890",
"buyer_last_saldo": 4989.88,
"price": 10.12,
"tele": "@telegram",
"wa": "01700000"
}
}
Failed Example¶
Request¶
{
"username": "username",
"buyer_sku_code": "maxis10",
"customer_no": "01700002",
"ref_id": "test2",
"sign": "740b00a1b8784e028cc8078edf66d12b"
}
Example above will give you Failed Response
Response¶
{
"data": {
"ref_id": "test2",
"customer_no": "01700002",
"buyer_sku_code": "maxis10",
"message": "Failed",
"status": "Failed",
"rc": "02",
"buyer_last_saldo": 5000,
"price": 10.12,
"tele": "@telegram",
"wa": "01700000"
}
}
Processing Example¶
Request¶
{
"username": "username",
"buyer_sku_code": "maxis10",
"customer_no": "01700003",
"ref_id": "test3",
"testing": true,
"sign": "740b00a1b8784e028cc8078edf66d12b"
}
Example above will give you Processing Response
Response¶
{
"data": {
"ref_id": "test3",
"customer_no": "01700003",
"buyer_sku_code": "maxis10",
"message": "Processing",
"status": "Processing",
"rc": "03",
"buyer_last_saldo": 4989.88,
"price": 10.12,
"tele": "@telegram",
"wa": "01700000"
}
}