POST api/Payment/OpenPortal?companyCode={companyCode}
Lấy link mở cổng thanh toán
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| companyCode |
Mã nhà hàng |
string |
Required |
Body Parameters
thông tin đơn hàng
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
Lấy link mở cổng thanh toán
APIOrderOnlineResultOfQrcodeResponse| Name | Description | Type | Additional information |
|---|---|---|---|
| Data | QrcodeResponse |
None. |
|
| Success | boolean |
None. |
|
| ErrorMessage | string |
None. |
|
| ErrorType | OrderOnlineAPIErrorType |
None. |
|
| Total | integer |
None. |
|
| Message | string |
None. |
Response Formats
application/json, text/json
{
"Data": {
"ReturnMessage": "sample string 1",
"Message": "sample string 1",
"Success": true,
"ReturnData": "sample string 3",
"AppTransId": "sample string 4",
"TransStatus": 5,
"Amount": 6,
"ErrorType": 7,
"Signature": "sample string 8"
},
"Success": true,
"ErrorMessage": "sample string 2",
"ErrorType": 0,
"Total": 3,
"Message": "sample string 4"
}
application/xml, text/xml
<APIOrderOnlineResultOfMisaPaymentGateway.QrcodeResponsek06trgez xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MISA.QLNH.BE.BO">
<Data xmlns:d2p1="http://schemas.datacontract.org/2004/07/MISA.QLNH.OrderOnlineLibrary">
<d2p1:Amount>6</d2p1:Amount>
<d2p1:AppTransId>sample string 4</d2p1:AppTransId>
<d2p1:ErrorType>7</d2p1:ErrorType>
<d2p1:ReturnData>sample string 3</d2p1:ReturnData>
<d2p1:ReturnMessage>sample string 1</d2p1:ReturnMessage>
<d2p1:Signature>sample string 8</d2p1:Signature>
<d2p1:Success>true</d2p1:Success>
<d2p1:TransStatus>5</d2p1:TransStatus>
</Data>
<ErrorMessage>sample string 2</ErrorMessage>
<ErrorType>None</ErrorType>
<Message>sample string 4</Message>
<Success>true</Success>
<Total>3</Total>
</APIOrderOnlineResultOfMisaPaymentGateway.QrcodeResponsek06trgez>