Enquiry
The enquiry request is acceptable with HTTPS POST method only.
Staging URL: https://stagingpayment.share-commerce.com/PreAuth/Enquiry
Production URL: https://payment.share-commerce.com/PreAuth/Enquiry
Request
Merchant need to pass in the following for Enquiry transaction.
| Field Name | Data Type (Len) | M/O | Description |
|---|---|---|---|
| MerchantID | String (50) | M | Unique merchant ID assigned to each merchant by Share Commerce |
| MerchantOrderNo | String (50) | M | MerchantOrderNo upon submission on Pre-Auth transaction |
| Versioning | Integer | M | API Versioning. Hard code 2. |
| Http Header | Data Type (Len) | M/O | Description |
|---|---|---|---|
| SCSign | M | Message sign (Refer to below SCSign Calculation section) |
*Note, field SCSign have to put in Http Header.
Request Sample
{
"MerchantID": "MID0001",
"MerchantOrderNo": "POST0001",
"Versioning": 2
}
SCSign Calculation (Request)
For Enquiry, SCSign generation will based on the raw request send or raw response received, and calculate with HMACSHA256. And SCSign value have to be capture at Http Header.
Secret Key : mSuE3Ttn5B8vJhe5ncMutMLV
Raw Request
{"MerchantID":"MID0001","MerchantOrderNo":"POST0001","Versioning":2}
SCSign (Request) : d275f570cbf67de8766e113e1988c4ceefa98999ddc460c2b51c30d909048b59
Response
Refer to the section PRE AUTH > Response > 2. Sample of response (Http POST)