# GDEX (Malaysia) Tracking API & MCP

URL: https://docs.lastscanned.com/carriers/gdex

Query live **GDEX** (`gdex`) package status and scan history in a single synchronous `GET` request or MCP tool call. GDEX numbers are not auto-detected, so pass `?carrier=gdex`. `lastscanned` returns a normalized `TrackingResult` JSON payload, with no GDEX account or API key.

## Overview & Quick Facts

| Property | Value |
|---|---|
| **Carrier slug (`?carrier=`)** | `gdex` |
| **Brand & service aliases** | GDEX, GD Express, GDEX Malaysia, `gdexpress.com` |
| **Category** | Malaysian courier, domestic and international |
| **Single-package REST endpoint** | `GET https://api.lastscanned.com/v1/track/{trackingNumber}?carrier=gdex` |
| **Batch REST endpoint** | `GET https://api.lastscanned.com/v1/track?numbers=8123456789,...&carrier=gdex` |
| **MCP server (`https://mcp.lastscanned.com`)** | `track_package`, `track_packages`, `list_carriers` (`claude mcp add --transport http lastscanned https://mcp.lastscanned.com`) |
| **Authentication & pricing** | `Authorization: Bearer lsk_live_...` · **1 free keyless lookup/day per IP** · **Free tier** (5 unique numbers/day, $0) · **Pro** ($4.99/mo for 1,000 unique numbers, unlimited re-polls, $0.015/extra) · **HTTP 402 Stripe MPP** ($0.50 for 25-number `lsk_pack_` key or $0.02/number in USDC on Tempo) |

## Tracking Number Formats & Auto-Detection

| Pass | Rule | Check digit | Examples |
|---|---|---|---|
| **Pass 1 (`matches`)** | *None* | n/a | n/a |
| **Pass 2 (`mayMatch`)** | *None* | n/a | n/a |
| **Explicit (`?carrier=gdex`)** | GDEX consignment number | n/a | `8123456789` |

GDEX consignment numbers are plain digits, a shape other carriers share, so `?carrier=gdex` is required.

## Synchronous `GET` Request & Normalized JSON Response

### `curl`

```bash
curl -s "https://api.lastscanned.com/v1/track/8123456789?carrier=gdex" \
  -H "Authorization: Bearer $LASTSCANNED_API_KEY"
```

### JavaScript / TypeScript (`fetch`)

```ts
const res = await fetch("https://api.lastscanned.com/v1/track/8123456789?carrier=gdex", {
  headers: { Authorization: `Bearer ${process.env.LASTSCANNED_API_KEY}` },
});
const pkg = await res.json();
console.log(pkg.status, pkg.events[0]);
```

### MCP `track_package` tool call

```json
{
  "tool": "track_package",
  "arguments": {
    "tracking_number": "8123456789",
    "carrier": "gdex"
  }
}
```

### Normalized `TrackingResult` JSON response

```json
{
  "carrier": "gdex",
  "trackingNumber": "8123456789",
  "status": "delivered",
  "statusDescription": "Delivered",
  "service": null,
  "deliveredAt": null,
  "deliveredAtLocal": null,
  "signedBy": null,
  "destination": null,
  "events": [
    {
      "timestamp": "2026-10-26T06:05:00Z",
      "localTime": "2026-10-26T14:05:00",
      "status": "delivered",
      "description": "Delivered",
      "location": "Penang",
      "code": null
    },
    {
      "timestamp": "2026-10-25T12:10:00Z",
      "localTime": "2026-10-25T20:10:00",
      "status": "in_transit",
      "description": "In Transit",
      "location": "Shah Alam Hub",
      "code": null
    }
  ]
}
```

## Notes

- GDEX has no JSON endpoint for its tracking page, so `lastscanned` reads the page's scan table. Scan times are Malaysia time, returned with a UTC `timestamp` and the scan's `localTime`.
- Look up by consignment number; GDEX's customer reference lookup is not supported.

## Related Resources

- **Carrier hub**: [All supported carriers](/carriers)
- **Regex & check digits**: [Tracking number formats & auto-detection](/formats)
- **AI support workflows**: [WISMO AI agents & synchronous tracking](/wismo)
