Description
API for calculation the fare based Origin, Destination Code and Weight
URL
| SANDBOX | https://apiv2.jne.co.id:10202/tracing/api/pricedev |
| LIVE | {{URL_LIVE}} |
SANDBOX
| username | TESTAPI |
| api_key | 25c898a9faea1a100859ecd9ef674548 |
LIVE
| username | {{USER_LIVE}} |
| api_key | {{API_KEY}} |
METHOD??:??POST
REQUEST
- HEADER
| Content-Type | application/x-www-form-urlencoded |
| Accept | application/json |
| User-Agent | (Fiiled??with framework request, Ex: Java-Request) |
- BODY
| username | CUST_USERNAME | PROVIDED BY EMAIL |
| api_key | CUST_APIKEY | PROVIDED BY EMAIL |
| from | VARCHAR (10 Byte) | Origin Code |
| thru | VARCHAR (10 Byte) | Destination Code |
| weight | Number | Weight in kg |
RESULT FROM API
- Succes Respon
{
"price": [
{
"origin_name": "JAKARTA",
"destination_name": "BUNGURSARI , TASIKMALAYA",
"service_display": "JTR",
"service_code": "JTR18",
"goods_type": "Paket",
"currency": "IDR",
"price": "40000",
"etd_from": "3",
"etd_thru": "4",
"times": "D"
},
{
"origin_name": "JAKARTA",
"destination_name": "BUNGURSARI , TASIKMALAYA",
"service_display": "JTR250",
"service_code": "JTR250",
"goods_type": "Paket",
"currency": "IDR",
"price": "850000",
"etd_from": "3",
"etd_thru": "4",
"times": "D"
},
{
"origin_name": "JAKARTA",
"destination_name": "BUNGURSARI , TASIKMALAYA",
"service_display": "JTR<150",
"service_code": "JTR<150",
"goods_type": "Paket",
"currency": "IDR",
"price": "500000",
"etd_from": "3",
"etd_thru": "4",
"times": "D"
},
{
"origin_name": "JAKARTA",
"destination_name": "BUNGURSARI , TASIKMALAYA",
"service_display": "JTR>250",
"service_code": "JTR>250",
"goods_type": "Paket",
"currency": "IDR",
"price": "1200000",
"etd_from": "3",
"etd_thru": "4",
"times": "D"
},
{
"origin_name": "JAKARTA",
"destination_name": "BUNGURSARI , TASIKMALAYA",
"service_display": "OKE",
"service_code": "OKE19",
"goods_type": "Document/Paket",
"currency": "IDR",
"price": "13000",
"etd_from": "3",
"etd_thru": "6",
"times": "D"
},
{
"origin_name": "JAKARTA",
"destination_name": "BUNGURSARI , TASIKMALAYA",
"service_display": "REG",
"service_code": "REG19",
"goods_type": "Document/Paket",
"currency": "IDR",
"price": "15000",
"etd_from": "2",
"etd_thru": "3",
"times": "D"
},
{
"origin_name": "JAKARTA",
"destination_name": "BUNGURSARI , TASIKMALAYA",
"service_display": "YES",
"service_code": "YES19",
"goods_type": "Document/Paket",
"currency": "IDR",
"price": "24000",
"etd_from": "1",
"etd_thru": "1",
"times": "D"
}
]
}
- Error Response :??Input area error
{
"error": "Price Not Found.",
"status": false
}
- Error response :??Incorrect Username / API key
{
"error": "Username Or API KEY Not Found.",
"status": false
}