Enquiry
Enquiry API allow merchant to perform Recurring transaction status from time-to-time.
The API need to perform server-to-server call in order to retrieve the response, by using HTTP POST Method.
*Note, merchant need to provide IP for API access whitelist
| Environment | URL |
|---|---|
| Staging | https://stagingpayment.share-commerce.com/Recurring/Enquiry |
| Production | https://payment.share-commerce.com/Recurring/Enquiry |
Request
| Field Name | Data Type (Len) | M/O/C | Description |
|---|---|---|---|
| MerchantID | String (50) | M | Unique merchant's identification assigned to each merchant by Share Commerce. |
| MerchantOrderNo | String (50) | M | Unique identifier or order number generated by merchant, use it to track Recurring and subsequent cycle payment details. |
| Versioning | Integer | M | API Versioning. Kindly put value as 2. |
| HTTP Header | Data Type (Len) | M/O | Description |
|---|---|---|---|
| SCSign | M | Message sign (Refer to below SCSign Calculation section) |
*Note, field SCSign have to pass in HTTP Header.
Request Sample
{
"MerchantID": "MID0001",
"MerchantOrderNo": "RecurringPayment_001",
"Versioning": 2
}
SCSign Calculation
SCSign signature calculation, will sign with whole json string, and calculate with HMACSHA256 algorithm.
Secret Key : mSuE3Ttn5B8vJhe5ncMutMLV
Request Sign String (Example)
{"MerchantID":"MID0001","MerchantOrderNo":"RecurringPayment_001","Versioning":2}
SCSign (Calculated Value)
56f3eb548ac6859f0fd05f5c9a020781377289dc133a7ce2777311c5739c5396