PosApp Open APIs
  1. Webhook
PosApp Open APIs
  • Tổng quan
  • Thẻ PosApp
    • Mã lỗi (error code)
    • API Idempotency
    • Nạp tiền vào thẻ
      POST
    • Kiểm tra trạng thái giao dịch
      POST
  • Thông tin khác
    • Digital Signature
  • Webhook
    • Tổng quan
    • Order Schema
    • Warehouse import Schema
  • Sản phẩm
    • Tạo mới sản phẩm
      POST
    • Sửa một sản phẩm
      PATCH
    • Tồn kho sản phẩm
      POST
  • Khuyến mãi
    • Đồng giá
      • Tạo khuyến mãi
      • Sửa khuyến mãi
    • Xóa khuyến mãi
      POST
  • Đăng ký tài khoản PosApp
    • Danh sách mô hình kinh doanh
      GET
    • Đăng ký tài khoản
      POST
  1. Webhook

Warehouse import Schema

Mô tả dữ liệu
Warehouse import Schema
Dữ liệu này chứa trong trường `data` của payload
id
string 
required
ID phiếu nhập kho
shop_id
integer 
required
ID cửa hàng
shop_name
string 
required
Tên cửa hàng
facility_id
integer 
required
ID kho
facility_name
string 
required
Tên kho
transaction_with_id
integer 
required
ID nhà cung cấp
transaction_with_name
string 
required
Tên nhà cung cấp
code
string 
required
Mã phiếu
created_at
string 
required
Ngày tạo phiếu. Định dạng Iso
total
number 
required
Tổng tiền hàng nhập kho
paid_total
number  | null 
optional
Tổng tiền đã thanh toán
note
string  | null 
optional
Ghi chú
status
integer 
required
Trạng thái phiếu
discount_price
number  | null 
optional
Tiền giảm giá
discount_percent
number  | null 
optional
% giảm giá
surcharge_price
number  | null 
optional
Tiền phụ thu
surcharge_percent
number  | null 
optional
% phụ thu
tax_price
number  | null 
optional
Tiền thuế
tax_percent
number  | null 
optional
% thuế
shipping
number 
required
Phí vận chuyển
items
array [object {16}] 
required
Danh sách các sản phẩm nhập trong phiếu
id
string 
optional
ID
product_id
integer 
optional
ID sản phẩm
product_name
string 
optional
Tên sản phẩm
product_code
string 
optional
Mã sản phẩm
product_price
number 
optional
Giá nhập
quantity
number 
optional
Số lượng nhập
unit_id
integer 
optional
ID đơn vị tính
unit_name
string 
optional
Tên đơn vị tính
primary_unit_convert
number 
optional
Quy đổi so với đơn vị tính mặc định
total
number 
optional
Tổng tiền
note
string  | null 
optional
Ghi chú
status
integer 
optional
Trạng thái
sku_ids
string  | null 
optional
Danh sách các sku được phân cách bởi dấu phẩy (,)
serial_number
string  | null 
optional
cost_price
number  | null 
optional
Giá vốn nhập
cost_price_after_import
number  | null 
optional
Giá vốn sau nhập
Dữ liệu mẫu
{
  "id": "17278336167421651570685368242",
  "shop_id": 1570685368,
  "shop_name": "DE Shop",
  "facility_id": 1374,
  "facility_name": "Kho Hồ Chí Minh",
  "transaction_with_id": 16325,
  "transaction_with_name": "PG Company",
  "code": "PNK0001576",
  "created_at": "2024-10-02T01:45:51.000000Z",
  "total": 345000,
  "paid_total": null,
  "note": null,
  "status": 0,
  "discount_price": 34500,
  "discount_percent": 10,
  "surcharge_price": 17250,
  "surcharge_percent": 5,
  "tax_price": 19665,
  "tax_percent": 6,
  "shipping": 25000,
  "items": [
    {
      "id": "17278336175361570685368248",
      "product_id": 1120546,
      "product_name": "Túi Tote",
      "product_code": "SP0001833",
      "product_price": 15000,
      "quantity": 23,
      "unit_id": 117843,
      "unit_name": "L",
      "primary_unit_convert": 1000,
      "total": 345000,
      "note": null,
      "status": 0,
      "sku_ids": null,
      "serial_number": null,
      "cost_price": null,
      "cost_price_after_import": 15.1890243902
    }
  ]
}
Modified at 2024-10-03 07:01:11
Previous
Order Schema
Next
Tạo mới sản phẩm
Built with