POST api/rating/carrier

Request Information

URI Parameters

None.

Body Parameters

BindCarrierRateViewModel
NameDescriptionTypeAdditional information
Type

string

None.

Name

string

Required

Description

string

None.

Rate

decimal number

Required

RateTypeId

integer

Required

ValidFrom

date

None.

ValidTo

date

None.

IsQuickAdd

boolean

None.

SiteId

integer

None.

ModeId

integer

None.

ServiceId

integer

None.

ServiceLevelId

integer

None.

EquipmentTypeId

integer

None.

EquipmentSizeId

integer

None.

CustomerIds

Collection of integer

None.

CarrierIds

Collection of integer

None.

PickUpAddress1

string

None.

PickUpAddress2

string

None.

PickUpZipCode

string

None.

PickUpCity

string

None.

PickUpState

string

None.

PickUpCountry

string

None.

DeliveryAddress1

string

None.

DeliveryAddress2

string

None.

DeliveryZipCode

string

None.

DeliveryCity

string

None.

DeliveryState

string

None.

DeliveryCountry

string

None.

FreeTime

decimal number

None.

MinCharge

decimal number

None.

MaxCharge

decimal number

None.

MaxPallets

integer

None.

MinPallets

integer

None.

PickupType

string

None.

Request Formats

application/json, text/json

Sample:
{
  "Type": "sample string 1",
  "Name": "sample string 2",
  "Description": "sample string 3",
  "Rate": 4.0,
  "RateTypeId": 5,
  "ValidFrom": "2025-12-05T20:22:16.7969036-08:00",
  "ValidTo": "2025-12-05T20:22:16.7969036-08:00",
  "IsQuickAdd": true,
  "SiteId": 1,
  "ModeId": 1,
  "ServiceId": 1,
  "ServiceLevelId": 1,
  "EquipmentTypeId": 1,
  "EquipmentSizeId": 1,
  "CustomerIds": [
    1,
    2
  ],
  "CarrierIds": [
    1,
    2
  ],
  "PickUpAddress1": "sample string 7",
  "PickUpAddress2": "sample string 8",
  "PickUpZipCode": "sample string 9",
  "PickUpCity": "sample string 10",
  "PickUpState": "sample string 11",
  "PickUpCountry": "sample string 12",
  "DeliveryAddress1": "sample string 13",
  "DeliveryAddress2": "sample string 14",
  "DeliveryZipCode": "sample string 15",
  "DeliveryCity": "sample string 16",
  "DeliveryState": "sample string 17",
  "DeliveryCountry": "sample string 18",
  "FreeTime": 1.0,
  "MinCharge": 1.0,
  "MaxCharge": 1.0,
  "MaxPallets": 1,
  "MinPallets": 1,
  "PickupType": "sample string 19"
}

application/xml, text/xml

Sample:
<BindCarrierRateViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/eMpowerCore.ViewModels.Rating.CarrierProfile">
  <CarrierIds xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:int>1</d2p1:int>
    <d2p1:int>2</d2p1:int>
  </CarrierIds>
  <CustomerIds xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:int>1</d2p1:int>
    <d2p1:int>2</d2p1:int>
  </CustomerIds>
  <DeliveryAddress1>sample string 13</DeliveryAddress1>
  <DeliveryAddress2>sample string 14</DeliveryAddress2>
  <DeliveryCity>sample string 16</DeliveryCity>
  <DeliveryCountry>sample string 18</DeliveryCountry>
  <DeliveryState>sample string 17</DeliveryState>
  <DeliveryZipCode>sample string 15</DeliveryZipCode>
  <Description>sample string 3</Description>
  <EquipmentSizeId>1</EquipmentSizeId>
  <EquipmentTypeId>1</EquipmentTypeId>
  <FreeTime>1</FreeTime>
  <IsQuickAdd>true</IsQuickAdd>
  <MaxCharge>1</MaxCharge>
  <MaxPallets>1</MaxPallets>
  <MinCharge>1</MinCharge>
  <MinPallets>1</MinPallets>
  <ModeId>1</ModeId>
  <Name>sample string 2</Name>
  <PickUpAddress1>sample string 7</PickUpAddress1>
  <PickUpAddress2>sample string 8</PickUpAddress2>
  <PickUpCity>sample string 10</PickUpCity>
  <PickUpCountry>sample string 12</PickUpCountry>
  <PickUpState>sample string 11</PickUpState>
  <PickUpZipCode>sample string 9</PickUpZipCode>
  <PickupType>sample string 19</PickupType>
  <Rate>4</Rate>
  <RateTypeId>5</RateTypeId>
  <ServiceId>1</ServiceId>
  <ServiceLevelId>1</ServiceLevelId>
  <SiteId>1</SiteId>
  <Type>sample string 1</Type>
  <ValidFrom>2025-12-05T20:22:16.7969036-08:00</ValidFrom>
  <ValidTo>2025-12-05T20:22:16.7969036-08:00</ValidTo>
</BindCarrierRateViewModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.