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.

Base URL https://system.ergeasia.com/api/external/v1

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.

Integration Flow
1. Get API Key → 2. Get Countries & Couriers → 3. Calculate Rate → 4. Create Shipment → 5. Track Package
Key Features
  • 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_id to /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.

HTTP Header
Authorization: Bearer YOUR_API_KEY
Content-Type: application/json
ℹ️
Getting your API Key
Log 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.
Example — cURL
cURL
curl -X GET "https://system.ergeasia.com/api/external/v1/countries" \
  -H "Authorization: Bearer ea_live_xxxxxxxxxxxxxxxx" \
  -H "Content-Type: application/json"
Environments

The base URL is the same for both environments. The mode is determined by your API key prefix, not by a different URL.

EnvironmentBase URLActivated byDescription
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.

Response Format
Success Response
{
  "success": true,
  "data": { ... }
}
Error Response
{
  "success": false,
  "error_code": "INSUFFICIENT_BALANCE",
  "message": "Wallet balance is not enough"
}
HTTP Status Codes
CodeMeaning
200Success
400Bad Request — Invalid parameters or missing required fields
401Unauthorized — Invalid or missing API key
403Forbidden — Insufficient permissions
404Not Found — Resource does not exist
422Unprocessable — Validation error (e.g., rate not found)
429Too Many Requests — Rate limit exceeded
500Internal Server Error
Error Codes
Error CodeDescription
INVALID_AUTHAPI key is invalid or expired
MISSING_FIELDA required field is missing
INVALID_COUNTRYDestination country is not supported
INVALID_COURIERCourier is not active or doesn't serve this route
RATE_NOT_FOUNDNo rate available for this route/weight/category
INSUFFICIENT_BALANCEWallet balance is too low for this shipment
WEIGHT_EXCEEDEDPackage weight exceeds maximum (100kg)
CATEGORY_MISMATCHItems across collies have mixed categories
AWB_NOT_FOUNDAWB number not found in the system
ELECTRONIC_SINGLE_COLLYElectronic items can only be shipped as 1 colly (package) per shipment — split into separate shipments
ARC_REQUIREDTaiwan shipment without a valid ARC: not uploaded yet, expired, incomplete photos, or marked invalid by staff. Upload via POST /v1/id-cards
INVALID_ID_CARDARC upload rejected (missing number/name/expiry date or unreadable photos)
INSUFFICIENT_SANDBOX_BALANCESandbox balance is too low — reset it to Rp 10.000.000 from Profile → API Saya
QUERY_TOO_SHORTArea search keyword must be at least 3 characters
NOT_FOUNDEndpoint 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

⚠️
Rate limit headers are included in every response: X-RateLimit-Remaining and X-RateLimit-Reset.

Endpoints

GET /v1/countries Available Destination Countries

Returns the list of all supported destination countries with available shipping routes.

Response
JSON Response
{
  "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
  ]
}
GET /v1/couriers?country_code={code} Available Couriers

Returns the list of available couriers for a specific destination country. If no country is specified, returns all active couriers.

Query Parameters
ParamTypeRequiredDescription
country_code string Optional ISO 2-letter country code to filter couriers that serve this route
Response
JSON Response
{
  "success": true,
  "data": [
    {
      "code": "ERGE",
      "name": "Erge Asia",
      "description": "International Express Shipping"
    }
  ],
  "count": 1
}
GET /v1/areas/search?q={keyword} Search Indonesian Areas

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.

Query Parameters
ParamTypeRequiredDescription
qstringRequiredKeyword, min. 3 characters (sub-district, district or city name)
Response
JSON Response
{
  "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
}
POST /v1/rates/calculate Calculate Shipping Rate

Calculate shipping cost before creating a shipment. Returns the final rate after tier discounts are applied.

Request Body
FieldTypeRequiredDescription
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
Request Example
JSON Request
{
  "country_code": "TW",
  "courier_code": "ERGE",
  "weight": 2,
  "delivery_type": "home",
  "items": [
    {
      "name": "Snack Indomie",
      "quantity": 10,
      "category": "general_cargo"
    }
  ]
}
Response
JSON Response
{
  "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"
    }
  }
}
ℹ️
Tier Discounts are automatically applied based on your account's membership tier. Higher tiers enjoy bigger discounts. Tiers upgrade automatically as your total shipping spending increases.
POST /v1/id-cards Upload Receiver ARC (Taiwan)

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.

Request Body (JSON or multipart/form-data)
FieldTypeRequiredDescription
id_numberstringRequiredARC number (same value you send as receiver_id)
consignee_namestringRequiredName as printed on the ARC
expired_datestringRequiredExpiry date, format YYYY-MM-DD
photo_frontstring / fileRequiredFront photo — base64 / data URI (JSON) or file (multipart). JPG, PNG or WebP; compressed automatically
photo_backstring / fileRequiredBack photo, same format as photo_front
Response
JSON Response
{
  "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."
}
GET /v1/id-cards/{id_number} ARC Status

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.

POST /v1/shipments Create Shipment

Create a new shipment. The cost is automatically calculated and deducted from your wallet balance. Returns the AWB (Air Waybill) number for tracking.

⚠️
Important: This endpoint deducts your wallet balance immediately. Always call /v1/rates/calculate first to confirm pricing. Ensure sufficient wallet balance before calling.
🇹🇼
Taiwan — ARC required. Every shipment to Taiwan must have the receiver's ARC uploaded first via 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 items — 1 colly only. If any item has category electronic, the shipment may contain only one colly. More than one returns 422 ELECTRONIC_SINGLE_COLLY; create separate shipments instead.
🧪
Sandbox vs Live. With a sandbox key the shipment is simulated: AWB starts with 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.
Request Body
FieldTypeRequiredDescription
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)
Item Object
FieldTypeRequiredDescription
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
Colly Object (for Multi-Package)
FieldTypeRequiredDescription
weight number Required Weight of this colly in kg
items array Required Items in this colly (same Item Object format)
🚫
Category Mixing Not Allowed: All collies in a single shipment must contain items of the same category. If you have mixed categories, create separate shipments.
Request Example
JSON Request
{
  "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 Response
JSON Response — 200 OK
{
  "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
  }
}
GET /v1/shipments/{id} Get Shipment Detail

Retrieve full details of a specific shipment by ID or AWB number.

Path Parameters
ParamTypeDescription
id string Shipment ID or AWB number
Response
JSON Response
{
  "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"
  }
}
GET /v1/shipments List Shipments

List all shipments for your account with pagination and optional filters.

Query Parameters
ParamTypeDefaultDescription
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)
Response
JSON Response
{
  "success": true,
  "data": [ ... ],
  "pagination": {
    "page": 1,
    "per_page": 20,
    "total": 47,
    "total_pages": 3
  }
}
GET /v1/tracking/{awb_number} Track Shipment

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.

🔓
Public Endpoint: This endpoint can be called without authentication. You can embed tracking directly into your customer-facing pages.
Path Parameters
ParamTypeDescription
awb_number string AWB number from shipment creation
Response
JSON Response
{
  "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)
    ]
  }
}
GET /v1/wallet/balance Wallet Balance

Returns the current wallet balance of the account linked to your API key. Check this before creating live shipments.

Response
JSON Response
{
  "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).

CodeLabelAlias InputsDescription
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
ℹ️
Category Priority: When items of different categories exist in a colly, the highest priority category is applied: 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.

Webhook Payload
POST to your webhook URL
{
  "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"
}
Verifying Webhooks

Each webhook includes a signature field (HMAC-SHA256 of the payload body using your API secret). Always verify the signature before processing.

Supported Events
EventDescription
tracking.updatedNew tracking status added to a shipment
shipment.completedShipment has been delivered
shipment.cancelledShipment was cancelled

Changelog

v1.1
November 2026
  • New: POST /v1/id-cards & GET /v1/id-cards/{id_number} — receiver ARC upload, required for all Taiwan shipments
  • New: GET /v1/areas/search — find subdistrict_id for domestic pickup quotes
  • New: GET /v1/wallet/balance
  • Electronic items limited to 1 colly per shipment (ELECTRONIC_SINGLE_COLLY)
  • Sandbox: simulated TEST AWB with resettable sandbox balance; live shipments require sender data
v1.0
February 2026 — Initial Release
  • 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
ERGE ASIA — Shipping API Documentation v1.1
© 2026 Erge Asia. All rights reserved. | cs@ergeasia.com