Skip to main content

Api Inquiry Status

smilepayz teamsAbout 1 min

Request

API Inquiry Status function is a critical component in modern digital services, empowering applications with the ability to programmatically request and receive updates about the current status of various operations.

Request Path:

{Base URL}/v2.0/inquiry-status

Header Parameters

FieldAttributeTypeDescription
Content-TypeMStringapplication/json
X-TIMESTAMPMStringyyyy-MM-ddTHH:mm:ss[zoneOffset] eg: 2020-12-17T10:55:00+07:00
X-SIGNATUREMStringFocus:How to signature
X-PARTNER-IDMStringmerchant ID

Body Parameters

FieldAttributeTypeDescription
tradeTypeMnumberObject Model TradeType
orderNoCString(32)merchant transaction Unique ID
tradeNoCString(32)smilepayz transaction Unique ID

Info

At least one of tradeNo and orderNo is not empty

Example Body – inquiry status Request:

POST {Base URL}/v2.0/inquiry-status HTTP/1.2

Content-type: application/json
X-TIMESTAMP: 2020-12-17T10:55:00+07:00
X-SIGNATURE: 85be817c55b2c135157c7e89f52499bf0c25ad6eeebe04a986e8c862561b19a5
X-PARTNER-ID: 20001

Response

API header format structure:

AreaFieldAttributeTypeDescription
HeaderContent-TypeMStringapplication/json
X-TIMESTAMPMStringyyyy-MM-ddTHH:mm:ss[zoneOffset] eg: 2020-12-17T10:55:00+07:00

Response Body

FieldAttributeTypeDescription
codeMStringsuccess = "00"
messageMStringResponse message
tradeNoOStringsmilepayz trade no
tradeTypeONumberTrade Type
paymentMethodOStringPaymentMethod
moneyOMoneyMoney
statusOStringTransaction Status
remarkOStringremark

Example Body – Inquiry Status Request:

Content-type: application/json 
X-TIMESTAMP: 2020-12-17T10:55:00+07:00
Last update: