POST api/Order/CreateOrder

Request Information

URI Parameters

None.

Body Parameters

Order
NameDescriptionTypeAdditional information
User_Id

integer

None.

User_IP

string

None.

User_Name

string

None.

User_Description

string

None.

User_Address

string

None.

User_PostCode

string

None.

User_Phone

string

None.

User_Email

string

None.

Description

string

None.

OrderDate

date

None.

IsTrueInfo

boolean

None.

PaymentStatus

boolean

None.

StepsOfOrder

string

None.

FinalPrice

decimal number

None.

body

string

None.

IsNew

boolean

None.

IsClosed

boolean

None.

Tax

integer

None.

IsDeleted

boolean

None.

LogTime

string

None.

ExitTime

string

None.

User

User

None.

OrderState_Id

integer

None.

OrderType

string

None.

OrderState

OrderState

None.

OrderRooms

Collection of OrderRoom

None.

OrderFlights

Collection of OrderFlight

None.

OrderOptionss

Collection of OrderOptions

None.

UserPayments

Collection of UserPayment

None.

OrderTravelCafes

Collection of OrderTravelCafe

None.

Id

integer

None.

Request Formats

application/json

Sample:

An exception has occurred while using the formatter 'JsonMediaTypeFormatter' to generate sample for media type 'application/json'. Exception message: Self referencing loop detected with type 'ArNikAPI.DomainClasses.Security.User'. Path 'User.Roles[0].Users'.

text/json

Sample:

An exception has occurred while using the formatter 'JsonMediaTypeFormatter' to generate sample for media type 'text/json'. Exception message: Self referencing loop detected with type 'ArNikAPI.DomainClasses.Security.User'. Path 'User.Roles[0].Users'.

application/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'application/xml'. Exception message: Object graph for type 'ArNikAPI.DomainClasses.Orders.OrderFlight' contains cycles and cannot be serialized if reference tracking is disabled.

text/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'text/xml'. Exception message: Object graph for type 'ArNikAPI.DomainClasses.Orders.OrderFlight' contains cycles and cannot be serialized if reference tracking is disabled.

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 'Order'.

Response Information

Resource Description

integer

Response Formats

application/json, text/json

Sample:
1

application/xml, text/xml

Sample:
<long xmlns="http://schemas.microsoft.com/2003/10/Serialization/">1</long>