Get all expense type records

get

/fscmRestApi/resources/11.13.18.05/expenseTypes

Request

Query Parameters
  • When this parameter is provided, the specified children are included in the resource payload (instead of just a link). The value of this query parameter is "all" or "". More than one child can be specified using comma as a separator. Example: ?expand=Employees,Localizations. Nested children can also be provided following the format "Child.NestedChild" (Example: ?expand=Employees.Managers). If a nested child is provided (Example: Employees.Managers), the missing children will be processed implicitly. For example, "?expand=Employees.Managers" is the same as "?expand=Employees,Employees.Managers" (which will expand Employees and Managers).
  • This parameter filters the resource fields. Only the specified fields are returned, which means that if no fields are specified, no fields are returned (useful to get only the links). If an indirect child resource is provided (Example: Employees.Managers), the missing children will be processed implicitly. For example, "?fields=Employees.Managers:Empname" is the same as "?fields=;Employees:;Employees.Managers:Empname" (which will only return the "Empname" field for Managers). the value of this query parameter is a list of resource fields. The attribute can be a direct (Example: Employees) or indirect (Example: Employees.Managers) child. It cannot be combined with expand query parameter. If both are provided, only fields will be considered.

    Format: ?fields=Attribute1,Attribute2

    Format for fields in child resource: ?fields=Accessor1:Attribute1,Attribute2
  • Used as a predefined finder to search the collection.

    Format: ?finder=<finderName>;<variableName>=<variableValue>,<variableName2>=<variableValue2>

    The following are the available finder names and corresponding finder variables:

    • PrimaryKey: Finds an expense type record using an expense type identifier that matches the primary key criteria specified.
      Finder Variables:
      • ExpenseTypeId; integer; Unique identifier of an expense type in an expense template.
    • findByTemplateIdAndDate: Finds all expense types for a given date and expense template.
      Finder Variables:
      • bindDate; string; Expense types found using a given date that is less than or equal to the end date.
      • bindTemplateId; integer; Expense types found using a given date and expense template.
  • This parameter restricts the number of resources returned inside the resource collection. If the limit exceeds the resource count then the framework will only return the available resources.
  • This parameter can be used to show only certain links while accessing a singular resource or a resource collection. The parameter value format is a comma-separated list of : <link_relation>

    Example:
    self,canonical
  • Used to define the starting position of the resource collection. If offset exceeds the resource count then no resources are returned. Default value is 0.
  • The resource item payload will be filtered in order to contain only data (no links section, for example).
  • This parameter orders a resource collection based on the specified fields. The parameter value is a comma-separated string of attribute names, each optionally followed by a colon and "asc" or "desc". Specify "asc" for ascending and "desc" for descending. The default value is "asc". For example, ?orderBy=field1:asc,field2:desc
  • This query parameter defines the where clause. The resource collection will be queried using the provided expressions. The value of this query parameter is one or more expressions. Example: ?q=Deptno>=10 and <= 30;Loc!=NY

    Format: ?q=expression1;expression2

    You can use these queryable attributes to filter this collection resource using the q query parameter:
    • BusinessUnit; string; Name of a person's business unit.
    • Category; string; Expense category assigned to an expense item.
    • CategoryCode; string; Code associated with an expense category.
    • CcReceiptRequiredFlag; boolean; Indicates whether receipts are required for corporate card expenses above a specified limit.
    • CcReceiptThreshold; number; Amount limit, above which a corporate card expense requires a receipt.
    • CreatedBy; string; User who created an expense type.
    • CreationDate; string; Date when the expense type was created.
    • DefaultProjExpendType; integer; Project expenditure type that is assigned to an expense type that has not been set up at the project level.
    • Description; string; Description of the expense type.
    • DescriptionBehaviour; string; Behavior of the expense item Description field, which is defined at the expense type level.
    • DescriptionBehaviourCode; string; Code that is associated with the description behavior.
    • DispRcptViolationFlag; boolean; Indicates whether a missing receipt policy warning is displayed to the user.
    • EnableProjectsFlag; boolean; Indicates whether an expense type can be used to charge project expenses.
    • EndDate; string; Date when the expense template can no longer be used.
    • ExpenseTemplateId; integer; Value that uniquely identifies an expense template that contains expense types.
    • ExpenseTypeId; integer; Value that uniquely identifies an expense type in an expense template.
    • ItemizationBehaviour; string; Behavior of an itemized expense type, whether disabled, enabled, or required.
    • ItemizationBehaviourCode; string; Code that is associated with the itemization behavior.
    • ItemizationOnlyFlag; boolean; Indicates whether an expense type is only used to itemize.
    • LastUpdateDate; string; Date when the expense type was last updated.
    • LastUpdateLogin; string; Session login that is associated with the user who last updated the expense type.
    • LastUpdatedBy; string; User who last updated the expense type.
    • LocationBehaviour; string; Behavior of the Expense Location field, which is defined at the expense type level.
    • LocationBehaviourCode; string; Code that is associated with the expense location behavior.
    • MerchantBehaviour; string; Behavior of the Merchant field, which is defined at the expense type level.
    • MerchantBehaviourCode; string; Code that is associated with the merchant behavior.
    • Name; string; Name of the expense type as appears in the expense report.
    • NegativeRcptRequiredCode; string; Code that is associated with receipt requirement rules that are applied to negative expense lines.
    • NumberOfDaysBehaviour; string; Behavior of the Number of Days field, which is defined at the expense type level.
    • NumberOfDaysBehaviourCode; string; Code that is associated with the number of days behavior.
    • OrgId; integer; Value that uniquely identifies the business unit associated with the row.
    • RcptRequiredProjFlag; boolean; Indicates whether a receipt is required for a project-enabled expense type.
    • ReceiptRequiredFlag; boolean; Indicates whether receipts are required for cash expenses above a specified amount.
    • ReceiptThreshold; number; Amount limit, above which a cash expense requires a receipt.
    • StartDate; string; Date when the expense template is available for use in expense reports.
    • TaxClassification; string; Default tax code that is assigned to an expense item.
    • TaxClassificationCode; string; Code that is associated with a tax classification.
  • The resource collection representation will include the "estimated row count" when "?totalResults=true", otherwise the count is not included. The default value is "false".
Header Parameters
  • If the REST API supports runtime customizations, the shape of the service may change during runtime. The REST client may isolate itself from these changes or choose to interact with the latest version of the API by specifying this header. For example: Metadata-Context:sandbox="TrackEmployeeFeature".
  • The protocol version between a REST client and service. If the client does not specify this header in the request the server will pick a default version for the API.

There's no request body for this operation.

Back to Top

Response

Supported Media Types

Default Response

The following table describes the default response for this task.
Headers
  • If the REST API supports runtime customizations, the shape of the service may change during runtime. The REST client may isolate itself from these changes or choose to interact with the latest version of the API by specifying this header. For example: Metadata-Context:sandbox="TrackEmployeeFeature".
  • The protocol version between a REST client and service. If the client does not specify this header in the request the server will pick a default version for the API.
Body ()
Root Schema : expenseTypes
Type: object
Show Source
Nested Schema : Items
Type: array
Title: Items
The items in the collection.
Show Source
Nested Schema : expenseTypes-item-response
Type: object
Show Source
Nested Schema : Expenses Type Itemize
Type: array
Title: Expenses Type Itemize
The itemized expense types resource is used to define expense types that are eligible for itemization.
Show Source
Nested Schema : Preferred Agency Lists
Type: array
Title: Preferred Agency Lists
The preferred agency lists resource is used to view the preferred agency lists that are defined for the expense type.
Show Source
Nested Schema : Preferred Merchant Lists
Type: array
Title: Preferred Merchant Lists
The preferred merchant lists resource is used to view the preferred merchant lists that are defined for the expense type.
Show Source
Nested Schema : expenseTypes-itemizedExpenseTypes-item-response
Type: object
Show Source
Nested Schema : expenseTypes-preferredAgencyLists-item-response
Type: object
Show Source
Nested Schema : expenseTypes-preferredMerchantLists-item-response
Type: object
Show Source
Back to Top

Examples

The following example shows how to retrieve all the expense type records by submitting a GET request on the REST resource using cURL.

curl -i -u "<username>:<password>" -H "Content-Type: application/vnd.oracle.adf.resourcecollection+json" -X GET https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/expenseTypes

Example Response Body

The following example shows the contents of the response body in JSON format:

{
  "items": [
    {
      "BusinessUnit": "Vision Italy",
      "Category": "Car Rental",
      "CategoryCode": "CAR_RENTAL",
      "CcReceiptRequiredFlag": false,
      "CcReceiptThreshold": null,
      "CreatedBy": "3043",
      "CreationDate": "2001-06-26T09:55:16+00:00",
      "DefaultProjExpendType": null,
      "Description": null,
      "DescriptionBehaviour": null,
      "DescriptionBehaviourCode": null,
      "DispRcptViolationFlag": false,
      "EnableProjectsFlag": false,
      "EndDate": null,
      "ExpenseTemplateId": 10040,
      "ExpenseTypeId": 10294,
      "ItemizationBehaviour": "Disabled",
      "ItemizationBehaviourCode": "DISABLED",
      "ItemizationOnlyFlag": false,
      "LastUpdateDate": "2005-03-20T21:45:04+00:00",
      "LastUpdateLogin": "2443710",
      "LastUpdatedBy": "-1",
      "LocationBehaviour": null,
      "LocationBehaviourCode": null,
      "MerchantBehaviour": null,
      "MerchantBehaviourCode": null,
      "Name": "Noleggio Auto",
      "NegativeRcptRequiredCode": "T",
      "NumberOfDaysBehaviour": null,
      "NumberOfDaysBehaviourCode": null,
      "OrgId": 1017,
      "RcptRequiredProjFlag": false,
      "ReceiptRequiredFlag": false,
      "ReceiptThreshold": null,
      "StartDate": "2001-06-26",
      "TaxClassification": null,
      "TaxClassificationCode": "IVA20",
      "links": [
        {
          "rel": "self",
          "href": "https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/expenseTypes/10294",
          "name": "expenseTypes",
          "kind": "item",
          "properties": {
            "changeIndicator": "ACED0005737200136A6176612E7574696C2E41727261794C6973747881D21D99C7619D03000149000473697A657870000000017704000000017372001B6F7261636C652E6A626F2E646F6D61696E2E4E756C6C56616C75655899C1C58DAABEEB02000149000A6D53514C54797065496478700000000C78"
          }
        },
        {
          "rel": "canonical",
          "href": "https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/expenseTypes/10294",
          "name": "expenseTypes",
          "kind": "item"
        },
        {
          "rel": "child",
          "href": "https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/expenseTypes/10294/child/itemizedExpenseTypes",
          "name": "itemizedExpenseTypes",
          "kind": "collection"
        },
        {
          "rel": "child",
          "href": "https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/expenseTypes/10294/child/preferredAgencyLists",
          "name": "preferredAgencyLists",
          "kind": "collection"
        },
        {
          "rel": "child",
          "href": "https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/expenseTypes/10294/child/preferredMerchantLists",
          "name": "preferredMerchantLists",
          "kind": "collection"
        }
      ]
    },
	...
  ],
  "count": 25,
  "hasMore": true,
  "limit": 25,
  "offset": 0,
  "links": [
    {
      "rel": "self",
      "href": "https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/expenseTypes",
      "name": "expenseTypes",
      "kind": "collection"
    }
  ]
}
Back to Top