GetRegisters

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

    Register Properties
    • Id int — Unique Id of this Register
    • Name string — Name of this Register
    • Number int — Number of this Register
Headers
  • SOAPAction
    Type: string
    required
Body
required
application/json

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

Responses
  • text/xml; charset=utf-8
Request Example for post/GetRegisters
cURL
curl --request POST \
  --url 'https://{server_name_goes_here}.parpos.com/Settings.svc?Settings_GetRegisters' \
  --header 'Content-Type: text/xml; charset=utf-8' \
  --header 'SOAPAction: "http://tempuri.org/ISettingsWebService/GetRegisters"' \
  --data '<soapenv:Envelope
    xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
    xmlns:tem="http://tempuri.org/">
    <soapenv:Header/>
    <soapenv:Body>
      <tem:GetRegisters>
        <tem:accessToken>AccessToken</tem:accessToken>
        <tem:locationToken>LocationToken</tem:locationToken>
      </tem:GetRegisters>
    </soapenv:Body>
  </soapenv:Envelope>'
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
  <s:Body>
    <Settings_GetRegistersResponse xmlns="http://tempuri.org/">
      <Settings_GetRegistersResult>
        <Message>Success</Message>
        <ResultCode>0</ResultCode>
        <Registers>
          <Register>
            <Id>1</Id>
            <Name>Register 1</Name>
            <Number>1</Number>
          </Register>
        </Registers>
      </Settings_GetRegistersResult>
    </Settings_GetRegistersResponse>
  </s:Body>
</s:Envelope>