Delivery Again

API Delivery Again

 

Orders that have been repeatedly delivered are unsuccessful, will go into waiting for delivery (waiting time for delivery depends on each customer's contract, the default is 24h).

During this period, customer can request delivery of the order again, order status after delivery request will become "storage".

Caution : The API Delivery Again need to infusion token and shop_id in header

post/get
https://online-gateway.ghn.vn/shiip/public-api/v2/switch-status/storing
https://dev-online-gateway.ghn.vn/shiip/public-api/v2/switch-status/storing
curl --location --request POST 'https://dev-online-gateway.ghn.vn/shiip/public-api/v2/switch-status/storing' \
--header 'Content-Type: application/json' \
--header 'Token: 637170d5-942b-11ea-9821-0281a26fb5d4' \
--header 'ShopId: 885' \
--data-raw '{"order_codes":["5ENLKKHD"]}'


Parameter

Field Type Description
token String

Must be sent with all client requests. This Token helps server to validate request source. Provided by GHN.

order_code String

GHN Order Code. This is tracking code.

shop_id Int

Manage information for shop/seller

{
    "code": 200,
    "message": "Success",
    "data":[
    {
    "order_code":"5ENLKKHD"
    "result":true
    "message":"OK"
    }
    ]
}
{
    "code": 400,
    "message": "ShopID is invalid: Lỗi gọi API: corev2_tenant_shop - Shop ID is invalid: %!s",
    "data": null
    "code_message": "SHOP_NOT_FOUND"
}