APIs MyEMS
  • Merchant Api v2.0
  • Changelog
  • Tiếng việt
    • Danh mục địa chính
      • Danh sách tỉnh/thành phố
      • Danh sách quận huyện
      • Danh sách phường/xã
    • Dịch vụ
      • Danh sách dịch vụ
      • Dịch vụ cộng thêm
    • Quản lý bưu gửi
      • Danh sách trạng thái bưu gửi
      • Danh sách bưu gửi
      • Chi tiết bưu gửi
      • Tạo bưu gửi
      • Tạo nhiều bưu gửi
      • Huỷ bưu gửi
    • Quản lý kho hàng
      • Danh sách kho hàng
      • Tạo kho hàng
      • Chi tiết kho hàng
      • Cập nhật kho hàng
    • Quản lý khách hàng
      • Danh sách khách hàng
      • Tạo khách hàng
      • Cập nhật thông tin
      • Xoá khách hàng
      • Thêm tag
      • Gỡ tag
    • Quản lý sản phẩm
      • Danh sách sản phẩm
      • Tạo sản phẩm
      • Cập nhật sản phẩm
    • Thông tin cửa hàng
    • Webhook
  • English
    • List locations
      • List provinces
      • List districts
      • List wards
    • Services
      • Main services
      • Additional services
    • Manage shipment
      • List shipment statuses
      • List shipments
      • Shipment detail
      • Create shipment
      • Create multiple shipments
      • Cancel shipment
    • Manage warehouse
      • List warehouses
      • Create warehouse
      • Warehouse detail
      • Update warehouse
    • Manage customers
      • List customers
      • Create customer
      • Update customer info
      • Delete customer
      • Attach tag to customer
      • Detach tag from customer
    • Manage product
      • List products
      • Create product
      • Update product
    • Merchant info
    • Webhook
Powered by GitBook
On this page
  1. English
  2. Manage shipment

Cancel shipment

/shipments/cancel

POST

Query Parameters

Name
Type
Description

merchant_token

string

Token is created in management system

code

string

Shipment code

Headers

Name
Type
Description

Accept

string

application/json

{
    "code": "SM0000000001",
    "warehouse_code": "1",
    "order_code": "1",
    "status": 23000,
    "ref_code": "SM0000000001",
    "product_name": "San pham A",
    "total_amount": "100000.00",
    "total_quantity": 10,
    "total_weight": 10,
    "money_collect": "100000.00",
    "total_fee": "0.00",
    "description": null,
    "can_check": 0,
    "is_fragile": 0,
    "service_type": 0,
    "addition_service": "",
    "payment_config": 1,
    "estimated_delivery_time": 0,
    "created_at": "2019-04-04T18:07:11.000000Z"
}
{
    "code": "error",
    "message": "Không thể huỷ đơn hàng đang vận chuyển"
}

Can cancel shipment only when shipment status is Chờ lấy hàng.

With other shipment status, if you want to cancel shipment, you have to contact origin post office to be supported.

PreviousCreate multiple shipmentsNextManage warehouse

Last updated 5 years ago