POST api/Order/OrderOnlineUS?companyCode={companyCode}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| companyCode | string |
Required |
Body Parameters
OrderOnline_OrderInfo| Name | Description | Type | Additional information |
|---|---|---|---|
| ShowInfoCustomerPayConfig | string |
None. |
|
| OrderId |
Id đơn hàng |
globally unique identifier |
None. |
| OrderNo | string |
None. |
|
| OrderDate | date |
None. |
|
| OrderPCID | globally unique identifier |
None. |
|
| ListInventoryItem |
Danh sách món chọn |
Collection of OrderOnline_InventoryItemDetail |
None. |
| ListInventoryItemError | Collection of OrderOnline_InventoryItemDetail |
None. |
|
| ListInventoryItemTemp | Collection of OrderOnline_InventoryItemTemp |
None. |
|
| CancelReasonID | integer |
None. |
|
| CancelReasonName | string |
None. |
|
| CurrentOrderNumber | integer |
None. |
|
| Amount |
Tổng tiền hàng |
decimal number |
None. |
| PLTAmount | decimal number |
None. |
|
| TaxRate |
Mức thuế |
decimal number |
None. |
| DiscountAmount |
Tiền khuyến mại |
decimal number |
None. |
| PromotionAmount | decimal number |
None. |
|
| PromotionItemsAmount | decimal number |
None. |
|
| TaxAmount |
Tiền thuế |
decimal number |
None. |
| ShipAmount |
Tiền phí giao hàng |
decimal number |
None. |
| TotalAmount |
Tổng tiền thanh toán |
decimal number |
None. |
| ConvertAmount | integer |
None. |
|
| ConvertCurrency | string |
None. |
|
| ExchangeRate | decimal number |
None. |
|
| CustomerName |
Tên khách hàng |
string |
None. |
| LastName | string |
None. |
|
| FirstName | string |
None. |
|
| CustomerTel |
Số điện thoại khách hàng |
string |
None. |
| CustomerEmail |
Email khách hàng |
string |
None. |
| Address |
Số nhà, tên đường |
string |
None. |
| ProvinceId |
Tỉnh/Thành phố |
string |
None. |
| DistrictId |
Quận/huyện |
string |
None. |
| CommuneId |
Phường/xã |
string |
None. |
| FullAddress |
Địa chỉ giao hàng |
string |
None. |
| Note |
Ghi chú |
string |
None. |
| ShippingDueDate |
Thời gian nhận |
date |
None. |
| ShippingDueInt | integer |
None. |
|
| DeliveryType |
Loại đặt hàng (0 - Giao hàng tận nơi, 1-Nhận tại cửa hàng) |
EnumOrderOnlineDeliveryType |
None. |
| ShippingTimeType |
Loại hình giao hàng (0- giao hàng ngay,1 giao vào thời gian) |
EnumOrderOnlineShippingTimeType |
None. |
| PaymentType |
Loại hình thanh toán |
EnumOrderOnlinePaymentType |
None. |
| PaymentStatus |
Trạng thái thanh toán |
EnumPaymentStatusOrderOnline |
None. |
| BranchID |
ID nhà hàng |
globally unique identifier |
None. |
| CouponCodeId |
Id Mã khuyến mại áp dụng cho hóa đơn |
integer |
None. |
| CouponCode |
Mã khuyến mại áp dụng cho hóa đơn |
string |
None. |
| CouponDiscountType |
Loại khuyến mại 1 - theo phần trăm2 - theo số tiền |
EnumCouponDiscountType |
None. |
| CouponDiscountPercent |
Phầm trăm giảm giá |
decimal number |
None. |
| CouponDiscountAmount |
Số tiền giảm giá |
decimal number |
None. |
| CardID |
ID Card |
globally unique identifier |
None. |
| CardName |
Tên Card |
string |
None. |
| CardType |
loại Card |
integer |
None. |
| PaymentAmount |
Số tiền đã thanh toán |
decimal number |
None. |
| BranchName |
Tên Chi nhánh |
string |
None. |
| OrderCode |
Mã đơn hàng |
string |
None. |
| ActualCouponDiscountAmount |
Tiền giảm giá mã ưu đãi thực tế được giảm trừ |
decimal number |
None. |
| BookingType | EnumOrderBookingType |
None. |
|
| TableName | string |
None. |
|
| TableRef | string |
None. |
|
| HouseNumber | string |
None. |
|
| PostalCode | string |
None. |
|
| CompanyName | string |
None. |
|
| CompanyTaxCode | string |
None. |
|
| ProvinceOrCity | string |
None. |
|
| ShortDescription | string |
None. |
|
| Description | string |
None. |
|
| OrderOnlineCode | string |
None. |
|
| PickupTimeType | EnumPickupTimeType |
None. |
|
| PickupTime | string |
None. |
|
| IsUseCutlery | boolean |
None. |
|
| TipAmount | decimal number |
None. |
|
| OnlinePaymentAmount | decimal number |
None. |
|
| NonCashAdjustmentAmount | decimal number |
None. |
|
| CardNumber | string |
None. |
|
| CardCode | string |
None. |
|
| ExpirationDate | string |
None. |
|
| TransID | string |
None. |
|
| AccountNumber | string |
None. |
|
| AccountType | string |
None. |
|
| ListAppliedTax | string |
None. |
|
| RemainGiftCardAmount | decimal number |
None. |
|
| Signature |
Chuỗi xác thực đã thanh toán |
string |
None. |
| BankAccountID |
tài khoản thanh toán |
globally unique identifier |
None. |
| BankAccountNumber |
số tài khoản |
string |
None. |
| BankName |
tên ngân hàng |
string |
None. |
| AccountHolder |
Tên chủ TK |
string |
None. |
| DeviceType |
Loại thiết bị |
QRCodeClientDevice |
None. |
| HasCreateOrder |
Đã tạo order hay chưa Nếu chưa tạo thì mới đẩy sang Order Online vs luồng thanh toán ngay |
boolean |
None. |
| Ipay88UserName | string |
None. |
|
| Ipay88UserContact | string |
None. |
|
| Ipay88UserEmail | string |
None. |
|
| Ipay88PaymentID | integer |
None. |
|
| IsPaymentClick | boolean |
None. |
|
| RestaurantPaymentType | integer |
None. |
|
| PaymentTypeOfSeflOrder | string |
None. |
|
| ConfirmStatus | integer |
None. |
|
| ServiceChargeAmount | decimal number |
None. |
|
| ServiceTaxAmount | decimal number |
None. |
|
| ListDiscountCoupon | Collection of OrderOnline_Promotion |
None. |
|
| ListServiceCharge | Collection of OrderOnline_ServiceCharge |
None. |
|
| CustomerID | globally unique identifier |
None. |
|
| ListApplyPromotion | string |
None. |
|
| ListApplyServiceCharge | string |
None. |
|
| ContactPrefix | integer |
None. |
|
| VoucherCardID | globally unique identifier |
None. |
|
| VoucherAmount | decimal number |
None. |
|
| VoucherCode | string |
None. |
|
| GratuityAmount | decimal number |
None. |
|
| AmountIncludeTax | decimal number |
None. |
|
| ServiceChargeAmountIncludeTax | decimal number |
None. |
|
| IsFoodPriceIncludeTax | boolean |
None. |
|
| PromotionAmountPreTax | decimal number |
None. |
|
| PromotionItemAmountPreTax | decimal number |
None. |
|
| DiscountAmountPreTax | decimal number |
None. |
|
| LoyaltyRewardUseAmount | decimal number |
None. |
|
| UsedPoint | integer |
None. |
|
| LoyalProgramActivationStatus | integer |
None. |
|
| OnlinePaymentType | integer |
None. |
|
| OnlinePaymentID | string |
None. |
|
| PromoCodeID | globally unique identifier |
None. |
|
| IsPaidWithGiftCard | boolean |
None. |
Request Formats
application/json
Sample not available.
text/json
Sample not available.
application/xml
Sample not available.
text/xml
Sample not available.
application/x-www-form-urlencoded
Sample not available.
Response Information
Resource Description
APIOrderOnlineResultOfOrderOnline_OrderInfo| Name | Description | Type | Additional information |
|---|---|---|---|
| Data | OrderOnline_OrderInfo |
None. |
|
| Success | boolean |
None. |
|
| ErrorMessage | string |
None. |
|
| ErrorType | OrderOnlineAPIErrorType |
None. |
|
| Total | integer |
None. |
|
| Message | string |
None. |
Response Formats
application/json
Sample not available.
text/json
Sample not available.
application/xml
Sample not available.
text/xml
Sample not available.