Update the expense itemization record for an expense identifier

patch

/fscmRestApi/resources/11.13.18.05/expenses/{expensesUniqID}/child/ExpenseItemization/{ExpenseId}

Request

Path Parameters
  • The value of this parameter could be a hash of the key that is used to uniquely identify the resource item. The client should not generate the hash key value. Instead, the client should query on the collection resource with a filter to navigate to a specific resource item. For example: products?q=InventoryItemId=
  • 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.
Supported Media Types
Request Body - application/json ()
Root Schema : schema
Type: object
Show Source
Nested Schema : Daily sum limit
Type: object
Title: Daily sum limit
Daily expense limit of a trip.
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 : expenses-ExpenseItemization-item-response
Type: object
Show Source
Nested Schema : Daily sum limit
Type: object
Title: Daily sum limit
Daily expense limit of a trip.
Back to Top

Examples

The following example shows how to update an expense itemization record for an expense by submitting a PATCH request on the REST resource using cURL.

curl -i -u "<username>:<password>" -H "Content-Type: application/json" -X PATCH -d <payload> https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/expenses/300100185937186/child/ExpenseItemization/300100185937187

Example Request Payload

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

{
	"ReceiptAmount": 160,
	"ReceiptCurrencyCode": "EUR",                  
	"ReimbursableAmount": 160
}

Example Response Body

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

{
    "AssignmentId": 100010026335780,
    "AuditAdjustmentReason": null,
    "AuditAdjustmentReasonCode": null,
    "AwtGroupId": null,
    "BilledAmount": null,
    "BilledCurrencyCode": null,
    "CardId": null,
    "CheckoutDate": null,
    "CreatedBy": "FINUSER1",
    "CreationDate": "2020-06-18T08:13:38.210+00:00",
    "CreditCardTrxnId": null,
    "DailyAmount": null,
    "DailyDistance": null,
    "DepartureLocationId": null,
    "Description": null,
    "DestinationFrom": null,
    "DestinationTo": null,
    "DistanceUnitCode": null,
    "EndDate": "2020-06-18",
    "EndOdometer": null,
    "ExchangeRate": 1,
    "ExpenseCategoryCode": "BUSINESS",
    "ExpenseCreationMethodCode": "REST_SERVICE",
    "ExpenseId": 300100185937187,
    "ExpenseReportId": null,
    "ExpenseSource": "CASH",
    "ExpenseTemplateId": 10024,
    "ExpenseTypeId": 100000010094102,
    "FlightClassLimit": null,
    "FlightDuration": null,
    "FlightNumber": null,
    "FuelType": null,
    "ImgReceiptRequiredFlag": true,
    "ItemizationParentExpenseId": 300100185937186,
    "ItemizationReceiptBusinessTotalAmount": 0,
    "ItemizationReceiptPersonalTotalAmount": 0,
    "ItineraryReservationId": null,
    "Justification": null,
    "JustificationRequiredFlag": false,
    "LastUpdateDate": "2020-06-18T10:45:51+00:00",
    "LastUpdatedBy": "EXPENSE_AUDITOR_OPERATIONS",
    "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": null,
    "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": 160,
    "ReceiptCurrencyCode": "EUR",
    "ReceiptDate": "2020-06-18",
    "ReceiptMissingDecRequiredFlag": null,
    "ReceiptMissingFlag": null,
    "ReceiptRequiredFlag": true,
    "ReceiptVerifiedFlag": null,
    "ReimbursableAmount": 160,
    "ReimbursementCurrencyCode": "USD",
    "SequenceNumber": null,
    "StartDate": "2020-06-18",
    "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,
    "ExpenseType": "Booking Fee",
    "links": [
        {
            "rel": "self",
            "href": "https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/expenses/300100185937186/child/ExpenseItemization/300100185937187",
            "name": "ExpenseItemization",
            "kind": "item",
            "properties": {
                "changeIndicator": "ACED0005737200136A6176612E7574696C2E41727261794C6973747881D21D99C7619D03000149000473697A65787000000001770400000001737200116A6176612E6C616E672E496E746567657212E2A0A4F781873802000149000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B02000078700000000378"
            }
        },
        {
            "rel": "canonical",
            "href": "https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/expenses/300100185937186/child/ExpenseItemization/300100185937187",
            "name": "ExpenseItemization",
            "kind": "item"
        },
        {
            "rel": "parent",
            "href": "https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/expenses/300100185937186",
            "name": "expenses",
            "kind": "item"
        }
    ]
}
Back to Top