DeleteBusinessHours

This call is to remove business hours of a location . Please do not keep batch size of more than 20, i.e. the number of operations in a single request should not be more than 20.

Request Parameters
  • BusinessDate DateTime? — The BusinessDate from when the change should apply. Default is the current BusinessDate of the location
  • ChangesetName string — Optionally provide a custom "changeset" name. If the value is not passed, a default "changeset" name is created.
  • IsImmediatePublish bool — Whether or not the change should be applied immediately (will restart all registers at the location)
  • BusinessHourIds Array of int — A Collection of BusinessHourIds to delete
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
    • 2 — Invalid Request
    • 3 — Server Unavailable
    • 4 — Access Denied
  • Errors Array of string — Contains error messages if the request failed
Headers
  • SOAPAction
    Type: string
    required
Body
required
application/json

SOAP envelope containing the DeleteBusinessHours request with BusinessHourIds.

Responses
  • text/xml; charset=utf-8
Request Example for post/DeleteBusinessHours
cURL
curl --request POST \
  --url 'https://{server_name_goes_here}.parpos.com/Settings2.svc?DeleteBusinessHours' \
  --header 'Content-Type: text/xml; charset=utf-8' \
  --header 'AccessToken: your-access-token' \
  --header 'LocationToken: your-location-token' \
  --header 'SOAPAction: "http://www.brinksoftware.com/webservices/settings/v2/ISettingsWebService2/DeleteBusinessHours"' \
  --data '<soapenv:Envelope
    xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
    xmlns:v2="http://www.brinksoftware.com/webservices/settings/v2">
    <soapenv:Header/>
    <soapenv:Body>
      <v2:DeleteBusinessHours>
        <v2:request>
          <v2:BusinessHourIds>
            <v2:int>123</v2:int>
          </v2:BusinessHourIds>
        </v2:request>
      </v2:DeleteBusinessHours>
    </soapenv:Body>
  </soapenv:Envelope>'
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
  <s:Body>
    <DeleteBusinessHoursResponse xmlns="http://www.brinksoftware.com/webservices/settings/v2">
      <DeleteBusinessHoursResult>
        <Message>Success</Message>
        <ResultCode>0</ResultCode>
        <Errors/>
      </DeleteBusinessHoursResult>
    </DeleteBusinessHoursResponse>
  </s:Body>
</s:Envelope>