Skip to main content

System

1 API call in this section.

Health Check

Express Shipping / Customer / System
GET/express-shipping/health?language=en

Check the health status of the Express Shipping API service and get available endpoints. Authentication: - Requires valid authentication token Query Parameters: - language (optional): Preferred language for response messages

Send a bearer token in the Authorization header for an authenticated OnDi user session.
Request
curl
1curl --request GET "$ONDI_BASE_URL/express-shipping/health?language=en" \2  --header "Authorization: Bearer {{access_token}}"

Query parameters

languageOptional
query string

en

Preferred language for response messages (en, ar, ku)

Headers

AuthorizationOptional
header string

Bearer {{access_token}}

Responses

Success - API Health200OK
Response body
json
1{2  "success": true,3  "message": "Express Shipping API is running",4  "timestamp": "2024-01-01T12:00:00Z",5  "endpoints": [6    "POST /express-shipping/customer/register - Register customer with comprehensive address",7    "POST /express-shipping/customer/verify-otp - Verify OTP sent to phone",8    "POST /express-shipping/customer/resend-otp - Resend OTP to phone",9    "GET /express-shipping/customer/{customer_id}?tenant_id=xxx - Get customer details"10  ]11}