Nepal Telecom (NT) Top-Up
This API enables third-party systems or apps to integrate NT Top-up services into their systems via CellPay.
Book Payment
Endpoint:
{base-url}/payments/systemPayment
Method: POST
Request Headers:
The following headers are required when calling the API:
Content-Type: application/json
Cellpay-Access-Token: {{accessToken}}
Book Payment – Request Example
{
"transferTypeId": "{transferTypeId}",
"amount": "100.0",
"description": "Wallet NT Prepaid Topup Up",
"currencyId": "1",
"webRequest": true,
"customValues": [
{
"fieldId": "16",
"internalName": "MOBILENUMBER",
"value": "{rechargeNumber}"
},
{
"fieldId": "15",
"internalName": "PAYMENTMETHOD",
"value": "Mobile Wallet"
}
],
"isOtpEnable": null,
"otp": null
}
Book Payment – Successful Response (Sample)
{
"status": true,
"sessionExpired": false,
"payload": {
"DoPaymentResult": {
"wouldRequireAuthorization": false,
"from": {
"id": "{memberid}",
"name": "{memberName}",
"username": "{meberUsername}",
"mobileNo": "{memberNumber",
"premiumMember": false
},
"finalAmount": 100.00,
"formattedFinalAmount": "NPR 100.00",
"fees": [
{
"type": "COMMISSION",
"name": "CashBack",
"amount": 3.00,
"formattedAmount": "NPR 3.00",
"description": "CashBack"
}
],
"transferType": {
"id": "{transferTypeId}",
"name": "Wallet NT Prepaid Top Up",
"title": "NT Prepaid",
"from": {
"id": 14,
"name": "Mobile Wallet",
"currency": {
"id": 1,
"symbol": "रु",
"name": "Nepalese Rupee"
}
},
"to": {
"id": 6,
"name": "Cellcom Float Account",
"currency": {
"id": 1,
"symbol": "रु",
"name": "Nepalese Rupee"
}
}
},
"customValues": [
{
"internalName": "MOBILENUMBER",
"fieldId": 16,
"value": "{rechargeNumber}"
},
{
"internalName": "PAYMENTMETHOD",
"fieldId": 15,
"value": "Mobile Wallet"
}
],
"isOtpEnable": false,
"showConsolidateAmount": false,
"bookingId": 13
}
}
}
Confirm Payment
Endpoint:
{base-url}/payments/confirmSystemPayment
Method: POST
Request Headers:
The following HTTP headers are required when calling the API:
Content-Type: application/json
Cellpay-Access-Token: {{accessToken}}
Confirm Payment – Request Example
{
"transferTypeId": "{transferTypeId}",
"amount": "100",
"description": "Wallet NT Prepaid Bill Payment",
"currencyId": "1",
"traceNumber": "CEL-123456", //Use consistent transaction IDs like CELL-001 or PRV-001 per your company's standard. Trace Number must be unique.
"webRequest": true,
"bookingId": 13,
"customValues": [
{
"fieldId": "16",
"internalName": "MOBILENUMBER",
"value": "{rechargeNumber}}"
},
{
"fieldId": "15",
"internalName": "PAYMENTMETHOD",
"value": "Mobile Wallet"
}
],
"isOtpEnable": null,
"otp": "",
"transactionPin": "XXXXXX"
}
Confirm Payment – Successful Response (Sample)
{
"status": true,
"sessionExpired": false,
"payload": {
"ConfirmPaymentResult": {
"id": 169565,
"pending": false,
"traceNumber": "CEL-123456" //Use consistent transaction IDs like CELL-001 or PRV-001 per your company's standard. Trace Number must be unique.
}
}
}
Service Parameters
| Parameter Name | Type | Required | Description |
|---|---|---|---|
| transferTypeId | Integer | Yes | Same Transfer Type ID used in Book Payment |
| amount | String | Yes | Recharge amount |
| description | String | No | Transaction description |
| currencyId | Integer | Yes | Defines the payment source: 1 = Account/Wallet, 2 = Loyalty |
| webRequest | Boolean | Yes | true for web, false for mobile |
| traceNumber | String | Yes | Must be unique |
| bookingId | Integer | Yes | Booking ID from Book Payment |
| transactionPin | String | Yes | User’s CellPay transaction PIN |
| customValues | Array | Conditional | Required if service mandates additional input |