POST api/manage-postalCode

Request Information

URI Parameters

None.

Body Parameters

PostalcodeMappers
NameDescriptionTypeAdditional information
ID

integer

None.

City

string

None.

StateName

string

None.

Code

string

None.

Country

string

None.

TaxRate1

decimal number

None.

TaxRate2

decimal number

None.

TaxRate3

decimal number

None.

Service

boolean

None.

AdditionalMilage

boolean

None.

AdditionalMilageAmount

decimal number

None.

ServiceCenter

decimal number

None.

CompanyID

integer

None.

IsPartialPostalCode

boolean

None.

ConditionMessage

string

None.

DisplayMessage

string

None.

CompanyName

string

None.

CompanyCode

string

None.

Request Formats

application/json, text/json

Sample:
{
  "ID": 1,
  "City": "sample string 2",
  "StateName": "sample string 3",
  "Code": "sample string 4",
  "Country": "sample string 5",
  "TaxRate1": 1.0,
  "TaxRate2": 1.0,
  "TaxRate3": 1.0,
  "Service": true,
  "AdditionalMilage": true,
  "AdditionalMilageAmount": 1.0,
  "ServiceCenter": 1.0,
  "CompanyID": 1,
  "IsPartialPostalCode": true,
  "ConditionMessage": "sample string 7",
  "DisplayMessage": "sample string 8",
  "CompanyName": "sample string 9",
  "CompanyCode": "sample string 10"
}

application/xml, text/xml

Sample:
<PostalcodeMappers xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CottageCareOnlinePricing.BAL.ServiceClass">
  <AdditionalMilage>true</AdditionalMilage>
  <AdditionalMilageAmount>1</AdditionalMilageAmount>
  <City>sample string 2</City>
  <Code>sample string 4</Code>
  <CompanyCode>sample string 10</CompanyCode>
  <CompanyID>1</CompanyID>
  <CompanyName>sample string 9</CompanyName>
  <ConditionMessage>sample string 7</ConditionMessage>
  <Country>sample string 5</Country>
  <DisplayMessage>sample string 8</DisplayMessage>
  <ID>1</ID>
  <IsPartialPostalCode>true</IsPartialPostalCode>
  <Service>true</Service>
  <ServiceCenter>1</ServiceCenter>
  <StateName>sample string 3</StateName>
  <TaxRate1>1</TaxRate1>
  <TaxRate2>1</TaxRate2>
  <TaxRate3>1</TaxRate3>
</PostalcodeMappers>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

Result
NameDescriptionTypeAdditional information
HasError

boolean

None.

HasSuccess

boolean

None.

IsServiceable

boolean

None.

Status

StatusType

None.

MessageTitle

string

None.

Message

string

None.

ExceptionMessage

string

None.

ExceptionStackTrace

string

None.

ResultException

Exception

None.

ResultObject

Object

None.

Response Formats

application/json, text/json

Sample:
{
  "ResultObject": {},
  "HasError": false,
  "HasSuccess": true,
  "IsServiceable": true,
  "Status": 200,
  "MessageTitle": "sample string 4",
  "Message": "sample string 5",
  "ExceptionMessage": "sample string 6",
  "ExceptionStackTrace": "sample string 7",
  "ResultException": {
    "ClassName": "System.Exception",
    "Message": null,
    "Data": null,
    "InnerException": null,
    "HelpURL": "sample string 1",
    "StackTraceString": null,
    "RemoteStackTraceString": null,
    "RemoteStackIndex": 0,
    "ExceptionMethod": null,
    "HResult": 3,
    "Source": "sample string 2",
    "WatsonBuckets": null
  }
}

application/xml, text/xml

Sample:
<Result xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CottageCare.BAL.ServiceClass">
  <ExceptionMessage>sample string 6</ExceptionMessage>
  <ExceptionStackTrace>sample string 7</ExceptionStackTrace>
  <HasError>false</HasError>
  <HasSuccess>true</HasSuccess>
  <IsServiceable>true</IsServiceable>
  <Message>sample string 5</Message>
  <MessageTitle>sample string 4</MessageTitle>
  <ResultException xmlns:d2p1="http://schemas.datacontract.org/2004/07/System">
    <ClassName xmlns:d3p1="http://www.w3.org/2001/XMLSchema" i:type="d3p1:string" xmlns="">System.Exception</ClassName>
    <Message i:nil="true" xmlns="" />
    <Data i:nil="true" xmlns="" />
    <InnerException i:nil="true" xmlns="" />
    <HelpURL xmlns:d3p1="http://www.w3.org/2001/XMLSchema" i:type="d3p1:string" xmlns="">sample string 1</HelpURL>
    <StackTraceString i:nil="true" xmlns="" />
    <RemoteStackTraceString i:nil="true" xmlns="" />
    <RemoteStackIndex xmlns:d3p1="http://www.w3.org/2001/XMLSchema" i:type="d3p1:int" xmlns="">0</RemoteStackIndex>
    <ExceptionMethod i:nil="true" xmlns="" />
    <HResult xmlns:d3p1="http://www.w3.org/2001/XMLSchema" i:type="d3p1:int" xmlns="">3</HResult>
    <Source xmlns:d3p1="http://www.w3.org/2001/XMLSchema" i:type="d3p1:string" xmlns="">sample string 2</Source>
    <WatsonBuckets i:nil="true" xmlns="" />
  </ResultException>
  <ResultObject />
  <Status>Success</Status>
</Result>