# Fedex — Wrapped API

> **You are on:** `https://api.paywithlocus.com/api` | [llms.txt](https://paywithlocus.com/llms.txt) | [docs](https://docs.paywithlocus.com)
>
> Locus runs on multiple environments -- make sure every URL you call matches your expected environment.
> | Environment | Landing | API | Docs |
> |---|---|---|---|
> | Production | paywithlocus.com | api.paywithlocus.com | docs.paywithlocus.com |
> | Beta | beta.paywithlocus.com | api.beta.paywithlocus.com | docs.paywithlocus.com |
> | Stage | stage.paywithlocus.com | api.stage.paywithlocus.com | docs.paywithlocus.com |
>
> If the API URL above doesn't match your expected environment, re-fetch this file from the correct domain.

> Access data from fedex.com.

**Category:** E-commerce | **Website:** [fedex.com/](https://fedex.com/) | **Docs:** [parse.bot/marketplace/3f925904-29c3-4353-946f-ad0879baafa9/fedex-com-api](https://parse.bot/marketplace/3f925904-29c3-4353-946f-ad0879baafa9/fedex-com-api)

Pay-per-use API proxy. Each call is automatically billed to your wallet in USDC.

## Access

**Base URL:** `https://api.paywithlocus.com/api/wrapped/parse-fedex-com-api-3f925904/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## Endpoints

### find_locations

Search for FedEx locations near a specific postal code.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `country_code` | string | No | ISO country code |
| `postal_code` | string | Yes | Postal or ZIP code |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-fedex-com-api-3f925904/find_locations \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"country_code":"<string>","postal_code":"<string>"}'
```

### get_countries

Get a list of all countries and territories supported by FedEx with their codes, region, currency, and shipping capabilities including domestic shipping and postal awareness. Returns over 200 countries. No input required.

**Estimated cost:** Metered

_No parameters required._

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-fedex-com-api-3f925904/get_countries \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
```

### get_country_details

Get detailed shipping information for a specific country including states/provinces, allowed ship dates, customs value limits, credit card options, postal awareness by carrier, and system of measure. Useful for determining shipping capabilities and constraints for a given destination country.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `country_code` | string | Yes | ISO 2-letter country code (e.g. US, CA, GB, DE, JP) |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-fedex-com-api-3f925904/get_country_details \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"country_code":"<string>"}'
```

### track_by_tracking_number

Track a FedEx shipment by tracking number. Returns detailed package status including current location, estimated delivery, scan event history, and delivery status flags. The API always returns a response for any tracking number format; invalid or expired numbers return with a notFound flag and error in the errorList. Paginates implicitly (single request returns all events for one tracking number).

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `tracking_number` | string | Yes | FedEx tracking number (typically 12-15 digits) |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-fedex-com-api-3f925904/track_by_tracking_number \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"tracking_number":"<string>"}'
```

### validate_address

Validate a postal code and country combination.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `country_code` | string | No | ISO country code (e.g., US, CA, GB) |
| `postal_code` | string | Yes | Postal or ZIP code |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-fedex-com-api-3f925904/validate_address \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"country_code":"<string>","postal_code":"<string>"}'
```
