POST api/ShipmentOrder

Request Information

URI Parameters

None.

Body Parameters

CreateShipmentOrderResource
NameDescriptionTypeAdditional information
ShipmentOrderType

ShipmentOrderType

Required

TransferType

TransferType

Required

IdContractor

integer

Required

IdOrigin

integer

None.

IdDestination

integer

Required

IdShippingCompany

integer

None.

Invoice

string

Required

Max length: 60

Quantity

integer

Required

AvailabilityType

AvailabilityType

None.

Comments

string

Max length: 8000

Request Formats

application/json, text/json

Sample:
{
  "ShipmentOrderType": 1,
  "TransferType": 1,
  "IdContractor": 1,
  "IdOrigin": 1,
  "IdDestination": 2,
  "IdShippingCompany": 1,
  "Invoice": "sample string 3",
  "Quantity": 4,
  "AvailabilityType": 0,
  "Comments": "sample string 5"
}

application/xml, text/xml

Sample:
<CreateShipmentOrderResource xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WkfGenericAPI.Models.Payloads.ShipmentOrder">
  <AvailabilityType>None</AvailabilityType>
  <Comments>sample string 5</Comments>
  <IdContractor>1</IdContractor>
  <IdDestination>2</IdDestination>
  <IdOrigin>1</IdOrigin>
  <IdShippingCompany>1</IdShippingCompany>
  <Invoice>sample string 3</Invoice>
  <Quantity>4</Quantity>
  <ShipmentOrderType>EntryOrder</ShipmentOrderType>
  <TransferType>GOOD</TransferType>
</CreateShipmentOrderResource>

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

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.