Need help with your APIs? I offer API discovery, governance & evangelism services. Explore services →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

Komerce Cost API

Shipping cost calculation

Komerce Cost API is one of 7 APIs that Komerce publishes on the APIs.io network, described by a machine-readable OpenAPI specification.

Tagged areas include Cost. The published artifact set on APIs.io includes an OpenAPI specification, API documentation, an API reference, authentication docs, and pricing.

This API exposes 4 operations across 4 paths, and defines 6 schemas. It is described by OpenAPI 3.0.3, at version v1.

Requests are made against 2 base URLs: https://api.collaborator.komerce.id/user, https://api-sandbox.collaborator.komerce.id/user.

4 operations 4 paths 6 schemas 1 GET3 POST

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.0.3
API Version
v1
Base URL
https://rajaongkir.komerce.id/api/v1
Authentication
API Key
Resource Areas
1

Authentication & Security 1

Komerce Cost API declares 1 security scheme for authenticating requests. An API key is passed in the header as x-api-key (ApiKeyAuth). By default, every request must be authenticated.

  • ApiKeyAuth — Payment API key from the Collaborator dashboard — the same key used for Komerce Shipping (RajaOngkir). Sandbox keys use the sandbox prefix, production keys the…

Paths & Operations 4

Across 4 paths, the API surfaces 4 operations — 1 GET, 3 POST. Each is listed below with its method, path, parameters, and response codes.

Cost 4

Shipping cost calculation

POST
/calculate/domestic-cost
Calculate domestic shipping cost
calculateDomesticCost body → 200400401
POST
/calculate/international-cost
Calculate international shipping cost
calculateInternationalCost body → 200400401
POST
/calculate/district/domestic-cost
Calculate domestic cost from district/subdistrict ids
calculateDistrictDomesticCost body → 200400401
GET
/tariff/api/v1/calculate
Calculate delivery price
calculateDeliveryPrice 7 params → 200401

Schemas 6

The contract defines 6 schemas that model the data the API accepts and returns. The most detailed are CourierCost (6 properties), Meta (3 properties), CalculateResponse (2 properties), InternationalCostList (2 properties). Each schema is shown below with its type and property counts.

DomesticCostList
object
2 properties
CourierCost
object
6 properties
InternationalCostList
object
2 properties
CalculateResponse
object
2 properties
Meta
object
3 properties
InternationalCourierCost

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

komerce-cost-api-openapi.yml Raw ↑

Other APIs Komerce publishes across the network.

Komerce Destinations API
Komerce Orders API
Komerce Payments API
Komerce Pickup API
Komerce QRIS API
Komerce Tracking API