GetRevenueCenters

This call is to retrieve an array of RevenueCenter 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
  • RevenueCenters Array of RevenueCenter — Array of RevenueCenter objects for this location.

    RevenueCenter Properties
    • Active bool — True if this RevenueCenter is active, False if inactive
    • Id int — Unique Id of this RevenueCenter
    • Name string — Name of this RevenueCenter
    • TaxIds IdList — Maps to the Id(s) of the Tax(es) associated with this RevenueCenter
Headers
  • SOAPAction
    Type: string
    required
Body
required
application/json

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

Responses
  • text/xml; charset=utf-8
Request Example for post/GetRevenueCenters
cURL
curl --request POST \
  --url 'https://{server_name_goes_here}.parpos.com/Settings.svc?Settings_GetRevenueCenters' \
  --header 'Content-Type: text/xml; charset=utf-8' \
  --header 'SOAPAction: "http://tempuri.org/ISettingsWebService/GetRevenueCenters"' \
  --data '<soapenv:Envelope
    xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
    xmlns:tem="http://tempuri.org/">
    <soapenv:Header/>
    <soapenv:Body>
      <tem:GetRevenueCenters>
        <tem:accessToken>AccessToken</tem:accessToken>
        <tem:locationToken>LocationToken</tem:locationToken>
      </tem:GetRevenueCenters>
    </soapenv:Body>
  </soapenv:Envelope>'
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
  <s:Body>
    <Settings_GetRevenueCentersResponse xmlns="http://tempuri.org/">
      <Settings_GetRevenueCentersResult>
        <Message>Success</Message>
        <ResultCode>0</ResultCode>
        <RevenueCenters>
          <RevenueCenter>
            <Active>true</Active>
            <Id>1</Id>
            <Name>Bar</Name>
            <TaxIds>
              <Id>1</Id>
              <Id>2</Id>
            </TaxIds>
          </RevenueCenter>
        </RevenueCenters>
      </Settings_GetRevenueCentersResult>
    </Settings_GetRevenueCentersResponse>
  </s:Body>
</s:Envelope>