Skip to content

API Overview

The Logistics System API provides a comprehensive set of endpoints for integrating with the Partner Services Microservice. This overview will help you understand the API structure and available endpoints.

Base URL

https://partner-services.logistics.com/api/v1

Authentication

All API requests require HMAC authentication. See the Authentication Guide for implementation details.

Available Endpoints

Partner Management

EndpointMethodDescription
/partners/comprehensive-dataGETGet complete partner profile
/partners/bulk-dataGETLoad all partners (coming soon)
/partners/availability/checkPOSTCheck partner availability

Zone Management

EndpointMethodDescription
/zonesGETList all zones
/zonesPOSTCreate new zone
/zones/{id}PUTUpdate zone
/zones/{id}DELETEDelete zone

Shipment Assignment

EndpointMethodDescription
/shipments/calculate-chargesPOSTCalculate shipment charges
/shipment-assignment/assignPOSTAssign shipment to partner
/shipment-assignment/bulkPOSTBulk assignment (coming soon)

Response Format

All API responses follow this standard format:

json
{
  "success": true,
  "data": {
    // Response data here
  },
  "meta": {
    "timestamp": "2024-02-20T13:25:17Z",
    "requestId": "req_123abc"
  }
}

Error Handling

Errors follow a consistent format:

json
{
  "success": false,
  "error": {
    "code": "INVALID_PARTNER",
    "message": "Partner ID not found",
    "details": {
      // Additional error details
    }
  },
  "meta": {
    "timestamp": "2024-02-20T13:25:17Z",
    "requestId": "req_123abc"
  }
}

Rate Limiting

  • Default rate limit: 100 requests per minute
  • Bulk endpoints: 10 requests per minute
  • Rate limit headers included in responses

Next Steps

Released under the MIT License.