DELETE ExpenseSubCategories/{id}

Deletes theExpenseSubCategory with given id.


Parameters

NameDescriptionAdditional information
id
Id of the ExpenseSubCategory to delete.

Define this parameter in the request URI.

Response body formats

An ExpenseSubCategoryResponse with the item set to null upon a successful delete.

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