Create a distribution record for the related expense
post
/fscmRestApi/resources/11.13.18.05/expenses/{expensesUniqID}/child/ExpenseDistribution
Request
Path Parameters
-
expensesUniqID(required): string
This is the hash key of the attributes which make up the composite key for the Expenses resource and used to uniquely identify an instance of Expenses. The client should not generate the hash key value. Instead, the client should query on the Expenses collection resource in order to navigate to a specific instance of Expenses to get the hash key.
Header Parameters
-
Metadata-Context: string
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: string
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: string
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
-
CodeCombinationId: integer
(int64)
Value that uniquely identifies the accounting code combination to which an expense is charged.
-
Company: string
Maximum Length:
25
Company to which an expense is charged. -
CostCenter: string
Business organization to which an expense is charged.
-
ExpenseDistId: integer
(int64)
Value that uniquely identifies the expense distribution of a specific expense item.
-
ExpenseId(required): integer
(int64)
Value that uniquely identifies the expense for an expense distribution.
-
ExpenseReportId: integer
(int64)
Value that uniquely identifies the expense report that includes the expense corresponding to an expense distribution.
-
OrgId(required): integer
(int64)
Unique identifier of the user's organization for which the expense is created.
-
PJCDFF: array
Project Descriptive Flexfields
Title:
Project Descriptive Flexfields
The project-related descriptive flexfields resource is a child resource that maintains project flexfields related to an expense. -
ReimbursableAmount: number
Amount to be reimbursed to the individual against an expense distribution.
Nested Schema : Project Descriptive Flexfields
Type:
array
Title:
Project Descriptive Flexfields
The project-related descriptive flexfields resource is a child resource that maintains project flexfields related to an expense.
Show Source
Nested Schema : schema
Type:
Show Source
object
-
__FLEX_Context: string
Title:
Context Value
Maximum Length:40
Default Value:EXM_Expense_Report_Line
Descriptive flexfield context name for projects on expense distribution. -
__FLEX_Context_DisplayValue: string
Title:
Context Value
Context Value -
ExpenseDistId: integer
(int64)
Value that uniquely identifies the expense distribution of a specific expense item.
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 : expenses-ExpenseDistribution-item-response
Type:
Show Source
object
-
BusinessUnit: string
Title:
Business Unit
Read Only:true
Maximum Length:240
Business unit that is associated with a row. -
CodeCombinationId: integer
(int64)
Value that uniquely identifies the accounting code combination to which an expense is charged.
-
Company: string
Maximum Length:
25
Company to which an expense is charged. -
CostCenter: string
Business organization to which an expense is charged.
-
CreatedBy: string
Read Only:
true
Maximum Length:64
User who created the row. -
CreationDate: string
(date-time)
Read Only:
true
Date and time when the row was created. -
ExpenseDistId: integer
(int64)
Value that uniquely identifies the expense distribution of a specific expense item.
-
ExpenseId: integer
(int64)
Value that uniquely identifies the expense for an expense distribution.
-
ExpenseReportId: integer
(int64)
Value that uniquely identifies the expense report that includes the expense corresponding to an expense distribution.
-
LastUpdateDate: string
(date-time)
Read Only:
true
Date and time when the row was last updated. -
LastUpdatedBy: string
Read Only:
true
Maximum Length:64
User who last updated the row. -
LastUpdateLogin: string
Read Only:
true
Maximum Length:32
Session login associated with the user who last updated the row. -
links: array
Links
Title:
Links
The link relations associated with the resource instance. -
OrgId: integer
(int64)
Unique identifier of the user's organization for which the expense is created.
-
PJCDFF: array
Project Descriptive Flexfields
Title:
Project Descriptive Flexfields
The project-related descriptive flexfields resource is a child resource that maintains project flexfields related to an expense. -
ReimbursableAmount: number
Amount to be reimbursed to the individual against an expense distribution.
Nested Schema : Links
Type:
array
Title:
Links
The link relations associated with the resource instance.
Show Source
Nested Schema : Project Descriptive Flexfields
Type:
array
Title:
Project Descriptive Flexfields
The project-related descriptive flexfields resource is a child resource that maintains project flexfields related to an expense.
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 : expenses-ExpenseDistribution-PJCDFF-item-response
Type:
Show Source
object
-
__FLEX_Context: string
Title:
Context Value
Maximum Length:40
Default Value:EXM_Expense_Report_Line
Descriptive flexfield context name for projects on expense distribution. -
__FLEX_Context_DisplayValue: string
Title:
Context Value
Context Value -
ExpenseDistId: integer
(int64)
Value that uniquely identifies the expense distribution of a specific expense item.
-
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
Links
- PJCDFF
-
Parameters:
- ExpenseDistId:
$request.path.ExpenseDistId
- expensesUniqID:
$request.path.expensesUniqID
The project-related descriptive flexfields resource is a child resource that maintains project flexfields related to an expense. - ExpenseDistId:
Examples
The following example shows how to create an expense distribution record for an expense 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/expenses/300100185923495/child/ExpenseDistribution
Example Request Payload
The following example shows the contents of the request body in JSON format:
{ "ReceiptAmount": "17", "ReceiptDate": "2020-06-18", "OrgId": 204, "Location":"United States", "ExpenseType":"Meals", "ReceiptCurrencyCode": "USD", "Description":"Test from REST", "ExpenseDistribution": [ { "CodeCombinationId": 13798, "ReimbursableAmount": 17, "CostCenter": "520" } ] }
Example of Response Body
The following example shows the contents of the response body in JSON format:
{ "AgencyName": null, "AssignmentId": 100010026335780, "AuditAdjustmentReason": null, "AuditAdjustmentReasonCode": null, "AwtGroupId": null, "BilledAmount": null, "BilledCurrencyCode": null, "CardId": null, "CheckoutDate": null, "CreatedBy": "FINUSER1", "CreationDate": "2020-06-18T05:59:46+00:00", "CreditCardTrxnId": null, "DailyAmount": null, "DailyDistance": null, "DepartureLocationId": null, "Description": "Test from REST", "DestinationFrom": null, "DestinationTo": null, "DistanceUnitCode": null, "EndDate": "2020-06-18", "EndDateTimestamp": "2020-06-18T00:00:00+00:00", "EndOdometer": null, "ExchangeRate": 1, "ExpenseCategoryCode": "BUSINESS", "ExpenseCreationMethodCode": "REST_SERVICE", "ExpenseId": 300100185923495, "ExpenseReference": 1, "ExpenseReportId": null, "ExpenseSource": "CASH", "ExpenseTemplateId": 10024, "ExpenseTypeCategoryCode": "MEALS", "ExpenseTypeId": 10009, "FlightClassLimit": null, "FlightDuration": null, "FlightNumber": null, "FuelType": null, "ImageReceiptRequiredFlag": false, "ItemizationParentExpenseId": null, "ItemizationReceiptBusinessTotalAmount": 0, "ItemizationReceiptPersonalTotalAmount": 0, "ItineraryReservationId": null, "Justification": null, "JustificationRequiredFlag": false, "LastUpdateDate": "2020-06-18T05:59:47.606+00:00", "LastUpdateLogin": "A84BDF4B0F0004BAE053D713F50AECC6", "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": 17, "ReceiptCurrencyCode": "USD", "ReceiptDate": "2020-06-18", "ReceiptMissingDecRequiredFlag": null, "ReceiptMissingFlag": null, "ReceiptRequiredFlag": false, "ReceiptVerifiedFlag": null, "ReimbursableAmount": 17, "ReimbursementCurrencyCode": "USD", "SequenceNumber": null, "StartDate": "2020-06-18", "StartDateTimestamp": "2020-06-18T00:00:00+00:00", "StartOdometer": null, "TaxClassificationCode": null, "TicketClassCode": null, "TicketNumber": null, "TravelMethodCode": null, "TravelType": null, "TripDistance": 0, "UOMDays": null, "ValidationErrorFlag": null, "ValidationErrorMessages": null, "ValidationWarningMessages": null, "VehicleCategoryCode": null, "VehicleType": null, "ZoneCode": null, "ZoneTypeCode": null, "BusinessUnit": "Vision Operations", "PersonName": "Johnson,Mary", "ExpenseTemplate": "Travel", "ExpenseType": "Meals", "ReceiptCurrency": "US Dollar", "ReimbursementCurrency": "US Dollar", "DistanceUnit": null, "TicketClass": null, "ExpenseSourceName": null, "ReferenceNumber": null, "Request": null, "AttachmentExists": null, "ExpenseReportStatus": null, "AuthTrxnNumber": null, "TravelTypeName": null, "VehicleCategory": null, "VehicleTypeName": null, "FuelTypeName": null, "TaxClassification": null, "CountryCode": "US", "AutoSubmitDate": null, "ExpenseDistribution": [ { "CodeCombinationId": 13798, "CostCenter": "520", "CreatedBy": "FINUSER1", "CreationDate": "2020-06-18T05:59:47.584+00:00", "ExpenseDistId": 300100185923496, "ExpenseId": 300100185923495, "ExpenseReportId": null, "LastUpdateDate": "2020-06-18T05:59:47.617+00:00", "LastUpdateLogin": "A84BDF4B0F0004BAE053D713F50AECC6", "LastUpdatedBy": "FINUSER1", "OrgId": 204, "ReimbursableAmount": 17, "Company": "01", "BusinessUnit": "Vision Operations", "links": [ { "rel": "self", "href": "https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/expenses/300100185923495/child/ExpenseDistribution/300100185923496", "name": "ExpenseDistribution", "kind": "item", "properties": { "changeIndicator": "ACED0005737200136A6176612E7574696C2E41727261794C6973747881D21D99C7619D03000149000473697A65787000000001770400000001737200116A6176612E6C616E672E496E746567657212E2A0A4F781873802000149000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B02000078700000000178" } }, { "rel": "canonical", "href": "https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/expenses/300100185923495/child/ExpenseDistribution/300100185923496", "name": "ExpenseDistribution", "kind": "item" }, { "rel": "parent", "href": "https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/expenses/300100185923495", "name": "expenses", "kind": "item" }, { "rel": "child", "href": "https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/expenses/300100185923495/child/ExpenseDistribution/300100185923496/child/PJCDFF", "name": "PJCDFF", "kind": "collection" } ] } ], "links": [ { "rel": "self", "href": "https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/expenses/300100185923495", "name": "expenses", "kind": "item", "properties": { "changeIndicator": "ACED0005737200136A6176612E7574696C2E41727261794C6973747881D21D99C7619D03000149000473697A65787000000001770400000001737200116A6176612E6C616E672E496E746567657212E2A0A4F781873802000149000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B02000078700000000178" } }, { "rel": "canonical", "href": "https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/expenses/300100185923495", "name": "expenses", "kind": "item" }, { "rel": "child", "href": "https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/expenses/300100185923495/child/Attachments", "name": "Attachments", "kind": "collection" }, { "rel": "child", "href": "https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/expenses/300100185923495/child/ExpenseAttendee", "name": "ExpenseAttendee", "kind": "collection" }, { "rel": "child", "href": "https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/expenses/300100185923495/child/ExpenseDff", "name": "ExpenseDff", "kind": "collection" }, { "rel": "child", "href": "https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/expenses/300100185923495/child/ExpenseDistribution", "name": "ExpenseDistribution", "kind": "collection" }, { "rel": "child", "href": "https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/expenses/300100185923495/child/ExpenseItemization", "name": "ExpenseItemization", "kind": "collection" }, { "rel": "child", "href": "https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/expenses/300100185923495/child/expenseErrors", "name": "expenseErrors", "kind": "collection" }, { "rel": "child", "href": "https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/expenses/300100185923495/child/matchedExpenses", "name": "matchedExpenses", "kind": "collection" }, { "rel": "action", "href": "https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/expenses/300100185923495/action/duplicate", "name": "duplicate", "kind": "other" } ] }