boscod OpenAPI
  1. Orders
boscod OpenAPI
  • Introduction
  • Shipping label
  • Errors
  • Changelog
  • API
    • Coverage Area
      • Provinces
      • Cities
      • Districts
      • Search Area
    • Rates
      • List Courier
      • Shipping Fee
      • Shipping Fee (SSE)
    • Orders
      • Create Order
        POST
      • Cancel Order
        POST
      • Detail Order
        GET
      • Tracking
        GET
      • Estimation Rates
        GET
  • Webhook
  1. Orders

Estimation Rates

Developing
GET
/v1/order/estimation_rates
To get the shipping fee from origin and destination inputted

Request

Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
Query Params
courier_code
integer 
required
courier_code.
service_code
string 
required
cod
number 
optional
COD value (If NonCOD this value can be null or empty).
item_value
number 
required
Item value.
item_weight
number 
required
Item weight in kg.
item_width
integer 
required
Item width in cm.
item_height
integer 
required
Item height in cm.
item_length
integer 
required
Item length in cm.
insurance
integer 
required
Insurance status (0: onInsurance, 1: Insurance).
sender_addr_id
integer 
required
addr_id sender for district.
receiver_addr_id
integer 
required
addr_id receiver for district.

Request samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://demo.boscod.com:4004/v1/order/estimation_rates?courier_code&service_code&cod&item_value&item_weight&item_width&item_height&item_length&insurance&sender_addr_id&receiver_addr_id'

Responses

🟢200Success
application/json
Body
max_price
integer 
required
Published shipping rate without discount.
price
integer 
required
Shipping price after discount.
insurance
number 
required
Insurance status (0: NonInsurance, 1: Insurance).
cod_fee
number 
required
If COD, a COD fee will be applied; if Non-COD, the value will be 0.
cod_fee_ppn
number 
required
PPN for COD fee.
total
number 
required
Grand total of shipping cost and COD fee, including VAT on COD fee.
etd_from
integer 
required
Minimum estimated delivery time.
etd_thru
integer 
required
Maximum estimated delivery time.
calculated_weight
integer 
required
Volume weight calculation based on item length, height, and width in kilograms.
Example
{
    "max_price": 50000,
    "price": 47500,
    "insurance": 0,
    "cod_fee": 300,
    "cod_fee_ppn": 0,
    "total": 47933,
    "etd_from": 3,
    "etd_thru": 5,
    "calculated_weight": 0
}
Previous
Tracking
Built with