POST api/web/WebCreateOrder

Créer une commande et la lock

Request Information

URI Parameters

None.

Body Parameters

Informations de création d'une commande

WebOrderCreate
NameDescriptionTypeAdditional information
Order_Num

string

None.

Date_Order

string

None.

Customer

string

None.

CustomerName

string

None.

State

string

None.

Date_Delivery

string

None.

User

string

None.

TourName

string

None.

TourCode

string

None.

Hours_Delivery

string

None.

PrepComment1

string

None.

PrepComment2

string

None.

PrepInfoLivr

string

None.

CustomerRef1

string

None.

CustomerRef2

string

None.

FlagOrder

string

None.

Language

string

None.

order_type

string

None.

vendeur

string

None.

Request Formats

application/json, text/json

Sample:
{
  "Order_Num": "sample string 1",
  "Date_Order": "sample string 2",
  "Customer": "sample string 3",
  "CustomerName": "sample string 4",
  "State": "sample string 5",
  "Date_Delivery": "sample string 6",
  "User": "sample string 7",
  "TourName": "sample string 8",
  "TourCode": "sample string 9",
  "Hours_Delivery": "sample string 10",
  "PrepComment1": "sample string 11",
  "PrepComment2": "sample string 12",
  "PrepInfoLivr": "sample string 13",
  "CustomerRef1": "sample string 14",
  "CustomerRef2": "sample string 15",
  "FlagOrder": "sample string 16",
  "Language": "sample string 17",
  "order_type": "sample string 18",
  "vendeur": "sample string 19"
}

application/xml, text/xml

Sample:
<WebOrderCreate xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SAGACore">
  <Customer>sample string 3</Customer>
  <CustomerName>sample string 4</CustomerName>
  <CustomerRef1>sample string 14</CustomerRef1>
  <CustomerRef2>sample string 15</CustomerRef2>
  <Date_Delivery>sample string 6</Date_Delivery>
  <Date_Order>sample string 2</Date_Order>
  <FlagOrder>sample string 16</FlagOrder>
  <Hours_Delivery>sample string 10</Hours_Delivery>
  <Language>sample string 17</Language>
  <Order_Num>sample string 1</Order_Num>
  <PrepComment1>sample string 11</PrepComment1>
  <PrepComment2>sample string 12</PrepComment2>
  <PrepInfoLivr>sample string 13</PrepInfoLivr>
  <State>sample string 5</State>
  <TourCode>sample string 9</TourCode>
  <TourName>sample string 8</TourName>
  <User>sample string 7</User>
  <order_type>sample string 18</order_type>
  <vendeur>sample string 19</vendeur>
</WebOrderCreate>

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

Response Information

Resource Description

Numéro de commande si création OK, vide si probleme

JSonGenericOfKeysWebOrder
NameDescriptionTypeAdditional information
Response

KeysWebOrder

None.

Datas

KeysWebOrder

None.

ServiceName

string

None.

Parameters

string

None.

Status

ReturnErrorStatus

None.

ErrorMessage

string

None.

Error

jsonExceptionIES

None.

Response Formats

application/json, text/json

Sample:
{
  "Response": {
    "Order_Num": "sample string 1",
    "Date_Order": "sample string 2",
    "Customer": "sample string 3"
  },
  "Datas": {
    "Order_Num": "sample string 1",
    "Date_Order": "sample string 2",
    "Customer": "sample string 3"
  },
  "ServiceName": "sample string 1",
  "Parameters": "sample string 2",
  "Status": 0,
  "ErrorMessage": "sample string 3",
  "Error": {
    "Code": "sample string 1",
    "Details": "sample string 2",
    "Message": "sample string 3",
    "Level": 1
  }
}

application/xml, text/xml

Sample:
<JSonGenericOfKeysWebOrderq8b3XWLw xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ForSagaMiddleware">
  <Error>
    <Code>sample string 1</Code>
    <Details>sample string 2</Details>
    <Level>Info</Level>
    <Message>sample string 3</Message>
  </Error>
  <ErrorMessage>sample string 3</ErrorMessage>
  <Parameters>sample string 2</Parameters>
  <ServiceName>sample string 1</ServiceName>
  <Status>Error</Status>
  <Datas xmlns:d2p1="http://schemas.datacontract.org/2004/07/SAGACore">
    <d2p1:Customer>sample string 3</d2p1:Customer>
    <d2p1:Date_Order>sample string 2</d2p1:Date_Order>
    <d2p1:Order_Num>sample string 1</d2p1:Order_Num>
  </Datas>
  <Response xmlns:d2p1="http://schemas.datacontract.org/2004/07/SAGACore">
    <d2p1:Customer>sample string 3</d2p1:Customer>
    <d2p1:Date_Order>sample string 2</d2p1:Date_Order>
    <d2p1:Order_Num>sample string 1</d2p1:Order_Num>
  </Response>
</JSonGenericOfKeysWebOrderq8b3XWLw>