POST api/order/submit
Request Information
URI Parameters
None.
Body Parameters
OrderVM| Name | Description | Type | Additional information |
|---|---|---|---|
| VendorID | integer |
None. |
|
| CivilID | string |
None. |
|
| CustomerID | integer |
None. |
|
| ShipToID | integer |
None. |
|
| GrandTotal | decimal number |
None. |
|
| Subtotal | decimal number |
None. |
|
| PaymentMethodID | integer |
None. |
|
| ShippingCharges | decimal number |
None. |
|
| ShippingInsurance | decimal number |
None. |
|
| Comment | string |
None. |
|
| BranchID | integer |
None. |
|
| Front_CID | string |
None. |
|
| Back_CID | string |
None. |
|
| PromoCode | string |
None. |
|
| DeliveryPercentage | decimal number |
None. |
|
| CurrencyISO | string |
None. |
|
| PromoCodeValue | decimal number |
None. |
|
| RedeemPoints | decimal number |
None. |
|
| RedeemPointValue | decimal number |
None. |
|
| FatoorahInvoiceId | string |
None. |
|
| Detail | Collection of OrderDetail |
None. |
|
| ShippingAddress | ShippingAddress |
None. |
|
| Flowers | Collection of OrderFlower |
None. |
Request Formats
application/json, text/json
Sample:
{
"VendorID": 1,
"CivilID": "sample string 2",
"CustomerID": 3,
"ShipToID": 4,
"GrandTotal": 5.0,
"Subtotal": 6.0,
"PaymentMethodID": 7,
"ShippingCharges": 8.0,
"ShippingInsurance": 9.0,
"Comment": "sample string 10",
"BranchID": 11,
"Front_CID": "sample string 12",
"Back_CID": "sample string 13",
"PromoCode": "sample string 14",
"DeliveryPercentage": 1.0,
"CurrencyISO": "sample string 15",
"PromoCodeValue": 1.0,
"RedeemPoints": 1.0,
"RedeemPointValue": 1.0,
"FatoorahInvoiceId": "sample string 16",
"Detail": [
{
"ProductID": 1,
"Price": 2.0,
"Qty": 3,
"Subtotal": 4.0,
"Discount": 5.0,
"RowSubtotal": 6.0,
"RingSize": 1.0
},
{
"ProductID": 1,
"Price": 2.0,
"Qty": 3,
"Subtotal": 4.0,
"Discount": 5.0,
"RowSubtotal": 6.0,
"RingSize": 1.0
}
],
"ShippingAddress": {
"NamePrefix": "sample string 1",
"Fullname": "sample string 2",
"StreetAddress": "sample string 3",
"CountryID": 4,
"StateProvinceID": 5,
"CityID": 6,
"PostalCode": "sample string 7",
"ContactNumber": "sample string 8",
"Block": "sample string 9",
"HouseNo": "sample string 10",
"FloorNo": "sample string 11",
"FlatNo": "sample string 12",
"Avenue": "sample string 13",
"Building": "sample string 14"
},
"Flowers": [
{
"FlowerID": 1,
"UnitPrice": 2.0
},
{
"FlowerID": 1,
"UnitPrice": 2.0
}
]
}
text/html
Sample:
{"VendorID":1,"CivilID":"sample string 2","CustomerID":3,"ShipToID":4,"GrandTotal":5.0,"Subtotal":6.0,"PaymentMethodID":7,"ShippingCharges":8.0,"ShippingInsurance":9.0,"Comment":"sample string 10","BranchID":11,"Front_CID":"sample string 12","Back_CID":"sample string 13","PromoCode":"sample string 14","DeliveryPercentage":1.0,"CurrencyISO":"sample string 15","PromoCodeValue":1.0,"RedeemPoints":1.0,"RedeemPointValue":1.0,"FatoorahInvoiceId":"sample string 16","Detail":[{"ProductID":1,"Price":2.0,"Qty":3,"Subtotal":4.0,"Discount":5.0,"RowSubtotal":6.0,"RingSize":1.0},{"ProductID":1,"Price":2.0,"Qty":3,"Subtotal":4.0,"Discount":5.0,"RowSubtotal":6.0,"RingSize":1.0}],"ShippingAddress":{"NamePrefix":"sample string 1","Fullname":"sample string 2","StreetAddress":"sample string 3","CountryID":4,"StateProvinceID":5,"CityID":6,"PostalCode":"sample string 7","ContactNumber":"sample string 8","Block":"sample string 9","HouseNo":"sample string 10","FloorNo":"sample string 11","FlatNo":"sample string 12","Avenue":"sample string 13","Building":"sample string 14"},"Flowers":[{"FlowerID":1,"UnitPrice":2.0},{"FlowerID":1,"UnitPrice":2.0}]}
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. |