Skip to main content
Conventions for all Partner API requests.

Base URL & Versioning

All partner routes follow this pattern:
Examples:
The API uses URI path versioning. The current version is v1 and is included in the base URL.

HTTP Methods


Required Headers


JSON Conventions

  • Request bodies use camelCase field names.
  • Dates for booking creation use YYYY-MM-DD (e.g. 2026-06-20).
  • Timeslots use HH:mm 24-hour format (e.g. 09:00, 12:00).
  • All UUIDs must be valid UUID v4.

Pagination

List endpoints accept the following pagination query parameters:

Example


Idempotency

Idempotency-Key header support exists in the idempotency service layer but may not be enabled on all public booking endpoints. Confirm with the CleanLife integration team before relying on it in production.
When enabled, send:
Reusing the same key with the same payload replays the stored response. Reusing the key with a different payload returns a conflict error.

Date & Timezone

  • Business timezone: Asia/Riyadh (UTC+3).
  • API timestamps in responses use ISO 8601 with timezone offset where applicable.
  • Booking date is a calendar date in the service territory, not a UTC instant.

Request Size

Keep JSON payloads reasonable (under 1 MB).