Hủy đơn hàng

  • Tính năng này dùng để hủy vận chuyển của đơn hàng

Request

curl --location --globoff 'https://pos.open.nhanh.vn/v3.0/order/cancelcarrier?appId={{appId}}&businessId={{businessId}}' \
--header 'Authorization: {{accessToken}}' \
--header 'Content-Type: application/json' \
--data '{
    "orderId": 14905641
}'

Params

Key
Type
Description

orderId

array

ID đơn hàng

Response

Failed response

  • Xem các mã lỗi chung tại đây.

  • Danh sách errorCode của riêng API này:

errorCode
Description

ERR_ORDER_CARRIER_NOT_YET_SENT

Đơn hàng chưa gửi sang hãng vận chuyển

ERR_ORDER_CARRIER_NO_API_CANCEL

Hãng vận chuyển không hỗ trợ API hủy đơn

ERR_ORDER_CARRIER_REJECT

Gọi API hủy đơn hãng vận chuyển báo lỗi.

Successful response

Last updated