POST api/v1/orders/update-item
Request Information
URI Parameters
None.
Body Parameters
GraphOrderParamName | Description | Type | Additional information |
---|---|---|---|
Id |
id đơn hàng |
globally unique identifier |
None. |
Type |
Loại đơn hàng 1 - Đặt chỗ 2 - Order |
EnumOrderType |
None. |
No |
Mã đơn hàng |
string |
None. |
Status |
Trạng thái đơn hàng |
EnumOrderStatus |
None. |
ShippingDate |
Giờ hẹn trả khách |
date |
None. |
CustomerId |
Id khách hàng |
globally unique identifier |
None. |
CustomerName |
Tên khách hàng |
string |
None. |
CustomerTel |
Số điện thoại khách hàng |
string |
None. |
EmployeeId |
Id nhân viên |
globally unique identifier |
None. |
EmployeeName |
Tên nhân viên |
string |
None. |
ShippingAddress |
Địa chỉ giao hàng |
string |
None. |
DeliveryAmount |
Phí giao hàng |
decimal number |
None. |
DepositAmount |
Tiền đặt khách trước |
decimal number |
None. |
OrderDetails |
Danh sách các order detail |
Collection of GraphOrderDetail |
None. |
PaymentMethods | Collection of GraphSAInvoicePayment |
None. |
|
BranchId |
Id chi nhánh |
globally unique identifier |
None. |
Version |
Phiên bản |
string |
None. |
Request Formats
application/json, text/json
Sample:
{ "Id": "c9e9f6a8-1943-46d5-985a-f32be0a69cc6", "Type": 1, "No": "sample string 2", "Status": 0, "ShippingDate": "2025-06-25T10:49:59.9789782+07:00", "CustomerId": "b1a36232-a65d-4419-8ff4-879c0fb14b5e", "CustomerName": "sample string 3", "CustomerTel": "sample string 4", "EmployeeId": "0573b91d-f05a-44e6-ba62-3da6337a4046", "EmployeeName": "sample string 5", "ShippingAddress": "sample string 6", "DeliveryAmount": 7.0, "DepositAmount": 8.0, "OrderDetails": [ { "Id": "bc70e733-8dc8-40fd-861c-fe20d5903890", "ItemId": "f77dc433-3767-4606-955b-47a3303187d5", "ItemName": "sample string 3", "AdditionId": "2a63e09f-50df-463c-8f06-1e378e4ce8f6", "UnitId": "960ba9d7-6dd8-441e-9cc4-8d2b539060c4", "UnitName": "sample string 4", "Quantity": 5.0, "Status": 1, "Description": "sample string 6", "Price": 7.0, "Amount": 8.0, "SortOrder": 9 }, { "Id": "bc70e733-8dc8-40fd-861c-fe20d5903890", "ItemId": "f77dc433-3767-4606-955b-47a3303187d5", "ItemName": "sample string 3", "AdditionId": "2a63e09f-50df-463c-8f06-1e378e4ce8f6", "UnitId": "960ba9d7-6dd8-441e-9cc4-8d2b539060c4", "UnitName": "sample string 4", "Quantity": 5.0, "Status": 1, "Description": "sample string 6", "Price": 7.0, "Amount": 8.0, "SortOrder": 9 } ], "PaymentMethods": [ { "SAInvoicePaymentID": "3a40ba87-9b88-483b-80fe-2d02cf39c37b", "RefID": "32d6cb57-eace-4a1a-92d7-022c02e5a139", "PaymentType": 3, "Amount": 1.0, "CustomerID": "a1800c22-b113-4ce4-859d-8593a146b4cb", "CustomerName": "sample string 6", "PaymentName": "sample string 5", "VoucherID": "76added0-0b23-493c-991d-8df420408d63", "VoucherQuantity": 1.0, "VoucherAmount": 1.0, "VoucherCode": "sample string 4", "VoucherName": "sample string 8", "RefNo": "sample string 15", "RefDate": "2025-06-25T10:49:59.9789782+07:00", "CardID": "3fdd98e2-6c0b-44e3-807a-41f0d1aedf5d", "CardName": "sample string 7", "ApplyVoucherType": 12, "VoucherAllAmount": 9.0, "VoucherFoodAmount": 10.0, "VoucherDrinkAmount": 11.0, "CardNo": "sample string 13", "ApprovalCode": "sample string 14", "CustomerAddress": "sample string 16", "BankName": "sample string 17", "BankAccountNumber": "sample string 18", "CurrencyID": "sample string 19", "MainCurrency": "sample string 20", "ExchangeRate": 21.0, "ExchangeAmount": 22.0 }, { "SAInvoicePaymentID": "3a40ba87-9b88-483b-80fe-2d02cf39c37b", "RefID": "32d6cb57-eace-4a1a-92d7-022c02e5a139", "PaymentType": 3, "Amount": 1.0, "CustomerID": "a1800c22-b113-4ce4-859d-8593a146b4cb", "CustomerName": "sample string 6", "PaymentName": "sample string 5", "VoucherID": "76added0-0b23-493c-991d-8df420408d63", "VoucherQuantity": 1.0, "VoucherAmount": 1.0, "VoucherCode": "sample string 4", "VoucherName": "sample string 8", "RefNo": "sample string 15", "RefDate": "2025-06-25T10:49:59.9789782+07:00", "CardID": "3fdd98e2-6c0b-44e3-807a-41f0d1aedf5d", "CardName": "sample string 7", "ApplyVoucherType": 12, "VoucherAllAmount": 9.0, "VoucherFoodAmount": 10.0, "VoucherDrinkAmount": 11.0, "CardNo": "sample string 13", "ApprovalCode": "sample string 14", "CustomerAddress": "sample string 16", "BankName": "sample string 17", "BankAccountNumber": "sample string 18", "CurrencyID": "sample string 19", "MainCurrency": "sample string 20", "ExchangeRate": 21.0, "ExchangeAmount": 22.0 } ], "BranchId": "e3e0048c-c49a-453b-a592-affe5e5e5325", "Version": "sample string 10" }
text/html
Sample:
{ "Id": "c9e9f6a8-1943-46d5-985a-f32be0a69cc6", "Type": 1, "No": "sample string 2", "Status": 0, "ShippingDate": "2025-06-25T10:49:59.9782751+07:00", "CustomerId": "b1a36232-a65d-4419-8ff4-879c0fb14b5e", "CustomerName": "sample string 3", "CustomerTel": "sample string 4", "EmployeeId": "0573b91d-f05a-44e6-ba62-3da6337a4046", "EmployeeName": "sample string 5", "ShippingAddress": "sample string 6", "DeliveryAmount": 7.0, "DepositAmount": 8.0, "OrderDetails": [ { "Id": "bc70e733-8dc8-40fd-861c-fe20d5903890", "ItemId": "f77dc433-3767-4606-955b-47a3303187d5", "ItemName": "sample string 3", "AdditionId": "2a63e09f-50df-463c-8f06-1e378e4ce8f6", "UnitId": "960ba9d7-6dd8-441e-9cc4-8d2b539060c4", "UnitName": "sample string 4", "Quantity": 5.0, "Status": 1, "Description": "sample string 6", "Price": 7.0, "Amount": 8.0, "SortOrder": 9 }, { "Id": "bc70e733-8dc8-40fd-861c-fe20d5903890", "ItemId": "f77dc433-3767-4606-955b-47a3303187d5", "ItemName": "sample string 3", "AdditionId": "2a63e09f-50df-463c-8f06-1e378e4ce8f6", "UnitId": "960ba9d7-6dd8-441e-9cc4-8d2b539060c4", "UnitName": "sample string 4", "Quantity": 5.0, "Status": 1, "Description": "sample string 6", "Price": 7.0, "Amount": 8.0, "SortOrder": 9 } ], "PaymentMethods": [ { "SAInvoicePaymentID": "3a40ba87-9b88-483b-80fe-2d02cf39c37b", "RefID": "32d6cb57-eace-4a1a-92d7-022c02e5a139", "PaymentType": 3, "Amount": 1.0, "CustomerID": "a1800c22-b113-4ce4-859d-8593a146b4cb", "CustomerName": "sample string 6", "PaymentName": "sample string 5", "VoucherID": "76added0-0b23-493c-991d-8df420408d63", "VoucherQuantity": 1.0, "VoucherAmount": 1.0, "VoucherCode": "sample string 4", "VoucherName": "sample string 8", "RefNo": "sample string 15", "RefDate": "2025-06-25T10:49:59.9782751+07:00", "CardID": "3fdd98e2-6c0b-44e3-807a-41f0d1aedf5d", "CardName": "sample string 7", "ApplyVoucherType": 12, "VoucherAllAmount": 9.0, "VoucherFoodAmount": 10.0, "VoucherDrinkAmount": 11.0, "CardNo": "sample string 13", "ApprovalCode": "sample string 14", "CustomerAddress": "sample string 16", "BankName": "sample string 17", "BankAccountNumber": "sample string 18", "CurrencyID": "sample string 19", "MainCurrency": "sample string 20", "ExchangeRate": 21.0, "ExchangeAmount": 22.0 }, { "SAInvoicePaymentID": "3a40ba87-9b88-483b-80fe-2d02cf39c37b", "RefID": "32d6cb57-eace-4a1a-92d7-022c02e5a139", "PaymentType": 3, "Amount": 1.0, "CustomerID": "a1800c22-b113-4ce4-859d-8593a146b4cb", "CustomerName": "sample string 6", "PaymentName": "sample string 5", "VoucherID": "76added0-0b23-493c-991d-8df420408d63", "VoucherQuantity": 1.0, "VoucherAmount": 1.0, "VoucherCode": "sample string 4", "VoucherName": "sample string 8", "RefNo": "sample string 15", "RefDate": "2025-06-25T10:49:59.9782751+07:00", "CardID": "3fdd98e2-6c0b-44e3-807a-41f0d1aedf5d", "CardName": "sample string 7", "ApplyVoucherType": 12, "VoucherAllAmount": 9.0, "VoucherFoodAmount": 10.0, "VoucherDrinkAmount": 11.0, "CardNo": "sample string 13", "ApprovalCode": "sample string 14", "CustomerAddress": "sample string 16", "BankName": "sample string 17", "BankAccountNumber": "sample string 18", "CurrencyID": "sample string 19", "MainCurrency": "sample string 20", "ExchangeRate": 21.0, "ExchangeAmount": 22.0 } ], "BranchId": "e3e0048c-c49a-453b-a592-affe5e5e5325", "Version": "sample string 10" }
application/xml, text/xml
Sample:
<GraphOrderParam xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MISA.QLNH.BE.BO"> <Version>sample string 10</Version> <BranchId>e3e0048c-c49a-453b-a592-affe5e5e5325</BranchId> <CustomerID>b1a36232-a65d-4419-8ff4-879c0fb14b5e</CustomerID> <CustomerName>sample string 3</CustomerName> <CustomerTel>sample string 4</CustomerTel> <DeliveryAmount>7</DeliveryAmount> <DepositAmount>8</DepositAmount> <EmployeeID>0573b91d-f05a-44e6-ba62-3da6337a4046</EmployeeID> <EmployeeName>sample string 5</EmployeeName> <OrderDetails> <GraphOrderDetail> <Amount>8</Amount> <Description>sample string 6</Description> <InventoryItemAdditionID>2a63e09f-50df-463c-8f06-1e378e4ce8f6</InventoryItemAdditionID> <ItemID>f77dc433-3767-4606-955b-47a3303187d5</ItemID> <ItemName>sample string 3</ItemName> <OrderDetailID>bc70e733-8dc8-40fd-861c-fe20d5903890</OrderDetailID> <OrderDetailStatus>NotSend</OrderDetailStatus> <OrderID>66b0a66a-129c-4a2e-a311-96928bb11bb1</OrderID> <Quantity>5</Quantity> <SortOrder>9</SortOrder> <UnitID>960ba9d7-6dd8-441e-9cc4-8d2b539060c4</UnitID> <UnitName>sample string 4</UnitName> <UnitPrice>7</UnitPrice> </GraphOrderDetail> <GraphOrderDetail> <Amount>8</Amount> <Description>sample string 6</Description> <InventoryItemAdditionID>2a63e09f-50df-463c-8f06-1e378e4ce8f6</InventoryItemAdditionID> <ItemID>f77dc433-3767-4606-955b-47a3303187d5</ItemID> <ItemName>sample string 3</ItemName> <OrderDetailID>bc70e733-8dc8-40fd-861c-fe20d5903890</OrderDetailID> <OrderDetailStatus>NotSend</OrderDetailStatus> <OrderID>66b0a66a-129c-4a2e-a311-96928bb11bb1</OrderID> <Quantity>5</Quantity> <SortOrder>9</SortOrder> <UnitID>960ba9d7-6dd8-441e-9cc4-8d2b539060c4</UnitID> <UnitName>sample string 4</UnitName> <UnitPrice>7</UnitPrice> </GraphOrderDetail> </OrderDetails> <OrderID>c9e9f6a8-1943-46d5-985a-f32be0a69cc6</OrderID> <OrderNo>sample string 2</OrderNo> <OrderStatus>None</OrderStatus> <OrderType>ServeAtRestaurant</OrderType> <PaymentMethods> <GraphSAInvoicePayment> <Amount>1</Amount> <ApplyVoucherType>12</ApplyVoucherType> <ApprovalCode>sample string 14</ApprovalCode> <BankAccountNumber>sample string 18</BankAccountNumber> <BankName>sample string 17</BankName> <CardID>3fdd98e2-6c0b-44e3-807a-41f0d1aedf5d</CardID> <CardName>sample string 7</CardName> <CardNo>sample string 13</CardNo> <CurrencyID>sample string 19</CurrencyID> <CustomerAddress>sample string 16</CustomerAddress> <CustomerID>a1800c22-b113-4ce4-859d-8593a146b4cb</CustomerID> <CustomerName>sample string 6</CustomerName> <ExchangeAmount>22</ExchangeAmount> <ExchangeRate>21</ExchangeRate> <MainCurrency>sample string 20</MainCurrency> <PaymentName>sample string 5</PaymentName> <PaymentType>3</PaymentType> <RefDate>2025-06-25T10:49:59.9782751+07:00</RefDate> <RefID>32d6cb57-eace-4a1a-92d7-022c02e5a139</RefID> <RefNo>sample string 15</RefNo> <SAInvoicePaymentID>3a40ba87-9b88-483b-80fe-2d02cf39c37b</SAInvoicePaymentID> <VoucherAllAmount>9</VoucherAllAmount> <VoucherAmount>1</VoucherAmount> <VoucherCode>sample string 4</VoucherCode> <VoucherDrinkAmount>11</VoucherDrinkAmount> <VoucherFoodAmount>10</VoucherFoodAmount> <VoucherID>76added0-0b23-493c-991d-8df420408d63</VoucherID> <VoucherName>sample string 8</VoucherName> <VoucherQuantity>1</VoucherQuantity> </GraphSAInvoicePayment> <GraphSAInvoicePayment> <Amount>1</Amount> <ApplyVoucherType>12</ApplyVoucherType> <ApprovalCode>sample string 14</ApprovalCode> <BankAccountNumber>sample string 18</BankAccountNumber> <BankName>sample string 17</BankName> <CardID>3fdd98e2-6c0b-44e3-807a-41f0d1aedf5d</CardID> <CardName>sample string 7</CardName> <CardNo>sample string 13</CardNo> <CurrencyID>sample string 19</CurrencyID> <CustomerAddress>sample string 16</CustomerAddress> <CustomerID>a1800c22-b113-4ce4-859d-8593a146b4cb</CustomerID> <CustomerName>sample string 6</CustomerName> <ExchangeAmount>22</ExchangeAmount> <ExchangeRate>21</ExchangeRate> <MainCurrency>sample string 20</MainCurrency> <PaymentName>sample string 5</PaymentName> <PaymentType>3</PaymentType> <RefDate>2025-06-25T10:49:59.9782751+07:00</RefDate> <RefID>32d6cb57-eace-4a1a-92d7-022c02e5a139</RefID> <RefNo>sample string 15</RefNo> <SAInvoicePaymentID>3a40ba87-9b88-483b-80fe-2d02cf39c37b</SAInvoicePaymentID> <VoucherAllAmount>9</VoucherAllAmount> <VoucherAmount>1</VoucherAmount> <VoucherCode>sample string 4</VoucherCode> <VoucherDrinkAmount>11</VoucherDrinkAmount> <VoucherFoodAmount>10</VoucherFoodAmount> <VoucherID>76added0-0b23-493c-991d-8df420408d63</VoucherID> <VoucherName>sample string 8</VoucherName> <VoucherQuantity>1</VoucherQuantity> </GraphSAInvoicePayment> </PaymentMethods> <ShippingAddress>sample string 6</ShippingAddress> <ShippingDueDate>2025-06-25T10:49:59.9782751+07:00</ShippingDueDate> </GraphOrderParam>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
GraphServiceActionResultName | Description | Type | Additional information |
---|---|---|---|
Code |
Mã HTTP trả về cho client |
HttpStatusCode |
None. |
ErrorType |
Loại lỗi |
GrapAPIServiceErrorType |
None. |
ErrorMessage |
Thông tin lỗi |
string |
None. |
Data |
Dữ liệu trả về cho client |
Object |
None. |
Total |
Tổng số bản ghi trên grid |
integer |
None. |
Success |
Thực thi Service thành công |
boolean |
None. |
PrimaryKeyValue |
Trả về ID của đối tượng khi cất thành công Phục vụ cho việc cập nhật ID của record trên grid sau khi thêm đối tượng |
Object |
None. |
Response Formats
application/json, text/json, text/html
Sample:
{ "Code": 100, "ErrorType": 0, "ErrorMessage": "sample string 1", "Data": {}, "Total": 3, "Success": true, "PrimaryKeyValue": {} }
application/xml, text/xml
Sample:
<GraphServiceActionResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MISA.QLNH.BE.BO"> <ActionType>Login</ActionType> <Code>Continue</Code> <Data /> <ErrorMessage>sample string 1</ErrorMessage> <ErrorType>None</ErrorType> <PrimaryKeyValue /> <ServerExceptionTraceMessage>sample string 6</ServerExceptionTraceMessage> <Success>true</Success> <Total>3</Total> </GraphServiceActionResult>