Create an expense report descriptive flexfield record
post
/fscmRestApi/resources/11.13.18.05/expenseReports/{expenseReportsUniqID}/child/ExpenseReportDff
Request
Path Parameters
-
expenseReportsUniqID(required): string
This is the hash key of the attributes which make up the composite key for the Expense Reports resource and used to uniquely identify an instance of Expense Reports. The client should not generate the hash key value. Instead, the client should query on the Expense Reports collection resource in order to navigate to a specific instance of Expense Reports to get the hash key.
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.
-
Upsert-Mode:
Contains one of the following values: true or false. If true, the server performs an Upsert operation instead of a Create operation. During an Upsert operation, the server attempts to find an existing resource that matches the payload. If a match is found, the server updates the existing resource instead of creating a new one. If not found or false (default), the server performs a Create operation. Note that the Upsert operation isn't supported for date-effective REST resources.
Supported Media Types
- application/json
Root Schema : schema
Type:
Show Source
object
-
__FLEX_Context: string
Title:
Context Segment
Maximum Length:240
Descriptive flexfield context name for expense reports. -
__FLEX_Context_DisplayValue: string
Title:
Context Segment
Descriptive flexfield number of segments for expense reports. -
ExpenseReportId: integer
(int64)
Value that uniquely identifies the expense report.
Response
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 : expenseReports-ExpenseReportDff-item-response
Type:
Show Source
object
-
__FLEX_Context: string
Title:
Context Segment
Maximum Length:240
Descriptive flexfield context name for expense reports. -
__FLEX_Context_DisplayValue: string
Title:
Context Segment
Descriptive flexfield number of segments for expense reports. -
ExpenseReportId: integer
(int64)
Value that uniquely identifies the expense report.
-
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.
Links
- LVVO_V___FLEX_Context
-
Parameters:
- finder:
ValidValuesFinder%3BBind_ApplicationId%3D10016%2CBind_DescriptiveFlexfieldCode%3DEXM_EXPENSE_REPORT_HEADER
The following properties are defined on the LOV link relation:- Source Attribute: __FLEX_Context_DisplayValue; Target Attribute: Name
- Display Attribute: Name, Description
- finder:
- LVVO___FLEX_Context
-
Parameters:
- finder:
ValidValuesFinder%3BBind_ApplicationId%3D10016%2CBind_DescriptiveFlexfieldCode%3DEXM_EXPENSE_REPORT_HEADER
The following properties are defined on the LOV link relation:- Source Attribute: __FLEX_Context; Target Attribute: ContextCode
- Display Attribute: Name
- finder:
Examples
The following example shows how to create an expense report descriptive flexfield for an expense report by submitting a POST request on the REST resource using cURL.
curl -i -u "<username>:<password>" -H "Content-Type: application/vnd.oracle.adf.resourceitem+json" -X POST -d <payload> https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/expenseReports/300100185984719/child/Expense/300100185984720/child/ExpenseDff
Example Request Payload
The following example shows the contents of the request body in JSON format:
{ "ExpenseReportTotal": 175, "ReimbursementCurrencyCode": "USD", "SubmitReport": "Y", "Expense": [ { "Location":"United States", "Description": "desc", "ReceiptDate": "2019-08-05", "ExpenseTemplate": "Travel", "ExpenseType": "Internet", "ReceiptAmount":500, "ReimbursableAmount":500.00, "ExpenseDff":[ { "__FLEX_Context": "Internet", "wifi": "Yes" } ] } ] }
Example Response Body
The following example shows the contents of the response body in JSON format:
{ "AssignmentId": 100010026335780, "AuditCode": null, "AuditReturnReasonCode": null, "BothpayFlag": null, "CurrentApproverId": null, "ExchangeRateType": null, "ExpenseReportDate": "2019-08-05", "ExpenseReportId": 300100185984719, "ExpenseReportNumber": "EXM0185984719", "ExpenseReportTotal": 500, "ExpenseStatusCode": "PEND_MGR_APPROVAL", "ExpenseStatusDate": null, "FinalApprovalDate": null, "ImagedReceiptsReceivedDate": null, "ImagedReceiptsStatusCode": "REQUIRED", "MissingImagesReason": null, "OrgId": 204, "OverrideApproverId": null, "ParentExpenseReportId": null, "PaymentMethodCode": "CHECK", "PersonId": 100010026335772, "PreparerId": null, "Purpose": null, "ReceiptsFilingNumber": null, "ReceiptsReceivedDate": null, "ReceiptsStatusCode": "REQUIRED", "ReimbursementCurrencyCode": "USD", "ReportCreationMethodCode": "REST_SERVICE", "ReportSubmitDate": "2020-06-18", "TripId": null, "UnappliedAdvancesJust": null, "UnappliedCashAdvReason": null, "CreatedBy": "FINUSER1", "CreationDate": "2020-06-18T11:04:58+00:00", "LastUpdateDate": "2020-06-18T11:04:59.258+00:00", "LastUpdateLogin": "A84BEE8EFC9004BEE053D713F50A4579", "LastUpdatedBy": "FINUSER1", "BusinessUnit": "Vision Operations", "SubmitReport": "PROCESSED", "MatchExpenses": null, "SubmitErrors": null, "PersonName": "Johnson,Mary", "OriginalReceiptsStatus": "Required", "ImagedReceiptsStatus": "Required", "ExpenseReportStatus": "Pending manager approval", "AuditCodeName": null, "CurrentApprovers": null, "Expense": [ { "AgencyName": null, "AssignmentId": 100010026335780, "AuditAdjustmentReason": null, "AuditAdjustmentReasonCode": null, "AwtGroupId": null, "BilledAmount": null, "BilledCurrencyCode": null, "CardId": null, "CheckoutDate": null, "CreatedBy": "FINUSER1", "CreationDate": "2020-06-18T11:04:58.183+00:00", "CreditCardTrxnId": null, "DailyAmount": null, "DailyDistance": null, "DepartureLocationId": null, "Description": "desc", "DestinationFrom": null, "DestinationTo": null, "DistanceUnitCode": null, "EndDate": "2019-08-05", "EndDateTimestamp": "2019-08-05T00:00:00+00:00", "EndOdometer": null, "ExchangeRate": 1, "ExpenseCategoryCode": "BUSINESS", "ExpenseCreationMethodCode": "REST_SERVICE", "ExpenseId": 300100185984720, "ExpenseReference": 3, "ExpenseReportId": 300100185984719, "ExpenseSource": "CASH", "ExpenseTemplateId": 10024, "ExpenseTypeCategoryCode": "MISC", "ExpenseTypeId": 100000010094106, "FlightClassLimit": null, "FlightDuration": null, "FlightNumber": null, "FuelType": null, "ImageReceiptRequiredFlag": true, "ItemizationParentExpenseId": null, "ItemizationReceiptBusinessTotalAmount": 0, "ItemizationReceiptPersonalTotalAmount": 0, "ItineraryReservationId": null, "Justification": null, "JustificationRequiredFlag": false, "LastUpdateDate": "2020-06-18T11:04:59.263+00:00", "LastUpdateLogin": "A84BEE8EFC9004BEE053D713F50A4579", "LastUpdatedBy": "FINUSER1", "LicensePlateNumber": null, "Location": "United States", "LocationId": 1, "LongTermTripFlag": null, "LongTermTripStartDate": null, "MerchantDocumentNumber": null, "MerchantName": null, "MerchantReference": null, "MerchantTaxRegNumber": null, "MerchantTaxpayerId": null, "MileagePolicyId": null, "NumberOfAttendees": null, "NumberOfDays": 1, "NumberPeople": null, "OrgId": 204, "PassengerAmount": null, "PassengerName": null, "PassengerRateType": null, "PaymentDueFromCode": null, "PersonId": 100010026335772, "PersonalReceiptAmount": 0, "PolicyShortpayFlag": null, "PolicyViolatedFlag": null, "PolicyWarningFlag": null, "PolicyWarningReasonCode": null, "PreparerId": null, "RatePerPassenger": null, "ReceiptAmount": 500, "ReceiptCurrencyCode": "USD", "ReceiptDate": "2019-08-05", "ReceiptMissingDecRequiredFlag": null, "ReceiptMissingFlag": null, "ReceiptRequiredFlag": true, "ReceiptVerifiedFlag": null, "ReimbursableAmount": 500, "ReimbursementCurrencyCode": "USD", "SequenceNumber": null, "StartDate": "2019-08-05", "StartDateTimestamp": "2019-08-05T00:00:00+00:00", "StartOdometer": null, "TaxClassificationCode": null, "TicketClassCode": null, "TicketNumber": null, "TravelMethodCode": null, "TravelType": null, "TripDistance": 0, "UOMDays": null, "ValidationErrorFlag": false, "ValidationErrorMessages": null, "ValidationWarningMessages": null, "VehicleCategoryCode": null, "VehicleType": null, "ZoneCode": null, "ZoneTypeCode": null, "BusinessUnit": "Vision Operations", "PersonName": "Johnson,Mary", "ExpenseTemplate": "Travel", "ExpenseType": "Internet", "ReceiptCurrency": "US Dollar", "ReimbursementCurrency": "US Dollar", "DistanceUnit": null, "TicketClass": null, "ExpenseSourceName": "Cash", "ReferenceNumber": null, "Request": null, "AttachmentExists": "N", "ExpenseReportStatus": "PEND_MGR_APPROVAL", "AuthTrxnNumber": null, "TravelTypeName": null, "VehicleCategory": null, "VehicleTypeName": null, "FuelTypeName": null, "TaxClassification": null, "CountryCode": null, "AutoSubmitDate": null, "ExpenseDff": [ { "ExpenseId": 300100185984720, "expenseLine1": null, "a500ValuesMobileDff": null, "__FLEX_Context": "Internet", "wifi": "Yes", "links": [ { "rel": "self", "href": "https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/expenseReports/300100185984719/child/Expense/300100185984720/child/ExpenseDff/300100185984720", "name": "ExpenseDff", "kind": "item", "properties": { "changeIndicator": "ACED0005737200136A6176612E7574696C2E41727261794C6973747881D21D99C7619D03000149000473697A65787000000001770400000001737200116A6176612E6C616E672E496E746567657212E2A0A4F781873802000149000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B02000078700000000378" } }, { "rel": "canonical", "href": "https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/expenseReports/300100185984719/child/Expense/300100185984720/child/ExpenseDff/300100185984720", "name": "ExpenseDff", "kind": "item" }, { "rel": "parent", "href": "https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/expenseReports/300100185984719/child/Expense/300100185984720", "name": "Expense", "kind": "item" } ] } ], "links": [ { "rel": "self", "href": "https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/expenseReports/300100185984719/child/Expense/300100185984720", "name": "Expense", "kind": "item", "properties": { "changeIndicator": "ACED0005737200136A6176612E7574696C2E41727261794C6973747881D21D99C7619D03000149000473697A65787000000001770400000001737200116A6176612E6C616E672E496E746567657212E2A0A4F781873802000149000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B02000078700000000378" } }, { "rel": "canonical", "href": "https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/expenseReports/300100185984719/child/Expense/300100185984720", "name": "Expense", "kind": "item" }, { "rel": "parent", "href": "https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/expenseReports/300100185984719", "name": "expenseReports", "kind": "item" }, { "rel": "child", "href": "https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/expenseReports/300100185984719/child/Expense/300100185984720/child/Attachments", "name": "Attachments", "kind": "collection" }, { "rel": "child", "href": "https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/expenseReports/300100185984719/child/Expense/300100185984720/child/ExpenseAttendee", "name": "ExpenseAttendee", "kind": "collection" }, { "rel": "child", "href": "https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/expenseReports/300100185984719/child/Expense/300100185984720/child/ExpenseDff", "name": "ExpenseDff", "kind": "collection" }, { "rel": "child", "href": "https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/expenseReports/300100185984719/child/Expense/300100185984720/child/ExpenseDistribution", "name": "ExpenseDistribution", "kind": "collection" }, { "rel": "child", "href": "https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/expenseReports/300100185984719/child/Expense/300100185984720/child/ExpenseItemization", "name": "ExpenseItemization", "kind": "collection" }, { "rel": "child", "href": "https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/expenseReports/300100185984719/child/Expense/300100185984720/child/expenseErrors", "name": "expenseErrors", "kind": "collection" }, { "rel": "child", "href": "https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/expenseReports/300100185984719/child/Expense/300100185984720/child/matchedExpenses", "name": "matchedExpenses", "kind": "collection" }, { "rel": "action", "href": "https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/expenseReports/300100185984719/child/Expense/300100185984720/action/duplicate", "name": "duplicate", "kind": "other" } ] } ], "links": [ { "rel": "self", "href": "https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/expenseReports/300100185984719", "name": "expenseReports", "kind": "item", "properties": { "changeIndicator": "ACED0005737200136A6176612E7574696C2E41727261794C6973747881D21D99C7619D03000149000473697A65787000000001770400000001737200116A6176612E6C616E672E496E746567657212E2A0A4F781873802000149000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B02000078700000000378" } }, { "rel": "canonical", "href": "https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/expenseReports/300100185984719", "name": "expenseReports", "kind": "item" }, { "rel": "child", "href": "https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/expenseReports/300100185984719/child/Attachments", "name": "Attachments", "kind": "collection" }, { "rel": "child", "href": "https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/expenseReports/300100185984719/child/Expense", "name": "Expense", "kind": "collection" }, { "rel": "child", "href": "https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/expenseReports/300100185984719/child/ExpensePayment", "name": "ExpensePayment", "kind": "collection" }, { "rel": "child", "href": "https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/expenseReports/300100185984719/child/ExpenseReportDff", "name": "ExpenseReportDff", "kind": "collection" }, { "rel": "child", "href": "https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/expenseReports/300100185984719/child/expenseNotes", "name": "expenseNotes", "kind": "collection" }, { "rel": "child", "href": "https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/expenseReports/300100185984719/child/processingDetails", "name": "processingDetails", "kind": "collection" }, { "rel": "action", "href": "https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/expenseReports/300100185984719/action/submit", "name": "submit", "kind": "other" }, { "rel": "action", "href": "https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/expenseReports/300100185984719/action/processWFAction", "name": "processWFAction", "kind": "other" }, { "rel": "action", "href": "https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/expenseReports/300100185984719/action/applyCashAdvances", "name": "applyCashAdvances", "kind": "other" }, { "rel": "action", "href": "https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/expenseReports/300100185984719/action/revertCashAdvances", "name": "revertCashAdvances", "kind": "other" } ] }