SmartAcc DynaMod Web API v2024.4 Build 0000 - Local

<back to all web services

GrabGetMenuRequest

Utility Module

Grab Food Get Menu API

The following routes are available for this service:
GET/GrabGetMenu
GrabGetMenuRequest Parameters:
NameParameterData TypeRequiredDescription
merchantIDquerystringNo
partnerMerchantIDquerystringNo
GrabGetMenuResponse Parameters:
NameParameterData TypeRequiredDescription
merchantIDformstringNo
partnerMerchantIDformstringNo
currencyformCurrencyNo
sellingTimesformList<GrabFoodSellingTimeResponse>No
categoriesformList<Category>No
responseStatusformResponseStatusNo
GrabFoodSellingTimeResponse Parameters:
NameParameterData TypeRequiredDescription
idformstringNo
nameformstringNo
startTimeformstringNo
endTimeformstringNo
serviceHoursformDictionary<string, ServiceHours>No
ServiceHours Parameters:
NameParameterData TypeRequiredDescription
openPeriodTypeformstringNo
periodsformList<Period>No
Period Parameters:
NameParameterData TypeRequiredDescription
startTimeformstringNo
endTimeformstringNo
Category Parameters:
NameParameterData TypeRequiredDescription
idformstringNo
nameformstringNo
availableStatusformstringNo
sellingTimeIDformstringNo
itemsformList<Item>No
Item Parameters:
NameParameterData TypeRequiredDescription
idformstringNo
nameformstringNo
descriptionformstringNo
priceformdecimalNo
photosformList<string>No
sellingTimeIDformstringNo
availableStatusformstringNo
taxableformboolNo
barcodeformstringNo
maxStockformintNo
modifierGroupsformList<ModifierGroup>No
ModifierGroup Parameters:
NameParameterData TypeRequiredDescription
idformstringNo
nameformstringNo
availableStatusformstringNo
selectionRangeMinformintNo
selectionRangeMaxformintNo
modifiersformList<Modifier>No

To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml

HTTP + XML

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

GET /GrabGetMenu HTTP/1.1 
Host: snr2u.com 
Accept: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<GrabGetMenuResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SmartDynaModWebAPI.ServiceModel">
  <categories>
    <Category>
      <availableStatus>String</availableStatus>
      <id>String</id>
      <items>
        <Item>
          <availableStatus>String</availableStatus>
          <barcode>String</barcode>
          <description>String</description>
          <id>String</id>
          <maxStock>0</maxStock>
          <modifierGroups>
            <ModifierGroup>
              <availableStatus>String</availableStatus>
              <id>String</id>
              <modifiers>
                <Modifier>
                  <availableStatus>String</availableStatus>
                  <barcode>String</barcode>
                  <id>String</id>
                  <name>String</name>
                  <price>0</price>
                </Modifier>
              </modifiers>
              <name>String</name>
              <selectionRangeMax>0</selectionRangeMax>
              <selectionRangeMin>0</selectionRangeMin>
            </ModifierGroup>
          </modifierGroups>
          <name>String</name>
          <photos xmlns:d6p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
            <d6p1:string>String</d6p1:string>
          </photos>
          <price>0</price>
          <sellingTimeID>String</sellingTimeID>
          <taxable>false</taxable>
        </Item>
      </items>
      <name>String</name>
      <sellingTimeID>String</sellingTimeID>
    </Category>
  </categories>
  <currency>
    <code>String</code>
    <exponent>0</exponent>
    <symbol>String</symbol>
  </currency>
  <merchantID>String</merchantID>
  <partnerMerchantID>String</partnerMerchantID>
  <responseStatus xmlns:d2p1="http://schemas.servicestack.net/types">
    <d2p1:ErrorCode>String</d2p1:ErrorCode>
    <d2p1:Message>String</d2p1:Message>
    <d2p1:StackTrace>String</d2p1:StackTrace>
    <d2p1:Errors>
      <d2p1:ResponseError>
        <d2p1:ErrorCode>String</d2p1:ErrorCode>
        <d2p1:FieldName>String</d2p1:FieldName>
        <d2p1:Message>String</d2p1:Message>
        <d2p1:Meta xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
          <d5p1:KeyValueOfstringstring>
            <d5p1:Key>String</d5p1:Key>
            <d5p1:Value>String</d5p1:Value>
          </d5p1:KeyValueOfstringstring>
        </d2p1:Meta>
      </d2p1:ResponseError>
    </d2p1:Errors>
    <d2p1:Meta xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:KeyValueOfstringstring>
        <d3p1:Key>String</d3p1:Key>
        <d3p1:Value>String</d3p1:Value>
      </d3p1:KeyValueOfstringstring>
    </d2p1:Meta>
  </responseStatus>
  <sellingTimes>
    <GrabFoodSellingTimeResponse>
      <endTime>String</endTime>
      <id>String</id>
      <name>String</name>
      <serviceHours xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:KeyValueOfstringServiceHoursU1FBydBM>
          <d4p1:Key>String</d4p1:Key>
          <d4p1:Value>
            <openPeriodType>String</openPeriodType>
            <periods>
              <Period>
                <endTime>String</endTime>
                <startTime>String</startTime>
              </Period>
            </periods>
          </d4p1:Value>
        </d4p1:KeyValueOfstringServiceHoursU1FBydBM>
      </serviceHours>
      <startTime>String</startTime>
    </GrabFoodSellingTimeResponse>
  </sellingTimes>
</GrabGetMenuResponse>