SaveBusinessHours

Create or update the existing business hours of a location. Please do not keep batch size of more than 100.

Request Parameters
  • BusinessDate DateTime? — The BusinessDate from when the change should apply. Default is the current BusinessDate of the location.

  • IsImmediatePublish bool — Whether or not the change should be applied immediately (will restart all registers at the location).

  • ChangesetName string — Optionally provide a custom "changeset" name. If the value is not passed, a default "changeset" name is created.

  • BusinessHours Array of BusinessHour — Specify one or more BusinessHour objects you would like to create.

    BusinessHour Properties
    • CloseTime TimeSpan? — The end time of the store on the given day
    • DayOfWeek DayOfWeek — One of the days of the week (Monday/Tuesday/Wednesday/Thursday/Friday/Saturday/Sunday)
    • Id int — Unique Id of this BusinessHour. Use a negative value (e.g. -1) when creating, or the existing Id when updating.
    • OpenTime TimeSpan? — The open time of the store on the given day
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
  • SaveResults Array of SaveBusinessHoursResult — Contains details on whether or not the request has succeeded.

    SaveBusinessHoursResult Properties
    • Id int — The new generated Id of a specific entity in the SaveBusinessHours request
    • OriginalId int — The original Id of a specific entity passed into the SaveBusinessHours request
    • ValidationMessages List<string> — Details if the request was unsuccessful
Headers
  • SOAPAction
    Type: string
    required
Body
required
application/json

SOAP envelope for SaveBusinessHours request containing business hour entries.

Responses
  • text/xml; charset=utf-8
Request Example for post/SaveBusinessHours
cURL
curl --request POST \
  --url 'https://{server_name_goes_here}.parpos.com/Settings2.svc?SaveBusinessHours' \
  --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/SaveBusinessHours"' \
  --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:SaveBusinessHours>
        <v2:request>
          <v2:BusinessDate>2024-01-15</v2:BusinessDate>
          <v2:ChangesetName>UpdateBusinessHours</v2:ChangesetName>
          <v2:IsImmediatePublish>false</v2:IsImmediatePublish>
          <v2:BusinessHours>
            <v2:BusinessHour>
              <v2:Id>-1</v2:Id>
              <v2:CloseTime>PT22H</v2:CloseTime>
              <v2:DayOfWeek>Monday</v2:DayOfWeek>
              <v2:OpenTime>PT08H</v2:OpenTime>
            </v2:BusinessHour>
          </v2:BusinessHours>
        </v2:request>
      </v2:SaveBusinessHours>
    </soapenv:Body>
  </soapenv:Envelope>'
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
  <s:Body>
    <SaveBusinessHoursResponse xmlns="http://www.brinksoftware.com/webservices/settings/v2">
      <SaveBusinessHoursResult>
        <Message>Success</Message>
        <ResultCode>0</ResultCode>
        <SaveResults>
          <SaveBusinessHoursResult>
            <Id>12345</Id>
            <OriginalId>-1</OriginalId>
            <ValidationMessages/>
          </SaveBusinessHoursResult>
        </SaveResults>
      </SaveBusinessHoursResult>
    </SaveBusinessHoursResponse>
  </s:Body>
</s:Envelope>