POST Cargo/Post

Request Information

URI Parameters

None.

Body Parameters

CargoHX
NameDescriptionTypeAdditional information
CargoID

string

None.

CustomerFirstName

string

None.

CustomerLastName

string

None.

CustomerPhone

string

None.

CustomerTC

string

None.

DeliveryAddress

string

None.

DeliveryCityID

integer

None.

DeliveryNeighborhoodID

integer

None.

DeliveryCountyID

integer

None.

Desi

decimal number

None.

Weight

decimal number

None.

DeliveryCity

string

None.

DeliveryNeighborhood

string

None.

DeliveryCounty

string

None.

Request Formats

application/json, text/json

Sample:
{
  "CargoID": "sample string 1",
  "CustomerFirstName": "sample string 2",
  "CustomerLastName": "sample string 3",
  "CustomerPhone": "sample string 4",
  "CustomerTC": "sample string 5",
  "DeliveryAddress": "sample string 6",
  "DeliveryCityID": 7,
  "DeliveryNeighborhoodID": 8,
  "DeliveryCountyID": 9,
  "Desi": 10.0,
  "Weight": 11.0,
  "DeliveryCity": "sample string 12",
  "DeliveryNeighborhood": "sample string 13",
  "DeliveryCounty": "sample string 14"
}

application/xml, text/xml

Sample:
<CargoHX xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SehriNet.CargoPlus.Api.Models">
  <CargoID>sample string 1</CargoID>
  <CustomerFirstName>sample string 2</CustomerFirstName>
  <CustomerLastName>sample string 3</CustomerLastName>
  <CustomerPhone>sample string 4</CustomerPhone>
  <CustomerTC>sample string 5</CustomerTC>
  <DeliveryAddress>sample string 6</DeliveryAddress>
  <DeliveryCity>sample string 12</DeliveryCity>
  <DeliveryCityID>7</DeliveryCityID>
  <DeliveryCounty>sample string 14</DeliveryCounty>
  <DeliveryCountyID>9</DeliveryCountyID>
  <DeliveryNeighborhood>sample string 13</DeliveryNeighborhood>
  <DeliveryNeighborhoodID>8</DeliveryNeighborhoodID>
  <Desi>10</Desi>
  <Weight>11</Weight>
</CargoHX>

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

Response Information

Resource Description

PostResult
NameDescriptionTypeAdditional information
ID

integer

None.

id

string

None.

isSuccess

boolean

None.

Message

Exception

None.

MessageCustom

string

None.

Response Formats

application/json, text/json

Sample:
{
  "ID": 1,
  "id": "sample string 2",
  "isSuccess": true,
  "Message": {
    "ClassName": "System.Exception",
    "Message": null,
    "Data": null,
    "InnerException": null,
    "HelpURL": "sample string 1",
    "StackTraceString": null,
    "RemoteStackTraceString": null,
    "RemoteStackIndex": 0,
    "ExceptionMethod": null,
    "HResult": 3,
    "Source": "sample string 2",
    "WatsonBuckets": null
  },
  "MessageCustom": "sample string 4"
}

application/xml, text/xml

Sample:
<PostResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SehriNet.ETicaret.Models">
  <ID>1</ID>
  <Message xmlns:d2p1="http://schemas.datacontract.org/2004/07/System">
    <ClassName xmlns:d3p1="http://www.w3.org/2001/XMLSchema" i:type="d3p1:string" xmlns="">System.Exception</ClassName>
    <Message i:nil="true" xmlns="" />
    <Data i:nil="true" xmlns="" />
    <InnerException i:nil="true" xmlns="" />
    <HelpURL xmlns:d3p1="http://www.w3.org/2001/XMLSchema" i:type="d3p1:string" xmlns="">sample string 1</HelpURL>
    <StackTraceString i:nil="true" xmlns="" />
    <RemoteStackTraceString i:nil="true" xmlns="" />
    <RemoteStackIndex xmlns:d3p1="http://www.w3.org/2001/XMLSchema" i:type="d3p1:int" xmlns="">0</RemoteStackIndex>
    <ExceptionMethod i:nil="true" xmlns="" />
    <HResult xmlns:d3p1="http://www.w3.org/2001/XMLSchema" i:type="d3p1:int" xmlns="">3</HResult>
    <Source xmlns:d3p1="http://www.w3.org/2001/XMLSchema" i:type="d3p1:string" xmlns="">sample string 2</Source>
    <WatsonBuckets i:nil="true" xmlns="" />
  </Message>
  <MessageCustom>sample string 4</MessageCustom>
  <id>sample string 2</id>
  <isSuccess>true</isSuccess>
</PostResult>