POST api/MasterConfig/DeliveryFare/AddDeliveryFare

Request Information

URI Parameters

None.

Body Parameters

DeliveryFarePost
NameDescriptionTypeAdditional information
DeliveryFare

DeliveryFareView

None.

UserID

string

None.

IPAddress

string

None.

Request Formats

application/json, text/json

Sample:
{
  "DeliveryFare": {
    "DeliveryFareID": 1,
    "DeliveryZoneID": 2,
    "FareName": "sample string 3",
    "UOM": "sample string 4",
    "FareType": "sample string 5",
    "Rate": 6.1,
    "DeliveryType": "sample string 7",
    "XFactorID": "sample string 8",
    "HasCondition": true,
    "FareCategory": "sample string 10",
    "ConditionType": "sample string 11",
    "DistanceAbove_Below": 1.1,
    "PercentOfTotal": 1.1,
    "StartTime": "00:00:00.1234567",
    "EndTime": "00:00:00.1234567",
    "U_U": 12.1,
    "U_SU": 13.1,
    "U_R": 14.1,
    "SU_SU": 15.1,
    "SU_U": 16.1,
    "SU_R": 17.1,
    "R_R": 18.1,
    "R_U": 19.1,
    "R_SU": 20.1
  },
  "UserID": "sample string 1",
  "IPAddress": "sample string 2"
}

application/xml, text/xml

Sample:
<DeliveryFarePost xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Master.Operations.CustomModels">
  <DeliveryFare>
    <ConditionType>sample string 11</ConditionType>
    <DeliveryFareID>1</DeliveryFareID>
    <DeliveryType>sample string 7</DeliveryType>
    <DeliveryZoneID>2</DeliveryZoneID>
    <DistanceAbove_Below>1.1</DistanceAbove_Below>
    <EndTime>PT0.1234567S</EndTime>
    <FareCategory>sample string 10</FareCategory>
    <FareName>sample string 3</FareName>
    <FareType>sample string 5</FareType>
    <HasCondition>true</HasCondition>
    <PercentOfTotal>1.1</PercentOfTotal>
    <R_R>18.1</R_R>
    <R_SU>20.1</R_SU>
    <R_U>19.1</R_U>
    <Rate>6.1</Rate>
    <SU_R>17.1</SU_R>
    <SU_SU>15.1</SU_SU>
    <SU_U>16.1</SU_U>
    <StartTime>PT0.1234567S</StartTime>
    <UOM>sample string 4</UOM>
    <U_R>14.1</U_R>
    <U_SU>13.1</U_SU>
    <U_U>12.1</U_U>
    <XFactorID>sample string 8</XFactorID>
  </DeliveryFare>
  <IPAddress>sample string 2</IPAddress>
  <UserID>sample string 1</UserID>
</DeliveryFarePost>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

string

Response Formats

application/json, text/json

Sample:
"sample string 1"

application/xml, text/xml

Sample:
<string xmlns="http://schemas.microsoft.com/2003/10/Serialization/">sample string 1</string>