POST API/Orders/MakeOrder?key={key}

orderId greater than 0 -> Success -2 -> Required field is empty -3 -> Currency not exist -4 -> Coupon not valid -5 -> Coupon used -6 -> Coupon greater than the total -1 -> Error

Request Information

URI Parameters

NameDescriptionTypeAdditional information
key

string

Required

Body Parameters

OrderVmodel
NameDescriptionTypeAdditional information
userId

string

None.

addId

integer

None.

couponNo

string

None.

paymentMethodId

integer

None.

currencyId

integer

None.

proIds

string

None.

productOptionColorsId

string

None.

qtys

string

None.

prices

string

None.

shiftId

integer

None.

appLang

string

None.

Request Formats

application/json, text/json

Sample:
{
  "userId": "sample string 1",
  "addId": 2,
  "couponNo": "sample string 3",
  "paymentMethodId": 4,
  "currencyId": 5,
  "proIds": "sample string 6",
  "productOptionColorsId": "sample string 7",
  "qtys": "sample string 8",
  "prices": "sample string 9",
  "shiftId": 1,
  "appLang": "sample string 10"
}

text/html

Sample:
{"userId":"sample string 1","addId":2,"couponNo":"sample string 3","paymentMethodId":4,"currencyId":5,"proIds":"sample string 6","productOptionColorsId":"sample string 7","qtys":"sample string 8","prices":"sample string 9","shiftId":1,"appLang":"sample string 10"}

application/xml, text/xml

Sample:
<OrderVmodel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MubarkiyaApi.Models">
  <addId>2</addId>
  <appLang>sample string 10</appLang>
  <couponNo>sample string 3</couponNo>
  <currencyId>5</currencyId>
  <paymentMethodId>4</paymentMethodId>
  <prices>sample string 9</prices>
  <proIds>sample string 6</proIds>
  <productOptionColorsId>sample string 7</productOptionColorsId>
  <qtys>sample string 8</qtys>
  <shiftId>1</shiftId>
  <userId>sample string 1</userId>
</OrderVmodel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.