---
title: MENA Shipping API
slug: mena-shipping
url: https://apyhub.com/odelyo/service/mena-shipping
provider: Odelyo
categories: [Verification Kit]
tags: [mena-shipping, shipment-tracking, shipping-rates, shipping-labels, aramex-api, bosta-api]
auth: api_key
version: 1.0.0
service_type: sync
endpoints: 6
atoms: 10
mcp: true
---

# MENA Shipping API

MENA shipping API: send shipment details and get delivery rates, labels, tracking and cancellations for Aramex and Bosta. Free tier, no card.

## Endpoints

| Method | URL | Description | Atoms |
| --- | --- | --- | --- |
| POST | `https://api.eu.apyhub.com/odelyo/mena-shipping/shipments` | What it does Creates a shipment with Aramex, Bosta or the demo carrier and returns its tracking num… | 10 |
| POST | `https://api.eu.apyhub.com/odelyo/mena-shipping/labels` | What it does Returns the shipping label of an existing shipment, in English or Arabic. Request Body… | 10 |
| POST | `https://api.eu.apyhub.com/odelyo/mena-shipping/tracking` | What it does Returns the status and the event history of up to 20 shipments in one request. Request… | 10 |
| POST | `https://api.eu.apyhub.com/odelyo/mena-shipping/cancellations` | What it does Cancels a shipment by its tracking number. Aramex does not offer cancellation through… | 10 |
| GET | `https://api.eu.apyhub.com/odelyo/mena-shipping/carriers` | What it does Lists the supported carriers, the countries and operations of each, and the shipment s… | 10 |
| POST | `https://api.eu.apyhub.com/odelyo/mena-shipping/rates` | What it does Returns the delivery price for a parcel from an origin to a destination. Request Body… | 10 |

## Endpoint reference

### Create Shipment

`POST https://api.eu.apyhub.com/odelyo/mena-shipping/shipments` · 10 atoms · accepts `application/json` · returns `application/json`

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `notes` | body | string | no | Notes. Example: `Handle with care`. |
| `parcel.size` | body | string | no | Size. One of: SMALL, MEDIUM, LARGE. Example: `SMALL`. |
| `parcel.pieces` | body | integer | no | Pieces. Example: `1`. |
| `parcel.width_cm` | body | number | no | Width cm. Example: `10`. |
| `parcel.height_cm` | body | number | no | Height cm. Example: `10`. |
| `parcel.length_cm` | body | number | no | Length cm. Example: `20`. |
| `parcel.weight_kg` | body | number | yes | Weight kg. Example: `1`. |
| `parcel.description` | body | string | yes | Description. Example: `Test parcel`. |
| `carrier` | body | string | yes | demo answers without calling a carrier. One of: aramex, bosta, demo. Example: `demo`. |
| `service` | body | string | no | Service. One of: domestic, express. Example: `express`. |
| `shipper.address.city` | body | string | yes | City. Example: `Amman`. |
| `shipper.address.floor` | body | string | no | Floor. Example: `2`. |
| `shipper.address.line1` | body | string | yes | Line1. Example: `12 Test Street`. |
| `shipper.address.line2` | body | string | no | Line2. Example: `Building 4`. |
| `shipper.address.city_id` | body | string | no | City id. Example: `C1`. |
| `shipper.address.country` | body | string | yes | Country. Example: `JO`. |
| `shipper.address.zone_id` | body | string | no | Zone id. Example: `Z1`. |
| `shipper.address.building` | body | string | no | Building. Example: `4`. |
| `shipper.address.district` | body | string | no | District. Example: `Downtown`. |
| `shipper.address.postcode` | body | string | no | Postcode. Example: `11118`. |
| `shipper.address.apartment` | body | string | no | Apartment. Example: `5`. |
| `shipper.address.district_id` | body | string | no | District id. Example: `D1`. |
| `shipper.contact.name` | body | string | yes | Name. Example: `Test User`. |
| `shipper.contact.email` | body | string | no | Email. Example: `test@example.com`. |
| `shipper.contact.phone` | body | string | yes | Phone. Example: `0790000000`. |
| `shipper.contact.phone2` | body | string | no | Phone2. Example: `0780000000`. |
| `shipper.contact.company` | body | string | no | Company. Example: `Test Co`. |
| `shipper.account_number` | body | string | no | Account number. Example: `20016`. |
| `currency` | body | string | no | Currency. Example: `SAR`. |
| `recipient.address.city` | body | string | yes | City. Example: `Amman`. |
| `recipient.address.floor` | body | string | no | Floor. Example: `2`. |
| `recipient.address.line1` | body | string | yes | Line1. Example: `12 Test Street`. |
| `recipient.address.line2` | body | string | no | Line2. Example: `Building 4`. |
| `recipient.address.city_id` | body | string | no | City id. Example: `C1`. |
| `recipient.address.country` | body | string | yes | Country. Example: `JO`. |
| `recipient.address.zone_id` | body | string | no | Zone id. Example: `Z1`. |
| `recipient.address.building` | body | string | no | Building. Example: `4`. |
| `recipient.address.district` | body | string | no | District. Example: `Downtown`. |
| `recipient.address.postcode` | body | string | no | Postcode. Example: `11118`. |
| `recipient.address.apartment` | body | string | no | Apartment. Example: `5`. |
| `recipient.address.district_id` | body | string | no | District id. Example: `D1`. |
| `recipient.contact.name` | body | string | yes | Name. Example: `Test User`. |
| `recipient.contact.email` | body | string | no | Email. Example: `test@example.com`. |
| `recipient.contact.phone` | body | string | yes | Phone. Example: `0790000000`. |
| `recipient.contact.phone2` | body | string | no | Phone2. Example: `0780000000`. |
| `recipient.contact.company` | body | string | no | Company. Example: `Test Co`. |
| `recipient.account_number` | body | string | no | Account number. Example: `20016`. |
| `reference` | body | string | no | Reference. Example: `ORDER-1001`. |
| `cod_amount` | body | number | no | Cod amount. Example: `100`. |
| `credentials.api_key` | body | string | no | Api key. Example: `YOUR_BOSTA_API_KEY`. |
| `credentials.password` | body | string | no | Password. Example: `YOUR_PASSWORD`. |
| `credentials.username` | body | string | no | Username. Example: `user@example.com`. |
| `credentials.account_pin` | body | string | no | Account pin. Example: `123456`. |
| `credentials.account_entity` | body | string | no | Account entity. Example: `AMM`. |
| `credentials.account_number` | body | string | no | Account number. Example: `20016`. |
| `credentials.account_country_code` | body | string | no | Account country code. Example: `JO`. |
| `environment` | body | string | no | test uses the Aramex development endpoint. One of: production, test. Default: `production`. Example: `test`. |
| `allow_open_package` | body | boolean | no | Allow open package. Example: `false`. |

#### Quickstart

Create a shipment with the demo carrier. No carrier login is needed.

```bash
curl -X POST "https://api.eu.apyhub.com/odelyo/mena-shipping/shipments" \
  -H "apy-token: $APY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"carrier":"demo","reference":"ORDER-1001","shipper":{"address":{"line1":"12 Test Street","city":"Amman","country":"JO"},"contact":{"name":"Test User","phone":"0790000000"}},"recipient":{"address":{"line1":"12 Test Street","city":"Cairo","country":"EG"},"contact":{"name":"Test User","phone":"0790000000"}},"parcel":{"weight_kg":1,"description":"Test parcel"}}'
```

#### What you'll get back

Returns a JSON object with `data` and `meta`. `data` has the `carrier`, the `tracking_number`, the label fields and your `reference`.

```json
{
  "data": {
    "carrier": "demo",
    "tracking_number": "82198802773",
    "label_url": null,
    "label_pdf_base64": null,
    "reference": "ORDER-1001",
    "demo": true
  },
  "meta": {
    "request_id": "req_0faa849ae5aa449d",
    "version": "v1"
  }
}
```

### Shipping Label

`POST https://api.eu.apyhub.com/odelyo/mena-shipping/labels` · 10 atoms · accepts `application/json` · returns `application/json`

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `lang` | body | string | no | Lang. One of: ar, en. Example: `en`. |
| `carrier` | body | string | yes | demo answers without calling a carrier. One of: aramex, bosta, demo. Example: `demo`. |
| `credentials.api_key` | body | string | no | Api key. Example: `YOUR_BOSTA_API_KEY`. |
| `credentials.password` | body | string | no | Password. Example: `YOUR_PASSWORD`. |
| `credentials.username` | body | string | no | Username. Example: `user@example.com`. |
| `credentials.account_pin` | body | string | no | Account pin. Example: `123456`. |
| `credentials.account_entity` | body | string | no | Account entity. Example: `AMM`. |
| `credentials.account_number` | body | string | no | Account number. Example: `20016`. |
| `credentials.account_country_code` | body | string | no | Account country code. Example: `JO`. |
| `environment` | body | string | no | test uses the Aramex development endpoint. One of: production, test. Default: `production`. Example: `test`. |
| `tracking_number` | body | string | yes | Tracking number. Example: `82198802773`. |

#### Quickstart

Get the label of a shipment with the demo carrier.

```bash
curl -X POST "https://api.eu.apyhub.com/odelyo/mena-shipping/labels" \
  -H "apy-token: $APY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"carrier":"demo","tracking_number":"82198802773","lang":"en"}'
```

#### What you'll get back

Returns a JSON object with `data` and `meta`. `data` has the `carrier`, the `tracking_number`, `label_url` and `label_pdf_base64`.

```json
{
  "data": {
    "carrier": "demo",
    "tracking_number": "82198802773",
    "label_url": null,
    "label_pdf_base64": null,
    "demo": true
  },
  "meta": {
    "request_id": "req_672a60babe6c26f0",
    "version": "v1"
  }
}
```

### Track Shipments

`POST https://api.eu.apyhub.com/odelyo/mena-shipping/tracking` · 10 atoms · accepts `application/json` · returns `application/json`

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `carrier` | body | string | yes | demo answers without calling a carrier. One of: aramex, bosta, demo. Example: `demo`. |
| `credentials.api_key` | body | string | no | Api key. Example: `YOUR_BOSTA_API_KEY`. |
| `credentials.password` | body | string | no | Password. Example: `YOUR_PASSWORD`. |
| `credentials.username` | body | string | no | Username. Example: `user@example.com`. |
| `credentials.account_pin` | body | string | no | Account pin. Example: `123456`. |
| `credentials.account_entity` | body | string | no | Account entity. Example: `AMM`. |
| `credentials.account_number` | body | string | no | Account number. Example: `20016`. |
| `credentials.account_country_code` | body | string | no | Account country code. Example: `JO`. |
| `environment` | body | string | no | test uses the Aramex development endpoint. One of: production, test. Default: `production`. Example: `test`. |
| `tracking_numbers` | body | array of string | yes | Example: `["82198802773"]`. |

#### Quickstart

Track a shipment with the demo carrier.

```bash
curl -X POST "https://api.eu.apyhub.com/odelyo/mena-shipping/tracking" \
  -H "apy-token: $APY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"carrier":"demo","tracking_numbers":["82198802773"]}'
```

#### What you'll get back

Returns a JSON object with `data` and `meta`. `data.results` has the `status` and the `events` of each tracking number, and `data.not_found` lists the numbers that were not found.

```json
{
  "data": {
    "carrier": "demo",
    "results": [
      {
        "tracking_number": "82198802773",
        "status": "in_transit",
        "events": [
          {
            "at": "2026-12-02T10:25:11.103Z",
            "status": "in_transit",
            "code": "DEMO2",
            "description": "Departed origin hub (demo)",
            "location": "Riyadh"
          },
          {
            "at": "2026-12-02T09:25:11.103Z",
            "status": "picked_up",
            "code": "DEMO1",
            "description": "Picked up (demo)",
            "location": "Riyadh"
          }
        ]
      }
    ],
    "not_found": [],
    "demo": true
  },
  "meta": {
    "request_id": "req_e23d553c8762ebaf",
    "version": "v1"
  }
}
```

### Cancel Shipment

`POST https://api.eu.apyhub.com/odelyo/mena-shipping/cancellations` · 10 atoms · accepts `application/json` · returns `application/json`

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `carrier` | body | string | yes | demo answers without calling a carrier. One of: aramex, bosta, demo. Example: `demo`. |
| `credentials.api_key` | body | string | no | Api key. Example: `YOUR_BOSTA_API_KEY`. |
| `credentials.password` | body | string | no | Password. Example: `YOUR_PASSWORD`. |
| `credentials.username` | body | string | no | Username. Example: `user@example.com`. |
| `credentials.account_pin` | body | string | no | Account pin. Example: `123456`. |
| `credentials.account_entity` | body | string | no | Account entity. Example: `AMM`. |
| `credentials.account_number` | body | string | no | Account number. Example: `20016`. |
| `credentials.account_country_code` | body | string | no | Account country code. Example: `JO`. |
| `environment` | body | string | no | test uses the Aramex development endpoint. One of: production, test. Default: `production`. Example: `test`. |
| `tracking_number` | body | string | yes | Tracking number. Example: `82198802773`. |

#### Quickstart

Cancel a shipment with the demo carrier.

```bash
curl -X POST "https://api.eu.apyhub.com/odelyo/mena-shipping/cancellations" \
  -H "apy-token: $APY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"carrier":"demo","tracking_number":"82198802773"}'
```

#### What you'll get back

Returns a JSON object with `data` and `meta`. `data.cancelled` is `true` when the shipment was cancelled.

```json
{
  "data": {
    "carrier": "demo",
    "tracking_number": "82198802773",
    "cancelled": true,
    "demo": true
  },
  "meta": {
    "request_id": "req_b4cd99e69ab9466a",
    "version": "v1"
  }
}
```

### List Carriers

`GET https://api.eu.apyhub.com/odelyo/mena-shipping/carriers` · 10 atoms · accepts `application/json` · returns `application/json`

#### Quickstart

List the supported carriers and statuses.

```bash
curl -X GET "https://api.eu.apyhub.com/odelyo/mena-shipping/carriers" \
  -H "apy-token: $APY_TOKEN"
```

#### What you'll get back

Returns a JSON object with `data` and `meta`. `data.carriers` lists each carrier with its countries and operations, and `data.statuses` lists the shipment statuses.

```json
{
  "data": {
    "carriers": [
      {
        "id": "aramex",
        "name": "Aramex",
        "countries": [
          "SA",
          "AE",
          "EG",
          "JO",
          "KW",
          "QA",
          "BH",
          "OM",
          "LB",
          "and international"
        ],
        "operations": [
          "rates",
          "shipments",
          "labels",
          "tracking"
        ],
        "cash_on_delivery": true
      },
      {
        "id": "bosta",
        "name": "Bosta",
        "countries": [
          "EG",
          "SA"
        ],
        "operations": [
          "rates",
          "shipments",
          "labels",
          "tracking",
          "cancellations"
        ],
        "cash_on_delivery": true
      }
    ],
    "statuses": [
      "created",
      "picked_up",
      "in_transit",
      "out_for_delivery",
      "delivered",
      "returned",
      "cancelled",
      "exception",
      "unknown"
    ]
  },
  "meta": {
    "request_id": "req_3dbf48eabed12716",
    "version": "v1"
  }
}
```

### Shipping Rates

`POST https://api.eu.apyhub.com/odelyo/mena-shipping/rates` · 10 atoms · accepts `application/json` · returns `application/json`

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `origin.city` | body | string | yes | City. Example: `Amman`. |
| `origin.floor` | body | string | no | Floor. Example: `2`. |
| `origin.line1` | body | string | yes | Line1. Example: `12 Test Street`. |
| `origin.line2` | body | string | no | Line2. Example: `Building 4`. |
| `origin.city_id` | body | string | no | City id. Example: `C1`. |
| `origin.country` | body | string | yes | Country. Example: `JO`. |
| `origin.zone_id` | body | string | no | Zone id. Example: `Z1`. |
| `origin.building` | body | string | no | Building. Example: `4`. |
| `origin.district` | body | string | no | District. Example: `Downtown`. |
| `origin.postcode` | body | string | no | Postcode. Example: `11118`. |
| `origin.apartment` | body | string | no | Apartment. Example: `5`. |
| `origin.district_id` | body | string | no | District id. Example: `D1`. |
| `parcel.size` | body | string | no | Size. One of: SMALL, MEDIUM, LARGE. Example: `SMALL`. |
| `parcel.pieces` | body | integer | no | Pieces. Example: `1`. |
| `parcel.width_cm` | body | number | no | Width cm. Example: `10`. |
| `parcel.height_cm` | body | number | no | Height cm. Example: `10`. |
| `parcel.length_cm` | body | number | no | Length cm. Example: `20`. |
| `parcel.weight_kg` | body | number | yes | Weight kg. Example: `1`. |
| `parcel.description` | body | string | yes | Description. Example: `Test parcel`. |
| `carrier` | body | string | yes | demo answers without calling a carrier. One of: aramex, bosta, demo. Example: `demo`. |
| `currency` | body | string | no | Currency. Example: `SAR`. |
| `cod_amount` | body | number | no | Cod amount. Example: `100`. |
| `credentials.api_key` | body | string | no | Api key. Example: `YOUR_BOSTA_API_KEY`. |
| `credentials.password` | body | string | no | Password. Example: `YOUR_PASSWORD`. |
| `credentials.username` | body | string | no | Username. Example: `user@example.com`. |
| `credentials.account_pin` | body | string | no | Account pin. Example: `123456`. |
| `credentials.account_entity` | body | string | no | Account entity. Example: `AMM`. |
| `credentials.account_number` | body | string | no | Account number. Example: `20016`. |
| `credentials.account_country_code` | body | string | no | Account country code. Example: `JO`. |
| `destination.city` | body | string | yes | City. Example: `Amman`. |
| `destination.floor` | body | string | no | Floor. Example: `2`. |
| `destination.line1` | body | string | yes | Line1. Example: `12 Test Street`. |
| `destination.line2` | body | string | no | Line2. Example: `Building 4`. |
| `destination.city_id` | body | string | no | City id. Example: `C1`. |
| `destination.country` | body | string | yes | Country. Example: `JO`. |
| `destination.zone_id` | body | string | no | Zone id. Example: `Z1`. |
| `destination.building` | body | string | no | Building. Example: `4`. |
| `destination.district` | body | string | no | District. Example: `Downtown`. |
| `destination.postcode` | body | string | no | Postcode. Example: `11118`. |
| `destination.apartment` | body | string | no | Apartment. Example: `5`. |
| `destination.district_id` | body | string | no | District id. Example: `D1`. |
| `environment` | body | string | no | test uses the Aramex development endpoint. One of: production, test. Default: `production`. Example: `test`. |

#### Quickstart

Get a delivery price with the demo carrier.

```bash
curl -X POST "https://api.eu.apyhub.com/odelyo/mena-shipping/rates" \
  -H "apy-token: $APY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"carrier":"demo","origin":{"line1":"12 Test Street","city":"Amman","country":"JO"},"destination":{"line1":"12 Test Street","city":"Cairo","country":"EG"},"parcel":{"weight_kg":1,"description":"Test parcel"},"currency":"SAR"}'
```

#### What you'll get back

Returns a JSON object with `data` and `meta`. `data` has the `amount` and the `currency` of the delivery price.

```json
{
  "data": {
    "carrier": "demo",
    "amount": 35,
    "currency": "SAR",
    "raw": {
      "demo": true
    }
  },
  "meta": {
    "request_id": "req_e8e5cb7cc28387f2",
    "version": "v1"
  }
}
```

## About

## What it does

The MENA Shipping API creates shipments, quotes delivery prices, prints labels, tracks parcels and cancels shipments for Aramex and Bosta in one request format. Send a `carrier` (`aramex`, `bosta` or `demo`) plus the shipment details, and get back a JSON object with a `data` field and a `meta` field.

Pick the call you need. Create a shipment from a shipper, a recipient and a parcel (weight 0.01 to 1000 kg). Get a delivery price from an origin, a destination and a parcel, with an optional `currency` and `cod_amount`. Get a label with a tracking number, in English (`en`) or Arabic (`ar`). Track up to 20 tracking numbers in one request. Cancel a shipment with its tracking number. List the supported carriers with no input.

Send your own carrier login in `credentials` with each request. Aramex needs a username, a password and account details. Bosta needs an `api_key`. The login is used for that request only. Set `environment` to `production` (the default) or `test`. Aramex test mode is not available, so use the `demo` carrier to try the API without calling a carrier.

Teams use this MENA shipping API to quote delivery costs at checkout, print labels after an order is paid, and follow parcel status in admin tools. Country fields take 2-letter codes such as `JO` and `EG`. AI agents can call it through ApyHub MCP.

## Usage

Base URL: `https://api.eu.apyhub.com` (default region — see
`GET https://apyhub.com/api/public/regions` for the rest).

Authenticate with an ApyHub API key in the `apy-token` header.
Full docs and a live playground: https://apyhub.com/odelyo/service/mena-shipping
