Skip to main content

Member Payment Endpoints

The following endpoints are used for Member Payment transactions:

Book Payment Endpoint:

{base-url}/payments/memberPayment

Confirm Payment Endpoint:

{base-url}/payments/confirmMemberPayment

Both endpoints use the POST method and require authenticated access.

Member Book Payment Request​

The Member Book Payment request is used to validate the transaction details before execution. During this step, the sender provides recipient identification details along with the transaction amount.

Key characteristics:

  • Requires recipient identification (toMemberPrincipal or toMemberId)
  • Validates recipient availability and transaction parameters
  • Generates a Booking ID
  • No funds are deducted at this stage

The Booking ID returned from this request must be used in the Confirm Payment step.

Sample Request Example

{
"transferTypeId": "{transferTypeId}",
"toMemberPrincipal": "{MemberId}",
"amount": "1",
"description": "test",
"currencyId": "1",
"webRequest": "true",
"traceNumber": "CELL-001", //**Use consistent transaction IDs like CELL-001 or PRV-001 per your company's standard. Trace Number must be unique.**//
"customValues": [
{
"internalName": "PAYMENTMETHOD",
"fieldId": 15,
"value": "Account"
},
{
"internalName": "SELECTBANK",
"fieldId": 35,
"value": "{{senderBankCode}}"
},
{
"internalName": "ACCOUNTNUMBER",
"fieldId": 14,
"value": "{{senderBankAccountNumber}}"
}
]
}

Member Confirm Payment Request​

The Member Confirm Payment request is used to finalize the transaction. The sender submits the Booking ID along with authorization details such as the transaction PIN.

Upon successful validation:

  • Funds are transferred to the recipient member’s wallet or linked bank account
  • The sender’s wallet balance is debited in real time
  • A final transaction response is returned

Sample Request Example

{
"transferTypeId": "{{transferTypeId}}",
"toMemberPrincipal": "{{memberId}}",
"amount": "{{amount}}",
"description": "{{description}}",
"currencyId": "1",
"webRequest": "true",
"traceNumber": "CELL-001", //**Use consistent transaction IDs like CELL-001 or PRV-001 per your company's standard. Trace Number must be unique.**//
"bookingId": 1,
"transactionPin": "XXXXXX",
"customValues": [
{
"internalName": "PAYMENTMETHOD",
"fieldId": 15,
"value": "Account" // Payment Type
},
{
"internalName": "SELECTBANK",
"fieldId": 35,
"value": "{{senderBankCode}}"
},
{
"internalName": "ACCOUNTNUMBER",
"fieldId": 14,
"value": "{{senderBankAccountNumber}}"
}
]
}

Service Parameters​

Parameter NameParameter TypeDescription
transferTypeIdIntegerUnique identifier for the payment type or service
amountStringAmount to be paid (in NPR)
toMemberPrincipalStringMember account within cellpay
descriptionStringPayment description
currencyIdInteger1 = Account/Wallet, 2 = Loyalty
webRequestBooleantrue for web-based requests, false for mobile
traceNumberStringUnique transaction reference (e.g., CELL-001). Use a different traceNumber for each request and transaction
transactionPinString8-digit PIN, same as user login PIN
bookingIdIntegerID returned from Book Payment request; required for Confirm Payment
internalNameStringInput field name (e.g., PAYMENTMETHOD, SELECTBANK)
fieldIdIntegerSystem-defined ID for the custom field
valueStringValue provided by the user for the specific field