Create a project-related descriptive flexfield record

post

/fscmRestApi/resources/11.13.18.05/expenses/{expensesUniqID}/child/ExpenseDistribution/{ExpenseDistId}/child/PJCDFF

Request

Path Parameters
  • Value that uniquely identifies the expense distribution of a specific expense item.
  • 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
  • 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.
  • 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
Request Body - application/json ()
Root Schema : Discriminator: __FLEX_Context
Type: object
Discriminator: __FLEX_Context

Discriminator Values

Match One Schema
Show Source
Nested Schema : oracle_apps_financials_expenses_entry_shared_flex_pjcdff_view_PJCDFFAP__5FDistribution__5FSetsVO-item-post-request
Type: object
Show Source
Nested Schema : oracle_apps_financials_expenses_entry_shared_flex_pjcdff_view_PJCDFFAP__5FInvoice__5FDistributionVO-item-post-request
Type: object
Show Source
Nested Schema : oracle_apps_financials_expenses_entry_shared_flex_pjcdff_view_PJCDFFAP__5FInvoice__5FLineVO-item-post-request
Type: object
Show Source
Nested Schema : oracle_apps_financials_expenses_entry_shared_flex_pjcdff_view_PJCDFFEXM__5FExpense__5FReportVO-item-post-request
Type: object
Show Source
Nested Schema : oracle_apps_financials_expenses_entry_shared_flex_pjcdff_view_PJCDFFEXM__5FExpense__5FReport__5FLineVO-item-post-request
Type: object
Show Source
Nested Schema : oracle_apps_financials_expenses_entry_shared_flex_pjcdff_view_PJCDFFINV__5FMisc__5FTransactionsVO-item-post-request
Type: object
Show Source
Nested Schema : oracle_apps_financials_expenses_entry_shared_flex_pjcdff_view_PJCDFFOM__5FSales__5FOrderVO-item-post-request
Type: object
Show Source
Nested Schema : oracle_apps_financials_expenses_entry_shared_flex_pjcdff_view_PJCDFFPJC__5FAllVO-item-post-request
Type: object
Show Source
Nested Schema : oracle_apps_financials_expenses_entry_shared_flex_pjcdff_view_PJCDFFPJC__5FExpenditure__5FBatchVO-item-post-request
Type: object
Show Source
Nested Schema : oracle_apps_financials_expenses_entry_shared_flex_pjcdff_view_PJCDFFPOR__5FRequisitionVO-item-post-request
Type: object
Show Source
Nested Schema : oracle_apps_financials_expenses_entry_shared_flex_pjcdff_view_PJCDFFPOR__5FUser__5FPreferencesVO-item-post-request
Type: object
Show Source
Nested Schema : oracle_apps_financials_expenses_entry_shared_flex_pjcdff_view_PJCDFFPO__5FPurchase__5FOrderVO-item-post-request
Type: object
Show Source
Nested Schema : oracle_apps_financials_expenses_entry_shared_flex_pjcdff_view_PJCDFFPO__5FPurchase__5FOrder__5FLineVO-item-post-request
Type: object
Show Source
Nested Schema : oracle_apps_financials_expenses_entry_shared_flex_pjcdff_view_PJCDFFPO__5FPurchase__5FOrder__5FScheduleVO-item-post-request
Type: object
Show Source
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 : Discriminator: __FLEX_Context
Type: object
Discriminator: __FLEX_Context

Discriminator Values

Match One Schema
Show Source
Nested Schema : oracle_apps_financials_expenses_entry_shared_flex_pjcdff_view_PJCDFFAP__5FDistribution__5FSetsVO-item-response
Type: object
Show Source
Nested Schema : oracle_apps_financials_expenses_entry_shared_flex_pjcdff_view_PJCDFFAP__5FInvoice__5FDistributionVO-item-response
Type: object
Show Source
Nested Schema : oracle_apps_financials_expenses_entry_shared_flex_pjcdff_view_PJCDFFAP__5FInvoice__5FLineVO-item-response
Type: object
Show Source
Nested Schema : oracle_apps_financials_expenses_entry_shared_flex_pjcdff_view_PJCDFFEXM__5FExpense__5FReportVO-item-response
Type: object
Show Source
Nested Schema : oracle_apps_financials_expenses_entry_shared_flex_pjcdff_view_PJCDFFEXM__5FExpense__5FReport__5FLineVO-item-response
Type: object
Show Source
Nested Schema : oracle_apps_financials_expenses_entry_shared_flex_pjcdff_view_PJCDFFINV__5FMisc__5FTransactionsVO-item-response
Type: object
Show Source
Nested Schema : oracle_apps_financials_expenses_entry_shared_flex_pjcdff_view_PJCDFFOM__5FSales__5FOrderVO-item-response
Type: object
Show Source
Nested Schema : oracle_apps_financials_expenses_entry_shared_flex_pjcdff_view_PJCDFFPJC__5FAllVO-item-response
Type: object
Show Source
Nested Schema : oracle_apps_financials_expenses_entry_shared_flex_pjcdff_view_PJCDFFPJC__5FExpenditure__5FBatchVO-item-response
Type: object
Show Source
Nested Schema : oracle_apps_financials_expenses_entry_shared_flex_pjcdff_view_PJCDFFPOR__5FRequisitionVO-item-response
Type: object
Show Source
Nested Schema : oracle_apps_financials_expenses_entry_shared_flex_pjcdff_view_PJCDFFPOR__5FUser__5FPreferencesVO-item-response
Type: object
Show Source
Nested Schema : oracle_apps_financials_expenses_entry_shared_flex_pjcdff_view_PJCDFFPO__5FPurchase__5FOrderVO-item-response
Type: object
Show Source
Nested Schema : oracle_apps_financials_expenses_entry_shared_flex_pjcdff_view_PJCDFFPO__5FPurchase__5FOrder__5FLineVO-item-response
Type: object
Show Source
Nested Schema : oracle_apps_financials_expenses_entry_shared_flex_pjcdff_view_PJCDFFPO__5FPurchase__5FOrder__5FScheduleVO-item-response
Type: object
Show Source
Nested Schema : Links
Type: array
Title: Links
The link relations associated with the resource instance.
Show Source
Nested Schema : Links
Type: array
Title: Links
The link relations associated with the resource instance.
Show Source
Nested Schema : Links
Type: array
Title: Links
The link relations associated with the resource instance.
Show Source
Nested Schema : Links
Type: array
Title: Links
The link relations associated with the resource instance.
Show Source
Nested Schema : Links
Type: array
Title: Links
The link relations associated with the resource instance.
Show Source
Nested Schema : Links
Type: array
Title: Links
The link relations associated with the resource instance.
Show Source
Nested Schema : Links
Type: array
Title: Links
The link relations associated with the resource instance.
Show Source
Nested Schema : Links
Type: array
Title: Links
The link relations associated with the resource instance.
Show Source
Nested Schema : Links
Type: array
Title: Links
The link relations associated with the resource instance.
Show Source
Nested Schema : Links
Type: array
Title: Links
The link relations associated with the resource instance.
Show Source
Nested Schema : Links
Type: array
Title: Links
The link relations associated with the resource instance.
Show Source
Nested Schema : Links
Type: array
Title: Links
The link relations associated with the resource instance.
Show Source
Nested Schema : Links
Type: array
Title: Links
The link relations associated with the resource instance.
Show Source
Nested Schema : Links
Type: array
Title: Links
The link relations associated with the resource instance.
Show Source
Back to Top

Examples

The following example shows how to create a project descriptive flexfield for an expense distribution 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/300100185937183/child/ExpenseDistribution/300100185937184/child/PJCDFF

Example Request Payload

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

{
	"ExpenseTemplate": "Project Travel Operations",
	"ExpenseType": "Airfare",
	"ReceiptAmount": 170,
	"ReceiptCurrencyCode": "USD",
	"ReimbursableAmount": 170,
	"ReimbursementCurrencyCode": "USD",
	"ExpenseSource": "CASH",
	"Description": "Rest upload",  
	"ExchangeRate": 1,
	"ExpenseCategoryCode": "BUSINESS",
	"ExpenseTypeCategoryCode": "MISC",  
	"Location": " United States",
	"ExpenseDistribution": [
		{  
			"CodeCombinationId": 13798,    
			"ReimbursableAmount": 170,
			"CostCenter": "520",
			"PJCDFF":[
				{
				"__FLEX_Context": "EXM_Expense_Report_Line",
				"__FLEX_Context_DisplayValue": "EXM: Expense Report Line",
				"_PROJECT_ID": 300100013774868,
				"_PROJECT_ID_Display": "BI OTBI Proj 1",
				"_TASK_ID": 300100013774894,
				"_TASK_ID_Display": "1.1",
				"_EXPENDITURE_ITEM_DATE": "2015-12-02",
				"_EXPENDITURE_TYPE_ID": 10001,
				"_ORGANIZATION_ID": 204,
				"_ORGANIZATION_ID_Display": "Vision Operations"
			}
		]
	}
  ]
}

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-18T08:10:19+00:00",
    "CreditCardTrxnId": null,
    "DailyAmount": null,
    "DailyDistance": null,
    "DepartureLocationId": null,
    "Description": "Rest upload",
    "DestinationFrom": null,
    "DestinationTo": null,
    "DistanceUnitCode": null,
    "EndDate": "2020-06-18",
    "EndDateTimestamp": "2020-06-18T08:10:19.504+00:00",
    "EndOdometer": null,
    "ExchangeRate": 1,
    "ExpenseCategoryCode": "BUSINESS",
    "ExpenseCreationMethodCode": "REST_SERVICE",
    "ExpenseId": 300100185937183,
    "ExpenseReference": 1,
    "ExpenseReportId": null,
    "ExpenseSource": "CASH",
    "ExpenseTemplateId": 300100046867516,
    "ExpenseTypeCategoryCode": "AIRFARE",
    "ExpenseTypeId": 300100046867519,
    "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-18T08:10:20.414+00:00",
    "LastUpdateLogin": "A84C0ED5AF4C04CCE053D713F50ACE7D",
    "LastUpdatedBy": "FINUSER1",
    "LicensePlateNumber": null,
    "Location": "NEW YORK, NY, United States",
    "LocationId": 11357,
    "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": 170,
    "ReceiptCurrencyCode": "USD",
    "ReceiptDate": "2020-06-18",
    "ReceiptMissingDecRequiredFlag": null,
    "ReceiptMissingFlag": null,
    "ReceiptRequiredFlag": false,
    "ReceiptVerifiedFlag": null,
    "ReimbursableAmount": 170,
    "ReimbursementCurrencyCode": "USD",
    "SequenceNumber": null,
    "StartDate": "2020-06-18",
    "StartDateTimestamp": "2020-06-18T08:10:19.504+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": "Project Travel Operations",
    "ExpenseType": "Airfare",
    "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-18T08:10:19.335+00:00",
            "ExpenseDistId": 300100185937184,
            "ExpenseId": 300100185937183,
            "ExpenseReportId": null,
            "LastUpdateDate": "2020-06-18T08:10:20.431+00:00",
            "LastUpdateLogin": "A84C0ED5AF4C04CCE053D713F50ACE7D",
            "LastUpdatedBy": "FINUSER1",
            "OrgId": 204,
            "ReimbursableAmount": 170,
            "Company": "01",
            "BusinessUnit": "Vision Operations",
            "PJCDFF": [
                {
                    "ExpenseDistId": 300100185937184,
                    "__FLEX_Context": "EXM_Expense_Report_Line",
                    "__FLEX_Context_DisplayValue": "EXM: Expense Report Line",
                    "_PROJECT_ID": 300100013774868,
                    "_PROJECT_ID_Display": "BI OTBI Proj 1",
                    "_TASK_ID": 300100013774894,
                    "_TASK_ID_Display": "1.1",
                    "_EXPENDITURE_ITEM_DATE": "2015-12-02",
                    "_EXPENDITURE_TYPE_ID": 10001,
                    "_ORGANIZATION_ID": 204,
                    "_ORGANIZATION_ID_Display": "Vision Operations",
                    "_CONTRACT_ID": null,
                    "_CONTRACT_ID_Display": null,
                    "_RESERVED_ATTRIBUTE1": null,
                    "_RESERVED_ATTRIBUTE1_Display": null,
                    "_BILLABLE_FLAG": null,
                    "_BILLABLE_FLAG_Display": null,
                    "_CAPITALIZABLE_FLAG": null,
                    "_CAPITALIZABLE_FLAG_Display": null,
                    "_WORK_TYPE_ID": null,
                    "_WORK_TYPE_ID_Display": null,
                    "links": [
                        {
                            "rel": "self",
                            "href": "https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/expenses/300100185937183/child/ExpenseDistribution/300100185937184/child/PJCDFF/300100185937184",
                            "name": "PJCDFF",
                            "kind": "item",
                            "properties": {
                                "changeIndicator": "ACED0005737200136A6176612E7574696C2E41727261794C6973747881D21D99C7619D03000149000473697A65787000000001770400000001737200116A6176612E6C616E672E496E746567657212E2A0A4F781873802000149000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B02000078700000000178"
                            }
                        },
                        {
                            "rel": "canonical",
                            "href": "https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/expenses/300100185937183/child/ExpenseDistribution/300100185937184/child/PJCDFF/300100185937184",
                            "name": "PJCDFF",
                            "kind": "item"
                        },
                        {
                            "rel": "parent",
                            "href": "https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/expenses/300100185937183/child/ExpenseDistribution/300100185937184",
                            "name": "ExpenseDistribution",
                            "kind": "item"
                        }
                    ]
                }
            ],
            "links": [
                {
                    "rel": "self",
                    "href": "https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/expenses/300100185937183/child/ExpenseDistribution/300100185937184",
                    "name": "ExpenseDistribution",
                    "kind": "item",
                    "properties": {
                        "changeIndicator": "ACED0005737200136A6176612E7574696C2E41727261794C6973747881D21D99C7619D03000149000473697A65787000000001770400000001737200116A6176612E6C616E672E496E746567657212E2A0A4F781873802000149000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B02000078700000000178"
                    }
                },
                {
                    "rel": "canonical",
                    "href": "https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/expenses/300100185937183/child/ExpenseDistribution/300100185937184",
                    "name": "ExpenseDistribution",
                    "kind": "item"
                },
                {
                    "rel": "parent",
                    "href": "https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/expenses/300100185937183",
                    "name": "expenses",
                    "kind": "item"
                },
                {
                    "rel": "child",
                    "href": "https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/expenses/300100185937183/child/ExpenseDistribution/300100185937184/child/PJCDFF",
                    "name": "PJCDFF",
                    "kind": "collection"
                }
            ]
        }
    ],
    "links": [
        {
            "rel": "self",
            "href": "https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/expenses/300100185937183",
            "name": "expenses",
            "kind": "item",
            "properties": {
                "changeIndicator": "ACED0005737200136A6176612E7574696C2E41727261794C6973747881D21D99C7619D03000149000473697A65787000000001770400000001737200116A6176612E6C616E672E496E746567657212E2A0A4F781873802000149000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B02000078700000000178"
            }
        },
        {
            "rel": "canonical",
            "href": "https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/expenses/300100185937183",
            "name": "expenses",
            "kind": "item"
        },
        {
            "rel": "child",
            "href": "https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/expenses/300100185937183/child/Attachments",
            "name": "Attachments",
            "kind": "collection"
        },
        {
            "rel": "child",
            "href": "https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/expenses/300100185937183/child/ExpenseAttendee",
            "name": "ExpenseAttendee",
            "kind": "collection"
        },
        {
            "rel": "child",
            "href": "https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/expenses/300100185937183/child/ExpenseDff",
            "name": "ExpenseDff",
            "kind": "collection"
        },
        {
            "rel": "child",
            "href": "https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/expenses/300100185937183/child/ExpenseDistribution",
            "name": "ExpenseDistribution",
            "kind": "collection"
        },
        {
            "rel": "child",
            "href": "https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/expenses/300100185937183/child/ExpenseItemization",
            "name": "ExpenseItemization",
            "kind": "collection"
        },
        {
            "rel": "child",
            "href": "https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/expenses/300100185937183/child/expenseErrors",
            "name": "expenseErrors",
            "kind": "collection"
        },
        {
            "rel": "child",
            "href": "https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/expenses/300100185937183/child/matchedExpenses",
            "name": "matchedExpenses",
            "kind": "collection"
        },
        {
            "rel": "action",
            "href": "https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/expenses/300100185937183/action/duplicate",
            "name": "duplicate",
            "kind": "other"
        }
    ]
}
Back to Top