Based on the integration option chosen, Smobilpay for e-commerce can be setup to push the status to your system or provide the status via a pull request.
This endpoint can be used to query the current realtime payment transaction status for a payment order from the Smobilpay for e-commerce platform.
The enpoint supports search requests by either one of two reference identifiers:
txid → Which has been generated by Smobilpay for e-commerce and is returned in the response when creating a payment order
orderMerchantId → Which is the unique id created and managed by the API user and has been injected in the payment order request
txid - the unique transaction id returned as response of the Order Placement call. Provide this parameter or the orderMerchantId parameter to query the status.
orderMerchantId - the reference id generated by your system for this transaction which is also the merchantReference sent in the POST /api/order request. Provide this parameter or the txid parameter to query the status.
Authorization: Bearer <access token>
QueryPaymentStatusResponse - [JSON]
GET /<path>/api/order/status?orderMerchantId=abc123456 HTTP/1.1
HTTP/1.1 200 OK
Output Data Types