POST DistOneAPi/UPSReturnsMultipleRates

Request Information

URI Parameters

None.

Body Parameters

ShipRateViewModel
NameDescriptionTypeAdditional information
company_sy

string

None.

sf_contactname

string

None.

sf_companyname

string

None.

sf_street1

string

None.

sf_country

string

None.

sf_postalcode

string

None.

sf_city

string

None.

sf_phone

string

None.

sf_street2

string

None.

sf_state

string

None.

sf_email

string

None.

sf_fax

string

None.

st_contactname

string

None.

st_phone

string

None.

st_email

string

None.

st_street1

string

None.

st_city

string

None.

st_postalcode

string

None.

st_state

string

None.

st_country

string

None.

description

string

None.

weight_value

decimal number

None.

weight_unit

string

None.

ShipRateItemList

Collection of ShipRateItems

None.

Request Formats

application/json, text/json

Sample:
{
  "company_sy": "sample string 1",
  "sf_contactname": "sample string 2",
  "sf_companyname": "sample string 3",
  "sf_street1": "sample string 4",
  "sf_country": "sample string 5",
  "sf_postalcode": "sample string 6",
  "sf_city": "sample string 7",
  "sf_phone": "sample string 8",
  "sf_street2": "sample string 9",
  "sf_state": "sample string 10",
  "sf_email": "sample string 11",
  "sf_fax": "sample string 12",
  "st_contactname": "sample string 13",
  "st_phone": "sample string 14",
  "st_email": "sample string 15",
  "st_street1": "sample string 16",
  "st_city": "sample string 17",
  "st_postalcode": "sample string 18",
  "st_state": "sample string 19",
  "st_country": "sample string 20",
  "description": "sample string 21",
  "weight_value": 22.0,
  "weight_unit": "sample string 23",
  "ShipRateItemList": [
    {
      "itemname": "sample string 1",
      "origin_country": "sample string 2",
      "quantity": "sample string 3",
      "amount": 4.0,
      "currency": "sample string 5",
      "weight_value": 6.0,
      "weight_unit": "sample string 7",
      "sku": "sample string 8"
    },
    {
      "itemname": "sample string 1",
      "origin_country": "sample string 2",
      "quantity": "sample string 3",
      "amount": 4.0,
      "currency": "sample string 5",
      "weight_value": 6.0,
      "weight_unit": "sample string 7",
      "sku": "sample string 8"
    }
  ]
}

text/xml

Sample:
<ShipRateViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DistOneWebAPI.ViewModels">
  <ShipRateItemList>
    <ShipRateItems>
      <amount>4</amount>
      <currency>sample string 5</currency>
      <itemname>sample string 1</itemname>
      <origin_country>sample string 2</origin_country>
      <quantity>sample string 3</quantity>
      <sku>sample string 8</sku>
      <weight_unit>sample string 7</weight_unit>
      <weight_value>6</weight_value>
    </ShipRateItems>
    <ShipRateItems>
      <amount>4</amount>
      <currency>sample string 5</currency>
      <itemname>sample string 1</itemname>
      <origin_country>sample string 2</origin_country>
      <quantity>sample string 3</quantity>
      <sku>sample string 8</sku>
      <weight_unit>sample string 7</weight_unit>
      <weight_value>6</weight_value>
    </ShipRateItems>
  </ShipRateItemList>
  <company_sy>sample string 1</company_sy>
  <description>sample string 21</description>
  <sf_city>sample string 7</sf_city>
  <sf_companyname>sample string 3</sf_companyname>
  <sf_contactname>sample string 2</sf_contactname>
  <sf_country>sample string 5</sf_country>
  <sf_email>sample string 11</sf_email>
  <sf_fax>sample string 12</sf_fax>
  <sf_phone>sample string 8</sf_phone>
  <sf_postalcode>sample string 6</sf_postalcode>
  <sf_state>sample string 10</sf_state>
  <sf_street1>sample string 4</sf_street1>
  <sf_street2>sample string 9</sf_street2>
  <st_city>sample string 17</st_city>
  <st_contactname>sample string 13</st_contactname>
  <st_country>sample string 20</st_country>
  <st_email>sample string 15</st_email>
  <st_phone>sample string 14</st_phone>
  <st_postalcode>sample string 18</st_postalcode>
  <st_state>sample string 19</st_state>
  <st_street1>sample string 16</st_street1>
  <weight_unit>sample string 23</weight_unit>
  <weight_value>22</weight_value>
</ShipRateViewModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

Object

None.

Response Formats

application/json, text/json

Sample:
{}

text/xml

Sample:
<z:anyType xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns:z="http://schemas.microsoft.com/2003/10/Serialization/" />