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

Webhook

Header
Content-Type : application/json
ems-transaction : "1234567890"

ems-transaction is a random string and matches with each request on system.

body json
{
  "TrackingCode": "ExxxxxxxxxxVN",
  "Fee": [
    {
      "FeeCode": "cod_fee",
      "FeeValue": 13000,
      "Currency": "VND"
    },
    {
      "FeeCode": "handling_fee",
      "FeeValue": 0,
      "Currency": "VND"
    },
    {
      "FeeCode": "overweight_fee",
      "FeeValue": 0,
      "Currency": "VND"
    },
    {
      "FeeCode": "shipping_fee",
      "FeeValue": 55471,
      "Currency": "VND"
    },
    {
      "FeeCode": "special_fee",
      "FeeValue": 0,
      "Currency": "VND"
    }
  ],
  "OrderCode": "ODR22134",
  "Weight": 1000,
  "StatusCode": 11000,
  "StatusName": "Đã giao cho bưu tá",
  "Location": "129060 - BCP Từ Liêm (ÐT:024.37871825)",
  "Note": null,
  "CreatedAt": "2019-07-09 07:48:30"
}

Parameter

Description

TrackingCode

Tracking code

OrderCode

Order code (If any)

Weight

Total weight

StatusCode

Shipment status

StatusName

Shipment status name

Location

Shipment location

Note

Note

CreatedAt

Created time

Fee

Array fee detail

Fee.*.FeeCode

Service code

Fee.*.FeeValue

Service fee

Fee.*.Currency

Currency

Response demo

{
 "code" : "success",
 "transaction" : "1234567890"
}
{
 "code" : "error",
 "transaction" : "1234567890"
}

transaction id get at ems-transaction from header

PreviousMerchant info

Last updated 5 years ago