POST api/Items/CalculateFreight?DocCurrency={DocCurrency}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
DocCurrency

string

Required

Body Parameters

Collection of ItemToFreight
NameDescriptionTypeAdditional information
ItemCode

string

None.

ItemName

string

None.

TaxCode

string

None.

TaxRate

decimal number

None.

CardCode

string

None.

Quantity

decimal number

None.

Price

decimal number

None.

WhsCode

string

None.

SUoMEntry

integer

None.

Request Formats

application/json, text/json

Sample:
[
  {
    "ItemCode": "sample string 1",
    "ItemName": "sample string 2",
    "TaxCode": "sample string 3",
    "TaxRate": 4.0,
    "CardCode": "sample string 5",
    "Quantity": 6.0,
    "Price": 7.0,
    "WhsCode": "sample string 8",
    "SUoMEntry": 9
  },
  {
    "ItemCode": "sample string 1",
    "ItemName": "sample string 2",
    "TaxCode": "sample string 3",
    "TaxRate": 4.0,
    "CardCode": "sample string 5",
    "Quantity": 6.0,
    "Price": 7.0,
    "WhsCode": "sample string 8",
    "SUoMEntry": 9
  }
]

application/xml, text/xml

Sample:
<ArrayOfItemToFreight xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CLMLTEMA.MODELS">
  <ItemToFreight>
    <CardCode>sample string 5</CardCode>
    <ItemCode>sample string 1</ItemCode>
    <ItemName>sample string 2</ItemName>
    <Price>7</Price>
    <Quantity>6</Quantity>
    <SUoMEntry>9</SUoMEntry>
    <TaxCode>sample string 3</TaxCode>
    <TaxRate>4</TaxRate>
    <WhsCode>sample string 8</WhsCode>
  </ItemToFreight>
  <ItemToFreight>
    <CardCode>sample string 5</CardCode>
    <ItemCode>sample string 1</ItemCode>
    <ItemName>sample string 2</ItemName>
    <Price>7</Price>
    <Quantity>6</Quantity>
    <SUoMEntry>9</SUoMEntry>
    <TaxCode>sample string 3</TaxCode>
    <TaxRate>4</TaxRate>
    <WhsCode>sample string 8</WhsCode>
  </ItemToFreight>
</ArrayOfItemToFreight>

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.