Orders

Get Orders Shipment States

GET /commerce/orders/shipments/states

Headers

Name
Type
Description

Client-Key*

String

Your client key

{
    "data": [
        {
            "province_id": "1",
            "province": "Bali"
        },
        {
            "province_id": "2",
            "province": "Bangka Belitung"
        },
        {
            "province_id": "3",
            "province": "Banten"
        },
        {
            "province_id": "4",
            "province": "Bengkulu"
        },
        {
            "province_id": "5",
            "province": "DI Yogyakarta"
        },
        {
            "province_id": "6",
            "province": "DKI Jakarta"
        },
        {
            "province_id": "7",
            "province": "Gorontalo"
        },
        {
            "province_id": "8",
            "province": "Jambi"
        },
        {
            "province_id": "9",
            "province": "Jawa Barat"
        },
        {
            "province_id": "10",
            "province": "Jawa Tengah"
        },
        {
            "province_id": "11",
            "province": "Jawa Timur"
        },
        {
            "province_id": "12",
            "province": "Kalimantan Barat"
        },
        {
            "province_id": "13",
            "province": "Kalimantan Selatan"
        },
        {
            "province_id": "14",
            "province": "Kalimantan Tengah"
        },
        {
            "province_id": "15",
            "province": "Kalimantan Timur"
        },
        {
            "province_id": "16",
            "province": "Kalimantan Utara"
        },
        {
            "province_id": "17",
            "province": "Kepulauan Riau"
        },
        {
            "province_id": "18",
            "province": "Lampung"
        },
        {
            "province_id": "19",
            "province": "Maluku"
        },
        {
            "province_id": "20",
            "province": "Maluku Utara"
        },
        {
            "province_id": "21",
            "province": "Nanggroe Aceh Darussalam (NAD)"
        },
        {
            "province_id": "22",
            "province": "Nusa Tenggara Barat (NTB)"
        },
        {
            "province_id": "23",
            "province": "Nusa Tenggara Timur (NTT)"
        },
        {
            "province_id": "24",
            "province": "Papua"
        },
        {
            "province_id": "25",
            "province": "Papua Barat"
        },
        {
            "province_id": "26",
            "province": "Riau"
        },
        {
            "province_id": "27",
            "province": "Sulawesi Barat"
        },
        {
            "province_id": "28",
            "province": "Sulawesi Selatan"
        },
        {
            "province_id": "29",
            "province": "Sulawesi Tengah"
        },
        {
            "province_id": "30",
            "province": "Sulawesi Tenggara"
        },
        {
            "province_id": "31",
            "province": "Sulawesi Utara"
        },
        {
            "province_id": "32",
            "province": "Sumatera Barat"
        },
        {
            "province_id": "33",
            "province": "Sumatera Selatan"
        },
        {
            "province_id": "34",
            "province": "Sumatera Utara"
        }
    ]
}

Get Orders Shipment State Detail

GET /commerce/orders/shipments/states/{id}

Path Parameters

Name
Type
Description

id*

Integer

Id of the state

Headers

Name
Type
Description

Client-Key*

String

Your client key

Get Orders Shipment Districts

GET /commerce/orders/shipments/districts

Query Parameters

Name
Type
Description

state*

Integer

Id of the state

Headers

Name
Type
Description

Client-Key*

String

Your client key

Get Orders Shipment District Detail

GET /commerce/orders/shipments/districts/{id}

Path Parameters

Name
Type
Description

id*

Integer

Id of the disctrict

Headers

Name
Type
Description

Client-Key*

String

Your client key

Get Orders Shipment Subdistricts

GET /commerce/orders/shipments/subdistricts

Query Parameters

Name
Type
Description

district

Integer

The ID of the district

Headers

Name
Type
Description

Client-Key*

String

Your client key

Get Orders Shipment Subdistrict Detail

GET /commerce/orders/shipments/subdistricts/{id}

Path Parameters

Name
Type
Description

id*

Integer

Id of the subdisctrict

Headers

Name
Type
Description

Client-Key*

String

Your client key

Check Orders Shipment Costs

POST /commerce/orders/shipments/costs

Headers

Name
Type
Description

Client-Key*

String

Your client key

Request Body

Name
Type
Description

products*

Objects

shipping_destination_id*

Integer

Id of subdistrict

Example Request Body Orders Shipment Costs

Orders

POST /commerce/orders

Headers

Name
Type
Description

Client-Key*

String

Your client key

Request Body

Name
Type
Description

name

String

email

String

phone

String

address

String

country

String

state

String

district

String

subdistrict

String

postcode

String

items

Array

Example Request Body Order

Get Order Detail

GET /commerce/orders/{uuid}

Path Parameters

Name
Type
Description

uuid*

Integer

id of the order

Query Parameters

Name
Type
Description

include

String

options: shippings, items can be both

Headers

Name
Type
Description

Client-Key*

String

Your client key

Last updated