Skip to main content
Complete code examples for common Partner API operations across multiple languages.

Environment Setup

All examples use the Sandbox environment by default. Set the following environment variables:
For Production, change CLEANLIFE_BASE_URL to https://api.cleanlife.sa/v1 and use your production API key.

cURL

Find or Create Contact

List Services

Create a Booking

Get Booking Status

List Cancellation Reasons

Cancel a Booking


JavaScript (fetch)


TypeScript (axios)


Python (requests)


C#


PHP