Shipping Services
1 API call in this section.
APIs for retrieving available shipping services and options
List Express Shipping Services
/express-shipping/servicesAPI: List Express Shipping Services
Endpoint
GET /express-shipping/services
Purpose
Retrieve list of available express shipping services and delivery options. Returns service details, pricing information, and availability.
Bearer token:
Authorization: Bearer {{access_token}}(required)API Key:
X-API-Key: {{api_key}}(alternative authentication method)
Business Logic
Validate tenant authentication
Retrieve available shipping services based on filters
Calculate pricing based on current configuration
Return service options with delivery estimates
Error Responses
400 - Invalid Country Code
401 - Unauthorized
404 - Services Not Available
500 - Internal Server Error
Query parameters
| Parameter | Type | Description |
|---|---|---|
languageOptional | string | (string, optional): Preferred language for response messages (en, ar, ku) Example: |
active_onlyOptional | string | (boolean, optional): Return only active services (default: true) Example: |
countryOptional | string | (string, optional): Filter services by destination country code (ISO 2-letter) |
Headers
| Parameter | Type | Description |
|---|---|---|
AuthorizationRequired | string | Bearer token authentication (required) Example: |
1curl --globoff --request GET "https://staging-api.ondi.io/functions/v1/express-shipping/services?language=en&active_only=true" \2 --header "Authorization: Bearer ${ONDI_ACCESS_TOKEN}"Response examples
1{2 "success": true,3 "data": {4 "services": [5 {6 "service_id": "express_international",7 "name": "Express International",8 "description": "Fast international shipping for urgent deliveries",9 "type": "express",10 "delivery_time": "3-5 business days",11 "is_active": true,12 "supported_countries": [13 "US",14 "CA",15 "GB",16 "DE",17 "FR",18 "IT"19 ],20 "pricing": {21 "base_price": 15,22 "price_per_kg": 12,23 "minimum_price": 6,24 "currency": "USD",25 "free_shipping_threshold": 15026 },27 "limits": {28 "max_weight_kg": 25,29 "max_dimensions_cm": {30 "length": 100,31 "width": 70,32 "height": 7033 }34 },35 "features": [36 "tracking_included",37 "insurance_available",38 "signature_confirmation",39 "real_time_updates"40 ]41 },42 {43 "service_id": "economy_international",44 "name": "Economy International",45 "description": "Cost-effective international shipping for non-urgent deliveries",46 "type": "economy",47 "delivery_time": "7-14 business days",48 "is_active": true,49 "supported_countries": [50 "US",51 "CA",52 "GB",53 "DE",54 "FR",55 "IT",56 "ES",57 "NL"58 ],59 "pricing": {60 "base_price": 8,61 "price_per_kg": 6,62 "minimum_price": 4,63 "currency": "USD",64 "free_shipping_threshold": 10065 },66 "limits": {67 "max_weight_kg": 30,68 "max_dimensions_cm": {69 "length": 120,70 "width": 80,71 "height": 8072 }73 },74 "features": [75 "tracking_included",76 "basic_insurance"77 ]78 }79 ],80 "total_services": 2,81 "currency": "USD",82 "last_updated": "2024-01-27T10:00:00Z"83 }84}