Skip to main content

Inquire Hosted Page Payment Status

After the customer completes payment on the hosted page, they are redirected to your redirectUrl. Call this API on that landing page to show whether the transaction succeeded or failed.


Endpoint

MethodPOST
Path/inquire
Sandboxhttps://stg-widgetapi.simpaisa.com/inquire
Productionhttps://widgetapi.simpaisa.com/inquire

Headers

HeaderValue
Accepttext/plain, application/json, application/*+json
Content-Typeapplication/json

Request Body

ParameterRequiredTypeLengthDescription
merchantIdYesString07Unique merchant ID
orderIdYesStringN/AYour order reference from the checkout URL

Response Body

ParameterDescription
statusSimpaisa response code
messageHuman-readable explanation
amountTransaction amount
operatorOperator name (e.g. Easypaisa, Jazzcash)
createdDateTransaction creation timestamp
operatorIdPayment channel ID
transactionIdSimpaisa transaction ID
merchantIdMerchant identifier
orderIdYour order reference

Samples

Sample Request

{
"merchantId": "xxxxxxx",
"orderId": "xxxxx"
}

Sample Response

{
"status": "xxxxxx",
"message": "xxxxxxxxxxxxxx",
"amount": "xxxxx",
"operator": "xxxxxxx",
"createdDate": "xxxxxxxxx",
"operatorId": "xxxxxxxxx",
"transactionId": "xxxxxxxxxx",
"merchantId": "xxxxxxxx",
"orderId": "xxxxxxxxx"
}
info

You can call the inquire API more than once. If used while payment is still in progress, the response is transaction-pending.