OEXPRESS API DOCUMENTATION
    OEXPRESS API DOCUMENTATION
    • Introduction
    • Webhoook - Tracking
    • Webhook - Ticket Message
    • Tickets
      • Get Ticket & Details
        GET
      • Update Ticket Messages
        POST
      • Create/Update Ticket
        POST
      • Update Status Ticket
        PUT
      • Get Group Status Ticket
        GET
    • Wallets
      • Get Balance
        GET
    • Auth
      • Me
        GET
    • List Couriers
      GET
    • Get Subdistrict
      GET
    • Get Shipping Cost
      GET
    • Get Shipping Cost All
      GET
    • Create Order
      POST
    • Cancel Order
      POST
    • Retry Order
      POST
    • [Sandbox Only] Update Status
      POST
    • Track Order
      GET
    • Get Shipping Label
      GET
    • Logistic RTS
      GET
    • List Shipment
      GET
    • Detail Shipment
      GET

      Get Shipping Cost

      GET
      /open/1.0/shipment/shipping-cost
      Last modified:2025-03-17 08:37:51
      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
      KEYVALUE
      origin_id{{subdistrict_id}}
      destination_id{{subdistrict_id}}
      total_weight[gram]
      force_oexpresstrue/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

      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 -g --request GET '/open/1.0/shipment/shipping-cost?total_weight=1&volume=["length":10,"width":10,"height":10]&force_oexpress=false&origin_id=2111&destination_id=2111' \
      --header 'X-API-KEY: {{ApiKey}}'

      Responses

      🟢200200 - JNE
      application/json
      Body
      data
      object 
      required
      code
      string 
      required
      name
      string 
      required
      costs
      array [object {3}] 
      required
      message
      string 
      required
      error_code
      integer 
      required
      Example
      {
        "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
      }
      🟢200200 - SAP
      🟢200200 - NINJA
      🟢200200 - Idexpress
      🟢200200 - JNT
      🟢200200 - OEX
      Previous
      Get Subdistrict
      Next
      Get Shipping Cost All
      Built with