API Update COD of Order
Update value for COD
Caution : The API Update COD of Order need to infusion token in header
post/gethttps://online-gateway.ghn.vn/shiip/public-api/v2/shipping-order/updateCOD
https://dev-online-gateway.ghn.vn/shiip/public-api/v2/shipping-order/updateCOD
curl --location --request POST 'https://dev-online-gateway.ghn.vn/shiip/public-api/v2/shipping-order/updateCOD' \
--header 'Content-Type: application/json' \
--header 'Token: 5503c660-971c-11e9-9b4a-d3c6f28cd30c' \
--data-raw '{
"order_code": "5E3NK3RS",
"cod_amount": 100000
}'
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. |
cod_amount | Int |
Amount cash to collect. Maximum Default value: |
{
"code": 200,
"message": "Success",
"data":null
}
{
"code": 400,
"message": "Lỗi gọi API: corev2_tenant_order_detail - code=404, message=Đơn hàng không tồn tại",
"data": null
}