Guides
Log In
Guides

Authenticate Command

Overview

When the RMS establishes an outbound socket, it sends an authentication handshake message that includes the merchantId and apiToken. Moneris provides a Merchant ID and API Token for each merchant solution. A handshake is required each time a socket is established. The handshake pairs the terminal with the RMS and authenticates it. Transaction processing can proceed after a successful handshake.

NOTE: Each restaurant POS connection to the Moneris RMS must use a unique merchantId.


Request Structure

ELEMENTTYPEDESCRIPTIONSIZEREQUIRED
actionStringTransaction type - “authenticate”V24Required
apiTokenStringAPI Token of requestorV50Required
cloudApiVersionStringAPI version numberV20Required
merchantIdStringMerchant ID of requestorV13Required
requestIdStringRequest identifierV50Required
requestTimestampStringDate and time of the requestF19Required


{
   "action": "authenticate",
   "apiToken": "P14i5WS4P0uhgbrnN7BZ",
   "cloudApiVersion": "1.0",
   "merchantId": "1234567890",
   "requestId": "I9000001-1555449670-037",
   "requestTimestamp": "yyyy-mm-dd hh:mm:ss"
}

Response Structure

ELEMENTTYPEDESCRIPTIONSIZEREQUIRED
actionStringTransaction type - “authenticate”V24Required
cloudApiVersionStringAPI version numberV20Required
merchantIdStringMerchant ID of requestorV13Required
requestIdStringRequest identifierV50Required
responseTimestampStringDate and time of the requestF19Required
statusStringStatus codeF3Conditional
statusDescStringStatus code descriptionV50Conditional


{
   "action": "authenticate",
   "cloudApiVersion": "1.0",
   "merchantId": "0030112345678",
   "requesId": "I9000001-1555449670-037",
   "responseTimestamp": "yyyy-mm-dd hh:mm:ss",
   "status": "200",
   "statusDesc": "OK"
}