Open 24/7

Developers

Ceetify Business API

Get prices, book deliveries and track orders from your own website, Shopify/WooCommerce store or ERP.

Step 1

Getting started

API access is for approved Ceetify API business partners.

  1. Apply for a business account on the For Business page.
  2. Once approved, sign in to the Partner portal and open Business API to create a key (up to 5 active keys).
  3. Copy your ck_live_… key and webhook secret — they are shown only once.

Base URL

https://hytelhmrfozzfewkpqif.supabase.co/functions/v1/business-api

Authentication

Send 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_KEY

Keep keys on your server only — never in browser or mobile app code.

Endpoints

All requests and responses are JSON. Amounts are in Naira (NGN).

GET/v1/health

Check 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" }
POST/v1/quotes

Get a delivery price between two points using live Ceetify zone pricing.

  • package_size: small | medium | large | xlarge (default small)
  • delivery_type: standard | express (default standard)
  • address 5–300 chars; lat/lng required

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 }
POST/v1/orders

Book a delivery. Returns a tracking number and tracking link.

  • Send an Idempotency-Key header (max 100 chars) — retries with the same key return the original response
  • notes max 300 chars, package_description max 500 chars

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
}
GET/v1/orders?limit=20

List 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", … } ] }
GET/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", … } }
POST/v1/orders/{tracking_number}/cancel

Cancel an order before a rider picks it up.

  • Only orders in order_received or order_accepted can be cancelled (else 409 not_cancellable)

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

Errors return { "error": { "code", "message" } }.

StatusCodeMeaning
400invalid_requestA field is missing or invalid — see error.fields
401unauthorizedKey missing, invalid or revoked
404not_foundUnknown endpoint or order not on your account
409not_cancellableOrder already past pickup
429quota_exceededDaily request limit reached (default 2,000 / 24h)
503pricing_unavailablePricing is temporarily not configured
500server_errorRetry with the same Idempotency-Key

Limits & idempotency

  • Default quota: 2,000 requests per key per rolling 24 hours.
  • Quotes are valid for 15 minutes.
  • Add Idempotency-Key to POST /v1/orders so network retries never create duplicate deliveries.
  • Every call is logged and visible under Recent requests in your Partner portal.