GetDestinations

This call is to retrieve an array of Destination objects for the location.

Request Parameters
  • accessToken string — Your access token (passed in SOAP body, not headers).
  • locationToken string — Your location token (passed in SOAP body, not headers).
Response Parameters
  • Message string — Returns a PAR POS Error message if the request did not go through. Otherwise, this field will be null.

  • ResultCode int — Returns one of the following:

    • 0 — Success
    • 1 — Unknown Error
    • 3 — Server Unavailable
    • 4 — Access Denied
  • Destinations Array of Destination — Array of Destination objects for this location.

    Destination Properties
    • Description string — Description of this Destination
    • Id int — Unique Id of this Destination
    • KitchenDescription string — Kitchen display description for this Destination
    • Name string — Name of this Destination
Headers
  • SOAPAction
    Type: string
    required
Body
required
application/json

SOAP envelope containing the GetDestinations request with accessToken and locationToken in body.

Responses
  • text/xml; charset=utf-8
Request Example for post/GetDestinations
cURL
curl --request POST \
  --url 'https://{server_name_goes_here}.parpos.com/Settings.svc?Settings_GetDestinations' \
  --header 'Content-Type: text/xml; charset=utf-8' \
  --header 'SOAPAction: "http://tempuri.org/ISettingsWebService/GetDestinations"' \
  --data '<soapenv:Envelope
    xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
    xmlns:tem="http://tempuri.org/">
    <soapenv:Header/>
    <soapenv:Body>
      <tem:GetDestinations>
        <tem:accessToken>AccessToken</tem:accessToken>
        <tem:locationToken>LocationToken</tem:locationToken>
      </tem:GetDestinations>
    </soapenv:Body>
  </soapenv:Envelope>'
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
  <s:Body>
    <Settings_GetDestinationsResponse xmlns="http://tempuri.org/">
      <Settings_GetDestinationsResult>
        <Message>Success</Message>
        <ResultCode>0</ResultCode>
        <Destinations>
          <Destination>
            <Description>Dine In</Description>
            <Id>1</Id>
            <KitchenDescription>DI</KitchenDescription>
            <Name>Dine In</Name>
          </Destination>
        </Destinations>
      </Settings_GetDestinationsResult>
    </Settings_GetDestinationsResponse>
  </s:Body>
</s:Envelope>