Guides
Log In
Guides

Sync

Overview

The sync command allows you to pull the latest terminal settings, ensuring your devices has the most up-to-date configuration. Settings include, but are not limited to, accepted cards, cashback and receipt settings.

The "syncModifier" field in the request object dictates what kind of sync is performed.

  • "Sync All": This modifier downloads the terminal configuration from the credit, debit and gift hosts, as well as the terminal management system. It is typically used when a device is brand new. By default, if no other modifier is defined, this is the default setting.
  • "Sync TMS": This modifier downloads terminal settings, such as tips, cashback, and surcharges from the Moneris Terminal Management System (TMS).
  • "Sync Host": This modifier downloads terminal configuration from the credit, debit and gift hosts. It is commonly used to apply charges to card plans, transaction limits and other similar updates

📘

NOTE:

In order for your Moneris Go device to be PCI compliant, your device is reset daily in which case the sync to the Moneris Terminal Management System is run automatically.


List of coding scenarios that use this endpoint:

  1. Sync Command

Request Structure

ElementTypeDescriptionSizeRequired
apiVersionStringAPI version numberV20Required
istConfigCodeStringMoneris provided integration configuration codeV25Required
dataIdStringMerchant defined unique identifier for the data objectV50Required
dataTimestampStringDate and time of the request (YYYY-MM-DD HH:MM:SS)F19Required
dataObjectObject that contains all transaction requests
requestArrayContains data applicable to transaction request
idempotencyKeyStringUnique transaction identifier to avoid duplicate requestV50Required
merchantIdStringMerchant ID of requestorV13Required
terminalIdStringDestination Terminal ID. Note: An error will be returned if terminalId in the request does not match with the Terminal.F8Optional
progressStatusStringIf value is set to "True", terminal will return progress to POS. Note: This feature is only available on Direct Integration.V5Optional
syncModifierStringIdentifies which host to synchronize withV24Optional
actionString"sync"V50Required

Request example

{
  "apiVersion": "3.0",
  "istConfigCode": "example_istConfigCode",
  "dataId": "example_dataId",
  "dataTimestamp": "1969-12-31 23:59:59",
  "data": {
    "request": [
      {
        "idempotencyKey": "example_idempotencyKey",
        "merchantId": "example_merchantId",
        "terminalId": "example_terminalId",
        "action": "sync"
      }
    ]
  }
}

Response Structure

ElementTypeDescriptionSizeRequired
apiVersionStringAPI version numberV20Required
statusCodeStringStatus code for the overall transaction requestV4Required
statusStringDescription of the statusCodeV4Required
dataIdStringMerchant defined unique identifier for the data objectV50Required
dataTimestampStringDate and time of the request (YYYY-MM-DD HH:MM:SS)F19Required
dataObjectObject that contains all transaction requests
responseArrayContains data applicable to transaction request
idempotencyKeyStringUnique transaction identifier to avoid duplicate requestV50Required
actionString"cancel"V50Required
statusCodeStringStatus code for individual requestV4Required
statusStringDescription of the individual statusCodeV50Required
settingsObjectreturns TMS and Host settings
completedString"true" or "false"V5Required

Response example

{
  "apiVersion": "3.0",
  "statusCode": "example_statusCode",
  "status": "example_status",
  "dataId": "example_dataId",
  "dataTimestamp": "1969-12-31 23:59:59",
  "data": {
    "response": [
      {
        "idempotencyKey": "example_idempotencyKey",
        "statusCode": "example_statusCode",
        "status": "example_status",
        "completed": "true",
        "action": "sync",
        "settings": {
          "tms": {
            "parameters": {
              "applicationSettings": {
                "goDevice": true,
                "receipt": {
                  "customerReceiptPrompt": {
                    "emailReceipt": true,
                    "noReceipt": true,
                    "printReceipt": true,
                    "receiptPrompt": true,
                    "smsReceipt": true
                  },
                  "footerCustomerCopy": [
                    "testö",
                    "testgbj.",
                    " chycb. hj"
                  ],
                  "headerCustomerCopy": [
                    "ËlïOÔoïö"
                  ],
                  "numberOfMerchantCopies": "0",
                  "printDelay": "1",
                  "printQRCode": true
                },
                "security": {
                  "autoSignout": false,
                  "signoutTime": "40"
                },
                "semiIntegrated": {
                  "commType": "IP",
                  "enable": true,
                  "port": "",
                  "printingOnEcr": true
                },
                "tip": {
                  "byAmount": false,
                  "byPercent": true,
                  "enableTip": false,
                  "onSubtotal": false,
                  "preset1": "10",
                  "preset2": "0",
                  "preset3": "20",
                  "presetByAmount": false,
                  "warningThreshold": "100"
                },
                "TMS": {
                  "TMSConnectInterval": "720",
                  "TMSConnectTime": "07:23",
                  "TMSHost": "tmsct.moneris.com",
                  "TMSPort": "1124"
                },
                "transactionSettings": {
                  "cashBack": {
                    "amount1": "0",
                    "amount2": "10",
                    "amount3": "05",
                    "customValueAllowed": true,
                    "enableCashBack": true,
                    "Interac": true,
                    "InteracLimit": "100",
                    "limit": "100",
                    "Mastercard": true,
                    "MastercardLimit": "100",
                    "Visa": true,
                    "VisaLimit": "100"
                  },
                  "completion": {
                    "limitMultiplier": "4",
                    "limitThreshold": "1500"
                  },
                  "MonerisGiftAndLoyaltyApp": {
                    "enableGiftAndLoyalty": true,
                    "giftandLoyaltyID": "163467",
                    "routingCode": "79"
                  },
                  "MOTO": true,
                  "passTerminalTimer": "2",
                  "surcharge": {
                    "enableSurcharge": false,
                    "surchargeAmount": "50"
                  },
                  "transactionIdLabel": "Custom",
                  "transactionIdPrompt": true
                }
              },
              "general": {
                "initialized": true,
                "PCIRebootTime": "03:00"
              },
              "merchant": {
                "merchantAddress": "1180 BOULEVARD SACR COEU",
                "merchantCity": "SAINT-FLICIE",
                "merchantName": "MONERIS GO DEV TEAM",
                "merchantPhone": "4169557091",
                "merchantPostalCode": "M5J 0B8",
                "merchantProvince": "ON"
              },
              "reports": {
                "reportResetTime": "23:00"
              }
            }
          },
          "host": {
            "card": {
              "Ctls": true,
              "Cards": {
                "P": "INTERAC",
                "V": "VISA",
                "M": "MASTERCARD",
                "AX": "AMEX",
                "C1": "JCB",
                "UP": "UNIONPAY",
                "NO": "DISCOVER",
                "DC": "DINERS"
              }
            },
            "term": {
              "MerchantID": "0030128914802",
              "MerchantName": "MONERIS GO DEV TEAM",
              "TermAddr1": "3300 BLOOR ST WEST",
              "TermAddr2": "TORONTO ON",
              "defaultTxn": "00",
              "purchase": 1,
              "purchaseCashback": 1,
              "preAuthorization": 1,
              "completion": 1,
              "forcePost": 1,
              "refund": 1,
              "purchaseCorrection": 1,
              "refundCorrection": 0,
              "cardVerification": 1,
              "balanceInquiry": 1,
              "payment": 1,
              "paymentCorrection": 1,
              "hostInitialization": 1,
              "clerkIDMaintenace": 1,
              "logon": 1,
              "logoff": 1,
              "clerkSubtotalsInquiry": 1,
              "closeBatch": 0,
              "merchantSubtotalsInquiry": 0,
              "depositTotalsInquiry": 0,
              "assistedUP": 1,
              "currency": "124",
              "timeoutPinInterchar": 15,
              "timeoutPinEntry": 60,
              "timeoutHostResponse": 60
            }
          }
        }
      }
    ]
  }
}

Errors

If your response contains errors, visit the Errors page for a detailed description of each one.