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
    • Cập nhật tên nhóm sản phẩm
      PATCH
  • 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
    • Kiểm tra tài khoản PosApp
      GET
  • Báo cáo
  1. Webhook

Order Schema

Mô tả dữ liệu
Webhook - Order Schema

Dữ liệu mẫu
{
  "id": "174218742105515706853682707383",
  "shop_id": 1570685368,
  "shop_name": "DE Shop",
  "code": "HĐ00001",
  "channel_id": 10,
  "channel_name": "Bán trực tiếp",
  "customer_id": 0,
  "customer_name": null,
  "area_id": 1199,
  "area_name": "VIP",
  "table_id": 72721,
  "table_name": "VIP 11",
  "cancel_reason": null,
  "discount_price": 0.0,
  "discount_percent": 0.0,
  "surcharge_price": 0.0,
  "surcharge_percent": 0.0,
  "shipping_price": 0.0,
  "tax_price": 0.0,
  "tax_percent": 0.0,
  "total_discount_price_items": 0.0,
  "total_surcharge_price_items": 0.0,
  "total_tax_price_items": 1600.0,
  "paid_total": 41600.0,
  "total": 41600.0,
  "grand_total": 41600.0,
  "payment_status": 3,
  "payment_completion_time": "2025-03-17 00:00:00",
  "order_date": "2025-03-17 11:57:02",
  "paid_date": "2025-03-17 11:57:09",
  "order_detail": [
    {
      "product_id": 1120500,
      "product_master_id": 1119190,
      "product_name": "Nước ép thơm",
      "unit_id": 115671,
      "unit_name": "ly",
      "price": 20000.0,
      "product_price": 20000.0,
      "original_price": 0.0,
      "discount_price": 0.0,
      "discount_percent": 0.0,
      "surcharge_price": 0.0,
      "surcharge_percent": 0.0,
      "product_tax_percent": 8.0,
      "product_tax_price": 1600.0,
      "product_type": 1
    }
  ],
  "transactions": [
    "type": 1,
    "asset_id": 6770,
    "asset_name": "Tiền mặt",
    "status": 2,
    "total": 37950.0,
    "receive_date": "2025-03-26 17:19:07",
    "confirm_date": "2025-03-26 17:19:07",
    "accounting_date": "2025-03-26 17:19:07",
  ]
}
Modified at 2025-04-24 08:15:55
Previous
Tổng quan
Next
Warehouse Import Schema
Built with