Get Stock Transfer Detail

Chi tiết phiếu luân chuyển theo mã ST trên hệ thống TNSL.

1. API endpoint

https://tikinowapi.tiki.vn/business/v1/stock-transfer/{code}

2. Header request

Content-Type: application/json

Authorization: Bearer + access_token: access_token lấy từ API get token, hoặc login từ app public, app in-house hoặc token từ TikiNOW Center, Seller Center.

3. CURL Example

curl --location 'https://tikinowapi.tiki.vn/business/v1/stock-transfer/ST/2024/05/444444' \
--header 'Authorization: Bearer xxx'

4. Params

FieldLoạiMô tả
codeStringMã ST trên hệ thống của TNSL. Ví dụ: ST/2024/05/444444

5. Response

Error

{
    "success": false,
    "error": {
        "status_code": 401,
        "message": "Unauthorized",
        "message_code": "INVALID_TOKEN"
    },
    "meta_data": {
        "request_id": "3fe74a7f26c806ed27f80851fba6ad87"
    }
}

Success

{
  "success": true,
  "data": {
    "id": "383",
    "status": "completed",
    "sub_status": "done",
    "code": "ST/2024/05/440837",
    "ref_code": "EXT00001",
    "partner": {
      "code": "S00351913",
      "name": "Tài khoản test 1"
    },
    "src_warehouse_code": "hn5",
    "des_warehouse_code": "sgn",
    "total_sku": 2,
    "total_qty_sku": 9,
    "note": "Trạng thái [Hoàn thành] được update bởi [os2300262]",
    "estimate_arrival_date": "2024-05-28",
    "updated_at": "2024-05-18 13:43:18",
    "created_at": "2024-05-16 09:39:22",
    "done_at": "2024-05-18 13:43:18",
    "items": [
      {
        "product_sku": "8519706352042",
        "expected_qty": 3,
        "actual_qty": 3,
        "inbound_qty": 3,
        "outbound_qty": 3,
        "note": "",
        "product_image": "product/8d/5b/b6/c56db3c8165ea08696e4c7ca9c1499e9.png",
        "product_id": 231631117,
        "seller_product_code": "2316XXX117",
        "product_name": "Hộp 25 Que Thử Đường Huyết ACCU-CHEK Active"
      },
      {
        "product_sku": "8325842642339",
        "expected_qty": 6,
        "actual_qty": 6,
        "inbound_qty": 6,
        "outbound_qty": 6,
        "note": "",
        "product_image": "product/49/42/44/c690e02bdcc908ece6fdde78edd200f1.png",
        "product_id": 231630817,
        "seller_product_code": "123135123",
        "product_name": "Hộp 50 Que Thử Đường Huyết ACCU-CHEK Performa"
      }
    ],
    "packages": [
      {
        "code": "PCK/2024/05/257614",
        "items": [
          {
            "sku": "8519706352042",
            "qty": 3
          },
          {
            "sku": "8325842642339",
            "qty": 1
          }
        ],
        "status": "successfully_delivered",
        "type": "out",
        "updated_at": "2024-05-18 06:32:26",
        "transport_code": ""
      },
      {
        "code": "PCK/2024/05/257614-1",
        "items": [
          {
            "sku": "8325842642339",
            "qty": 5
          }
        ],
        "status": "successfully_delivered",
        "type": "out",
        "updated_at": "2024-05-18 06:32:26",
        "transport_code": ""
      }
    ],
    "estimation_transfer_fee": [
      {
        "fee_type_en": "Linehaul",
        "fee_type_vi": "Phí vận chuyển đường dài",
        "product_charge": 121000,
        "fee_key": "tnsl_fee_linehaul"
      }
    ],
    "to_ams_packages": [
      {
        "code": "ST/2025/03/23594",
        "src_warehouse_code": "hn5",
        "src_location_type": "defected",
        "dest_warehouse_code": "as-hn5",
        "dest_location_type": "aftersales_center",
        "status": "received_to_ams",
        "updated_at": "2025-03-11T11:22:30Z",
        "items": [
          {
            "sku": "8517891526865",
            "qty": 2
          }
        ]
      },
      {
        "code": "ST/2025/03/23595",
        "src_warehouse_code": "hn5",
        "src_location_type": "defected",
        "dest_warehouse_code": "as-hn5",
        "dest_location_type": "aftersales_center",
        "status": "received_to_ams",
        "updated_at": "2025-03-11T11:23:19Z",
        "items": [
          {
            "sku": "8517891526865",
            "qty": 1
          }
        ]
      }
    ],
    "histories": [
      {
        "status": "done",
        "operator": "os2300262",
        "changed_at": "2024-05-18 13:43:18",
        "created_at": "2024-05-18 13:43:18",
        "display_status": "Hoàn thành",
        "note": "Trạng thái [Hoàn thành] được update bởi [os2300262]"
      },
      {
        "status": "stow_fully",
        "operator": "os2300262",
        "changed_at": "2024-05-18 13:43:18",
        "created_at": "2024-05-18 13:43:18",
        "display_status": "Đã nhập kho toàn bộ",
        "note": "Trạng thái [Đã nhập kho toàn bộ] được update bởi [os2300262]"
      },
      {
        "status": "stow_partially",
        "operator": "thang.nguyenphuoc",
        "changed_at": "2024-05-18 11:43:33",
        "created_at": "2024-05-18 11:43:33",
        "display_status": "Đã nhập kho một phần",
        "note": "Trạng thái [Đã nhập kho một phần] được update bởi [thang.nguyenphuoc]"
      },
      {
        "status": "received_partially",
        "operator": "hanh.phamtran",
        "changed_at": "2024-05-18 11:30:00",
        "created_at": "2024-05-18 11:30:00",
        "display_status": "Đã kiểm hàng một phần",
        "note": "Trạng thái [Đã kiểm hàng một phần] được update bởi [hanh.phamtran]"
      },
      {
        "status": "ready_to_receive_fully",
        "operator": "accounts:2066814",
        "changed_at": "2024-05-18 06:32:26",
        "created_at": "2024-05-18 06:32:26",
        "display_status": "Sẵn sàng IB toàn bộ",
        "note": "Trạng thái [Sẵn sàng IB toàn bộ] được cập nhật bởi [accounts:2066814]"
      },
      {
        "status": "handing_over",
        "operator": "customers:27263889",
        "changed_at": "2024-05-16 20:54:02",
        "created_at": "2024-05-16 20:54:02",
        "display_status": "Đang bàn giao",
        "note": "Trạng thái [Đang bàn giao] được cập nhật bởi [customers:27263889]"
      },
      {
        "status": "packed",
        "operator": "hn.hoan.tranthi",
        "changed_at": "2024-05-16 10:36:53",
        "created_at": "2024-05-16 10:36:53",
        "display_status": "Đã đóng gói",
        "note": "Trạng thái [Đã đóng gói] được cập nhật bởi [hn.hoan.tranthi]"
      },
      {
        "status": "packing",
        "operator": "hn.hoan.tranthi",
        "changed_at": "2024-05-16 10:06:35",
        "created_at": "2024-05-16 10:06:35",
        "display_status": "Đang đóng gói",
        "note": "Trạng thái [Đang đóng gói] được cập nhật bởi [hn.hoan.tranthi]"
      },
      {
        "status": "picking",
        "operator": "hn4.thanh.nguyentrung",
        "changed_at": "2024-05-16 09:42:33",
        "created_at": "2024-05-16 09:42:33",
        "display_status": "Đang lấy hàng",
        "note": "Trạng thái [Đang lấy hàng] được cập nhật bởi [hn4.thanh.nguyentrung]"
      },
      {
        "status": "fully_created",
        "operator": "ims-active-outbound-worker",
        "changed_at": "2024-05-16 09:39:27",
        "created_at": "2024-05-16 09:39:26",
        "display_status": "Tạo đầy đủ",
        "note": "Trạng thái [Tạo đầy đủ] được cập nhật bởi [ims-active-outbound-worker]"
      },
      {
        "status": "open",
        "operator": "tnc",
        "changed_at": "2024-05-16 09:39:22",
        "created_at": "2024-05-16 09:39:22",
        "display_status": "Mới",
        "note": ""
      }
    ]
  },
  "meta_data": {
    "request_id": "d58801a742fc15286af99092f11aa037"
  }
}
FieldLoạiMô tả
successBoolTrả về true/false tương ứng với thành công / thất bại.
dataArrayData trả về khi gọi kiểm tra thành công.
statusStringTrạng thái chính của ST. Xem thêm
sub_statusStringTrạng thái con của ST. Xem thêm
codeStringMã phiếu ST được tạo trên hệ thống của TNSL.
ref_codeStringMã luân chuyển của đối tác.
src_warehouse_codeStringMã kho nguồn.
des_warehouse_codeStringMã kho đích.
total_skuNumberTổng SKU khác nhau trong phiếu ST.
total_qty_skuNumberTổng SKU theo số lượng trong phiếu ST.
total_expected_qtyNumberTổng số lượng SKU KH yêu cầu luân chuyển.
total_actual_qtyNumberTổng số lượng SKU thực tế luân chuyển.
total_outbound_qtyNumberTổng số lượng SKU xuất kho.
total_inbound_qtyNumberTổng số lượng SKU nhập kho.
noteStringGhi chú xử lý của TNSL ở trạng thái hiện tại của ST.
outbound_shipment_codeStringMã outbound.
inbound_shipment_codeStringMã inbound.
estimate_arrival_dateDateNgày dự kiến đến kho đích.
created_atDatetimeNgày tạo phiếu ST.
updated_atDatetimeNgày cập nhật phiếu ST.
done_atDatetimeNgày hoàn hoàn thành xử lý phiếu ST.
itemsArraySản phẩm trong phiếu ST
items[].product_skuStringDùng để lấy dữ liệu ở trang tiếp theo.
items[].expected_qtyNumberSố lượng yêu cầu luân chuyển.
items[].actual_qtyNumberSố lượng thực tế luân chuyển.
items[].inbound_qtyNumberSố lượng nhập kho.
items[].outbound_qtyNumberSố lượng xuất kho.
items[].product_imageStringPath hình ảnh.
items[].product_idNumberID sản phẩm trên hệ thống TNSL.
items[].seller_product_codeStringMã sản phẩm của khách hàng.
items[].product_nameStringTên sản phẩm.
packagesArrayThông tin kiện hàng đóng gói, có thể chia thành nhiều kiện.
packages[].codeStringMã kiện hàng
packages[].itemsArrayDanh sách sản phẩm trong kiện hàng.
packages[].items[].skuStringSku trong kiện hàng.
packages[].items[].qtyNumberSố lượng sku trong kiện hàng.
packages[].statusStringTrạng thái của kiện hàng
packages[].updated_atDatetimeThời gian cập nhật kiện hàng.
packages[].transport_codeStringMã vận chuyển gói hàng.
to_ams_packagesArrayThông tin hàng lỗi trong quá trình luân chuyển (nếu có)
to_ams_packages[].codeStringMã phiếu luân chuyển
to_ams_packages[].src_warehouse_codeStringMã kho nguồn chuyển hàng đi
to_ams_packages[].src_location_typeStringChức năng của kho nguồn, bao gồm giá trị:
1/ defected: Kho hàng lỗi FC
2/ sale: Kho Hàng Bán
to_ams_packages[].dest_warehouse_codeStringMã kho đích nhận hàng -> Trong trường hợp này là các kho Hậu Mãi
to_ams_packages[].dest_location_typeStringChức năng của kho đích:
aftersales_center: Kho phân loại hàng lỗi
to_ams_packages[].statusStringTrạng thái phiếu ST về Hậu Mãi, bao gồm các trạng thái sau:
1/ problem_solved: đã phân loại ở tool phân loại FC
2/ready_to_receive_ams: đã đóng box ở FFN chờ nhập AMS
3/ received_to_ams: đã nhập vào AMS -> Tất cả ST thuộc cụm ams_package chuyển trạng thái
received_to_ams thì ST gốc chuyển trạng thái thành done
to_ams_packages[].updated_atDatetimeThời gian cập nhật cuối của phiếu luân chuyển
to_ams_packages[].itemsArrayDanh sách sản phẩm
to_ams_packages[].items[].skuStringSKU của sản phẩm trên hệ thống TNSL
to_ams_packages[].items[].qtyNumberSố lượng sản phẩm
estimation_transfer_feeArrayDanh sách phí tạm tính.
estimation_transfer_fee[].fee_type_enStringTên phí bằng tiếng Anh.
estimation_transfer_fee[].fee_type_viStringTên phí bằng tiếng Việt.
estimation_transfer_fee[].product_chargeStringSố tiền phí, đơn vị VNĐ.
estimation_transfer_fee[].fee_keyStringKey phí trên hệ thống TNSL.
historiesArrayLịch sử xử lý phiếu ST.
histories[].statusStringTrạng thái ST.
histories[].operatorStringNgười thao tác.
histories[].changed_atDatetimeThời gian thao tác.
histories[].display_statusStringTrạng thái tiếng Việt.
histories[].noteStringGhi chú ở trạng thái xử lý.

Leave a Reply

Your email address will not be published.