/v1/healthCheck the API is reachable and your key works.
Request
curl -X GET "https://hytelhmrfozzfewkpqif.supabase.co/functions/v1/business-api/v1/health" \
-H "Authorization: Bearer ck_live_YOUR_KEY"Response
{ "ok": true, "version": "v1" }Booking & tracking open 24/7Open 24/7
Developers
Step 1
API access is for approved Ceetify API business partners.
ck_live_… key and webhook secret — they are shown only once.Base URL
https://hytelhmrfozzfewkpqif.supabase.co/functions/v1/business-apiSend your key on every request. Keys are stored hashed and can be revoked any time.
Authorization: Bearer ck_live_YOUR_KEY
# or
X-Api-Key: ck_live_YOUR_KEYKeep keys on your server only — never in browser or mobile app code.
All requests and responses are JSON. Amounts are in Naira (NGN).
/v1/healthCheck the API is reachable and your key works.
Request
curl -X GET "https://hytelhmrfozzfewkpqif.supabase.co/functions/v1/business-api/v1/health" \
-H "Authorization: Bearer ck_live_YOUR_KEY"Response
{ "ok": true, "version": "v1" }/v1/quotesGet a delivery price between two points using live Ceetify zone pricing.
Request
curl -X POST "https://hytelhmrfozzfewkpqif.supabase.co/functions/v1/business-api/v1/quotes" \
-H "Authorization: Bearer ck_live_YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{
"pickup": { "address": "12 Wetheral Rd, Owerri", "lat": 5.4836, "lng": 7.0333 },
"dropoff": { "address": "Ikenegbu Layout, Owerri", "lat": 5.4950, "lng": 7.0400 },
"package_size": "small",
"delivery_type": "standard"
}'Response
{ "distance_km": 2.1, "fee": 1500, "currency": "NGN", "valid_for_seconds": 900 }/v1/ordersBook a delivery. Returns a tracking number and tracking link.
Request
curl -X POST "https://hytelhmrfozzfewkpqif.supabase.co/functions/v1/business-api/v1/orders" \
-H "Authorization: Bearer ck_live_YOUR_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: SHOP-10023" \
-d '{
"pickup": { "address": "12 Wetheral Rd, Owerri", "lat": 5.4836, "lng": 7.0333 },
"dropoff": { "address": "Ikenegbu Layout, Owerri", "lat": 5.4950, "lng": 7.0400 },
"package_size": "small",
"delivery_type": "express",
"sender": { "name": "Store Owner", "phone": "08000000000" },
"receiver": { "name": "Ada N.", "phone": "08011111111" },
"package_description": "2 pairs of shoes",
"external_reference": "SHOP-10023",
"pay_on_delivery_amount": 25000
}'Response
{
"order": {
"tracking_number": "CLMXYZ12ABC",
"status": "order_received",
"fee": 2000,
"currency": "NGN",
"external_reference": "SHOP-10023",
"tracking_url": "https://logistics.ceetify.online/track?id=CLMXYZ12ABC"
},
"distance_km": 2.1
}/v1/orders?limit=20List your latest API orders (limit 1–100).
Request
curl -X GET "https://hytelhmrfozzfewkpqif.supabase.co/functions/v1/business-api/v1/orders?limit=20" \
-H "Authorization: Bearer ck_live_YOUR_KEY"Response
{ "data": [ { "tracking_number": "CL…", "status": "in_transit", … } ] }/v1/orders/{tracking_number}Get live status of one order on your account.
Request
curl -X GET "https://hytelhmrfozzfewkpqif.supabase.co/functions/v1/business-api/v1/orders/CLMXYZ12ABC" \
-H "Authorization: Bearer ck_live_YOUR_KEY"Response
{ "order": { "tracking_number": "CL…", "status": "picked_up", … } }/v1/orders/{tracking_number}/cancelCancel an order before a rider picks it up.
Request
curl -X POST "https://hytelhmrfozzfewkpqif.supabase.co/functions/v1/business-api/v1/orders/CLMXYZ12ABC/cancel" \
-H "Authorization: Bearer ck_live_YOUR_KEY"Response
{ "order": { "tracking_number": "CL…", "status": "cancelled" } }Errors return { "error": { "code", "message" } }.
| Status | Code | Meaning |
|---|---|---|
| 400 | invalid_request | A field is missing or invalid — see error.fields |
| 401 | unauthorized | Key missing, invalid or revoked |
| 404 | not_found | Unknown endpoint or order not on your account |
| 409 | not_cancellable | Order already past pickup |
| 429 | quota_exceeded | Daily request limit reached (default 2,000 / 24h) |
| 503 | pricing_unavailable | Pricing is temporarily not configured |
| 500 | server_error | Retry with the same Idempotency-Key |
Idempotency-Key to POST /v1/orders so network retries never create duplicate deliveries.