International Pricing V2

This endpoint is used for getting the rates for International Shipping Version 2

Get Pricing International
This endpoint will display all logistics available by Shipper on the chosen International route.

Authorizations : X-API-Key_Header
Request Body Schema : application/json

POST Pricing Domestic International

POST /v3/pricing/domestic-international

Request Data

ParameterTypeDescription
destination.country_id (required)integerCountry id of the origin (Ex. Indonesia 228)
origin.area_id (required)integerArea id of the destination obtained from Get Location
height (required)integerHeight in cm
item_price (required)integerValue of the item in IDR
length (required)integerLength in cm
weight (required)integerWeight in kg
width (required)integerWidth in cm

Sample Request and Response for Order From Jabodetabek

{
    "destination": {
        "country_id": 180
    },
    "origin": {
        "area_id": 4728
    },
    "height": 10,
    "item_price": 100000,
    "length": 10,
    "weight": 1,
    "width": 10
}
{
    "metadata": {
        "path": "/v3/pricing/domestic-international",
        "http_status_code": 200,
        "http_status": "OK",
        "timestamp": 1659942580
    },
    "data": {
        "origin": {
            "area_id": 4728,
            "area_name": "Kalibata",
            "suburb_id": 485,
            "suburb_name": "Pancoran",
            "city_id": 41,
            "city_name": "Jakarta Selatan",
            "province_id": 6,
            "province_name": "DKI Jakarta",
            "country_id": 228,
            "country_name": "INDONESIA",
            "lat": -6.2641406,
            "lng": 106.8370122
        },
        "destination": {
            "area_id": 0,
            "area_name": "",
            "suburb_id": 0,
            "suburb_name": "",
            "city_id": 0,
            "city_name": "",
            "province_id": 0,
            "province_name": "",
            "country_id": 180,
            "country_name": "SINGAPORE",
            "lat": 0,
            "lng": 0
        },
        "pricings": {
            "international": [
                {
                    "logistic": {
                        "id": 43,
                        "name": "Janio",
                        "logo_url": "https://janio.asia/wp-content/themes/janio/images/logo-header.png",
                        "code": "Janio",
                        "company_name": "Janio Asia "
                    },
                    "rate": {
                        "id": 580,
                        "name": "Janio",
                        "type": "International",
                        "description": "Janio",
                        "full_description": "set max kg",
                        "is_hubless": false
                    },
                    "weight": 1,
                    "volume": 1000,
                    "volume_weight": 0.2,
                    "final_weight": 1,
                    "min_day": 3,
                    "max_day": 7,
                    "unit_price": 223627,
                    "total_price": 223627,
                    "discount": 0,
                    "discount_value": 0,
                    "discounted_price": 223627,
                    "insurance_fee": 2500,
                    "must_use_insurance": false,
                    "liability_value": 0,
                    "final_price": 0,
                    "currency": "",
                    "insurance_applied": false,
                    "base_price": 223627,
                    "surcharge_fee": 0
                },
                {
                    "logistic": {
                        "id": 45,
                        "name": "Aramex",
                        "logo_url": "https://logovectorseek.com/wp-content/uploads/2019/08/aramex-logo-vector.png",
                        "code": "Aramex",
                        "company_name": "Aramex"
                    },
                    "rate": {
                        "id": 578,
                        "name": "Priority Parcel Express",
                        "type": "International",
                        "description": "Priority Parcel Express",
                        "full_description": "set max kg",
                        "is_hubless": false
                    },
                    "weight": 1,
                    "volume": 1000,
                    "volume_weight": 0.2,
                    "final_weight": 1,
                    "min_day": 3,
                    "max_day": 7,
                    "unit_price": 301656,
                    "total_price": 301656,
                    "discount": 0,
                    "discount_value": 0,
                    "discounted_price": 301656,
                    "insurance_fee": 1500,
                    "must_use_insurance": false,
                    "liability_value": 0,
                    "final_price": 0,
                    "currency": "",
                    "insurance_applied": false,
                    "base_price": 301656,
                    "surcharge_fee": 0
                },
                {
                    "logistic": {
                        "id": 24,
                        "name": "DPEX",
                        "logo_url": "https://global-cdn.shipper.id/images/png/logistic/dpex.240x90.png",
                        "code": "DPX",
                        "company_name": "DPEX Internasional"
                    },
                    "rate": {
                        "id": 327,
                        "name": "EXPRESS PARCEL",
                        "type": "International",
                        "description": "EXPRESS PARCEL",
                        "full_description": "set max kg",
                        "is_hubless": false
                    },
                    "weight": 1,
                    "volume": 1000,
                    "volume_weight": 0.2,
                    "final_weight": 1,
                    "min_day": 4,
                    "max_day": 10,
                    "unit_price": 321112,
                    "total_price": 321112,
                    "discount": 0,
                    "discount_value": 0,
                    "discounted_price": 321112,
                    "insurance_fee": 200,
                    "must_use_insurance": false,
                    "liability_value": 0,
                    "final_price": 0,
                    "currency": "",
                    "insurance_applied": false,
                    "base_price": 321112,
                    "surcharge_fee": 0
                }
            ]
        },
        "pricing_error": []
    },
    "pagination": {
        "current_page": 1,
        "current_elements": 3,
        "total_pages": 1,
        "total_elements": 3
    }
}

Sample Request and Response for Order Outside Jabodetabek

{
    "destination": {
        "country_id": 180
    },
    "origin": {
        "area_id": 11484
    },
    "height": 10,
    "item_price": 100000,
    "length": 10,
    "weight": 1,
    "width": 10
}
{
    "metadata": {
        "path": "/v3/pricing/domestic-international",
        "http_status_code": 200,
        "http_status": "OK",
        "timestamp": 1659943969
    },
    "data": {
        "origin": {
            "area_id": 11484,
            "area_name": "Wanawali",
            "suburb_id": 1160,
            "suburb_name": "Cibatu",
            "city_id": 74,
            "city_name": "Purwakarta",
            "province_id": 9,
            "province_name": "Jawa Barat",
            "country_id": 228,
            "country_name": "INDONESIA",
            "lat": -6.5660236,
            "lng": 107.544598
        },
        "destination": {
            "area_id": 0,
            "area_name": "",
            "suburb_id": 0,
            "suburb_name": "",
            "city_id": 0,
            "city_name": "",
            "province_id": 0,
            "province_name": "",
            "country_id": 180,
            "country_name": "SINGAPORE",
            "lat": 0,
            "lng": 0
        },
        "pricings": {
            "domestic": [
                {
                    "logistic": {
                        "id": 9,
                        "name": "J&T",
                        "logo_url": "https://global-cdn.shipper.id/images/png/logistic/jnt.240x90.png",
                        "code": "JNT",
                        "company_name": "PT Global Jet Express"
                    },
                    "rate": {
                        "id": 57,
                        "name": "Express",
                        "type": "Regular",
                        "description": "Express Rate",
                        "full_description": "",
                        "is_hubless": true
                    },
                    "weight": 1,
                    "volume": 1000,
                    "volume_weight": 0.16666666666666666,
                    "final_weight": 1,
                    "min_day": 1,
                    "max_day": 3,
                    "unit_price": 15000,
                    "total_price": 15000,
                    "discount": 0,
                    "discount_value": 0,
                    "discounted_price": 15000,
                    "insurance_fee": 250,
                    "must_use_insurance": false,
                    "liability_value": 100000,
                    "final_price": 15000,
                    "currency": "IDR",
                    "insurance_applied": false,
                    "base_price": 0,
                    "surcharge_fee": 0
                }...
            ],
            "international": [
                {
                    "logistic": {
                        "id": 43,
                        "name": "Janio",
                        "logo_url": "https://janio.asia/wp-content/themes/janio/images/logo-header.png",
                        "code": "Janio",
                        "company_name": "Janio Asia "
                    },
                    "rate": {
                        "id": 580,
                        "name": "Janio",
                        "type": "International",
                        "description": "Janio",
                        "full_description": "set max kg",
                        "is_hubless": false
                    },
                    "weight": 1,
                    "volume": 1000,
                    "volume_weight": 0.2,
                    "final_weight": 1,
                    "min_day": 3,
                    "max_day": 7,
                    "unit_price": 223627,
                    "total_price": 223627,
                    "discount": 0,
                    "discount_value": 0,
                    "discounted_price": 223627,
                    "insurance_fee": 2500,
                    "must_use_insurance": false,
                    "liability_value": 0,
                    "final_price": 0,
                    "currency": "",
                    "insurance_applied": false,
                    "base_price": 223627,
                    "surcharge_fee": 0
                }...
            ]
        },
        "pricing_error": [
            {
                "code": 3001,
                "message": "Pricing not available",
                "logistic_id": 5,
                "logistic_name": "SiCepat",
                "rate_id": 58,
                "rate_name": "REG"
            }...
        ]
    },
    "pagination": {
        "current_page": 1,
        "current_elements": 7,
        "total_pages": 1,
        "total_elements": 7
    }
}

Response List

ParameterDescription
metadataMetadata information
metadata.pathAPI endpoint path
metadata.http_status_codeHTTP status code
metadata.http_statusHTTP status
metadata.timestampTimestamp
paginationPaging information
pagination.current_pageCurrent page
pagination.current_elementsTotal item per page
pagination.total_pagesTotal pages
pagination.total_elementsTotal datas
dataAll important information about the 3PL pricing
data.originAll important information about the origin that have been sent
data.origin.area_idArea ID of the origin
data.origin.area_nameArea name of the origin
data.origin.suburb_idSuburb ID of the origin
data.origin.suburb_nameSuburb name of the origin
data.origin.city_idCity ID of the origin
data.origin.city_nameCity name of the origin
data.origin.province_idProvince ID of the origin
data.origin.province_nameProvince name of the origin
data.origin.country_idCountry ID of the origin
data.origin.country_nameCountry name of the origin
data.destination.latLatitude of the destination
data.destination.lngLongitude of the destination
data.pricingsAll important information about the available 3PLs based on the request
data.pricings.domesticAll important information about the available domestic 3PLs based on the request. This parameter only appear for order from outside Jabodetabek. When this param appear, you need to use pricings.domestic[].rate.id for order creation process because it required.
data.pricings.domestic[].logisticAll important information about logistic
data.pricings.domestic[].logistic.idLogistic ID
data.pricings.domestic[].nameLogistic name
data.pricings.domestic[].logo_urlLogistic URL logo
data.pricings.domestic[].codeLogistic code
data.pricings.domestic[].company_nameLogistic company name
data.pricings.domestic[].rateAll important information about the available rate service of the logistic
data.pricings.domestic[].rate.idRate service ID. Required to use when Create Order
data.pricings.domestic[].rate.nameRate service name
data.pricings.domestic[].rate.typeRate service type
data.pricings.domestic[].rate.descriptionRate service description
data.pricings.domestic[].rate.full_descriptionRate service full description
data.pricings.domestic[].weightWeight of the package (kg)
data.pricings.domestic[].volumeVolume of the package based on the length, width, and height
data.pricings.domestic[].volume_weightVolumetric weight of the package
data.pricings.domestic[].final_weightFinal weight that have been chosen between "weight" and "volume_weight". Will choose which one is heavier.
data.pricings.domestic[].min_dayMinimum day of delivery estimation
data.pricings.domestic[].max_dayMaximum day of delivery estimation
data.pricings.domestic[].unit_priceShipment fee for 1 kg
data.pricings.domestic[].total_priceTotal shipment fee
data.pricings.domestic[].discountDiscount percentage
data.pricings.domestic[].discount_valueDiscount value (IDR)
data.pricings.domestic[].discounted_priceShipment fee after discount
data.pricings.domestic[].insurance_feeInsurance fee for the package
data.pricings.domestic[].must_use_insuranceInformation about whether required to use insurance or not.

If ""must_use_insurance"" true, then final_price will be total_price + insurance_fee
If ""must_use_insurance"" false, then final_price will be total_price only.

If ""must_use_insurance"" true, then use_insurance on Create Order must be true.
data.pricings.domestic[].lialibility_valuePackage value
data.pricings.domestic[].final_priceTotal shipment fee with discount and insurance fee
data.pricings.domestic[].currencyCurrency that Shipper used
data.pricings.domestic[].insurance_appliedInformation about whether the insurance fee already applied in the price

❗️

Important Return Parameters

  • rate.id - Required to be use when Create Order

  • must_use_insurance - Determine whether it is required to use insurance or not

  • insurance_fee - The cost of insurance

  • final_price - Price of the Shipment
    If "must_use_insurance" true, final_price will be total_price + insurance_fee
    If "must_use_insurance" false, final_price will be total_price only.

  • rate.is_hubless - If is_hubless is true, the order will be pick up by the 3PL courier directly.