Guides
Log In
Guides

Get Table Command

Overview

The getTable command returns check details for a specific table. This could be a single check or, multiple checks if the guests requested separate checks.


Request Structure

ELEMENTTYPEDESCRIPTIONSIZEREQUIRED
terminalIdStringTerminal ID request originated fromV8Required
merchantIdStringMerchant ID of requestorV13Required
apiVersionStringAPI version numberV20Required
requestIdStringA unique identifier for this requestV50Required
requestTimestampStringDate and time of the requestF19Required
actionStringTransaction type – “getTable”V24Conditional
dataObjectData applicable to this transaction type
serverObject
serverIdStringServer ID entered on the terminalV50Optional
trackDataObject
Track1StringTrack 1 from server card swipedV50Optional
Track2StringTrack 2 from server card swipedV50Optional
Track3StringTrack 3 from server card swipedV50Optional
tableIdStringTable ID for internal use by the systemV50Required
errorObjectPresent if the terminal detects an error in the previous response. Applicable to all actions.
statusStringStatus codeF3Conditional
statusDescStringDescription for status codeV50Conditional
sessionStringSession ID from Moneris cloudV50Conditional


{
   "terminalId": "I9000001",
   "merchantId": "0030112345678",
   "apiVersion": "1.0",
   "requestId": "I9000001-1555449670-037",
   "requestTimestamp": "2020-01-01 09:00:00",
   "action": "getTable",
   "data": {
      "server": {
         "serverId": "1234",
         "trackData": {
            "track1": "",
            "track2": "",
            "track3": ""
         }
      },
      "tableId": "15cbb687bb376894ed03662db"
   },
   "error": {
      "status": "703",
      "statusDesc": "Table Number Error"
   },
   "session": "c9e5558c-3dfb-4359-adcf-c3c3de0d269d"
}

Response Structure

ELEMENTTYPEDESCRIPTIONSIZEREQUIRED
terminalIdStringTerminal ID request originated fromV8Required
merchantIdStringMerchant ID of requestorV13Required
configCodeStringIntegration configuration code provided by MonerisV25Required
requestIdStringA unique identifier for this requestV50Required
requestTimestampStringDate and time of the requestF19Required
statusStringRMS status codeF3Required
statusDescStringRMS status code descriptionV50Required
dataObjectData applicable to this transaction type
tableArrayAn object containing a single table
tableIdStringPrimary key, used in subsequent requests to address particular tableV50Required
tableNameStringTable name for display in terminal user interfaceV50Required
tableTotalAmountNumberTotal amount due for the table (in cents)V9Required
tableRemainingAmountNumberAmount due, partial authorisation (in cents)V9Required
splitMethodNumberThe method used for split payment
1 = No Split
2 = Split by Amount
3 = Split by Check
initially set to 1 and replaced by 2 or 3 depending on checkId from the ApplyPayment response. If checkId == 1 then set it to 2 else set it to 3
V1Required
masterCheckObjectTable Check DetailsRequired
checkIdStringPrimary key, used in subsequent request to address this particular checkV50Required
checkNameStringCheck name for display in terminal user interfaceV50Optional
totalAmountNumberTotal transaction amountV9Required
preTaxAmountNumberTransaction Amount Before TaxesV9Optional
gratuityNumberService charges. This is a charge the restaurant may automatically add to a bill. For example, some restaurants add a gratuity for large parties or groups.V9Optional
remainingAmountNumberThe amount due of a partially approved amountV9Required
receiptObjectDetails of Items Purchased
taxesArray
taxNameStringTax type: GST, HST etcV50Optional
taxValueNumberTax AmountV9Optional
discountsArray
discountNameStringDiscount Type: Dollar Amount, Percentage etcV50Optional
discountValueNumberDiscount AmountV9Optional
lineItemsArray
itemIdStringUnique ID of Item PurchasedV50Optional
itemNameStringName of Item PurchasedV50Optional
itemQuantityNumberQuantity of Item PurchasedV9Optional
itemSubTotalNumberItem amount, before taxes and discounts, multiplied by item quantityV9Optional
itemTaxesArray
itemTaxNameStringItem level tax type: GST, HST etcV50Optional
itemTaxValueNumberItem level tax AmountV9Optional
itemDiscountsArray
itemDiscountNameStringDiscount Type: Dollar Amount, Percentage etcV50Optional
ItemDiscountValueNumberDiscount AmountV9Optional
itemTotalNumberTotal cost of Item PurchasedV9Optional
checksArray
checkIdStringPrimary key, used in subsequent request to address this particular checkV50Required
checkNameStringCheck name for display in terminal user interfaceV50Optional
totalAmountNumberTotal transaction amountV9Required
preTaxAmountNumberTransaction Amount Before TaxesV9Optional
gratuityNumberService charges. This is a charge the restaurant may automatically add to a bill. For example, some restaurants add a gratuity for large parties or groups.V9Optional
remainingAmountNumberThe amount due of a partially approved amountV9Required
receiptObjectDetails of Items Purchased
sessionStringSession ID from Moneris cloudV50Conditional


{
   "terminalId": "I9000001",
   "merchantId": "0030112345678",
   "configCode": "C12345678SI",
   "requestId": "I9000001-1555449670-037",
   "responseTimestamp": "yyyy-mm-dd hh:mm:ss",
   "status": "605",
   "statusDesc": "Missing Table ID",
   "data": {
      "table": {
         "tableId": "5cbb687bb376894ed03662db",
         "tableName": "DiningRoom1",
         "tableTotalAmount": 52400,
         "tableRemainingAmount": 52400,
         "splitMethod": 1,
         "masterCheck": {
            "checkId": "1",
            "checkName": "Full Table",
            "totalAmount": 52400,
            "preTaxAmount": 40000,
            "gratuity": 7200,
            "remainingAmount": 52400,
            "receipt": {
               "taxes": [
                  {
                     "taxName": "GST",
                     "taxValue": 5200
                  },
                  {
                     "name": "PST",
                     "value": 5200
                  }
               ],
               "discounts": [
                  {
                     "discountName": "25% Sale",
                     "discountValue": 10000
                  }
               ],
               "lineItems": [
                  {
                     "itemId": "1",
                     "itemName": "beer",
                     "itemQuantity": 2,
                     "itemSubtotal": 1200,
                     "itemTaxes": [
                        {
                           "itemTaxName": "GST",
                           "itemTaxValue": 156
                        },
                        {
                           "itemTaxName": "PST",
                           "itemTaxValue": 156
                        }
                     ],
                     "itemDiscounts": [
                        {
                           "itemDiscountName": "25% Sale",
                           "itemDiscountValue": 0
                        }
                     ],
                     "itemTotal": 1500
                  }
               ]
            }
         },
         "checks": [
            {
               "checkId": "2",
               "checkName": "Jim",
               "totalAmount": 13100,
               "preTaxAmount": 10000,
               "gratuity": 1800,
               "remainingAmount": 13100,
               "receipt": {}
            },
            {
               "checkId": "3",
               "checkName": "Bob",
               "totalAmount": 26200,
               "preTaxAmount": 20000,
               "gratuity": 3600,
               "remainingAmount": 26200,
               "receipt": {}
            }
         ]
      }
   },
   "session": "c9e5558c-3dfb-4359-adcf-c3c3de0d269d"
}