Update a cash advance

patch

/fscmRestApi/resources/11.13.18.05/expenseCashAdvances/{expenseCashAdvancesUniqID}

Request

Path Parameters
  • This is the hash key of the attributes which make up the composite key for the Expense Cash Advances resource and used to uniquely identify an instance of Expense Cash Advances. The client should not generate the hash key value. Instead, the client should query on the Expense Cash Advances collection resource in order to navigate to a specific instance of Expense Cash Advances to get the hash key.
Header Parameters
  • This header accepts a string value. The string is a semi-colon separated list of =. It is used to perform effective date range operations. The accepted parameters are RangeMode, RangeSpan, RangeStartDate, RangeEndDate, RangeStartSequence and RangeEndSequence. The parameter values are always strings. The possible values for RangeMode are SET_LOGICAL_START, SET_LOGICAL_END, END_DATE, SET_EFFECTIVE_START, SET_EFFECTIVE_END, REPLACE_CORRECTION, REPLACE_UPDATE, RECONCILE_CORRECTION, CORRECTION, RECONCILE_UPDATE, UPDATE, ZAP and DELETE_CHANGES. The possible values for RangeSpan are PHYSICAL_ROW_END_DATE and LOGICAL_ROW_END_DATE. The values for RangeStartDate and RangeEndDate have to be a string representation of a date in yyyy-MM-dd format. The value for RangeStartSequence and RangeEndSequence must be strings such that when parsed they yield positive integers.
  • 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 : Attachments
Type: array
Title: Attachments
The attachments resource is used to view, create, and update attachments.
Show Source
Nested Schema : Cash Advance Descriptive Flexfields
Type: array
Title: Cash Advance Descriptive Flexfields
The cash advance descriptive flexfield resource is used to manage details about the descriptive flexfield references for a cash advance.
Show Source
Nested Schema : schema
Type: object
Show Source
Nested Schema : schema
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 : expenseCashAdvances-item-response
Type: object
Show Source
Nested Schema : Attachments
Type: array
Title: Attachments
The attachments resource is used to view, create, and update attachments.
Show Source
Nested Schema : Cash Advance Descriptive Flexfields
Type: array
Title: Cash Advance Descriptive Flexfields
The cash advance descriptive flexfield resource is used to manage details about the descriptive flexfield references for a cash advance.
Show Source
Nested Schema : expenseCashAdvances-Attachments-item-response
Type: object
Show Source
Nested Schema : expenseCashAdvances-CashAdvanceDff-item-response
Type: object
Show Source
Back to Top

Examples

The following example shows how to update a cash advance by submitting a PATCH request on the REST resource using cURL.

curl -i -u "<username>:<password>" -H "Content-Type: application/vnd.oracle.adf.resourceitem+json" -X PATCH -d <payload> https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/expenseCashAdvances/300100185923342

Example Request Body

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

{
 "SettlementDate": "2020-06-25"
}

Example Response Body

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

{
    "AdjustedAmount": null,
    "AdvanceStatus": "Pending manager approval",
    "Amount": 3000,
    "AssignmentId": 100010026335780,
    "BusinessUnit": "Vision Operations",
    "CashAdvanceId": 300100185923342,
    "CashAdvanceNumber": "ADVEXM0185923342",
    "CashAdvanceType": "Travel",
    "CreatedBy": "FINUSER1",
    "CreationDate": "2020-06-18T05:15:43+00:00",
    "Currency": "US Dollar",
    "CurrencyCode": "USD",
    "EmployeeNumber": "10026335772",
    "ExchangeRate": null,
    "LastUpdateDate": "2020-06-18T09:12:44+00:00",
    "LastUpdateLogin": "A84BEE8EFA4F04BEE053D713F50A4579",
    "LastUpdatedBy": "EXPENSE_AUDITOR_OPERATIONS",
    "Location": null,
    "PaymentAmount": null,
    "PaymentCurrency": null,
    "PaymentCurrencyCode": null,
    "PaymentMethodCode": "CHECK",
    "PersonId": 100010026335772,
    "PersonName": "Mary Johnson",
    "Purpose": "REST Testing",
    "SettlementDate": "2020-06-25",
    "SubmittedDate": "2020-06-18",
    "TripEndDate": "2020-07-20",
    "TripId": null,
    "TripStartDate": "2020-07-15",
    "UnappliedAmount": null,
    "links": [
        {
            "rel": "self",
            "href": "https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/expenseCashAdvances/300100185923342",
            "name": "expenseCashAdvances",
            "kind": "item",
            "properties": {
                "changeIndicator": "ACED0005737200136A6176612E7574696C2E41727261794C6973747881D21D99C7619D03000149000473697A65787000000001770400000001737200116A6176612E6C616E672E496E746567657212E2A0A4F781873802000149000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B02000078700000000378"
            }
        },
        {
            "rel": "canonical",
            "href": "https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/expenseCashAdvances/300100185923342",
            "name": "expenseCashAdvances",
            "kind": "item"
        },
        {
            "rel": "child",
            "href": "https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/expenseCashAdvances/300100185923342/child/CashAdvanceDff",
            "name": "CashAdvanceDff",
            "kind": "collection"
        }
    ]
}
Back to Top