eCourier API Documentation (1.0.0)

Download OpenAPI specification:Download

API endpoints for eCourier. Use the generated bearer token to access the API.

Shipments

Shipments

Create shipments

Create multiple shipments. Returns success or error details for each shipment.

Authorizations:
bearerAuth
Request Body schema: application/json
required
required
Array of objects (ShipmentRequest)

Shipments data

object

Pickup and AWB options

Responses

Request samples

Content type
application/json
{
  • "shipments": [
    ],
  • "options": {
    }
}

Response samples

Content type
application/json
{
  • "success": true,
  • "code": 200,
  • "message": "Shipments created successfully.",
  • "data": [
    ],
  • "meta": {
    },
  • "failed": [
    ]
}

Print shipment as PDF

Retrieve and print the AWB for a shipment using the tracking code. Returns base64 encoded PDF content

Authorizations:
bearerAuth
path Parameters
tracking_code
required
string
Example: 01BALTG1728072302

Tracking code of the shipment to print

Responses

Response samples

Content type
application/json
{
  • "success": true,
  • "code": 200,
  • "message": "Shipment printed successfully.",
  • "data": {
    }
}

Cancel shipment

Cancel an existing shipment using the tracking code. Returns the tracking code of the cancelled shipment

Authorizations:
bearerAuth
path Parameters
tracking_code
required
string
Example: 01BALTG1728072302

The tracking code of the shipment to cancel

Responses

Response samples

Content type
application/json
{
  • "success": true,
  • "code": 200,
  • "message": "Shipment cancelled successfully.",
  • "data": {
    }
}

Track shipment

Retrieve the status of a shipment using the tracking code.

Authorizations:
bearerAuth
path Parameters
tracking_code
required
string
Example: 01BALTG1728072302

The tracking code of the shipment to track

Responses

Response samples

Content type
application/json
{
  • "success": true,
  • "code": 200,
  • "message": "Shipment found.",
  • "data": {
    }
}