Get Shipping Cost
GET
/open/1.0/shipment/shipping-costLast modified: 7 months ago
Members can use the Get Shipping Cost method to retrieve shipping cost data on the system. There are parameters origin id, destination id, total weight and volume.
EXAMPLE
KEY | VALUE |
---|---|
origin_id | {{subdistrict_id}} |
destination_id | {{subdistrict_id}} |
total_weight | [gram] |
force_oexpress | true/false *set to true if yo u want to force service to oexpress |
Request
Query Params
total_weight
string
required
Example:
1
volume
string
optional
Example:
["length":10,"width":10,"height":10]
force_oexpress
string
required
set true if you only want to use Oexpress service only
Example:
false
origin_id
string
required
Example:
2111
destination_id
string
required
Example:
2111
Header Params
X-API-KEY
string
optional
Example:
{{ApiKey}}
Request samples
Responses
200 - JNE(200)
200 - SAP(200)
200 - NINJA(200)
200 - Idexpress(200)
200 - JNT(200)
200 - OEX(200)
HTTP Code: 200
Content Type : JSONapplication/json
Data Schema
data
object
required
code
string
required
name
string
required
costs
array [object {3}]
required
message
string
required
error_code
integer
required
Example200 - JNE
{
"data": {
"code": "oexpress",
"name": "oexpress",
"costs": [
{
"service": "GOCAP",
"description": "",
"cost": [
{
"value": 35000,
"etd": "5",
"note": ""
}
]
},
{
"service": "SERBU",
"description": "",
"cost": [
{
"value": 12000,
"etd": "3",
"note": ""
}
]
},
{
"service": "HORE",
"description": "",
"cost": [
{
"value": 10000,
"etd": "4",
"note": ""
}
]
}
]
},
"message": "",
"error_code": 0
}
Last modified: 7 months ago