GET ExpenseSubCategories/GetMyMileageSubCats

Gets all mileage ExpenseSubCategories that belong to the user's item roles.


Response body formats

A GetExpenseSubCategoriesResponse containing a list of ExpenseSubCategories

application/json, text/json

Sample:
{
  "List": [
    null,
    {
      "SubCatId": 1,
      "ParentCategoryId": 1,
      "SubCat": "sample string 2",
      "Description": "sample string 3",
      "AllowanceAmount": 4.0,
      "AccountCode": "sample string 5",
      "AddAsNet": true,
      "PdCatId": 1,
      "CalculationType": 1,
      "Comment": "sample string 7",
      "Reimbursable": true,
      "AlternateAccountCode": "sample string 9",
      "ShortSubCategory": "sample string 10",
      "VatApplicable": false,
      "VatReceipt": false,
      "VatRates": [],
      "MileageApplicable": false,
      "StaffApplicable": false,
      "OthersApplicable": false,
      "TipApplicable": false,
      "TipLimit": null,
      "PersonalMilesApplicable": false,
      "BusinessMilesApplicable": false,
      "AttendeesApplicable": false,
      "EventInHomeApp": false,
      "ReceiptApplicable": false,
      "NoPersonalGuestApplicable": false,
      "PassengersApplicable": false,
      "NoPassengersApplicable": false,
      "PassengersNameApplicable": false,
      "SplitEntertainment": false,
      "EntertainmentId": 0,
      "NoNightsApplicable": false,
      "AttendeesMandatory": false,
      "NoDirectorsApplicable": false,
      "HotelApplicable": false,
      "NoRoomsApplicable": false,
      "HotelMandatory": false,
      "VatNumberApplicable": false,
      "VatNumberMandatory": false,
      "NoRemoteWorkersApplicable": false,
      "SplitPersonal": false,
      "SplitRemote": false,
      "PersonalId": 0,
      "RemoteId": 0,
      "ReasonApplicable": false,
      "OtherDetailsApplicable": false,
      "UserDefined": [],
      "FromApplicable": false,
      "ToApplicable": false,
      "Countries": [],
      "Allowances": null,
      "AssociatedUdfs": null,
      "Split": null,
      "CompanyApplicable": false,
      "EnableHomeToLocationMileage": false,
      "HomeToLocationType": 0,
      "MileageCategory": null,
      "IsRelocationMileage": false,
      "ReimbursableSubCatId": null,
      "AllowHeavyBulkyMileage": false,
      "HomeToOfficeAsZero": false,
      "StartDate": null,
      "EndDate": null,
      "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
    },
    {
      "SubCatId": 1,
      "ParentCategoryId": 1,
      "SubCat": "sample string 2",
      "Description": "sample string 3",
      "AllowanceAmount": 4.0,
      "AccountCode": "sample string 5",
      "AddAsNet": true,
      "PdCatId": 1,
      "CalculationType": 1,
      "Comment": "sample string 7",
      "Reimbursable": true,
      "AlternateAccountCode": "sample string 9",
      "ShortSubCategory": "sample string 10",
      "VatApplicable": false,
      "VatReceipt": false,
      "VatRates": [],
      "MileageApplicable": false,
      "StaffApplicable": false,
      "OthersApplicable": false,
      "TipApplicable": false,
      "TipLimit": null,
      "PersonalMilesApplicable": false,
      "BusinessMilesApplicable": false,
      "AttendeesApplicable": false,
      "EventInHomeApp": false,
      "ReceiptApplicable": false,
      "NoPersonalGuestApplicable": false,
      "PassengersApplicable": false,
      "NoPassengersApplicable": false,
      "PassengersNameApplicable": false,
      "SplitEntertainment": false,
      "EntertainmentId": 0,
      "NoNightsApplicable": false,
      "AttendeesMandatory": false,
      "NoDirectorsApplicable": false,
      "HotelApplicable": false,
      "NoRoomsApplicable": false,
      "HotelMandatory": false,
      "VatNumberApplicable": false,
      "VatNumberMandatory": false,
      "NoRemoteWorkersApplicable": false,
      "SplitPersonal": false,
      "SplitRemote": false,
      "PersonalId": 0,
      "RemoteId": 0,
      "ReasonApplicable": false,
      "OtherDetailsApplicable": false,
      "UserDefined": [],
      "FromApplicable": false,
      "ToApplicable": false,
      "Countries": [],
      "Allowances": null,
      "AssociatedUdfs": null,
      "Split": null,
      "CompanyApplicable": false,
      "EnableHomeToLocationMileage": false,
      "HomeToLocationType": 0,
      "MileageCategory": null,
      "IsRelocationMileage": false,
      "ReimbursableSubCatId": null,
      "AllowHeavyBulkyMileage": false,
      "HomeToOfficeAsZero": false,
      "StartDate": null,
      "EndDate": null,
      "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": [
      {
        "ErrorCode": "sample string 1",
        "Message": "sample string 2"
      },
      {
        "ErrorCode": "sample string 1",
        "Message": "sample string 2"
      },
      {
        "ErrorCode": "sample string 1",
        "Message": "sample string 2"
      }
    ],
    "Status": 0,
    "Links": [
      {
        "Rel": "sample string 1",
        "Href": "sample string 2",
        "Title": "sample string 3",
        "IsTemplated": true
      },
      {
        "Rel": "sample string 1",
        "Href": "sample string 2",
        "Title": "sample string 3",
        "IsTemplated": true
      },
      {
        "Rel": "sample string 1",
        "Href": "sample string 2",
        "Title": "sample string 3",
        "IsTemplated": true
      }
    ]
  }
}

application/xml, text/xml

Sample:
<GetExpenseSubCategoriesResponse 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>
      <ApiErrorDetail>
        <ErrorCode>sample string 1</ErrorCode>
        <Message>sample string 2</Message>
      </ApiErrorDetail>
      <ApiErrorDetail>
        <ErrorCode>sample string 1</ErrorCode>
        <Message>sample string 2</Message>
      </ApiErrorDetail>
      <ApiErrorDetail>
        <ErrorCode>sample string 1</ErrorCode>
        <Message>sample string 2</Message>
      </ApiErrorDetail>
    </Errors>
    <Links>
      <Link>
        <Href>sample string 2</Href>
        <IsTemplated>true</IsTemplated>
        <Rel>sample string 1</Rel>
        <Title>sample string 3</Title>
      </Link>
      <Link>
        <Href>sample string 2</Href>
        <IsTemplated>true</IsTemplated>
        <Rel>sample string 1</Rel>
        <Title>sample string 3</Title>
      </Link>
      <Link>
        <Href>sample string 2</Href>
        <IsTemplated>true</IsTemplated>
        <Rel>sample string 1</Rel>
        <Title>sample string 3</Title>
      </Link>
    </Links>
    <Status>Failure</Status>
  </ResponseInformation>
  <List xmlns:d2p1="http://schemas.datacontract.org/2004/07/SpendManagementApi.Models.Types" xmlns="http://schemas.datacontract.org/2004/07/SpendManagementApi.Models.Common">
    <d2p1:ExpenseSubCategory i:nil="true" />
    <d2p1:ExpenseSubCategory>
      <d2p1:AccountCode>sample string 5</d2p1:AccountCode>
      <d2p1:AddAsNet>true</d2p1:AddAsNet>
      <d2p1:AllowHeavyBulkyMileage>false</d2p1:AllowHeavyBulkyMileage>
      <d2p1:AllowanceAmount>4</d2p1:AllowanceAmount>
      <d2p1:Allowances xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" i:nil="true" />
      <d2p1:AlternateAccountCode>sample string 9</d2p1:AlternateAccountCode>
      <d2p1:AssociatedUdfs xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" i:nil="true" />
      <d2p1:AttendeesApplicable>false</d2p1:AttendeesApplicable>
      <d2p1:AttendeesMandatory>false</d2p1:AttendeesMandatory>
      <d2p1:BusinessMilesApplicable>false</d2p1:BusinessMilesApplicable>
      <d2p1:CalculationType>NormalItem</d2p1:CalculationType>
      <d2p1:Comment>sample string 7</d2p1:Comment>
      <d2p1:CompanyApplicable>false</d2p1:CompanyApplicable>
      <d2p1:Countries />
      <d2p1:CurrencySymbol i:nil="true" />
      <d2p1:DailyDeductionItemId>0</d2p1:DailyDeductionItemId>
      <d2p1:Description>sample string 3</d2p1:Description>
      <d2p1:EnableDoc>false</d2p1:EnableDoc>
      <d2p1:EnableHomeToLocationMileage>false</d2p1:EnableHomeToLocationMileage>
      <d2p1:EndDate i:nil="true" />
      <d2p1:EntertainmentId>0</d2p1:EntertainmentId>
      <d2p1:EventInHomeApp>false</d2p1:EventInHomeApp>
      <d2p1:ForcedFixedMileageDeduction>false</d2p1:ForcedFixedMileageDeduction>
      <d2p1:FromApplicable>false</d2p1:FromApplicable>
      <d2p1:HomeToLocationType>None</d2p1:HomeToLocationType>
      <d2p1:HomeToOfficeAsZero>false</d2p1:HomeToOfficeAsZero>
      <d2p1:HomeToOfficeFixedMiles i:nil="true" />
      <d2p1:HotelApplicable>false</d2p1:HotelApplicable>
      <d2p1:HotelMandatory>false</d2p1:HotelMandatory>
      <d2p1:IsRelocationMileage>false</d2p1:IsRelocationMileage>
      <d2p1:MaximumLimit>0</d2p1:MaximumLimit>
      <d2p1:MaximumLimitWithoutReceipt>0</d2p1:MaximumLimitWithoutReceipt>
      <d2p1:MileageApplicable>false</d2p1:MileageApplicable>
      <d2p1:MileageCategory i:nil="true" />
      <d2p1:NoDirectorsApplicable>false</d2p1:NoDirectorsApplicable>
      <d2p1:NoNightsApplicable>false</d2p1:NoNightsApplicable>
      <d2p1:NoPassengersApplicable>false</d2p1:NoPassengersApplicable>
      <d2p1:NoPersonalGuestApplicable>false</d2p1:NoPersonalGuestApplicable>
      <d2p1:NoRemoteWorkersApplicable>false</d2p1:NoRemoteWorkersApplicable>
      <d2p1:NoRoomsApplicable>false</d2p1:NoRoomsApplicable>
      <d2p1:NumberOfMiles>0</d2p1:NumberOfMiles>
      <d2p1:OtherDetailsApplicable>false</d2p1:OtherDetailsApplicable>
      <d2p1:OthersApplicable>false</d2p1:OthersApplicable>
      <d2p1:ParentCategoryId>1</d2p1:ParentCategoryId>
      <d2p1:PassengersApplicable>false</d2p1:PassengersApplicable>
      <d2p1:PassengersNameApplicable>false</d2p1:PassengersNameApplicable>
      <d2p1:PdCatId>1</d2p1:PdCatId>
      <d2p1:PersonalId>0</d2p1:PersonalId>
      <d2p1:PersonalMilesApplicable>false</d2p1:PersonalMilesApplicable>
      <d2p1:PublicTransportRate i:nil="true" />
      <d2p1:ReasonApplicable>false</d2p1:ReasonApplicable>
      <d2p1:ReceiptApplicable>false</d2p1:ReceiptApplicable>
      <d2p1:Reimbursable>true</d2p1:Reimbursable>
      <d2p1:ReimbursableSubCatId i:nil="true" />
      <d2p1:RemoteId>0</d2p1:RemoteId>
      <d2p1:ShortSubCategory>sample string 10</d2p1:ShortSubCategory>
      <d2p1:Split i:nil="true" />
      <d2p1:SplitEntertainment>false</d2p1:SplitEntertainment>
      <d2p1:SplitPersonal>false</d2p1:SplitPersonal>
      <d2p1:SplitRemote>false</d2p1:SplitRemote>
      <d2p1:StaffApplicable>false</d2p1:StaffApplicable>
      <d2p1:StartDate i:nil="true" />
      <d2p1:SubCat>sample string 2</d2p1:SubCat>
      <d2p1:SubCatId>1</d2p1:SubCatId>
      <d2p1:TipApplicable>false</d2p1:TipApplicable>
      <d2p1:TipLimit i:nil="true" />
      <d2p1:ToApplicable>false</d2p1:ToApplicable>
      <d2p1:UserDefined />
      <d2p1:UserDefinedFields />
      <d2p1:ValidDates />
      <d2p1:Validate>false</d2p1:Validate>
      <d2p1:ValidationRequirements xmlns:d4p1="http://schemas.datacontract.org/2004/07/SpendManagementApi.Models.Types.Expedite" i:nil="true" />
      <d2p1:VatNumberApplicable>false</d2p1:VatNumberApplicable>
      <d2p1:VatNumberMandatory>false</d2p1:VatNumberMandatory>
      <d2p1:VatRates />
      <d2p1:VatReceipt>false</d2p1:VatReceipt>
    </d2p1:ExpenseSubCategory>
    <d2p1:ExpenseSubCategory>
      <d2p1:AccountCode>sample string 5</d2p1:AccountCode>
      <d2p1:AddAsNet>true</d2p1:AddAsNet>
      <d2p1:AllowHeavyBulkyMileage>false</d2p1:AllowHeavyBulkyMileage>
      <d2p1:AllowanceAmount>4</d2p1:AllowanceAmount>
      <d2p1:Allowances xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" i:nil="true" />
      <d2p1:AlternateAccountCode>sample string 9</d2p1:AlternateAccountCode>
      <d2p1:AssociatedUdfs xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" i:nil="true" />
      <d2p1:AttendeesApplicable>false</d2p1:AttendeesApplicable>
      <d2p1:AttendeesMandatory>false</d2p1:AttendeesMandatory>
      <d2p1:BusinessMilesApplicable>false</d2p1:BusinessMilesApplicable>
      <d2p1:CalculationType>NormalItem</d2p1:CalculationType>
      <d2p1:Comment>sample string 7</d2p1:Comment>
      <d2p1:CompanyApplicable>false</d2p1:CompanyApplicable>
      <d2p1:Countries />
      <d2p1:CurrencySymbol i:nil="true" />
      <d2p1:DailyDeductionItemId>0</d2p1:DailyDeductionItemId>
      <d2p1:Description>sample string 3</d2p1:Description>
      <d2p1:EnableDoc>false</d2p1:EnableDoc>
      <d2p1:EnableHomeToLocationMileage>false</d2p1:EnableHomeToLocationMileage>
      <d2p1:EndDate i:nil="true" />
      <d2p1:EntertainmentId>0</d2p1:EntertainmentId>
      <d2p1:EventInHomeApp>false</d2p1:EventInHomeApp>
      <d2p1:ForcedFixedMileageDeduction>false</d2p1:ForcedFixedMileageDeduction>
      <d2p1:FromApplicable>false</d2p1:FromApplicable>
      <d2p1:HomeToLocationType>None</d2p1:HomeToLocationType>
      <d2p1:HomeToOfficeAsZero>false</d2p1:HomeToOfficeAsZero>
      <d2p1:HomeToOfficeFixedMiles i:nil="true" />
      <d2p1:HotelApplicable>false</d2p1:HotelApplicable>
      <d2p1:HotelMandatory>false</d2p1:HotelMandatory>
      <d2p1:IsRelocationMileage>false</d2p1:IsRelocationMileage>
      <d2p1:MaximumLimit>0</d2p1:MaximumLimit>
      <d2p1:MaximumLimitWithoutReceipt>0</d2p1:MaximumLimitWithoutReceipt>
      <d2p1:MileageApplicable>false</d2p1:MileageApplicable>
      <d2p1:MileageCategory i:nil="true" />
      <d2p1:NoDirectorsApplicable>false</d2p1:NoDirectorsApplicable>
      <d2p1:NoNightsApplicable>false</d2p1:NoNightsApplicable>
      <d2p1:NoPassengersApplicable>false</d2p1:NoPassengersApplicable>
      <d2p1:NoPersonalGuestApplicable>false</d2p1:NoPersonalGuestApplicable>
      <d2p1:NoRemoteWorkersApplicable>false</d2p1:NoRemoteWorkersApplicable>
      <d2p1:NoRoomsApplicable>false</d2p1:NoRoomsApplicable>
      <d2p1:NumberOfMiles>0</d2p1:NumberOfMiles>
      <d2p1:OtherDetailsApplicable>false</d2p1:OtherDetailsApplicable>
      <d2p1:OthersApplicable>false</d2p1:OthersApplicable>
      <d2p1:ParentCategoryId>1</d2p1:ParentCategoryId>
      <d2p1:PassengersApplicable>false</d2p1:PassengersApplicable>
      <d2p1:PassengersNameApplicable>false</d2p1:PassengersNameApplicable>
      <d2p1:PdCatId>1</d2p1:PdCatId>
      <d2p1:PersonalId>0</d2p1:PersonalId>
      <d2p1:PersonalMilesApplicable>false</d2p1:PersonalMilesApplicable>
      <d2p1:PublicTransportRate i:nil="true" />
      <d2p1:ReasonApplicable>false</d2p1:ReasonApplicable>
      <d2p1:ReceiptApplicable>false</d2p1:ReceiptApplicable>
      <d2p1:Reimbursable>true</d2p1:Reimbursable>
      <d2p1:ReimbursableSubCatId i:nil="true" />
      <d2p1:RemoteId>0</d2p1:RemoteId>
      <d2p1:ShortSubCategory>sample string 10</d2p1:ShortSubCategory>
      <d2p1:Split i:nil="true" />
      <d2p1:SplitEntertainment>false</d2p1:SplitEntertainment>
      <d2p1:SplitPersonal>false</d2p1:SplitPersonal>
      <d2p1:SplitRemote>false</d2p1:SplitRemote>
      <d2p1:StaffApplicable>false</d2p1:StaffApplicable>
      <d2p1:StartDate i:nil="true" />
      <d2p1:SubCat>sample string 2</d2p1:SubCat>
      <d2p1:SubCatId>1</d2p1:SubCatId>
      <d2p1:TipApplicable>false</d2p1:TipApplicable>
      <d2p1:TipLimit i:nil="true" />
      <d2p1:ToApplicable>false</d2p1:ToApplicable>
      <d2p1:UserDefined />
      <d2p1:UserDefinedFields />
      <d2p1:ValidDates />
      <d2p1:Validate>false</d2p1:Validate>
      <d2p1:ValidationRequirements xmlns:d4p1="http://schemas.datacontract.org/2004/07/SpendManagementApi.Models.Types.Expedite" i:nil="true" />
      <d2p1:VatNumberApplicable>false</d2p1:VatNumberApplicable>
      <d2p1:VatNumberMandatory>false</d2p1:VatNumberMandatory>
      <d2p1:VatRates />
      <d2p1:VatReceipt>false</d2p1:VatReceipt>
    </d2p1:ExpenseSubCategory>
  </List>
</GetExpenseSubCategoriesResponse>
URI parameters
=
Headers | Add header
: Delete
Body
Samples:
Status
Headers
Body