Skip to main content

Inquire

Retrieve the final status of a pay-in transaction after the customer returns from the wallet operator's payment page.

Applies to: Bangladesh · Nepal · Egypt · Iraq


Endpoint

MethodPOST
Path/payins/payments/inquire
Sandboxhttps://sandbox.simpaisa.com/payins/payments/inquire
Productionhttps://payin.simpaisa.com/payins/payments/inquire

When To Call

Call Inquire on your successUrl and failureUrl landing pages after the customer is redirected back from payment_url.

ScenarioAction
Customer just returned from payment pageCall Inquire immediately
Status is 0037 (Transaction-Pending)Customer has not finished — poll Inquire or wait for postback
Postback not receivedCall Inquire as fallback
During active paymentInquire may return 0037 — do not treat as failure
warning

Do not rely on the browser redirect alone. Always confirm payment server-side with Inquire (and/or postback).


Headers

HeaderRequiredDescription
AcceptYestext/plain, application/json, application/*+json
Content-TypeYesapplication/json
api-tokenYesMerchant API token
modeYespayin
regionYesBD · NP · EG · IQ
operatorIdYesSame operator used in Initiate
versionYes3.0

Request Body

ParameterTypeRequiredDescription
merchantIdStringYesYour Simpaisa merchant ID
transactionIdStringYestransactionId from the Initiate response

Response Body

ParameterTypeDescription
statusStringFinal status — 0000 = Success, 0037 = still pending
messageStringHuman-readable status
merchantIdStringEcho of merchant ID
userKeyStringYour order reference from Initiate
msisdnStringCustomer mobile number
amountStringCharged amount
transactionIdStringEcho of transaction ID
operatorStringBangladesh only. Operator used
operatorIdStringNepal, Egypt, Iraq. Operator used
currencyCodeStringBDT · NPR · EGP · IQD
transactionTypeString0 = one-time payment
createdTimestamp / createdDateStringTransaction created time
updatedTimestamp / updatedDateStringLast status update time

Flow Position

This is step 5 in the unified pay-in flow (after Initiate → redirect → customer payment → return URL).


Samples

curl --location 'https://sandbox.simpaisa.com/payins/payments/inquire' \
--header 'api-token: YOUR_API_TOKEN' \
--header 'Content-Type: application/json' \
--header 'mode: payin' \
--header 'region: BD' \
--header 'operatorId: 10001' \
--header 'version: 3.0' \
--data '{
"merchantId": "4000016",
"transactionId": "2289"
}'

Success response

{
"status": "0000",
"message": "Success",
"merchantId": "4000016",
"userKey": "9993-MD1",
"msisdn": "3123456789",
"operator": "10001",
"currencyCode": "BDT",
"amount": "100.0",
"transactionId": "2289",
"createdTimestamp": "2024-08-19 14:52:22.0",
"updatedTimestamp": "2024-08-19 14:52:37.0",
"transactionType": "0"
}