POST api/Order/InsertOrder

Request Information

URI Parameters

None.

Body Parameters

SampleOrder
NameDescriptionTypeAdditional information
OrderId

integer

None.

Customer_Id

integer

None.

OrderStatus_Id

integer

None.

Date

string

None.

SubTotal

string

None.

GrandTotal

string

None.

Address

string

None.

PinCode

string

None.

CouponCode

string

None.

ReferralCode

string

None.

ShippingAddress

string

None.

Remark

string

None.

ShippingTime

string

None.

sample

Collection of SampleOrderDetails

None.

ReferralCodeAmount

string

None.

CouponAmount

string

None.

ReedemAmount

string

None.

ShippingCharges

string

None.

TotalSaving

string

None.

PaymentMode

string

None.

PaymentStatus

string

None.

Difference

string

None.

CreatedBy

string

None.

CreatedDate

string

None.

UpdatedBy

string

None.

UpdatedDate

string

None.

CancelBy

string

None.

CancelDate

string

None.

Disc

decimal number

None.

Request Formats

application/json, text/json

Sample:
{
  "OrderId": 1,
  "Customer_Id": 2,
  "OrderStatus_Id": 3,
  "Date": "sample string 4",
  "SubTotal": "sample string 5",
  "GrandTotal": "sample string 6",
  "Address": "sample string 7",
  "PinCode": "sample string 8",
  "CouponCode": "sample string 9",
  "ReferralCode": "sample string 10",
  "ShippingAddress": "sample string 11",
  "Remark": "sample string 12",
  "ShippingTime": "sample string 13",
  "sample": [
    {
      "$id": "2",
      "Id": 1,
      "Product_Id": 2,
      "Quantity": "sample string 3",
      "Rate": "sample string 4",
      "MRP": "sample string 5",
      "Amount": "sample string 6",
      "Order_Id": 7,
      "Product": "sample string 8",
      "Size_Id": "sample string 9",
      "Qty": 10,
      "OrderStatus_Id": 11,
      "Photo": "sample string 12",
      "Disc": 13.1
    },
    {
      "$ref": "2"
    }
  ],
  "ReferralCodeAmount": "sample string 14",
  "CouponAmount": "sample string 15",
  "ReedemAmount": "sample string 16",
  "ShippingCharges": "sample string 17",
  "TotalSaving": "sample string 18",
  "PaymentMode": "sample string 19",
  "PaymentStatus": "sample string 20",
  "Difference": "sample string 21",
  "CreatedBy": "sample string 22",
  "CreatedDate": "sample string 23",
  "UpdatedBy": "sample string 24",
  "UpdatedDate": "sample string 25",
  "CancelBy": "sample string 26",
  "CancelDate": "sample string 27",
  "Disc": 28.1
}

application/octet-stream

Sample:
{"$id":"1","OrderId":1,"Customer_Id":2,"OrderStatus_Id":3,"Date":"sample string 4","SubTotal":"sample string 5","GrandTotal":"sample string 6","Address":"sample string 7","PinCode":"sample string 8","CouponCode":"sample string 9","ReferralCode":"sample string 10","ShippingAddress":"sample string 11","Remark":"sample string 12","ShippingTime":"sample string 13","sample":[{"$id":"2","Id":1,"Product_Id":2,"Quantity":"sample string 3","Rate":"sample string 4","MRP":"sample string 5","Amount":"sample string 6","Order_Id":7,"Product":"sample string 8","Size_Id":"sample string 9","Qty":10,"OrderStatus_Id":11,"Photo":"sample string 12","Disc":13.1},{"$ref":"2"}],"ReferralCodeAmount":"sample string 14","CouponAmount":"sample string 15","ReedemAmount":"sample string 16","ShippingCharges":"sample string 17","TotalSaving":"sample string 18","PaymentMode":"sample string 19","PaymentStatus":"sample string 20","Difference":"sample string 21","CreatedBy":"sample string 22","CreatedDate":"sample string 23","UpdatedBy":"sample string 24","UpdatedDate":"sample string 25","CancelBy":"sample string 26","CancelDate":"sample string 27","Disc":28.1}

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'SampleOrder'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/octet-stream

Sample:

Sample not available.