POST ExpenseSubCategories

Adds a new ExpenseSubCategory with VAT rates.


Parameters

NameDescriptionAdditional information
request
Add given ExpenseSubCategory with VAT rates.

Define this parameter in the request body.

Request body formats

application/json, text/json

Sample:
{
  "SubCatId": 0,
  "ParentCategoryId": 0,
  "SubCat": "Long",
  "Description": "Description",
  "AllowanceAmount": 10.0,
  "AccountCode": "Code",
  "AddAsNet": true,
  "PdCatId": 0,
  "CalculationType": 4,
  "Comment": "Comment",
  "Reimbursable": true,
  "AlternateAccountCode": "Alt",
  "ShortSubCategory": "Short",
  "VatApplicable": true,
  "VatReceipt": false,
  "VatRates": [
    {
      "VatRateId": 0,
      "SubCatId": 0,
      "VatAmount": 100.0,
      "VatReceipt": true,
      "VatLimitWithout": 100.0,
      "VatLimitWith": 100.0,
      "VatPercent": 100,
      "RangeType": 2,
      "DateValue1": "2012-01-01T00:00:00",
      "DateValue2": "2012-02-02T00:00:00"
    }
  ],
  "MileageApplicable": true,
  "StaffApplicable": true,
  "OthersApplicable": true,
  "TipApplicable": true,
  "TipLimit": null,
  "PersonalMilesApplicable": true,
  "BusinessMilesApplicable": true,
  "AttendeesApplicable": true,
  "EventInHomeApp": true,
  "ReceiptApplicable": true,
  "NoPersonalGuestApplicable": true,
  "PassengersApplicable": true,
  "NoPassengersApplicable": true,
  "PassengersNameApplicable": true,
  "SplitEntertainment": true,
  "EntertainmentId": 0,
  "NoNightsApplicable": true,
  "AttendeesMandatory": true,
  "NoDirectorsApplicable": true,
  "HotelApplicable": true,
  "NoRoomsApplicable": true,
  "HotelMandatory": true,
  "VatNumberApplicable": true,
  "VatNumberMandatory": true,
  "NoRemoteWorkersApplicable": true,
  "SplitPersonal": true,
  "SplitRemote": true,
  "PersonalId": 0,
  "RemoteId": 0,
  "ReasonApplicable": true,
  "OtherDetailsApplicable": true,
  "UserDefined": [],
  "FromApplicable": true,
  "ToApplicable": true,
  "Countries": null,
  "Allowances": [
    1287
  ],
  "AssociatedUdfs": [
    2387
  ],
  "Split": null,
  "CompanyApplicable": true,
  "EnableHomeToLocationMileage": true,
  "HomeToLocationType": 0,
  "MileageCategory": null,
  "IsRelocationMileage": true,
  "ReimbursableSubCatId": null,
  "AllowHeavyBulkyMileage": true,
  "HomeToOfficeAsZero": true,
  "StartDate": "2014-01-01T00:00:00",
  "EndDate": "2014-12-12T00:00:00",
  "Validate": false,
  "ValidationRequirements": null,
  "HomeToOfficeFixedMiles": null,
  "PublicTransportRate": null,
  "EnableDoc": false,
  "CurrencySymbol": null,
  "MaximumLimitWithoutReceipt": 0.0,
  "MaximumLimit": 0.0,
  "UserDefinedFields": [],
  "ValidDates": [],
  "ForcedFixedMileageDeduction": false,
  "NumberOfMiles": 0.0,
  "DailyDeductionItemId": 0
}

application/xml, text/xml

Sample:
<ExpenseSubCategory xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SpendManagementApi.Models.Types">
  <AccountCode>Code</AccountCode>
  <AddAsNet>true</AddAsNet>
  <AllowHeavyBulkyMileage>true</AllowHeavyBulkyMileage>
  <AllowanceAmount>10</AllowanceAmount>
  <Allowances xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:int>1287</d2p1:int>
  </Allowances>
  <AlternateAccountCode>Alt</AlternateAccountCode>
  <AssociatedUdfs xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:int>2387</d2p1:int>
  </AssociatedUdfs>
  <AttendeesApplicable>true</AttendeesApplicable>
  <AttendeesMandatory>true</AttendeesMandatory>
  <BusinessMilesApplicable>true</BusinessMilesApplicable>
  <CalculationType>DailyAllowance</CalculationType>
  <Comment>Comment</Comment>
  <CompanyApplicable>true</CompanyApplicable>
  <Countries i:nil="true" />
  <CurrencySymbol i:nil="true" />
  <DailyDeductionItemId>0</DailyDeductionItemId>
  <Description>Description</Description>
  <EnableDoc>false</EnableDoc>
  <EnableHomeToLocationMileage>true</EnableHomeToLocationMileage>
  <EndDate>2014-12-12T00:00:00</EndDate>
  <EntertainmentId>0</EntertainmentId>
  <EventInHomeApp>true</EventInHomeApp>
  <ForcedFixedMileageDeduction>false</ForcedFixedMileageDeduction>
  <FromApplicable>true</FromApplicable>
  <HomeToLocationType>None</HomeToLocationType>
  <HomeToOfficeAsZero>true</HomeToOfficeAsZero>
  <HomeToOfficeFixedMiles i:nil="true" />
  <HotelApplicable>true</HotelApplicable>
  <HotelMandatory>true</HotelMandatory>
  <IsRelocationMileage>true</IsRelocationMileage>
  <MaximumLimit>0</MaximumLimit>
  <MaximumLimitWithoutReceipt>0</MaximumLimitWithoutReceipt>
  <MileageApplicable>true</MileageApplicable>
  <MileageCategory i:nil="true" />
  <NoDirectorsApplicable>true</NoDirectorsApplicable>
  <NoNightsApplicable>true</NoNightsApplicable>
  <NoPassengersApplicable>true</NoPassengersApplicable>
  <NoPersonalGuestApplicable>true</NoPersonalGuestApplicable>
  <NoRemoteWorkersApplicable>true</NoRemoteWorkersApplicable>
  <NoRoomsApplicable>true</NoRoomsApplicable>
  <NumberOfMiles>0</NumberOfMiles>
  <OtherDetailsApplicable>true</OtherDetailsApplicable>
  <OthersApplicable>true</OthersApplicable>
  <ParentCategoryId>0</ParentCategoryId>
  <PassengersApplicable>true</PassengersApplicable>
  <PassengersNameApplicable>true</PassengersNameApplicable>
  <PdCatId>0</PdCatId>
  <PersonalId>0</PersonalId>
  <PersonalMilesApplicable>true</PersonalMilesApplicable>
  <PublicTransportRate i:nil="true" />
  <ReasonApplicable>true</ReasonApplicable>
  <ReceiptApplicable>true</ReceiptApplicable>
  <Reimbursable>true</Reimbursable>
  <ReimbursableSubCatId i:nil="true" />
  <RemoteId>0</RemoteId>
  <ShortSubCategory>Short</ShortSubCategory>
  <Split i:nil="true" />
  <SplitEntertainment>true</SplitEntertainment>
  <SplitPersonal>true</SplitPersonal>
  <SplitRemote>true</SplitRemote>
  <StaffApplicable>true</StaffApplicable>
  <StartDate>2014-01-01T00:00:00</StartDate>
  <SubCat>Long</SubCat>
  <SubCatId>0</SubCatId>
  <TipApplicable>true</TipApplicable>
  <TipLimit i:nil="true" />
  <ToApplicable>true</ToApplicable>
  <UserDefined />
  <UserDefinedFields />
  <ValidDates />
  <Validate>false</Validate>
  <ValidationRequirements xmlns:d2p1="http://schemas.datacontract.org/2004/07/SpendManagementApi.Models.Types.Expedite" i:nil="true" />
  <VatNumberApplicable>true</VatNumberApplicable>
  <VatNumberMandatory>true</VatNumberMandatory>
  <VatRates>
    <SubCatVatRate>
      <DateValue1>2012-01-01T00:00:00</DateValue1>
      <DateValue2>2012-02-02T00:00:00</DateValue2>
      <RangeType>Between</RangeType>
      <SubCatId>0</SubCatId>
      <VatAmount>100</VatAmount>
      <VatLimitWith>100</VatLimitWith>
      <VatLimitWithout>100</VatLimitWithout>
      <VatPercent>100</VatPercent>
      <VatReceipt>true</VatReceipt>
    </SubCatVatRate>
  </VatRates>
  <VatReceipt>false</VatReceipt>
</ExpenseSubCategory>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response body formats

An ExpenseSubCategoryResponse containing the added ExpenseSubCategory.

application/json, text/json

Sample:
{
  "Item": {
    "SubCatId": 0,
    "ParentCategoryId": 0,
    "SubCat": "Long",
    "Description": "Description",
    "AllowanceAmount": 10.0,
    "AccountCode": "Code",
    "AddAsNet": true,
    "PdCatId": 0,
    "CalculationType": 4,
    "Comment": "Comment",
    "Reimbursable": true,
    "AlternateAccountCode": "Alt",
    "ShortSubCategory": "Short",
    "VatApplicable": true,
    "VatReceipt": false,
    "VatRates": [
      {
        "VatRateId": 0,
        "SubCatId": 0,
        "VatAmount": 100.0,
        "VatReceipt": true,
        "VatLimitWithout": 100.0,
        "VatLimitWith": 100.0,
        "VatPercent": 100,
        "RangeType": 2,
        "DateValue1": "2012-01-01T00:00:00",
        "DateValue2": "2012-02-02T00:00:00"
      }
    ],
    "MileageApplicable": true,
    "StaffApplicable": true,
    "OthersApplicable": true,
    "TipApplicable": true,
    "TipLimit": null,
    "PersonalMilesApplicable": true,
    "BusinessMilesApplicable": true,
    "AttendeesApplicable": true,
    "EventInHomeApp": true,
    "ReceiptApplicable": true,
    "NoPersonalGuestApplicable": true,
    "PassengersApplicable": true,
    "NoPassengersApplicable": true,
    "PassengersNameApplicable": true,
    "SplitEntertainment": true,
    "EntertainmentId": 0,
    "NoNightsApplicable": true,
    "AttendeesMandatory": true,
    "NoDirectorsApplicable": true,
    "HotelApplicable": true,
    "NoRoomsApplicable": true,
    "HotelMandatory": true,
    "VatNumberApplicable": true,
    "VatNumberMandatory": true,
    "NoRemoteWorkersApplicable": true,
    "SplitPersonal": true,
    "SplitRemote": true,
    "PersonalId": 0,
    "RemoteId": 0,
    "ReasonApplicable": true,
    "OtherDetailsApplicable": true,
    "UserDefined": [],
    "FromApplicable": true,
    "ToApplicable": true,
    "Countries": null,
    "Allowances": [
      1287
    ],
    "AssociatedUdfs": [
      2387
    ],
    "Split": null,
    "CompanyApplicable": true,
    "EnableHomeToLocationMileage": true,
    "HomeToLocationType": 0,
    "MileageCategory": null,
    "IsRelocationMileage": true,
    "ReimbursableSubCatId": null,
    "AllowHeavyBulkyMileage": true,
    "HomeToOfficeAsZero": true,
    "StartDate": "2014-01-01T00:00:00",
    "EndDate": "2014-12-12T00:00:00",
    "Validate": false,
    "ValidationRequirements": null,
    "HomeToOfficeFixedMiles": null,
    "PublicTransportRate": null,
    "EnableDoc": false,
    "CurrencySymbol": null,
    "MaximumLimitWithoutReceipt": 0.0,
    "MaximumLimit": 0.0,
    "UserDefinedFields": [],
    "ValidDates": [],
    "ForcedFixedMileageDeduction": false,
    "NumberOfMiles": 0.0,
    "DailyDeductionItemId": 0
  },
  "ResponseInformation": {
    "Errors": null,
    "Status": 0,
    "Links": null
  }
}

application/xml, text/xml

Sample:
<ExpenseSubCategoryResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SpendManagementApi.Models.Responses">
  <ResponseInformation xmlns="http://schemas.datacontract.org/2004/07/SpendManagementApi.Models.Common">
    <Errors i:nil="true" />
    <Links i:nil="true" />
    <Status>Failure</Status>
  </ResponseInformation>
  <Item xmlns:d2p1="http://schemas.datacontract.org/2004/07/SpendManagementApi.Models.Types" xmlns="http://schemas.datacontract.org/2004/07/SpendManagementApi.Models.Common">
    <d2p1:AccountCode>Code</d2p1:AccountCode>
    <d2p1:AddAsNet>true</d2p1:AddAsNet>
    <d2p1:AllowHeavyBulkyMileage>true</d2p1:AllowHeavyBulkyMileage>
    <d2p1:AllowanceAmount>10</d2p1:AllowanceAmount>
    <d2p1:Allowances xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:int>1287</d3p1:int>
    </d2p1:Allowances>
    <d2p1:AlternateAccountCode>Alt</d2p1:AlternateAccountCode>
    <d2p1:AssociatedUdfs xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:int>2387</d3p1:int>
    </d2p1:AssociatedUdfs>
    <d2p1:AttendeesApplicable>true</d2p1:AttendeesApplicable>
    <d2p1:AttendeesMandatory>true</d2p1:AttendeesMandatory>
    <d2p1:BusinessMilesApplicable>true</d2p1:BusinessMilesApplicable>
    <d2p1:CalculationType>DailyAllowance</d2p1:CalculationType>
    <d2p1:Comment>Comment</d2p1:Comment>
    <d2p1:CompanyApplicable>true</d2p1:CompanyApplicable>
    <d2p1:Countries i:nil="true" />
    <d2p1:CurrencySymbol i:nil="true" />
    <d2p1:DailyDeductionItemId>0</d2p1:DailyDeductionItemId>
    <d2p1:Description>Description</d2p1:Description>
    <d2p1:EnableDoc>false</d2p1:EnableDoc>
    <d2p1:EnableHomeToLocationMileage>true</d2p1:EnableHomeToLocationMileage>
    <d2p1:EndDate>2014-12-12T00:00:00</d2p1:EndDate>
    <d2p1:EntertainmentId>0</d2p1:EntertainmentId>
    <d2p1:EventInHomeApp>true</d2p1:EventInHomeApp>
    <d2p1:ForcedFixedMileageDeduction>false</d2p1:ForcedFixedMileageDeduction>
    <d2p1:FromApplicable>true</d2p1:FromApplicable>
    <d2p1:HomeToLocationType>None</d2p1:HomeToLocationType>
    <d2p1:HomeToOfficeAsZero>true</d2p1:HomeToOfficeAsZero>
    <d2p1:HomeToOfficeFixedMiles i:nil="true" />
    <d2p1:HotelApplicable>true</d2p1:HotelApplicable>
    <d2p1:HotelMandatory>true</d2p1:HotelMandatory>
    <d2p1:IsRelocationMileage>true</d2p1:IsRelocationMileage>
    <d2p1:MaximumLimit>0</d2p1:MaximumLimit>
    <d2p1:MaximumLimitWithoutReceipt>0</d2p1:MaximumLimitWithoutReceipt>
    <d2p1:MileageApplicable>true</d2p1:MileageApplicable>
    <d2p1:MileageCategory i:nil="true" />
    <d2p1:NoDirectorsApplicable>true</d2p1:NoDirectorsApplicable>
    <d2p1:NoNightsApplicable>true</d2p1:NoNightsApplicable>
    <d2p1:NoPassengersApplicable>true</d2p1:NoPassengersApplicable>
    <d2p1:NoPersonalGuestApplicable>true</d2p1:NoPersonalGuestApplicable>
    <d2p1:NoRemoteWorkersApplicable>true</d2p1:NoRemoteWorkersApplicable>
    <d2p1:NoRoomsApplicable>true</d2p1:NoRoomsApplicable>
    <d2p1:NumberOfMiles>0</d2p1:NumberOfMiles>
    <d2p1:OtherDetailsApplicable>true</d2p1:OtherDetailsApplicable>
    <d2p1:OthersApplicable>true</d2p1:OthersApplicable>
    <d2p1:ParentCategoryId>0</d2p1:ParentCategoryId>
    <d2p1:PassengersApplicable>true</d2p1:PassengersApplicable>
    <d2p1:PassengersNameApplicable>true</d2p1:PassengersNameApplicable>
    <d2p1:PdCatId>0</d2p1:PdCatId>
    <d2p1:PersonalId>0</d2p1:PersonalId>
    <d2p1:PersonalMilesApplicable>true</d2p1:PersonalMilesApplicable>
    <d2p1:PublicTransportRate i:nil="true" />
    <d2p1:ReasonApplicable>true</d2p1:ReasonApplicable>
    <d2p1:ReceiptApplicable>true</d2p1:ReceiptApplicable>
    <d2p1:Reimbursable>true</d2p1:Reimbursable>
    <d2p1:ReimbursableSubCatId i:nil="true" />
    <d2p1:RemoteId>0</d2p1:RemoteId>
    <d2p1:ShortSubCategory>Short</d2p1:ShortSubCategory>
    <d2p1:Split i:nil="true" />
    <d2p1:SplitEntertainment>true</d2p1:SplitEntertainment>
    <d2p1:SplitPersonal>true</d2p1:SplitPersonal>
    <d2p1:SplitRemote>true</d2p1:SplitRemote>
    <d2p1:StaffApplicable>true</d2p1:StaffApplicable>
    <d2p1:StartDate>2014-01-01T00:00:00</d2p1:StartDate>
    <d2p1:SubCat>Long</d2p1:SubCat>
    <d2p1:SubCatId>0</d2p1:SubCatId>
    <d2p1:TipApplicable>true</d2p1:TipApplicable>
    <d2p1:TipLimit i:nil="true" />
    <d2p1:ToApplicable>true</d2p1:ToApplicable>
    <d2p1:UserDefined />
    <d2p1:UserDefinedFields />
    <d2p1:ValidDates />
    <d2p1:Validate>false</d2p1:Validate>
    <d2p1:ValidationRequirements xmlns:d3p1="http://schemas.datacontract.org/2004/07/SpendManagementApi.Models.Types.Expedite" i:nil="true" />
    <d2p1:VatNumberApplicable>true</d2p1:VatNumberApplicable>
    <d2p1:VatNumberMandatory>true</d2p1:VatNumberMandatory>
    <d2p1:VatRates>
      <d2p1:SubCatVatRate>
        <d2p1:DateValue1>2012-01-01T00:00:00</d2p1:DateValue1>
        <d2p1:DateValue2>2012-02-02T00:00:00</d2p1:DateValue2>
        <d2p1:RangeType>Between</d2p1:RangeType>
        <d2p1:SubCatId>0</d2p1:SubCatId>
        <d2p1:VatAmount>100</d2p1:VatAmount>
        <d2p1:VatLimitWith>100</d2p1:VatLimitWith>
        <d2p1:VatLimitWithout>100</d2p1:VatLimitWithout>
        <d2p1:VatPercent>100</d2p1:VatPercent>
        <d2p1:VatReceipt>true</d2p1:VatReceipt>
      </d2p1:SubCatVatRate>
    </d2p1:VatRates>
    <d2p1:VatReceipt>false</d2p1:VatReceipt>
  </Item>
</ExpenseSubCategoryResponse>
URI parameters
=
Headers | Add header
: Delete
Body
Samples:
Status
Headers
Body