Sending a /getSessionToken

Send the /getSessionToken request with its mandatory parameters.

When calculating the checksum parameter value:

  1. Concatenate the following fields in this order, with no spaces, and no separators between the fields:
    merchantId, merchantSiteId,clientRequestId,timeStamp, merchantSecretKey
  2. Calculate the SHA-256 hash of the concatenated fields.
Example /getSessionToken Request
{
  "merchantId":"<your merchantId>",
  "merchantSiteId":"<your merchantSiteId>",
  "clientRequestId":"<unique request ID in merchant system>",
  "timeStamp":"<YYYYMMDDHHmmss>",
  "checksum":"<calculated checksum>"
}
Example /getSessionToken Response

The response returns a sessionToken, which is used in sending the /payment request.

{
  "sessionToken":"7db38b03-c1ae-45fc-8fce-8a55cfa4a6e0",
  "internalRequestId":188635168,
  "status":"SUCCESS",
  "errCode":0,
  "reason":"",
  "merchantId":"479748173730597238",
  "merchantSiteId":"180083",
  "version":"1.0",
  "clientRequestId":"20200510165419"
}