POST api/jurisdiction

Request Information

URI Parameters

None.

Body Parameters

Jurisdiction
NameDescriptionTypeAdditional information
isActive

integer

None.

thresholdTypeId

integer

None.

dayCalculationTypeId

integer

None.

countryId

integer

None.

stateId

integer

None.

cityId

integer

None.

travelTypeId

integer

None.

jurisdictionId

integer

None.

jurisdictionName

string

None.

jurisdictionShortName

string

None.

thresholdType

ThresholdTypeJurisdiction

None.

dayCalculationType

DayCalculationTypeJurisdiction

None.

thresholdValue

integer

None.

fullYearResidentFormula

string

None.

partYearResidentFormula

string

None.

nonResidentFormula

string

None.

jurisdictionNotes

string

None.

jurisdictionTaxRules

string

None.

jurisdictionVisibility

integer

None.

country

CountryWithId

None.

state

StateWithId

None.

city

CityWithID

None.

travelType

TravelTypeWithID

None.

Request Formats

application/json, text/json

Sample:
{
  "isActive": 1,
  "thresholdTypeId": 2,
  "dayCalculationTypeId": 3,
  "countryId": 4,
  "stateId": 5,
  "cityId": 6,
  "travelTypeId": 1,
  "jurisdictionId": 7,
  "jurisdictionName": "sample string 8",
  "jurisdictionShortName": "sample string 9",
  "thresholdType": {
    "thresholdTypeId": 1
  },
  "dayCalculationType": {
    "dayCalculationTypeId": 1
  },
  "thresholdValue": 1,
  "fullYearResidentFormula": "sample string 10",
  "partYearResidentFormula": "sample string 11",
  "nonResidentFormula": "sample string 12",
  "jurisdictionNotes": "sample string 13",
  "jurisdictionTaxRules": "sample string 14",
  "jurisdictionVisibility": 15,
  "country": {
    "countryId": 1
  },
  "state": {
    "stateId": 1
  },
  "city": {
    "cityId": 1
  },
  "travelType": {
    "travelTypeId": 1
  }
}

text/html

Sample:
{"isActive":1,"thresholdTypeId":2,"dayCalculationTypeId":3,"countryId":4,"stateId":5,"cityId":6,"travelTypeId":1,"jurisdictionId":7,"jurisdictionName":"sample string 8","jurisdictionShortName":"sample string 9","thresholdType":{"thresholdTypeId":1},"dayCalculationType":{"dayCalculationTypeId":1},"thresholdValue":1,"fullYearResidentFormula":"sample string 10","partYearResidentFormula":"sample string 11","nonResidentFormula":"sample string 12","jurisdictionNotes":"sample string 13","jurisdictionTaxRules":"sample string 14","jurisdictionVisibility":15,"country":{"countryId":1},"state":{"stateId":1},"city":{"cityId":1},"travelType":{"travelTypeId":1}}

application/xml, text/xml

Sample:
<Jurisdiction xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TaxDay.Models">
  <city>
    <cityId>1</cityId>
  </city>
  <country>
    <countryId>1</countryId>
  </country>
  <dayCalculationType>
    <dayCalculationTypeId>1</dayCalculationTypeId>
  </dayCalculationType>
  <fullYearResidentFormula>sample string 10</fullYearResidentFormula>
  <jurisdictionId>7</jurisdictionId>
  <jurisdictionName>sample string 8</jurisdictionName>
  <jurisdictionNotes>sample string 13</jurisdictionNotes>
  <jurisdictionShortName>sample string 9</jurisdictionShortName>
  <jurisdictionTaxRules>sample string 14</jurisdictionTaxRules>
  <jurisdictionVisibility>15</jurisdictionVisibility>
  <nonResidentFormula>sample string 12</nonResidentFormula>
  <partYearResidentFormula>sample string 11</partYearResidentFormula>
  <state>
    <stateId>1</stateId>
  </state>
  <thresholdType>
    <thresholdTypeId>1</thresholdTypeId>
  </thresholdType>
  <thresholdValue>1</thresholdValue>
  <travelType>
    <travelTypeId>1</travelTypeId>
  </travelType>
  <cityId>6</cityId>
  <countryId>4</countryId>
  <dayCalculationTypeId>3</dayCalculationTypeId>
  <isActive>1</isActive>
  <stateId>5</stateId>
  <thresholdTypeId>2</thresholdTypeId>
  <travelTypeId>1</travelTypeId>
</Jurisdiction>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.