ERGE ASIA Shipping API
Integrate international shipping from Indonesia to 50+ countries into your application. Create shipments, calculate rates, and track packages in real-time.
Overview
ERGE ASIA Shipping API allows third-party applications to integrate with our international shipping network. Ship packages from Indonesia to 50+ destination countries with automated rate calculation, real-time tracking, and secure payment via wallet system.
- Ship to 50+ countries across Asia, Middle East, Europe, Americas, and Oceania
- Multiple courier options per destination country
- Multi-colly (multi-package) support for complex shipments
- Real-time tracking with 18-stage status updates
- Automatic rate calculation based on weight, destination, and item category
- Domestic pickup quote — combine home-to-warehouse pickup with international shipping in one total (send
origin_subdistrict_idto/rates/calculate) - Wallet-based payment — top up once, ship multiple times
- Webhook notifications for tracking status changes
Authentication
All API requests (except Tracking) require your API Key as a Bearer token in the header. Get your key yourself from your dashboard: Profile → API Saya.
Authorization: Bearer YOUR_API_KEY
Content-Type: application/jsonLog in to system.ergeasia.com, open Profile → API Saya. You get a
ea_test_ key for sandbox and an
ea_live_ key for production. Each key is tied to your wallet.
The mode (sandbox vs live) is set by the key prefix, not a different URL.
curl -X GET "https://system.ergeasia.com/api/external/v1/countries" \ -H "Authorization: Bearer ea_live_xxxxxxxxxxxxxxxx" \ -H "Content-Type: application/json"
The base URL is the same for both environments. The mode is determined by your API key prefix, not by a different URL.
| Environment | Base URL | Activated by | Description |
|---|---|---|---|
| Sandbox | https://system.ergeasia.com/api/external/v1 |
ea_test_... key |
Testing — dummy balance, no real charges, no vendor calls |
| Production | https://system.ergeasia.com/api/external/v1 |
ea_live_... key |
Live — real wallet deductions |
Error Handling
All responses use a consistent structure. Errors include an error code and a human-readable message.
{
"success": true,
"data": { ... }
}{
"success": false,
"error_code": "INSUFFICIENT_BALANCE",
"message": "Wallet balance is not enough"
}| Code | Meaning |
|---|---|
| 200 | Success |
| 400 | Bad Request — Invalid parameters or missing required fields |
| 401 | Unauthorized — Invalid or missing API key |
| 403 | Forbidden — Insufficient permissions |
| 404 | Not Found — Resource does not exist |
| 422 | Unprocessable — Validation error (e.g., rate not found) |
| 429 | Too Many Requests — Rate limit exceeded |
| 500 | Internal Server Error |
| Error Code | Description |
|---|---|
INVALID_AUTH | API key is invalid or expired |
MISSING_FIELD | A required field is missing |
INVALID_COUNTRY | Destination country is not supported |
INVALID_COURIER | Courier is not active or doesn't serve this route |
RATE_NOT_FOUND | No rate available for this route/weight/category |
INSUFFICIENT_BALANCE | Wallet balance is too low for this shipment |
WEIGHT_EXCEEDED | Package weight exceeds maximum (100kg) |
CATEGORY_MISMATCH | Items across collies have mixed categories |
AWB_NOT_FOUND | AWB number not found in the system |
ELECTRONIC_SINGLE_COLLY | Electronic items can only be shipped as 1 colly (package) per shipment — split into separate shipments |
ARC_REQUIRED | Taiwan shipment without a valid ARC: not uploaded yet, expired, incomplete photos, or marked invalid by staff. Upload via POST /v1/id-cards |
INVALID_ID_CARD | ARC upload rejected (missing number/name/expiry date or unreadable photos) |
INSUFFICIENT_SANDBOX_BALANCE | Sandbox balance is too low — reset it to Rp 10.000.000 from Profile → API Saya |
QUERY_TOO_SHORT | Area search keyword must be at least 3 characters |
NOT_FOUND | Endpoint or resource not found (e.g. ARC number not uploaded yet) |
Rate Limits
Standard Plan
100 requests/minute, 5,000 requests/day
Premium Plan
500 requests/minute, 50,000 requests/day
X-RateLimit-Remaining and X-RateLimit-Reset.Endpoints
Returns the list of all supported destination countries with available shipping routes.
{
"success": true,
"data": [
{ "code": "TW", "name": "Taiwan" },
{ "code": "SG", "name": "Singapore" },
{ "code": "JP", "name": "Japan" },
{ "code": "MY", "name": "Malaysia" },
{ "code": "SA", "name": "Saudi Arabia" },
// ... more countries
]
}Returns the list of available couriers for a specific destination country. If no country is specified, returns all active couriers.
| Param | Type | Required | Description |
|---|---|---|---|
| country_code | string | Optional | ISO 2-letter country code to filter couriers that serve this route |
{
"success": true,
"data": [
{
"code": "ERGE",
"name": "Erge Asia",
"description": "International Express Shipping"
}
],
"count": 1
}Search Indonesian sub-districts (kelurahan/kecamatan) by name. Use the returned subdistrict_id as origin_subdistrict_id in /v1/rates/calculate to get a domestic pickup quote. Maximum 20 results.
| Param | Type | Required | Description |
|---|---|---|---|
| q | string | Required | Keyword, min. 3 characters (sub-district, district or city name) |
{
"success": true,
"data": [
{
"subdistrict_id": 31741,
"subdistrict": "Cakung Barat",
"district": "Cakung",
"city": "Jakarta Timur",
"province": "DKI Jakarta",
"zip_code": "13910",
"label": "Cakung Barat, Cakung, Jakarta Timur, DKI Jakarta, 13910"
}
],
"count": 1
}Calculate shipping cost before creating a shipment. Returns the final rate after tier discounts are applied.
| Field | Type | Required | Description |
|---|---|---|---|
| country_code | string | Required | Destination country ISO code (e.g., "TW") |
| courier_code | string | Required | Courier code from /v1/couriers |
| weight | number | Required | Total package weight in kg (max: 100) |
| items | array | Required | List of items (determines category pricing) |
| items[].name | string | Required | Item description |
| items[].quantity | integer | Required | Quantity |
| items[].category | string | Required | One of: general_cargo, sensitif_items, electronic |
| delivery_type | string | Optional | home (default) or store. Store adds Rp 50,000/colly fee, max 5kg/colly |
| collies | array | Optional | Multi-colly breakdown. If omitted, single colly with total weight is used |
{
"country_code": "TW",
"courier_code": "ERGE",
"weight": 2,
"delivery_type": "home",
"items": [
{
"name": "Snack Indomie",
"quantity": 10,
"category": "general_cargo"
}
]
}{
"success": true,
"data": {
"country": "Taiwan",
"country_code": "TW",
"courier": { "code": "ERGE", "name": "Erge Asia" },
"category": { "code": "general_cargo", "name": "Barang Umum" },
"weight": 2,
"rounded_weight": 2,
"delivery_type": "home",
"pricing": {
"shipping_cost": 140700,
"store_fee": 0,
"total_cost": 140700
},
"tier": {
"name": "Bronze",
"discount_percent": 3
},
"wallet": {
"sufficient": true,
"balance": 5000000,
"required": 140700
},
"formatted": {
"shipping_cost": "Rp 140.700",
"total_cost": "Rp 140.700",
"wallet_balance": "Rp 5.000.000"
}
}
}Upload the receiver's ARC (Alien Resident Certificate) once; it is saved to your account and reused for every Taiwan shipment with the same number. Uploading the same number again replaces the old data. New uploads have status pending until verified by our staff.
| Field | Type | Required | Description |
|---|---|---|---|
| id_number | string | Required | ARC number (same value you send as receiver_id) |
| consignee_name | string | Required | Name as printed on the ARC |
| expired_date | string | Required | Expiry date, format YYYY-MM-DD |
| photo_front | string / file | Required | Front photo — base64 / data URI (JSON) or file (multipart). JPG, PNG or WebP; compressed automatically |
| photo_back | string / file | Required | Back photo, same format as photo_front |
{
"success": true,
"data": {
"id_number": "A123456789",
"consignee_name": "SITI AMINAH",
"country": "TW",
"expired_date": "2028-03-31",
"expired": false,
"status": "pending", // pending | verified | invalid
"status_note": null,
"usable": true,
"updated_at": "2026-11-19 10:15:00"
},
"message": "ARC tersimpan, menunggu verifikasi."
}Check an uploaded ARC. Same response format as above. usable: true means it can be used for a shipment; if status is invalid, read status_note and upload new photos. Returns 404 NOT_FOUND if the number has not been uploaded.
Create a new shipment. The cost is automatically calculated and deducted from your wallet balance. Returns the AWB (Air Waybill) number for tracking.
/v1/rates/calculate first to confirm pricing. Ensure sufficient wallet balance before calling.POST /v1/id-cards (front & back photo + expiry date). Send the same number in receiver_id. Missing, expired or invalid ARC returns 422 ARC_REQUIRED. Applies to sandbox and live.electronic, the shipment may contain only one colly. More than one returns 422 ELECTRONIC_SINGLE_COLLY; create separate shipments instead.TEST, cost is deducted from your sandbox balance (Rp 10.000.000, resettable in Profile → API Saya), and nothing is sent to couriers. With a live key, sender_name, sender_phone and sender_location are required and the real wallet is charged. Maximum total weight is 100 kg.| Field | Type | Required | Description |
|---|---|---|---|
| sender_name | string | Required | Sender's full name |
| sender_phone | string | Required | Sender's phone number |
| sender_location | string | Required | Sender's city/area in Indonesia (e.g., "DKI Jakarta") |
| receiver_country | string | Required | Destination country name or ISO code |
| receiver_name | string | Required | Receiver's full name |
| receiver_phone | string | Required | Receiver's phone number (include country code) |
| receiver_postal | string | Required | Receiver's postal code |
| receiver_address | string | Required | Full delivery address |
| receiver_id | string | Conditional | Receiver's ID/Passport number. Required for Taiwan — must be an ARC already uploaded via POST /v1/id-cards |
| receiver_email | string | Optional | Receiver's email address |
| package_weight | number | Required | Total weight in kg (max: 100) |
| courier_service | string | Required | Courier code from /v1/couriers |
| delivery_type | string | Optional | home (default) or store |
| items | array | Required | At least 1 item. See Item Object below |
| collies | array | Optional | Multi-colly details. See Colly Object below |
| voucher_code | string | Optional | Discount voucher code (if available) |
| Field | Type | Required | Description |
|---|---|---|---|
| name | string | Required | Item description (e.g., "Indomie Goreng") |
| quantity | integer | Required | Quantity |
| unit | string | Optional | Unit of measure: pcs, box, pack, kg, etc. |
| price | number | Required | Unit price in IDR (for customs declaration) |
| category | string | Required | See Item Categories |
| Field | Type | Required | Description |
|---|---|---|---|
| weight | number | Required | Weight of this colly in kg |
| items | array | Required | Items in this colly (same Item Object format) |
{
"sender_name": "Rifki Fauzi",
"sender_phone": "0811980108",
"sender_location": "DKI Jakarta",
"receiver_country": "TW",
"receiver_name": "Chen Wei",
"receiver_phone": "886912345678",
"receiver_id": "A123456789",
"receiver_postal": "10617",
"receiver_address": "No. 7, Section 5, Xinyi Rd, Xinyi District, Taipei City",
"package_weight": 3,
"courier_service": "ERGE",
"delivery_type": "home",
"items": [
{
"name": "Indomie Goreng",
"quantity": 20,
"unit": "pcs",
"price": 3500,
"category": "general_cargo"
},
{
"name": "Sambal ABC",
"quantity": 5,
"unit": "pcs",
"price": 15000,
"category": "general_cargo"
}
]
}{
"success": true,
"message": "Shipment created successfully",
"data": {
"shipment_id": 12345,
"awb_number": "88826028HXDYD",
"status": "submitted",
"courier": "Erge Asia",
"delivery_type": "home",
"category": "Barang Umum",
"colly_count": 1,
"colly_awbs": ["88826028HXDYD"],
"pricing": {
"shipping_cost": 211000,
"discount": 0,
"store_fee": 0,
"total_cost": 211000,
"total_formatted": "Rp 211.000"
},
"wallet_balance": 4789000
}
}Retrieve full details of a specific shipment by ID or AWB number.
| Param | Type | Description |
|---|---|---|
| id | string | Shipment ID or AWB number |
{
"success": true,
"data": {
"id": 12345,
"awb_number": "88826028HXDYD",
"status": "submitted",
"sender": {
"name": "Rifki Fauzi",
"phone": "0811980108",
"location": "DKI Jakarta"
},
"receiver": {
"name": "Chen Wei",
"phone": "886912345678",
"country": "Taiwan",
"country_code": "TW",
"postal_code": "10617",
"address": "No. 7, Section 5, Xinyi Rd..."
},
"package": {
"weight": 3,
"colly_count": 1,
"delivery_type": "home"
},
"courier": "Erge Asia",
"pricing": {
"shipping_cost": 211000,
"discount": 0,
"total_cost": 211000
},
"items": [
{
"name": "Indomie Goreng",
"quantity": 20,
"unit": "pcs",
"price": 3500,
"category": "general_cargo"
}
],
"payment_status": "paid",
"created_at": "2026-02-23T10:39:37+07:00"
}
}List all shipments for your account with pagination and optional filters.
| Param | Type | Default | Description |
|---|---|---|---|
| page | integer | 1 | Page number |
| per_page | integer | 20 | Items per page (max: 100) |
| status | string | — | Filter by status: submitted, in_process, verified, completed, cancelled |
| country_code | string | — | Filter by destination country |
| from_date | string | — | Filter from date (YYYY-MM-DD) |
| to_date | string | — | Filter to date (YYYY-MM-DD) |
{
"success": true,
"data": [ ... ],
"pagination": {
"page": 1,
"per_page": 20,
"total": 47,
"total_pages": 3
}
}Get real-time tracking history for a shipment. This endpoint is public — no authentication required. Tracking data is fetched from ERGE ASIA's internal system and synced with the carrier network automatically.
| Param | Type | Description |
|---|---|---|
| awb_number | string | AWB number from shipment creation |
{
"success": true,
"data": {
"awb_number": "88826028HXDYD",
"destination": "Taiwan",
"receiver": "Chen Wei",
"weight": "3 kg",
"current_status": "IN_TRANSIT",
"current_status_name": "Dalam Perjalanan ke Negara Tujuan",
"history": [
{
"status_code": "DELIVERED",
"status_name": "Kiriman Telah Diterima",
"status_name_en": "Delivered",
"location": "Taipei City, Taiwan",
"description": "Signed by: Chen Wei",
"timestamp": "2026-02-28T14:30:00+08:00"
},
{
"status_code": "OUT_FOR_DELIVERY",
"status_name": "Sedang Dikirim ke Alamat Penerima",
"status_name_en": "Out for Delivery",
"location": "Taipei City, Taiwan",
"description": null,
"timestamp": "2026-02-28T08:15:00+08:00"
},
{
"status_code": "ARRIVED_DESTINATION",
"status_name": "Kiriman Telah Sampai di Negara Tujuan",
"status_name_en": "Arrived at Destination Country",
"location": "Taiwan",
"description": null,
"timestamp": "2026-02-26T22:00:00+08:00"
},
// ... more history entries (newest first)
]
}
}Returns the current wallet balance of the account linked to your API key. Check this before creating live shipments.
{
"success": true,
"data": {
"balance": 755000,
"formatted": "Rp 755.000"
}
}Tracking Statuses
Complete list of tracking status codes your shipment may go through. Statuses appear in chronological order in the tracking history.
| Status Code | Indonesian | English |
|---|---|---|
| AWB_CREATED | Airwaybill Berhasil Dibuat | AWB Created |
| PAYMENT_COMPLETED | Pembayaran Berhasil | Payment Confirmed |
| PICKED_UP | Kiriman Telah Dijemput | Picked Up |
| WAREHOUSE_RECEIVED | Diterima di Gudang Jakarta | Received at Jakarta Warehouse |
| STAFF_VERIFIED | Kiriman Berhasil Diverifikasi | Shipment Verified |
| PROCESSING | Sedang Diproses di Gudang | Processing at Warehouse |
| DEPARTED_ORIGIN | Berangkat dari Indonesia | Departed from Indonesia |
| IN_TRANSIT | Dalam Perjalanan ke Negara Tujuan | In Transit to Destination |
| ARRIVED_DESTINATION | Telah Sampai di Negara Tujuan | Arrived at Destination Country |
| CUSTOMS_CLEARANCE | Proses Bea Cukai | Customs Clearance |
| CUSTOMS_RELEASED | Lolos Bea Cukai | Customs Released |
| LOCAL_SORTING | Sorting di Fasilitas Lokal | Local Sorting Facility |
| OUT_FOR_DELIVERY | Sedang Dikirim ke Alamat Penerima | Out for Delivery |
| DELIVERY_ATTEMPT | Percobaan Pengiriman (Penerima Tidak Ada) | Delivery Attempted |
| DELIVERED | Kiriman Telah Diterima | Delivered |
| RETURNED | Kiriman Dikembalikan | Returned to Sender |
| ON_HOLD | Kiriman Ditahan | On Hold |
| CANCELLED | Kiriman Dibatalkan | Cancelled |
Item Categories
Each item must be assigned a category. The category determines the shipping rate applied (higher categories may have higher rates).
| Code | Label | Alias Inputs | Description |
|---|---|---|---|
general_cargo |
Barang Umum | makanan, fashion, lainnya |
General items: food, clothing, accessories, books, souvenirs, household items |
sensitif_items |
Sensitif Items | obat, boci |
Sensitive items: medicine, boci, ikan asin, kripik terbuat dari daging |
electronic |
Elektronik | elektronik |
Electronic items: phones, laptops, batteries, electronic accessories |
electronic > sensitif_items > general_cargo. You may also use the alias inputs (e.g., "makanan") and the system will map them automatically.Webhooks
Receive real-time notifications when tracking status changes occur. Configure your webhook URL in the partner dashboard.
{
"event": "tracking.updated",
"timestamp": "2026-02-28T14:30:00+07:00",
"data": {
"awb_number": "88826028HXDYD",
"shipment_id": 12345,
"status_code": "DELIVERED",
"status_name": "Kiriman Telah Diterima",
"location": "Taipei City, Taiwan",
"description": "Signed by: Chen Wei"
},
"signature": "sha256=xxxxxxxxxxxxxxx"
}
Each webhook includes a signature field (HMAC-SHA256 of the payload body using your API secret).
Always verify the signature before processing.
| Event | Description |
|---|---|
tracking.updated | New tracking status added to a shipment |
shipment.completed | Shipment has been delivered |
shipment.cancelled | Shipment was cancelled |
Changelog
- New:
POST /v1/id-cards&GET /v1/id-cards/{id_number}— receiver ARC upload, required for all Taiwan shipments - New:
GET /v1/areas/search— findsubdistrict_idfor domestic pickup quotes - New:
GET /v1/wallet/balance - Electronic items limited to 1 colly per shipment (
ELECTRONIC_SINGLE_COLLY) - Sandbox: simulated
TESTAWB with resettable sandbox balance; live shipments require sender data
- Create Shipment API with multi-colly support
- Real-time tracking with 18-stage status system
- Rate calculation with tier-based pricing
- Country and courier listing endpoints
- Webhook support for tracking updates
- Sandbox environment for testing
© 2026 Erge Asia. All rights reserved. | cs@ergeasia.com