POST api/rating/charges?isCustomer={isCustomer}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| isCustomer | boolean |
Default value is False |
Body Parameters
BindChargeViewModel| Name | Description | Type | Additional information |
|---|---|---|---|
| Code | string |
None. |
|
| Name | string |
Required |
|
| Description | string |
None. |
|
| RateTypeId | integer |
Required |
|
| GLAccountId | integer |
Required |
|
| ServiceId | integer |
None. |
|
| ModeId | integer |
None. |
|
| ServiceLevelId | integer |
None. |
|
| EquipmentTypeId | integer |
None. |
|
| EquipmentSizeId | 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. |
|
| IsActive | boolean |
None. |
|
| ChargeOptionId | integer |
None. |
|
| OverrideBranchId | integer |
None. |
|
| OverrideDepartmentId | integer |
None. |
|
| GlAccounts | Collection of integer |
None. |
|
| IsForTwoTen | boolean |
None. |
|
| PickupType | string |
None. |
|
| MaxPallets | integer |
None. |
|
| MinPallets | integer |
None. |
|
| VendorTypeId | integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"Code": "sample string 1",
"Name": "sample string 2",
"Description": "sample string 3",
"RateTypeId": 4,
"GLAccountId": 5,
"ServiceId": 1,
"ModeId": 1,
"ServiceLevelId": 1,
"EquipmentTypeId": 1,
"EquipmentSizeId": 1,
"PickUpAddress1": "sample string 6",
"PickUpAddress2": "sample string 7",
"PickUpZipCode": "sample string 8",
"PickUpCity": "sample string 9",
"PickUpState": "sample string 10",
"PickUpCountry": "sample string 11",
"DeliveryAddress1": "sample string 12",
"DeliveryAddress2": "sample string 13",
"DeliveryZipCode": "sample string 14",
"DeliveryCity": "sample string 15",
"DeliveryState": "sample string 16",
"DeliveryCountry": "sample string 17",
"IsActive": true,
"ChargeOptionId": 1,
"OverrideBranchId": 1,
"OverrideDepartmentId": 1,
"GlAccounts": [
1,
2
],
"IsForTwoTen": true,
"PickupType": "sample string 20",
"MaxPallets": 1,
"MinPallets": 1,
"VendorTypeId": 1
}
application/xml, text/xml
Sample:
<BindChargeViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/eMpowerCore.ViewModels.Charges">
<ChargeOptionId>1</ChargeOptionId>
<Code>sample string 1</Code>
<DeliveryAddress1>sample string 12</DeliveryAddress1>
<DeliveryAddress2>sample string 13</DeliveryAddress2>
<DeliveryCity>sample string 15</DeliveryCity>
<DeliveryCountry>sample string 17</DeliveryCountry>
<DeliveryState>sample string 16</DeliveryState>
<DeliveryZipCode>sample string 14</DeliveryZipCode>
<Description>sample string 3</Description>
<EquipmentSizeId>1</EquipmentSizeId>
<EquipmentTypeId>1</EquipmentTypeId>
<GLAccountId>5</GLAccountId>
<GlAccounts xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:int>1</d2p1:int>
<d2p1:int>2</d2p1:int>
</GlAccounts>
<IsActive>true</IsActive>
<IsForTwoTen>true</IsForTwoTen>
<MaxPallets>1</MaxPallets>
<MinPallets>1</MinPallets>
<ModeId>1</ModeId>
<Name>sample string 2</Name>
<OverrideBranchId>1</OverrideBranchId>
<OverrideDepartmentId>1</OverrideDepartmentId>
<PickUpAddress1>sample string 6</PickUpAddress1>
<PickUpAddress2>sample string 7</PickUpAddress2>
<PickUpCity>sample string 9</PickUpCity>
<PickUpCountry>sample string 11</PickUpCountry>
<PickUpState>sample string 10</PickUpState>
<PickUpZipCode>sample string 8</PickUpZipCode>
<PickupType>sample string 20</PickupType>
<RateTypeId>4</RateTypeId>
<ServiceId>1</ServiceId>
<ServiceLevelId>1</ServiceLevelId>
<VendorTypeId>1</VendorTypeId>
</BindChargeViewModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.