Skip to main content

Tokenization Initiate Easypaisa

Initiate a tokenization payment using the customer's msisdn and amount.


Endpoint

MethodPOST
Path/v2/wallets/transaction/initiate
Sandboxhttps://sandbox.simpaisa.com/v2/wallets/transaction/initiate
Productionhttps://payin.simpaisa.com/v2/wallets/transaction/initiate

Headers

HeaderRequiredDescription
Content-TypeYesapplication/json
modeYespayin
regionYesPK
operatorIdYes100007
versionYes3.0

Request Parameters

ParameterRequiredTypeLengthDescription
merchantIdYesString7A unique ID provided by Simpaisa to represent each merchant
operatorIdYesString6Payment channel ID
amountYesStringAmount to charge
userKeyYesStringA key generated by the merchant to track the transaction
transactionTypeYesString2Payment type — one-time charge, recurring, or tokenized
msisdnYesString10Customer contact number linked to the wallet account
productReferenceYesStringA brief description of the product being sold

Response Parameters

ParameterDescription
statusA Simpaisa response code indicating whether your request succeeded or failed
messageA human-readable explanation corresponding to the status code
msisdnCustomer contact number linked to the wallet account
operatorIdPayment channel ID
merchantIdA unique ID provided by Simpaisa to represent each merchant
transactionIdUniquely generated ID to track every transaction

Sample

curl --location 'https://sandbox.simpaisa.com/v2/wallets/transaction/initiate' \
--header 'Content-Type: application/json' \
--header 'mode: payin' \
--header 'region: PK' \
--header 'operatorId: 100007' \
--header 'version: 3.0' \
--data '{
"merchantId": "2000XXX",
"operatorId": "100007",
"amount": "100",
"userKey": "XXXX",
"transactionType": "8",
"msisdn": "3XXXXXX",
"productReference": "xxxx"
}'
{
"merchantId": "2000XXX",
"operatorId": "10000X",
"amount": "100",
"userKey": "XXXX",
"transactionType": "8",
"msisdn": "3XXXXXX",
"productReference": "xxxx"
}

After Initiate, an OTP is sent to the customer. Proceed to Verify.