Request for server-side details on setWorkDayInfo JSON-RPC error -32000

We are currently testing the Company Administration API on our TEST environment and encountered a server-side error when calling setWorkDayInfo.

Here are the details of the failed request:

  • Tenant: floandkotest
  • Method: setWorkDayInfo
  • Provider / unit_group_id: 3
  • Date of the call: October 12, 2026
  • Time: 19:02:18, Europe/Paris
  • HTTP response: 200
  • JSON-RPC error code: -32000

The administrator authentication was valid, and the request reached SimplyBook successfully at the HTTP level.

The purpose of the call was to define a special working day for this provider on a specific date.

Could you please check your server logs for this request and provide:

  • the exact server-side error message associated with -32000;
  • any additional error data returned internally;
  • whether the request was rejected because of a specific setWorkDayInfo payload rule;
  • whether any additional permission, configuration, plugin, or provider setting is required to modify a provider’s special working day through this method.

We intentionally did not retry the write after the error, to avoid creating an ambiguous calendar state before understanding the cause.

Any server-side details you can provide would be very helpful.

Best regards,
Darryl

Hello Darryl,

I can only tell that -32000 is a generic error, not a specific business code. Could you please provide more details of your request, preferably full request payload?

Provider special days configuration should be accessible regardless any plugins or settings, but of course your user must have permissions to do it (you can verify it on the admin site itself)

Hello,

Thank you for your reply.

Here are the exact parameters sent to setWorkDayInfo for the Provider special day request that returned HTTP 200 with JSON-RPC error -32000.

[{
  "start_time": "10:00",
  "end_time": "11:00",
  "is_day_off": 0,
  "breaktime": [],
  "date": "2026-10-15",
  "unit_group_id": "3",
  "event_id": ""
}]

Tenant: floandkotest
Provider / unit group: 3
Request timestamp: 2026-10-12T17:02:18.709Z

We also found an earlier controlled case that may help identify the issue:

On 2026-10-01, using the same user token, same tenant, same provider, same API method and same transport, a weekly setWorkDayInfo request was accepted, then only 289 ms later a date-specific Provider request returned:

-32000 "Unexpected error"

This seems to indicate that authentication and general permission to call setWorkDayInfo were valid, while the date-specific/special-day payload triggered the error.

Could you please confirm the exact expected payload for a Provider special day?

In particular:

  • Should index and name be present with empty values ("") for a date-specific request, or should they be omitted?
  • Should event_id be omitted when unit_group_id is used, rather than sent as an empty string?
  • Is breaktime: [] the correct representation when there are no breaks?
  • Could you please check the server-side log for the request timestamp above and tell us what caused the generic -32000?

We have intentionally not retried the write because a previous request containing a non-empty weekly index affected the recurring schedule, so we would prefer to confirm the exact special-day contract before making another TEST request.

Thank you very much.

Hi again,

this is a rather old API method and mostly used internally (we should add it to the REST API, but we haven’t done it yet), so I had to investigate a bit. This method requires both “name” and “index”, even for special days, so in your case that would be

...
"date": "2026-10-15",
"name": "2026-10-15",
"index": "0",
... 

Having an empty event_id is ok as well as omitting it entirely. Empty array for breaktime is also fine.

Hi again,

Thank you, your previous explanation solved the setWorkDayInfo issue. We successfully confirmed that a provider special day can be written using:

  • date = YYYY-MM-DD
  • name = same date
  • index = "0"

We now have one remaining question regarding read access to the schedule configuration itself, not the effective calendar projection.

For company floandkotest, provider unit_group_id = 3:

  1. Which Admin API method returns the provider’s recurring weekly schedule as source data, including for each weekday:

    • working / day off
    • start / end time
    • breaktime
    • weekday index 1–7?
  2. Which method returns the provider’s special days as records, including:

    • date
    • name
    • index
    • start_time
    • end_time
    • is_day_off
    • breaktime
    • event_id scope?

For example, provider 3 currently has a special day on 2026-10-20 from 10:00 to 11:00.

We can see this correctly through methods such as getWorkCalendar and getUnitWorkdayInfo, but those appear to return the effective result for the date, not the underlying weekly/special-day source records.

We also tried:

getWorkDaysInfo('2026-10-20', '2026-10-20', 3)

but it returns an empty array, even though the provider is open from 10:00 to 11:00 that day.

Could you also confirm:

  • whether several special-day records can exist for the same provider/date/scope;
  • whether (date, unit_group_id, event_id) is the unique identity used by deleteSpecialDay;
  • whether schedule records expose any modification timestamp/version that could be used for concurrency control?

Our goal is to read the actual schedule configuration safely before implementing synchronization, so we want to avoid inferring source configuration only from effective calendar projections.

Thank you!