# Indiapost — 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.

> Track India Post shipments, money orders, and complaints in real-time using a consignment number, booking reference, or complaint ID. Retrieve delivery status, tracking events, and progress updates for postal items.

**Category:** Government & Public Data | **Website:** [www.indiapost.gov.in/](https://www.indiapost.gov.in/) | **Docs:** [parse.bot/marketplace/0360549a-eb61-40b0-b719-ba47f1aaddab/indiapost-gov-in-api](https://parse.bot/marketplace/0360549a-eb61-40b0-b719-ba47f1aaddab/indiapost-gov-in-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-indiapost-gov-in-api-0360549a/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## Endpoints

### track_by_reference

Track consignments by a booking reference number. Returns a list of article numbers associated with the reference. An empty articles array indicates no articles are linked to the given reference.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `reference_number` | string | Yes | Booking reference number (alphanumeric including / and -, up to 23 characters) |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-indiapost-gov-in-api-0360549a/track_by_reference \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"reference_number":"<string>"}'
```

### track_complaint

Track a complaint by its complaint ID. Returns complaint tracking data from India Post's system.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `complaint_id` | string | Yes | India Post complaint ID |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-indiapost-gov-in-api-0360549a/track_complaint \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"complaint_id":"<string>"}'
```

### track_consignment

Track a consignment/article by its tracking number. Returns booking details (origin, destination, weight, tariff), delivery status, and a timeline of tracking events from India Post's system. Accepts standard India Post article numbers in XX123456789XX format. The response always contains the structural envelope; fields within booking_details may be null for numbers not yet in the system.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `consignment_number` | string | Yes | India Post consignment/article number in format XX123456789XX (2 uppercase letters + 9 digits + 2 uppercase letters, e.g. EE123456789IN) |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-indiapost-gov-in-api-0360549a/track_consignment \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"consignment_number":"<string>"}'
```

### track_money_order

Track a money order by its number. Returns booking details (PNR, booking location, dates) and a timeline of tracking events. The response always contains the structural envelope; fields may be null for numbers not yet in the system.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `money_order_number` | string | Yes | Money order number, must be exactly 10 or 18 digits |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-indiapost-gov-in-api-0360549a/track_money_order \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"money_order_number":"<string>"}'
```
