POST api/POSOrder/UpdateAndPayOrder
Request Information
URI Parameters
None.
Body Parameters
POSOrder_UpdateOrderPayRequestClass| Name | Description | Type | Additional information |
|---|---|---|---|
| PaymentResponse | Collection of POSOrder_PaymentResponseClass |
None. |
|
| PaymentGatewayIDF | globally unique identifier |
None. |
|
| PaymentGatewaySettingIDF | globally unique identifier |
None. |
|
| PaymentGatewayNo | integer |
None. |
|
| PayAmountCash | decimal number |
None. |
|
| DueAmountCash | decimal number |
None. |
|
| ReturnAmountCash | decimal number |
None. |
|
| RestaurantIDF | globally unique identifier |
None. |
|
| BranchIDF | globally unique identifier |
None. |
|
| CounterIDF | globally unique identifier |
None. |
|
| CounterBalanceHistoryIDF | globally unique identifier |
None. |
|
| TrackingOrderID | string |
None. |
|
| OrderDate | string |
None. |
|
| OrderStatus | string |
None. |
|
| PaymentStatus | string |
None. |
|
| QuantityTotal | integer |
None. |
|
| ItemTotal | decimal number |
None. |
|
| ModifierTotal | decimal number |
None. |
|
| DiscountTotal | decimal number |
None. |
|
| ItemTaxTotal | decimal number |
None. |
|
| SubTotal | decimal number |
None. |
|
| TaxAmountTotal | decimal number |
None. |
|
| TotalAmount | decimal number |
None. |
|
| AdjustedAmount | decimal number |
None. |
|
| GrandTotal | decimal number |
None. |
|
| UserIDF | globally unique identifier |
None. |
|
| AdditionalNotes | string |
None. |
|
| PackagingName | string |
None. |
|
| OrderMenu | Collection of POSOrder_MenuItemDetailClass |
None. |
|
| KOTMenu | Collection of POSOrder_KOTMenuItemDetailClass |
None. |
|
| OrderTax | Collection of POSOrder_OrderTaxDetailClass |
None. |
Request Formats
application/json, text/json
Sample:
{
"PaymentResponse": [
{
"TransactionID": "sample string 1",
"ResponseCode": "sample string 2",
"ResponseMessage": "sample string 3",
"PaymentStatus": "sample string 4",
"PaidAmount": 5.0,
"RequestData": "sample string 6",
"ResponseData": "sample string 7",
"PaymentGatewayNo": "sample string 8",
"PayAmountCash": 1.0,
"DueAmountCash": 1.0,
"ReturnAmountCash": 1.0
},
{
"TransactionID": "sample string 1",
"ResponseCode": "sample string 2",
"ResponseMessage": "sample string 3",
"PaymentStatus": "sample string 4",
"PaidAmount": 5.0,
"RequestData": "sample string 6",
"ResponseData": "sample string 7",
"PaymentGatewayNo": "sample string 8",
"PayAmountCash": 1.0,
"DueAmountCash": 1.0,
"ReturnAmountCash": 1.0
}
],
"PaymentGatewayIDF": "d68aa56c-cf86-4852-9839-13fb56dd5923",
"PaymentGatewaySettingIDF": "e867fc52-a0a7-4f14-a8fa-86ae0d9ea36c",
"PaymentGatewayNo": 3,
"PayAmountCash": 1.0,
"DueAmountCash": 1.0,
"ReturnAmountCash": 1.0,
"RestaurantIDF": "86ad1dc6-26f5-49f2-aa64-c4d8220096e2",
"BranchIDF": "a39c5a74-56ac-4b6a-8181-32f2c69994da",
"CounterIDF": "99646fa2-48e8-4085-a84c-c695002645ff",
"CounterBalanceHistoryIDF": "4d2d86f5-a02a-414a-8118-c4b635fd347e",
"TrackingOrderID": "sample string 8",
"OrderDate": "sample string 9",
"OrderStatus": "sample string 10",
"PaymentStatus": "sample string 11",
"QuantityTotal": 12,
"ItemTotal": 13.0,
"ModifierTotal": 14.0,
"DiscountTotal": 15.0,
"ItemTaxTotal": 16.0,
"SubTotal": 17.0,
"TaxAmountTotal": 18.0,
"TotalAmount": 19.0,
"AdjustedAmount": 1.0,
"GrandTotal": 20.0,
"UserIDF": "e36f5853-a50c-4c0e-b8dc-0528cf6a59bd",
"AdditionalNotes": "sample string 22",
"PackagingName": "sample string 23",
"OrderMenu": [
{
"OrderDetailIDP": "0e2d07e1-c757-4ad2-bac3-bffad5255f89",
"MenuItemIDF": "ba75718e-09a1-4360-af3c-cdff1f2aade5",
"VariantIDF": "c526d477-a4ef-4022-b785-9ee95e4e307f",
"Quantity": 4,
"DiscountPercentage": 5.0,
"ItemName": "sample string 6",
"ItemVariantName": "sample string 7",
"ItemTaxPercent": 8.0,
"AllModifierPrices": "sample string 9",
"AllModifierIDFs": "sample string 10",
"VariantPrice": 11.0,
"ItemDiscountPrice": 12.0,
"DiscountedItemAmount": 13.0,
"DiscountedItemTotalAmount": 14.0,
"ItemTaxPrice": 15.0,
"ItemTotal": 16.0,
"ItemTotalTaxPrice": 17.0,
"ItemModifierTotal": 18.0,
"ItemDiscountPriceTotal": 19.0,
"TotalItemAmount": 20.0,
"ItemAdditionalNotes": "sample string 21"
},
{
"OrderDetailIDP": "0e2d07e1-c757-4ad2-bac3-bffad5255f89",
"MenuItemIDF": "ba75718e-09a1-4360-af3c-cdff1f2aade5",
"VariantIDF": "c526d477-a4ef-4022-b785-9ee95e4e307f",
"Quantity": 4,
"DiscountPercentage": 5.0,
"ItemName": "sample string 6",
"ItemVariantName": "sample string 7",
"ItemTaxPercent": 8.0,
"AllModifierPrices": "sample string 9",
"AllModifierIDFs": "sample string 10",
"VariantPrice": 11.0,
"ItemDiscountPrice": 12.0,
"DiscountedItemAmount": 13.0,
"DiscountedItemTotalAmount": 14.0,
"ItemTaxPrice": 15.0,
"ItemTotal": 16.0,
"ItemTotalTaxPrice": 17.0,
"ItemModifierTotal": 18.0,
"ItemDiscountPriceTotal": 19.0,
"TotalItemAmount": 20.0,
"ItemAdditionalNotes": "sample string 21"
}
],
"KOTMenu": [
{
"IsCancelOrder": true,
"OrderDetailIDP": "4863b5ba-6f86-40ba-b2eb-4884388a1e7e",
"MenuItemIDF": "5c8a65c3-cec8-4f6e-b610-0b27429af802",
"VariantIDF": "e116ae1f-addf-4a9b-a31c-d9108f2b95b0",
"Quantity": 5,
"DiscountPercentage": 6.0,
"ItemName": "sample string 7",
"ItemVariantName": "sample string 8",
"ItemTaxPercent": 9.0,
"AllModifierPrices": "sample string 10",
"AllModifierIDFs": "sample string 11",
"VariantPrice": 12.0,
"ItemDiscountPrice": 13.0,
"DiscountedItemAmount": 14.0,
"DiscountedItemTotalAmount": 15.0,
"ItemTaxPrice": 16.0,
"ItemTotal": 17.0,
"ItemTotalTaxPrice": 18.0,
"ItemModifierTotal": 19.0,
"ItemDiscountPriceTotal": 20.0,
"TotalItemAmount": 21.0,
"ItemAdditionalNotes": "sample string 22"
},
{
"IsCancelOrder": true,
"OrderDetailIDP": "4863b5ba-6f86-40ba-b2eb-4884388a1e7e",
"MenuItemIDF": "5c8a65c3-cec8-4f6e-b610-0b27429af802",
"VariantIDF": "e116ae1f-addf-4a9b-a31c-d9108f2b95b0",
"Quantity": 5,
"DiscountPercentage": 6.0,
"ItemName": "sample string 7",
"ItemVariantName": "sample string 8",
"ItemTaxPercent": 9.0,
"AllModifierPrices": "sample string 10",
"AllModifierIDFs": "sample string 11",
"VariantPrice": 12.0,
"ItemDiscountPrice": 13.0,
"DiscountedItemAmount": 14.0,
"DiscountedItemTotalAmount": 15.0,
"ItemTaxPrice": 16.0,
"ItemTotal": 17.0,
"ItemTotalTaxPrice": 18.0,
"ItemModifierTotal": 19.0,
"ItemDiscountPriceTotal": 20.0,
"TotalItemAmount": 21.0,
"ItemAdditionalNotes": "sample string 22"
}
],
"OrderTax": [
{
"OrderTaxIDP": "c0b5fb31-de23-4cd1-82be-8350f94d4f92",
"TaxIDF": "d27f5f91-4c9c-4e5b-b69f-f93d8aafa4c8",
"TaxName": "sample string 3",
"TaxPercentage": 4.0,
"TaxAmount": 5.0
},
{
"OrderTaxIDP": "c0b5fb31-de23-4cd1-82be-8350f94d4f92",
"TaxIDF": "d27f5f91-4c9c-4e5b-b69f-f93d8aafa4c8",
"TaxName": "sample string 3",
"TaxPercentage": 4.0,
"TaxAmount": 5.0
}
]
}
application/xml, text/xml
Sample:
<POSOrder_UpdateOrderPayRequestClass xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SQLClass">
<AdditionalNotes>sample string 22</AdditionalNotes>
<AdjustedAmount>1</AdjustedAmount>
<BranchIDF>a39c5a74-56ac-4b6a-8181-32f2c69994da</BranchIDF>
<CounterBalanceHistoryIDF>4d2d86f5-a02a-414a-8118-c4b635fd347e</CounterBalanceHistoryIDF>
<CounterIDF>99646fa2-48e8-4085-a84c-c695002645ff</CounterIDF>
<DiscountTotal>15</DiscountTotal>
<GrandTotal>20</GrandTotal>
<ItemTaxTotal>16</ItemTaxTotal>
<ItemTotal>13</ItemTotal>
<KOTMenu>
<POSOrder_KOTMenuItemDetailClass>
<AllModifierIDFs>sample string 11</AllModifierIDFs>
<AllModifierPrices>sample string 10</AllModifierPrices>
<DiscountPercentage>6</DiscountPercentage>
<DiscountedItemAmount>14</DiscountedItemAmount>
<DiscountedItemTotalAmount>15</DiscountedItemTotalAmount>
<ItemAdditionalNotes>sample string 22</ItemAdditionalNotes>
<ItemDiscountPrice>13</ItemDiscountPrice>
<ItemDiscountPriceTotal>20</ItemDiscountPriceTotal>
<ItemModifierTotal>19</ItemModifierTotal>
<ItemName>sample string 7</ItemName>
<ItemTaxPercent>9</ItemTaxPercent>
<ItemTaxPrice>16</ItemTaxPrice>
<ItemTotal>17</ItemTotal>
<ItemTotalTaxPrice>18</ItemTotalTaxPrice>
<ItemVariantName>sample string 8</ItemVariantName>
<MenuItemIDF>5c8a65c3-cec8-4f6e-b610-0b27429af802</MenuItemIDF>
<OrderDetailIDP>4863b5ba-6f86-40ba-b2eb-4884388a1e7e</OrderDetailIDP>
<Quantity>5</Quantity>
<TotalItemAmount>21</TotalItemAmount>
<VariantIDF>e116ae1f-addf-4a9b-a31c-d9108f2b95b0</VariantIDF>
<VariantPrice>12</VariantPrice>
<IsCancelOrder>true</IsCancelOrder>
</POSOrder_KOTMenuItemDetailClass>
<POSOrder_KOTMenuItemDetailClass>
<AllModifierIDFs>sample string 11</AllModifierIDFs>
<AllModifierPrices>sample string 10</AllModifierPrices>
<DiscountPercentage>6</DiscountPercentage>
<DiscountedItemAmount>14</DiscountedItemAmount>
<DiscountedItemTotalAmount>15</DiscountedItemTotalAmount>
<ItemAdditionalNotes>sample string 22</ItemAdditionalNotes>
<ItemDiscountPrice>13</ItemDiscountPrice>
<ItemDiscountPriceTotal>20</ItemDiscountPriceTotal>
<ItemModifierTotal>19</ItemModifierTotal>
<ItemName>sample string 7</ItemName>
<ItemTaxPercent>9</ItemTaxPercent>
<ItemTaxPrice>16</ItemTaxPrice>
<ItemTotal>17</ItemTotal>
<ItemTotalTaxPrice>18</ItemTotalTaxPrice>
<ItemVariantName>sample string 8</ItemVariantName>
<MenuItemIDF>5c8a65c3-cec8-4f6e-b610-0b27429af802</MenuItemIDF>
<OrderDetailIDP>4863b5ba-6f86-40ba-b2eb-4884388a1e7e</OrderDetailIDP>
<Quantity>5</Quantity>
<TotalItemAmount>21</TotalItemAmount>
<VariantIDF>e116ae1f-addf-4a9b-a31c-d9108f2b95b0</VariantIDF>
<VariantPrice>12</VariantPrice>
<IsCancelOrder>true</IsCancelOrder>
</POSOrder_KOTMenuItemDetailClass>
</KOTMenu>
<ModifierTotal>14</ModifierTotal>
<OrderDate>sample string 9</OrderDate>
<OrderMenu>
<POSOrder_MenuItemDetailClass>
<AllModifierIDFs>sample string 10</AllModifierIDFs>
<AllModifierPrices>sample string 9</AllModifierPrices>
<DiscountPercentage>5</DiscountPercentage>
<DiscountedItemAmount>13</DiscountedItemAmount>
<DiscountedItemTotalAmount>14</DiscountedItemTotalAmount>
<ItemAdditionalNotes>sample string 21</ItemAdditionalNotes>
<ItemDiscountPrice>12</ItemDiscountPrice>
<ItemDiscountPriceTotal>19</ItemDiscountPriceTotal>
<ItemModifierTotal>18</ItemModifierTotal>
<ItemName>sample string 6</ItemName>
<ItemTaxPercent>8</ItemTaxPercent>
<ItemTaxPrice>15</ItemTaxPrice>
<ItemTotal>16</ItemTotal>
<ItemTotalTaxPrice>17</ItemTotalTaxPrice>
<ItemVariantName>sample string 7</ItemVariantName>
<MenuItemIDF>ba75718e-09a1-4360-af3c-cdff1f2aade5</MenuItemIDF>
<OrderDetailIDP>0e2d07e1-c757-4ad2-bac3-bffad5255f89</OrderDetailIDP>
<Quantity>4</Quantity>
<TotalItemAmount>20</TotalItemAmount>
<VariantIDF>c526d477-a4ef-4022-b785-9ee95e4e307f</VariantIDF>
<VariantPrice>11</VariantPrice>
</POSOrder_MenuItemDetailClass>
<POSOrder_MenuItemDetailClass>
<AllModifierIDFs>sample string 10</AllModifierIDFs>
<AllModifierPrices>sample string 9</AllModifierPrices>
<DiscountPercentage>5</DiscountPercentage>
<DiscountedItemAmount>13</DiscountedItemAmount>
<DiscountedItemTotalAmount>14</DiscountedItemTotalAmount>
<ItemAdditionalNotes>sample string 21</ItemAdditionalNotes>
<ItemDiscountPrice>12</ItemDiscountPrice>
<ItemDiscountPriceTotal>19</ItemDiscountPriceTotal>
<ItemModifierTotal>18</ItemModifierTotal>
<ItemName>sample string 6</ItemName>
<ItemTaxPercent>8</ItemTaxPercent>
<ItemTaxPrice>15</ItemTaxPrice>
<ItemTotal>16</ItemTotal>
<ItemTotalTaxPrice>17</ItemTotalTaxPrice>
<ItemVariantName>sample string 7</ItemVariantName>
<MenuItemIDF>ba75718e-09a1-4360-af3c-cdff1f2aade5</MenuItemIDF>
<OrderDetailIDP>0e2d07e1-c757-4ad2-bac3-bffad5255f89</OrderDetailIDP>
<Quantity>4</Quantity>
<TotalItemAmount>20</TotalItemAmount>
<VariantIDF>c526d477-a4ef-4022-b785-9ee95e4e307f</VariantIDF>
<VariantPrice>11</VariantPrice>
</POSOrder_MenuItemDetailClass>
</OrderMenu>
<OrderStatus>sample string 10</OrderStatus>
<OrderTax>
<POSOrder_OrderTaxDetailClass>
<OrderTaxIDP>c0b5fb31-de23-4cd1-82be-8350f94d4f92</OrderTaxIDP>
<TaxAmount>5</TaxAmount>
<TaxIDF>d27f5f91-4c9c-4e5b-b69f-f93d8aafa4c8</TaxIDF>
<TaxName>sample string 3</TaxName>
<TaxPercentage>4</TaxPercentage>
</POSOrder_OrderTaxDetailClass>
<POSOrder_OrderTaxDetailClass>
<OrderTaxIDP>c0b5fb31-de23-4cd1-82be-8350f94d4f92</OrderTaxIDP>
<TaxAmount>5</TaxAmount>
<TaxIDF>d27f5f91-4c9c-4e5b-b69f-f93d8aafa4c8</TaxIDF>
<TaxName>sample string 3</TaxName>
<TaxPercentage>4</TaxPercentage>
</POSOrder_OrderTaxDetailClass>
</OrderTax>
<PackagingName>sample string 23</PackagingName>
<PaymentStatus>sample string 11</PaymentStatus>
<QuantityTotal>12</QuantityTotal>
<RestaurantIDF>86ad1dc6-26f5-49f2-aa64-c4d8220096e2</RestaurantIDF>
<SubTotal>17</SubTotal>
<TaxAmountTotal>18</TaxAmountTotal>
<TotalAmount>19</TotalAmount>
<TrackingOrderID>sample string 8</TrackingOrderID>
<UserIDF>e36f5853-a50c-4c0e-b8dc-0528cf6a59bd</UserIDF>
<DueAmountCash>1</DueAmountCash>
<PayAmountCash>1</PayAmountCash>
<PaymentGatewayIDF>d68aa56c-cf86-4852-9839-13fb56dd5923</PaymentGatewayIDF>
<PaymentGatewayNo>3</PaymentGatewayNo>
<PaymentGatewaySettingIDF>e867fc52-a0a7-4f14-a8fa-86ae0d9ea36c</PaymentGatewaySettingIDF>
<PaymentResponse>
<POSOrder_PaymentResponseClass>
<DueAmountCash>1</DueAmountCash>
<PaidAmount>5</PaidAmount>
<PayAmountCash>1</PayAmountCash>
<PaymentGatewayNo>sample string 8</PaymentGatewayNo>
<PaymentStatus>sample string 4</PaymentStatus>
<RequestData>sample string 6</RequestData>
<ResponseCode>sample string 2</ResponseCode>
<ResponseData>sample string 7</ResponseData>
<ResponseMessage>sample string 3</ResponseMessage>
<ReturnAmountCash>1</ReturnAmountCash>
<TransactionID>sample string 1</TransactionID>
</POSOrder_PaymentResponseClass>
<POSOrder_PaymentResponseClass>
<DueAmountCash>1</DueAmountCash>
<PaidAmount>5</PaidAmount>
<PayAmountCash>1</PayAmountCash>
<PaymentGatewayNo>sample string 8</PaymentGatewayNo>
<PaymentStatus>sample string 4</PaymentStatus>
<RequestData>sample string 6</RequestData>
<ResponseCode>sample string 2</ResponseCode>
<ResponseData>sample string 7</ResponseData>
<ResponseMessage>sample string 3</ResponseMessage>
<ReturnAmountCash>1</ReturnAmountCash>
<TransactionID>sample string 1</TransactionID>
</POSOrder_PaymentResponseClass>
</PaymentResponse>
<ReturnAmountCash>1</ReturnAmountCash>
</POSOrder_UpdateOrderPayRequestClass>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
HttpResponseMessage| Name | Description | Type | Additional information |
|---|---|---|---|
| Version | Version |
None. |
|
| Content | HttpContent |
None. |
|
| StatusCode | HttpStatusCode |
None. |
|
| ReasonPhrase | string |
None. |
|
| Headers | Collection of Object |
None. |
|
| RequestMessage | HttpRequestMessage |
None. |
|
| IsSuccessStatusCode | boolean |
None. |