Get a single expense type record for the requested expense type
get
/fscmRestApi/resources/11.13.18.05/expenseTypes/{ExpenseTypeId}
Request
Path Parameters
-
ExpenseTypeId(required): integer(int64)
Value that uniquely identifies an expense type in an expense template.
Query Parameters
-
dependency: string
This parameter specifies dependencies which are fields that are set before and rolled back after generating the response. Generally they are used to preview the effects of an attribute change. The fields specified in this parameter are always set in the resource instance in question. When a child resource collection is requested and the parameter is set, the fields will be set in the parent resource instance before generating the resource collection payload. The value of this query parameter is a set of dependency fields. Example: dependency=ProductId=2
Format: <attr1>=<val1>,<attr2>=<value2> -
expand: string
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).
-
fields: string
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 -
links: string
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 -
onlyData: boolean
The resource item payload will be filtered in order to contain only data (no links section, for example).
Header Parameters
-
Metadata-Context:
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".
-
REST-Framework-Version:
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 TopResponse
Supported Media Types
- application/json
Default Response
The following table describes the default response for this task.
Headers
-
Metadata-Context:
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".
-
REST-Framework-Version:
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.
Root Schema : expenseTypes-item-response
Type:
Show Source
object
-
BusinessUnit: string
Title:
Business Unit
Read Only:true
Maximum Length:240
Name of a person's business unit. -
Category: string
Title:
Meaning
Read Only:true
Maximum Length:80
Expense category assigned to an expense item. -
CategoryCode: string
Maximum Length:
30
Code associated with an expense category. -
CcReceiptRequiredFlag: boolean
Maximum Length:
1
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
Read Only:
true
Maximum Length:64
User who created an expense type. -
CreationDate: string
(date-time)
Read Only:
true
Date when the expense type was created. -
DefaultProjExpendType: integer
(int64)
Project expenditure type that is assigned to an expense type that has not been set up at the project level.
-
Description: string
Maximum Length:
240
Description of the expense type. -
DescriptionBehaviour: string
Title:
Meaning
Read Only:true
Maximum Length:80
Behavior of the expense item Description field, which is defined at the expense type level. -
DescriptionBehaviourCode: string
Maximum Length:
30
Code that is associated with the description behavior. -
DispRcptViolationCode: string
Indicates whether a missing receipt policy warning is displayed to the user.
-
DispRcptViolationFlag: boolean
Maximum Length:
1
Indicates whether a missing receipt policy warning is displayed to the user. -
EnableProjectsFlag: boolean
Maximum Length:
1
Indicates whether an expense type can be used to charge project expenses. -
EndDate: string
(date)
Date when the expense template can no longer be used.
-
ExpenseTemplateId: integer
(int64)
Value that uniquely identifies an expense template that contains expense types.
-
ExpenseTypeId: integer
(int64)
Value that uniquely identifies an expense type in an expense template.
-
ItemizationBehaviour: string
Title:
Meaning
Read Only:true
Maximum Length:80
Behavior of an itemized expense type, whether disabled, enabled, or required. -
ItemizationBehaviourCode: string
Maximum Length:
15
Code that is associated with the itemization behavior. -
ItemizationOnlyFlag: boolean
Maximum Length:
1
Indicates whether an expense type is only used to itemize. -
itemizedExpenseTypes: array
Expenses Type Itemize
Title:
Expenses Type Itemize
The itemized expense types resource is used to define expense types that are eligible for itemization. -
LastUpdateDate: string
(date-time)
Read Only:
true
Date when the expense type was last updated. -
LastUpdatedBy: string
Read Only:
true
Maximum Length:64
User who last updated the expense type. -
LastUpdateLogin: string
Read Only:
true
Maximum Length:32
Session login that is associated with the user who last updated the expense type. -
links: array
Links
Title:
Links
The link relations associated with the resource instance. -
LocationBehaviour: string
Title:
Meaning
Read Only:true
Maximum Length:80
Behavior of the Expense Location field, which is defined at the expense type level. -
LocationBehaviourCode: string
Maximum Length:
30
Code that is associated with the expense location behavior. -
MerchantBehaviour: string
Title:
Meaning
Read Only:true
Maximum Length:80
Behavior of the Merchant field, which is defined at the expense type level. -
MerchantBehaviourCode: string
Maximum Length:
30
Code that is associated with the merchant behavior. -
Name: string
Maximum Length:
80
Name of the expense type as appears in the expense report. -
NegativeRcptRequiredCode: string
Maximum Length:
30
Code that is associated with receipt requirement rules that are applied to negative expense lines. -
NumberOfDaysBehaviour: string
Title:
Meaning
Read Only:true
Maximum Length:80
Behavior of the Number of Days field, which is defined at the expense type level. -
NumberOfDaysBehaviourCode: string
Maximum Length:
30
Code that is associated with the number of days behavior. -
OrgId: integer
(int64)
Value that uniquely identifies the business unit associated with the row.
-
preferredAgencyLists: array
Preferred Agency Lists
Title:
Preferred Agency Lists
The preferred agency lists resource is used to view the preferred agency lists that are defined for the expense type. -
preferredMerchantLists: array
Preferred Merchant Lists
Title:
Preferred Merchant Lists
The preferred merchant lists resource is used to view the preferred merchant lists that are defined for the expense type. -
RcptRequiredProjFlag: boolean
Maximum Length:
1
Indicates whether a receipt is required for a project-enabled expense type. -
ReceiptRequiredFlag: boolean
Maximum Length:
1
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)
Date when the expense template is available for use in expense reports.
-
TaxClassification: string
Read Only:
true
Default tax code that is assigned to an expense item. -
TaxClassificationCode: string
Maximum Length:
30
Code that is associated with a tax classification.
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 : Links
Type:
array
Title:
Links
The link relations associated with the resource instance.
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:
Show Source
object
-
CreatedBy: string
Read Only:
true
Maximum Length:64
User who created the itemized expense type. -
CreationDate: string
(date-time)
Read Only:
true
Date when the itemized expense type was created. -
ExpenseTypeId: integer
(int64)
Value that uniquely identifies the itemized expense type.
-
ExpenseTypeParentId: integer
(int64)
Value that uniquely identifies the parent expense type of the itemized expense type.
-
LastUpdateDate: string
(date-time)
Read Only:
true
Date when the itemized expense type was last updated. -
LastUpdatedBy: string
Read Only:
true
Maximum Length:64
User who last updated the itemized expense type. -
LastUpdateLogin: string
Read Only:
true
Maximum Length:32
Session login that is associated with the user who last updated the itemized expense type. -
links: array
Links
Title:
Links
The link relations associated with the resource instance.
Nested Schema : Links
Type:
array
Title:
Links
The link relations associated with the resource instance.
Show Source
Nested Schema : link
Type:
Show Source
object
-
href: string
Title:
hyperlink reference
The URI to the related resource. -
kind: string
Title:
kind
Allowed Values:[ "collection", "item", "describe", "other" ]
The kind of the related resource. -
name: string
Title:
name
The name of the link to the related resource. -
properties: object
properties
-
rel: string
Title:
relation
Allowed Values:[ "self", "lov", "parent", "canonical", "child", "enclosure", "action", "custom" ]
The name of the relation to the resource instance. Example: self.
Nested Schema : properties
Type:
Show Source
object
-
changeIndicator: string
Change indicator or the ETag value of the resource instance.
Nested Schema : expenseTypes-preferredAgencyLists-item-response
Type:
Show Source
object
-
AgencyListName: string
Read Only:
true
Maximum Length:80
Lookup type name that provides name of the preferred agency list. -
AgencyListType: string
Maximum Length:
30
Lookup type code of the preferred agency list. -
CreatedBy: string
Maximum Length:
64
User who created the preferred agency list. -
CreationDate: string
(date-time)
Date when the preferred agency list was created.
-
DispWarningToUserFlag: boolean
Maximum Length:
1
Indicates whether policy warning is displayed to user. -
EndDate: string
(date)
Date when this preferred agency list is no longer applicable.
-
ExpenseTypeId: integer
(int64)
Value that uniquely identifies the parent expense type.
-
LastUpdateDate: string
(date-time)
Date when the preferred agency list was last updated.
-
LastUpdatedBy: string
Maximum Length:
64
User who last updated the preferred agency list. -
LastUpdateLogin: string
Maximum Length:
32
Session login that is associated with the user who last updated the preferred agency list. -
links: array
Links
Title:
Links
The link relations associated with the resource instance. -
PolicyEnforcement: string
Title:
Meaning
Read Only:true
Maximum Length:80
Type of policy enforcement applied to this preferred agency list. Values are from lookup EXM_PREFERRED_ENFORCEMENT. -
PolicyEnforcementCode: string
Maximum Length:
30
Code of policy enforcement applied to this preferred agency list. Values are from lookup EXM_PREFERRED_ENFORCEMENT. -
StartDate: string
(date)
Date when this preferred agency list is applicable.
Nested Schema : Links
Type:
array
Title:
Links
The link relations associated with the resource instance.
Show Source
Nested Schema : expenseTypes-preferredMerchantLists-item-response
Type:
Show Source
object
-
CreatedBy: string
Maximum Length:
64
User who created the preferred merchant list. -
CreationDate: string
(date-time)
Date when the preferred merchant list was created.
-
DispWarningToUserFlag: boolean
Maximum Length:
1
Indicates whether policy warning is displayed to user. -
EndDate: string
(date)
Date when this preferred merchant list is no longer applicable.
-
ExpenseTypeId: integer
(int64)
Value that uniquely identifies the parent expense type.
-
LastUpdateDate: string
(date-time)
Date when the preferred merchant list was last updated.
-
LastUpdatedBy: string
Maximum Length:
64
User who last updated the preferred merchant list. -
LastUpdateLogin: string
Maximum Length:
32
Session login that is associated with the user who last updated the preferred merchant list. -
links: array
Links
Title:
Links
The link relations associated with the resource instance. -
MerchantListName: string
Read Only:
true
Maximum Length:80
Lookup type name that provides name of the preferred merchant list. -
MerchantListType: string
Maximum Length:
30
Lookup type code of the preferred merchant list. -
PolicyEnforcement: string
Title:
Meaning
Read Only:true
Maximum Length:80
Type of policy enforcement applied to this preferred merchant list. Values are from lookup EXM_PREFERRED_ENFORCEMENT. -
PolicyEnforcementCode: string
Maximum Length:
30
Code of policy enforcement applied to this preferred merchant list. Values are from lookup EXM_PREFERRED_ENFORCEMENT. -
StartDate: string
(date)
Date when this preferred merchant list is applicable.
Nested Schema : Links
Type:
array
Title:
Links
The link relations associated with the resource instance.
Show Source
Links
- itemizedExpenseTypes
-
Operation: /fscmRestApi/resources/11.13.18.05/expenseTypes/{ExpenseTypeId}/child/itemizedExpenseTypesParameters:
- ExpenseTypeId:
$request.path.ExpenseTypeId
The itemized expense types resource is used to define expense types that are eligible for itemization. - ExpenseTypeId:
- preferredAgencyLists
-
Operation: /fscmRestApi/resources/11.13.18.05/expenseTypes/{ExpenseTypeId}/child/preferredAgencyListsParameters:
- ExpenseTypeId:
$request.path.ExpenseTypeId
The preferred agency lists resource is used to view the preferred agency lists that are defined for the expense type. - ExpenseTypeId:
- preferredMerchantLists
-
Operation: /fscmRestApi/resources/11.13.18.05/expenseTypes/{ExpenseTypeId}/child/preferredMerchantListsParameters:
- ExpenseTypeId:
$request.path.ExpenseTypeId
The preferred merchant lists resource is used to view the preferred merchant lists that are defined for the expense type. - ExpenseTypeId:
Examples
The following example shows how to retrieve an expense type record by submitting a GET request on the REST resource using cURL.
curl -i -u "<username>:<password>" -H "Content-Type: application/json" -X GET https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/expenseTypes/10320
Example Response Body
The following example shows the contents of the response body in JSON format:
{ "BusinessUnit": null, "Category": "Meals", "CategoryCode": "MEALS", "CcReceiptRequiredFlag": false, "CcReceiptThreshold": null, "CreatedBy": "2047", "CreationDate": "2001-06-28T04:26:24+00:00", "DefaultProjExpendType": null, "Description": null, "DescriptionBehaviour": null, "DescriptionBehaviourCode": null, "DispRcptViolationFlag": false, "EnableProjectsFlag": false, "EndDate": null, "ExpenseTemplateId": 10103, "ExpenseTypeId": 10320, "ItemizationBehaviour": "Disabled", "ItemizationBehaviourCode": "DISABLED", "ItemizationOnlyFlag": false, "LastUpdateDate": "2005-03-20T21:45:04+00:00", "LastUpdateLogin": "2443683", "LastUpdatedBy": "-1", "LocationBehaviour": null, "LocationBehaviourCode": null, "MerchantBehaviour": null, "MerchantBehaviourCode": null, "Name": "Meals", "NegativeRcptRequiredCode": "T", "NumberOfDaysBehaviour": null, "NumberOfDaysBehaviourCode": null, "OrgId": 889, "RcptRequiredProjFlag": false, "ReceiptRequiredFlag": false, "ReceiptThreshold": null, "StartDate": "2001-06-28", "TaxClassification": null, "TaxClassificationCode": "Cred. hoog", "links": [ { "rel": "self", "href": "https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/expenseTypes/10320", "name": "expenseTypes", "kind": "item", "properties": { "changeIndicator": "ACED0005737200136A6176612E7574696C2E41727261794C6973747881D21D99C7619D03000149000473697A657870000000017704000000017372001B6F7261636C652E6A626F2E646F6D61696E2E4E756C6C56616C75655899C1C58DAABEEB02000149000A6D53514C54797065496478700000000C78" } }, { "rel": "canonical", "href": "https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/expenseTypes/10320", "name": "expenseTypes", "kind": "item" }, { "rel": "child", "href": "https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/expenseTypes/10320/child/itemizedExpenseTypes", "name": "itemizedExpenseTypes", "kind": "collection" }, { "rel": "child", "href": "https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/expenseTypes/10320/child/preferredAgencyLists", "name": "preferredAgencyLists", "kind": "collection" }, { "rel": "child", "href": "https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/expenseTypes/10320/child/preferredMerchantLists", "name": "preferredMerchantLists", "kind": "collection" } ] }