POST api/WhatsAppOrderBot/CreateOrder
Request Information
URI Parameters
None.
Body Parameters
WhatsAppCreateOrder| Name | Description | Type | Additional information |
|---|---|---|---|
| BusinessId | integer |
None. |
|
| UserId | integer |
None. |
|
| CustomerId | integer |
None. |
|
| Channel | string |
None. |
|
| StockPointIds | string |
None. |
|
| serviceFee | decimal number |
None. |
|
| DeliveryAmount | decimal number |
None. |
|
| DeliveryLocation | string |
None. |
|
| DeliveryLatitude | string |
None. |
|
| DeliveryLongitude | string |
None. |
|
| OrderLocation | string |
None. |
|
| OrderLatitude | string |
None. |
|
| OrderLongitude | string |
None. |
|
| StateId | integer |
None. |
|
| cityname | string |
None. |
|
| OrderDateTime | string |
None. |
|
| OrderSource | string |
None. |
|
| details | Collection of Storedetails |
None. |
|
| CouponId | integer |
None. |
|
| couponDiscount | decimal number |
None. |
|
| Flag | integer |
None. |
|
| MeetingID | string |
None. |
|
| PromoPrice | decimal number |
None. |
|
| TotalAmount | decimal number |
None. |
|
| PaymentModeId | integer |
None. |
|
| OrderPaymentType | integer |
None. |
|
| PaymentOptionTypeName | string |
None. |
|
| TotalDiscount | decimal number |
None. |
Request Formats
application/json, text/json
Sample:
{
"BusinessId": 1,
"UserId": 2,
"CustomerId": 3,
"Channel": "sample string 4",
"StockPointIds": "sample string 5",
"serviceFee": 6.0,
"DeliveryAmount": 7.0,
"DeliveryLocation": "sample string 8",
"DeliveryLatitude": "sample string 9",
"DeliveryLongitude": "sample string 10",
"OrderLocation": "sample string 11",
"OrderLatitude": "sample string 12",
"OrderLongitude": "sample string 13",
"StateId": 14,
"cityname": "sample string 15",
"OrderDateTime": "sample string 16",
"OrderSource": "sample string 17",
"details": [
{
"ItemId": 1,
"SkulId": 2,
"Quantity": 3,
"PreOrderQuantity": 4,
"Price": 5.1,
"Discount": 6.1,
"Notes": "sample string 7",
"distributorId": 8,
"itemName": "sample string 9",
"skuCode": "sample string 10",
"promoprice": 11.1,
"stockPointId": 12,
"stockpointSellingPrice": 13.0,
"BundleSkuId": 14
},
{
"ItemId": 1,
"SkulId": 2,
"Quantity": 3,
"PreOrderQuantity": 4,
"Price": 5.1,
"Discount": 6.1,
"Notes": "sample string 7",
"distributorId": 8,
"itemName": "sample string 9",
"skuCode": "sample string 10",
"promoprice": 11.1,
"stockPointId": 12,
"stockpointSellingPrice": 13.0,
"BundleSkuId": 14
}
],
"CouponId": 18,
"couponDiscount": 19.0,
"Flag": 20,
"MeetingID": "sample string 21",
"PromoPrice": 22.0,
"TotalAmount": 23.0,
"PaymentModeId": 24,
"OrderPaymentType": 25,
"PaymentOptionTypeName": "sample string 26",
"TotalDiscount": 27.0
}
application/xml, text/xml
Sample:
<WhatsAppCreateOrder xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BOPWAAPI.Model">
<BusinessId>1</BusinessId>
<Channel>sample string 4</Channel>
<CouponId>18</CouponId>
<CustomerId>3</CustomerId>
<DeliveryAmount>7</DeliveryAmount>
<DeliveryLatitude>sample string 9</DeliveryLatitude>
<DeliveryLocation>sample string 8</DeliveryLocation>
<DeliveryLongitude>sample string 10</DeliveryLongitude>
<Flag>20</Flag>
<MeetingID>sample string 21</MeetingID>
<OrderDateTime>sample string 16</OrderDateTime>
<OrderLatitude>sample string 12</OrderLatitude>
<OrderLocation>sample string 11</OrderLocation>
<OrderLongitude>sample string 13</OrderLongitude>
<OrderPaymentType>25</OrderPaymentType>
<OrderSource>sample string 17</OrderSource>
<PaymentModeId>24</PaymentModeId>
<PaymentOptionTypeName>sample string 26</PaymentOptionTypeName>
<PromoPrice>22</PromoPrice>
<StateId>14</StateId>
<StockPointIds>sample string 5</StockPointIds>
<TotalAmount>23</TotalAmount>
<TotalDiscount>27</TotalDiscount>
<UserId>2</UserId>
<cityname>sample string 15</cityname>
<couponDiscount>19</couponDiscount>
<details>
<Storedetails>
<BundleSkuId>14</BundleSkuId>
<Discount>6.1</Discount>
<ItemId>1</ItemId>
<Notes>sample string 7</Notes>
<PreOrderQuantity>4</PreOrderQuantity>
<Price>5.1</Price>
<Quantity>3</Quantity>
<SkulId>2</SkulId>
<distributorId>8</distributorId>
<itemName>sample string 9</itemName>
<promoprice>11.1</promoprice>
<skuCode>sample string 10</skuCode>
<stockPointId>12</stockPointId>
<stockpointSellingPrice>13</stockpointSellingPrice>
</Storedetails>
<Storedetails>
<BundleSkuId>14</BundleSkuId>
<Discount>6.1</Discount>
<ItemId>1</ItemId>
<Notes>sample string 7</Notes>
<PreOrderQuantity>4</PreOrderQuantity>
<Price>5.1</Price>
<Quantity>3</Quantity>
<SkulId>2</SkulId>
<distributorId>8</distributorId>
<itemName>sample string 9</itemName>
<promoprice>11.1</promoprice>
<skuCode>sample string 10</skuCode>
<stockPointId>12</stockPointId>
<stockpointSellingPrice>13</stockpointSellingPrice>
</Storedetails>
</details>
<serviceFee>6</serviceFee>
</WhatsAppCreateOrder>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
VCAPIResponse| Name | Description | Type | Additional information |
|---|---|---|---|
| Version | string |
None. |
|
| dateTime | string |
None. |
|
| StatusCode | integer |
None. |
|
| ErrorMessage | string |
None. |
|
| Result | Object |
None. |
Response Formats
application/json, text/json
Sample:
{
"Version": "1.0.0",
"dateTime": "2025/11/01 09:52:16",
"StatusCode": 1,
"ErrorMessage": "sample string 2",
"Result": {}
}
application/xml, text/xml
Sample:
<VCAPIResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BOPWAAPI.Model"> <ErrorMessage>sample string 2</ErrorMessage> <Result /> <StatusCode>1</StatusCode> </VCAPIResponse>