What Is the CleanLife Partner API?
The CleanLife Partner API is a RESTful HTTP API that enables authorized third-party companies — referred to as partners — to integrate directly with the CleanLife home-services platform. Through this API, partners can:- Browse the live service catalog and pricing
- Query available appointment timeslots in real time
- Create and cancel bookings on behalf of their customers
- Confirm payments when the partner is responsible for billing
Who Should Use This API?
API Version
Environments
The Partner API is available in two environments. Use Sandbox during development and testing; switch to Production only after your integration is validated.
All partner endpoints are prefixed with
/partners:
All code examples in this documentation use the Sandbox base URL by default. Replace it with the Production URL when you go live.
Supported Content Types
All request and response bodies use JSON.
Requests with a body that do not include
Content-Type: application/json will be rejected with 400 Bad Request.
Character Encoding
All strings are UTF-8 encoded. Responses are UTF-8 encoded JSON.Timezone
All datetime values in requests and responses use the Asia/Riyadh timezone (UTC+3), unless explicitly stated otherwise in field documentation. When passing timestamps, always use ISO 8601 format with the explicit+03:00 offset:
YYYY-MM-DD format in the Riyadh local date.
Date and Time Format
Versioning Strategy
The Partner API uses URI path versioning. The current version isv1, included in the base URL (e.g. https://apiv3.thecleanlife.dev/v1). If a future breaking version is introduced, it will be explicitly namespaced (e.g. /v2/partners/...).
Additive, non-breaking changes (new optional fields) may be introduced without a version bump. Partners should build their integrations to tolerate unknown fields in responses.