Customer Management
1 API call in this section.
Get Customer Details
Express Shipping / Customer / Customer Management
GET
/express-shipping/customer/GAL1704067200000?language=enRetrieve customer details by customer ID. Returns comprehensive customer information including delivery address. Authentication: - Requires valid authentication token Path Parameters: - customer_id (required): Customer identifier (e.g., GAL1704067200000) 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/customer/GAL1704067200000?language=en" \2 --header "Authorization: Bearer {{access_token}}"Query parameters
languageOptionalquery string
en
Preferred language for response messages (en, ar, ku)
Headers
AuthorizationOptionalheader string
Bearer {{access_token}}
Responses
Success - Customer Details200OK
Response body
json
1{2 "success": true,3 "data": {4 "customer_id": "GAL1704067200000",5 "full_name": "John Doe",6 "email": "john.doe@example.com",7 "phone": "+919876543210",8 "delivery_address": {9 "lat": 19.076,10 "lng": 72.8777,11 "full_address": "123 Main Street, Andheri West, Mumbai, Maharashtra 400058, India",12 "address_line1": "123 Main Street",13 "address_line2": "Apt 4B",14 "street": "Main Street",15 "building": "Sunrise Apartments",16 "floor": "4th Floor",17 "city": "Mumbai",18 "state": "Maharashtra",19 "country": "India",20 "postal_code": "400058",21 "notes": "Near the temple, blue building with security guard"22 },23 "is_verified": true,24 "status": "verified",25 "verified_at": "2024-01-01T12:00:00Z",26 "created_at": "2024-01-01T10:00:00Z"27 }28}Error - Customer Not Found404Not Found
Response body
json
1{2 "success": false,3 "message": "Customer not found"4}Error - Missing Tenant ID400Bad Request
Response body
json
1{2 "success": false,3 "message": "Missing required parameter: tenant_id"4}