For the complete documentation index, see llms.txt. This page is also available as Markdown.

💵Tarif

All about tarif service

Destination

Returns the list of regional goals throughout Indonesia

Query params

  • keyword: City name or zip code

const myHeaders = new Headers();
myHeaders.append("x-api-key", "xyz");

const requestOptions = {
  method: 'GET',
  headers: myHeaders,
  redirect: 'follow'
};

fetch("https://api.collaborator.komerce.my.id/tariff/api/v1/destination/search?keyword=cimaung", requestOptions)
  .then(response => response.json())
  .then(result => console.log(result))
  .catch(error => console.log('error', error));
curl --location '/tariff/api/v1/destination/search?keyword=jakarta%20pusat' \
--header 'Accept: application/json' \
--header 'x-api-key: xyz'
{
  "meta": {
    "message": "Sucessfully Get Destination Data",
    "code": 200,
    "status": "success"
  },
  "data": [
    {
      "id": 5056,
      "label": "CIMAUNG, CIMAUNG, BANDUNG, 40374",
      "subdistrict_name": "CIMAUNG",
      "district_name": "CIMAUNG",
      "city_name": "BANDUNG",
      "zip_code": "40374"
    },
    {
      "id": 18772,
      "label": "CIMAUNG, CIKEUSAL, SERANG, 42175",
      "subdistrict_name": "CIMAUNG",
      "district_name": "CIKEUSAL",
      "city_name": "SERANG",
      "zip_code": "42175"
    },
    {
      "id": 5054,
      "label": "CAMPAKAMULYA, CIMAUNG, BANDUNG, 40374",
      "subdistrict_name": "CAMPAKAMULYA",
      "district_name": "CIMAUNG",
      "city_name": "BANDUNG",
      "zip_code": "40374"
    },
    {
      "id": 5055,
      "label": "CIKALONG, CIMAUNG, BANDUNG, 40374",
      "subdistrict_name": "CIKALONG",
      "district_name": "CIMAUNG",
      "city_name": "BANDUNG",
      "zip_code": "40374"
    },
    {
      "id": 5057,
      "label": "CIPINANG, CIMAUNG, BANDUNG, 40374",
      "subdistrict_name": "CIPINANG",
      "district_name": "CIMAUNG",
      "city_name": "BANDUNG",
      "zip_code": "40374"
    },
    {
      "id": 5058,
      "label": "JAGABAYA, CIMAUNG, BANDUNG, 40374",
      "subdistrict_name": "JAGABAYA",
      "district_name": "CIMAUNG",
      "city_name": "BANDUNG",
      "zip_code": "40374"
    },
    {
      "id": 5059,
      "label": "MALASARI, CIMAUNG, BANDUNG, 40374",
      "subdistrict_name": "MALASARI",
      "district_name": "CIMAUNG",
      "city_name": "BANDUNG",
      "zip_code": "40374"
    },
    {
      "id": 5060,
      "label": "MEKARSARI, CIMAUNG, BANDUNG, 40375",
      "subdistrict_name": "MEKARSARI",
      "district_name": "CIMAUNG",
      "city_name": "BANDUNG",
      "zip_code": "40375"
    },
    {
      "id": 5061,
      "label": "PASIRHUNI, CIMAUNG, BANDUNG, 40374",
      "subdistrict_name": "PASIRHUNI",
      "district_name": "CIMAUNG",
      "city_name": "BANDUNG",
      "zip_code": "40374"
    },
    {
      "id": 5062,
      "label": "SUKAMAJU, CIMAUNG, BANDUNG, 40374",
      "subdistrict_name": "SUKAMAJU",
      "district_name": "CIMAUNG",
      "city_name": "BANDUNG",
      "zip_code": "40374"
    },
    {
      "id": 5063,
      "label": "WARJABAKTI, CIMAUNG, BANDUNG, 40374",
      "subdistrict_name": "WARJABAKTI",
      "district_name": "CIMAUNG",
      "city_name": "BANDUNG",
      "zip_code": "40374"
    }
  ]
}

Calculate

Returns shipping tarif cost

Query params

  • shipper_destination_id: From destionation id

  • receiver_destination_id: From destionation id

  • weight: The weight of an item

  • item_value: Price of an item

  • cod: yes/no

GET /client/api/v1/calculate

Last updated