POST api/POSOrder/CreateAndPayOrder
Request Information
URI Parameters
None.
Body Parameters
POSOrder_CreateOrderPayRequestClass| 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. |
|
| OrderType | integer |
None. |
|
| OrderSource | integer |
None. |
|
| OrderStatus | string |
None. |
|
| PaymentStatus | string |
None. |
|
| SeatIDF | globally unique identifier |
None. |
|
| TableNo | 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. |
|
| CustomerIDF | globally unique identifier |
None. |
|
| Name | string |
None. |
|
| string |
None. |
||
| PhoneCountryCode | string |
None. |
|
| PhoneNumber | string |
None. |
|
| AdditionalNotes | string |
None. |
|
| PackagingName | string |
None. |
|
| EnvironmentType | integer |
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": "ad98cbe2-42bd-4bdd-a475-779a5ef85d6c",
"PaymentGatewaySettingIDF": "e98e5ffe-76ba-43f4-973a-68df97263a9f",
"PaymentGatewayNo": 3,
"PayAmountCash": 1.0,
"DueAmountCash": 1.0,
"ReturnAmountCash": 1.0,
"RestaurantIDF": "ba1022da-6757-425a-9670-54ea1caad09f",
"BranchIDF": "d4854032-9f0d-45b4-8c15-22e61292d1b7",
"CounterIDF": "5bd3e24f-4d05-45c3-86ce-1ec80b175e63",
"CounterBalanceHistoryIDF": "1c107730-4766-4d92-b073-ce539296989b",
"TrackingOrderID": "sample string 8",
"OrderDate": "sample string 9",
"OrderType": 10,
"OrderSource": 11,
"OrderStatus": "sample string 12",
"PaymentStatus": "sample string 13",
"SeatIDF": "55e78239-e4b1-454a-9f03-5ede9134f237",
"TableNo": "sample string 14",
"QuantityTotal": 15,
"ItemTotal": 16.0,
"ModifierTotal": 17.0,
"DiscountTotal": 18.0,
"ItemTaxTotal": 19.0,
"SubTotal": 20.0,
"TaxAmountTotal": 21.0,
"TotalAmount": 22.0,
"AdjustedAmount": 23.0,
"GrandTotal": 24.0,
"UserIDF": "b7ff0ab6-b6ab-4db8-81b4-bee52df634b5",
"CustomerIDF": "9b3f6b21-3665-4d9b-91ea-6fff4243ab9b",
"Name": "sample string 26",
"Email": "sample string 27",
"PhoneCountryCode": "sample string 28",
"PhoneNumber": "sample string 29",
"AdditionalNotes": "sample string 30",
"PackagingName": "sample string 31",
"EnvironmentType": 32,
"OrderMenu": [
{
"OrderDetailIDP": "1f14345e-cf23-4718-ae06-b73375ff2f87",
"MenuItemIDF": "9ef79cad-ac2e-46e6-a52d-999324177ed6",
"VariantIDF": "fb269975-0898-42a7-9700-8db0e70d41f1",
"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": "1f14345e-cf23-4718-ae06-b73375ff2f87",
"MenuItemIDF": "9ef79cad-ac2e-46e6-a52d-999324177ed6",
"VariantIDF": "fb269975-0898-42a7-9700-8db0e70d41f1",
"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": "f7f5cfa2-2d8e-49f5-8952-e41c19bf4866",
"MenuItemIDF": "e8328c26-99c3-4bec-8544-5eccf358dca3",
"VariantIDF": "9cbbead1-0c84-4525-9a89-3fde3d0ecf29",
"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": "f7f5cfa2-2d8e-49f5-8952-e41c19bf4866",
"MenuItemIDF": "e8328c26-99c3-4bec-8544-5eccf358dca3",
"VariantIDF": "9cbbead1-0c84-4525-9a89-3fde3d0ecf29",
"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": "ee97f972-2755-4eed-b2d2-d5bab43fbc8b",
"TaxIDF": "0e6b0766-2415-4482-b25c-bf4fff4d2f86",
"TaxName": "sample string 3",
"TaxPercentage": 4.0,
"TaxAmount": 5.0
},
{
"OrderTaxIDP": "ee97f972-2755-4eed-b2d2-d5bab43fbc8b",
"TaxIDF": "0e6b0766-2415-4482-b25c-bf4fff4d2f86",
"TaxName": "sample string 3",
"TaxPercentage": 4.0,
"TaxAmount": 5.0
}
]
}
application/xml, text/xml
Sample:
<POSOrder_CreateOrderPayRequestClass xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SQLClass">
<AdditionalNotes>sample string 30</AdditionalNotes>
<AdjustedAmount>23</AdjustedAmount>
<BranchIDF>d4854032-9f0d-45b4-8c15-22e61292d1b7</BranchIDF>
<CounterBalanceHistoryIDF>1c107730-4766-4d92-b073-ce539296989b</CounterBalanceHistoryIDF>
<CounterIDF>5bd3e24f-4d05-45c3-86ce-1ec80b175e63</CounterIDF>
<CustomerIDF>9b3f6b21-3665-4d9b-91ea-6fff4243ab9b</CustomerIDF>
<DiscountTotal>18</DiscountTotal>
<Email>sample string 27</Email>
<EnvironmentType>32</EnvironmentType>
<GrandTotal>24</GrandTotal>
<ItemTaxTotal>19</ItemTaxTotal>
<ItemTotal>16</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>e8328c26-99c3-4bec-8544-5eccf358dca3</MenuItemIDF>
<OrderDetailIDP>f7f5cfa2-2d8e-49f5-8952-e41c19bf4866</OrderDetailIDP>
<Quantity>5</Quantity>
<TotalItemAmount>21</TotalItemAmount>
<VariantIDF>9cbbead1-0c84-4525-9a89-3fde3d0ecf29</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>e8328c26-99c3-4bec-8544-5eccf358dca3</MenuItemIDF>
<OrderDetailIDP>f7f5cfa2-2d8e-49f5-8952-e41c19bf4866</OrderDetailIDP>
<Quantity>5</Quantity>
<TotalItemAmount>21</TotalItemAmount>
<VariantIDF>9cbbead1-0c84-4525-9a89-3fde3d0ecf29</VariantIDF>
<VariantPrice>12</VariantPrice>
<IsCancelOrder>true</IsCancelOrder>
</POSOrder_KOTMenuItemDetailClass>
</KOTMenu>
<ModifierTotal>17</ModifierTotal>
<Name>sample string 26</Name>
<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>9ef79cad-ac2e-46e6-a52d-999324177ed6</MenuItemIDF>
<OrderDetailIDP>1f14345e-cf23-4718-ae06-b73375ff2f87</OrderDetailIDP>
<Quantity>4</Quantity>
<TotalItemAmount>20</TotalItemAmount>
<VariantIDF>fb269975-0898-42a7-9700-8db0e70d41f1</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>9ef79cad-ac2e-46e6-a52d-999324177ed6</MenuItemIDF>
<OrderDetailIDP>1f14345e-cf23-4718-ae06-b73375ff2f87</OrderDetailIDP>
<Quantity>4</Quantity>
<TotalItemAmount>20</TotalItemAmount>
<VariantIDF>fb269975-0898-42a7-9700-8db0e70d41f1</VariantIDF>
<VariantPrice>11</VariantPrice>
</POSOrder_MenuItemDetailClass>
</OrderMenu>
<OrderSource>11</OrderSource>
<OrderStatus>sample string 12</OrderStatus>
<OrderTax>
<POSOrder_OrderTaxDetailClass>
<OrderTaxIDP>ee97f972-2755-4eed-b2d2-d5bab43fbc8b</OrderTaxIDP>
<TaxAmount>5</TaxAmount>
<TaxIDF>0e6b0766-2415-4482-b25c-bf4fff4d2f86</TaxIDF>
<TaxName>sample string 3</TaxName>
<TaxPercentage>4</TaxPercentage>
</POSOrder_OrderTaxDetailClass>
<POSOrder_OrderTaxDetailClass>
<OrderTaxIDP>ee97f972-2755-4eed-b2d2-d5bab43fbc8b</OrderTaxIDP>
<TaxAmount>5</TaxAmount>
<TaxIDF>0e6b0766-2415-4482-b25c-bf4fff4d2f86</TaxIDF>
<TaxName>sample string 3</TaxName>
<TaxPercentage>4</TaxPercentage>
</POSOrder_OrderTaxDetailClass>
</OrderTax>
<OrderType>10</OrderType>
<PackagingName>sample string 31</PackagingName>
<PaymentStatus>sample string 13</PaymentStatus>
<PhoneCountryCode>sample string 28</PhoneCountryCode>
<PhoneNumber>sample string 29</PhoneNumber>
<QuantityTotal>15</QuantityTotal>
<RestaurantIDF>ba1022da-6757-425a-9670-54ea1caad09f</RestaurantIDF>
<SeatIDF>55e78239-e4b1-454a-9f03-5ede9134f237</SeatIDF>
<SubTotal>20</SubTotal>
<TableNo>sample string 14</TableNo>
<TaxAmountTotal>21</TaxAmountTotal>
<TotalAmount>22</TotalAmount>
<TrackingOrderID>sample string 8</TrackingOrderID>
<UserIDF>b7ff0ab6-b6ab-4db8-81b4-bee52df634b5</UserIDF>
<DueAmountCash>1</DueAmountCash>
<PayAmountCash>1</PayAmountCash>
<PaymentGatewayIDF>ad98cbe2-42bd-4bdd-a475-779a5ef85d6c</PaymentGatewayIDF>
<PaymentGatewayNo>3</PaymentGatewayNo>
<PaymentGatewaySettingIDF>e98e5ffe-76ba-43f4-973a-68df97263a9f</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_CreateOrderPayRequestClass>
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. |