ghtk_list_pickup_addresses
List pickup addresses
List the pickup addresses saved in the shop, with their ids. Use an id as pick_address_id in ghtk_create_order. Token permission: not named in the GHTK docs; the token needs access to this call. Open API: GET /services/shipment/list_pick_add.
Takes no parameters.
ghtk_find_address
Look up a level-4 address
Check a delivery address against GHTK's address data (province, district, ward or street). Use it before ghtk_create_order to get the exact spelling GHTK expects. Token permission: not named in the GHTK docs; the token needs access to this call. Open API: GET /services/address/getAddressLevel4.
Parametersaddressdistrictrequiredprovincerequiredward_streetrequired
ghtk_calculate_shipping_fee
Calculate a shipping fee
Get the shipping fee and insurance fee for a route and weight, before an order is created. Token permission: Calculate order fees. Open API: GET /services/shipment/fee.
Parameterswardvalueaddressdistrictrequiredprovincerequiredpick_wardtransportpick_addressweight_gramsrequiredpick_districtrequiredpick_provincerequired
ghtk_search_products
Search warehouse products
Search the shop's product list by name. Returns product codes you can pass as product_code in ghtk_create_order. Token permission: not named in the GHTK docs; the token needs access to this call. Open API: GET /services/kho-hang/thong-tin-san-pham.
Parameterstermrequired
ghtk_list_solutions
List GHTK solutions
List the GHTK solutions (service add-ons) the shop can attach to an order, with their solution_id values. Token permission: not named in the GHTK docs; the token needs access to this call. Open API: GET /open/api/v1/shop/solution/list.
Takes no parameters.
ghtk_get_order_status
Get order status
Get the status, fees, pickup and delivery dates, and COD amount of one order. Pass the GHTK label (for example S1.A1.17373471) or your own order code. Token permission: Get order status. Open API: GET /services/shipment/v2/{TRACKING_ORDER}.
Parametersorder_idrequired
ghtk_create_order
Create a shipping order
Create a real GHTK shipping order: GHTK schedules a pickup and charges the shipping fee. Re-sending the same order_id is refused by GHTK, so it does not create a second order. Give street or hamlet (use "Other" for hamlet when neither applies). Token permission: Create order. Open API: POST /services/shipment/order (JSON).
Parameterstelrequirednamerequirednotewardrequiredemailvaluerequiredhamletstreetaddressrequireddistrictrequiredorder_idrequiredpick_telrequired+11 more
ghtk_cancel_order
Cancel a shipping order
Cancel an order that GHTK has not picked up yet. GHTK refuses a cancel after pickup. Pass the GHTK label, or set id_type to partner_order_id to pass your own order code. Token permission: not named in the GHTK docs; the token needs access to order cancellation. Open API: POST /services/shipment/cancel/{TRACKING_ORDER}.
Parametersid_typeorder_idrequired