POST api/forb2b/create-order
Request Information
URI Parameters
None.
Body Parameters
OrderDetails| Name | Description | Type | Additional information |
|---|---|---|---|
| CustomerId | string |
Required |
|
| OrderId | string |
None. |
|
| OrderStatus | string |
None. |
|
| ShippingId | string |
Required |
|
| Name | string |
Required |
|
| MobileNo | string |
Required |
|
| EmailId | string |
Required |
|
| Address | string |
Required |
|
| Landmark | string |
None. |
|
| City | integer |
Required |
|
| State | integer |
Required |
|
| Pincode | string |
Required |
|
| WorkType | string |
Required |
|
| Notes | string |
None. |
|
| CouponType | string |
None. |
|
| TransactionId | string |
None. |
|
| LoginType | string |
None. |
|
| OrderOn | string |
None. |
|
| PaymentMethod | string |
Required |
|
| OrderType | string |
None. |
|
| TotalMRP | decimal number |
Required |
|
| TotalPrice | decimal number |
Required |
|
| TotalAmount | decimal number |
Required |
|
| TotalDiscount | decimal number |
Required |
|
| DeliveryCharge | decimal number |
Required |
|
| CouponId | integer |
None. |
|
| CouponAmount | decimal number |
None. |
|
| OrderProductLists | Collection of OrderProductList |
None. |
Request Formats
application/json, text/json
Sample:
{
"CustomerId": "sample string 1",
"OrderId": "sample string 2",
"OrderStatus": "sample string 3",
"ShippingId": "sample string 4",
"Name": "sample string 5",
"MobileNo": "sample string 6",
"EmailId": "sample string 7",
"Address": "sample string 8",
"Landmark": "sample string 9",
"City": 10,
"State": 11,
"Pincode": "sample string 12",
"WorkType": "sample string 13",
"Notes": "sample string 14",
"CouponType": "sample string 15",
"TransactionId": "sample string 16",
"LoginType": "sample string 17",
"OrderOn": "sample string 18",
"PaymentMethod": "sample string 19",
"OrderType": "sample string 20",
"TotalMRP": 21.0,
"TotalPrice": 22.0,
"TotalAmount": 23.0,
"TotalDiscount": 24.0,
"DeliveryCharge": 25.0,
"CouponId": 1,
"CouponAmount": 1.0,
"OrderProductLists": [
{
"ProductId": 1,
"RamId": 2,
"RomId": 3,
"ColorId": 4,
"Quantity": 5,
"Discount": 6,
"TotalMRP": 7.0,
"TotalPrice": 8.0,
"DiscountAmount": 9.0,
"SubTotalMRP": 10.0,
"SubTotalDiscount": 11.0,
"SubTotalPrice": 12.0
},
{
"ProductId": 1,
"RamId": 2,
"RomId": 3,
"ColorId": 4,
"Quantity": 5,
"Discount": 6,
"TotalMRP": 7.0,
"TotalPrice": 8.0,
"DiscountAmount": 9.0,
"SubTotalMRP": 10.0,
"SubTotalDiscount": 11.0,
"SubTotalPrice": 12.0
}
]
}
application/xml, text/xml
Sample:
<OrderDetails xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/fonofy_api.Model">
<Address>sample string 8</Address>
<City>10</City>
<CouponAmount>1</CouponAmount>
<CouponId>1</CouponId>
<CouponType>sample string 15</CouponType>
<CustomerId>sample string 1</CustomerId>
<DeliveryCharge>25</DeliveryCharge>
<EmailId>sample string 7</EmailId>
<Landmark>sample string 9</Landmark>
<LoginType>sample string 17</LoginType>
<MobileNo>sample string 6</MobileNo>
<Name>sample string 5</Name>
<Notes>sample string 14</Notes>
<OrderId>sample string 2</OrderId>
<OrderOn>sample string 18</OrderOn>
<OrderProductLists>
<OrderProductList>
<ColorId>4</ColorId>
<Discount>6</Discount>
<DiscountAmount>9</DiscountAmount>
<ProductId>1</ProductId>
<Quantity>5</Quantity>
<RamId>2</RamId>
<RomId>3</RomId>
<SubTotalDiscount>11</SubTotalDiscount>
<SubTotalMRP>10</SubTotalMRP>
<SubTotalPrice>12</SubTotalPrice>
<TotalMRP>7</TotalMRP>
<TotalPrice>8</TotalPrice>
</OrderProductList>
<OrderProductList>
<ColorId>4</ColorId>
<Discount>6</Discount>
<DiscountAmount>9</DiscountAmount>
<ProductId>1</ProductId>
<Quantity>5</Quantity>
<RamId>2</RamId>
<RomId>3</RomId>
<SubTotalDiscount>11</SubTotalDiscount>
<SubTotalMRP>10</SubTotalMRP>
<SubTotalPrice>12</SubTotalPrice>
<TotalMRP>7</TotalMRP>
<TotalPrice>8</TotalPrice>
</OrderProductList>
</OrderProductLists>
<OrderStatus>sample string 3</OrderStatus>
<OrderType>sample string 20</OrderType>
<PaymentMethod>sample string 19</PaymentMethod>
<Pincode>sample string 12</Pincode>
<ShippingId>sample string 4</ShippingId>
<State>11</State>
<TotalAmount>23</TotalAmount>
<TotalDiscount>24</TotalDiscount>
<TotalMRP>21</TotalMRP>
<TotalPrice>22</TotalPrice>
<TransactionId>sample string 16</TransactionId>
<WorkType>sample string 13</WorkType>
</OrderDetails>
application/x-www-form-urlencoded
Sample:
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. |