eLoad
Reserve Amount from Agent's Wallet
Reserve Amount from Agent's Wallet
Reserve amount from agent's wallet for a not yet committed transaction. The SKU specified in the content will determine how the transaction will be committed.
Download OpenAPI description
Languages
Servers
Mock server
https://enterprise-iot-portal.u.com.my/_mock/eload/setsale/
Bodyapplication/jsonrequired
Unique message ID generated by a 3rd party system. Format AAAYYYYMMDDHH24MISSCCCC
Example: "0462023040123595999"
Fixed value for each channel (e.g., 046 for UMB)
Example: "046"
RSA encrypted password for ZSmart UPortal
Example: "rsaEncryptedPassword123"
CRM order number, unique for each setSale attempt
Example: "CRMORDER001"
Transaction type (Payment/Deposit)
Enum"Payment""Deposit"
Example: "Payment"
SKU of the transaction (required depending on txnType)
Example: "POSTPAID"
MSISDN of subscriber (required when sku is provided)
Example: "601112345678"
- Mock server
https://enterprise-iot-portal.u.com.my/_mock/eload/setsale/api/rest
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://enterprise-iot-portal.u.com.my/_mock/eload/setsale/api/rest \
-H 'Content-Type: application/json' \
-d '{
"access_token": "abc123xyz456",
"method": "POST",
"version": "1.0.0",
"content": {
"msgId": "0462023040123595999",
"channel": "046",
"orgCode": "ORG123",
"eloadNbr": "10000001",
"userCode": "USER001",
"password": "rsaEncryptedPassword123",
"extOrderNbr": "CRMORDER001",
"sales": [
{
"txnType": "Payment",
"sku": "POSTPAID",
"msisdnSub": "601112345678",
"amount": 50,
"extTxnNbr": "EXTTXN001"
}
]
}
}'
Response
application/json
{ "res_code": "00000", "res_message": "Operation success", "result": { "eloadNbr": "10000001", "resultCode": "DBEP0000", "resultMsg": "Success", "transactions": [ … ] } }