Update a transaction descriptive flex field

patch

/fscmRestApi/resources/11.13.18.05/incentiveCompensationTransactions/{TransactionId}/child/TransactionsDFF/{TransactionId2}

Request

Path Parameters
  • The unique identifier of the transaction.
  • 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=
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
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 : incentiveCompensationTransactions-TransactionsDFF-item-response
Type: object
Show Source
Back to Top

Examples

The following example shows how to update a transaction descriptive flex field by submitting a PATCH request on the REST resource using cURL.

cURL Command

curl --user sales_cloud_user https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/incentiveCompensationTransactions/10001/child/TransactionsDFF/10001

Example of Request Body

The following shows an example of the request body in JSON format.

 {
    "_Area_Code": "54321"
}

Response Body

The following shows an example of the response body in JSON format.

{
  "TransactionId": 300100185275415,
  "_Sold_To_Customer": null,
  "_Sold_To_Customer_Display": null,
  "_Sales_Channel": null,
  "_Country": null,
  "_Country_Display": null,
  "_State": null,
  "_City": null,
  "_City_Display": null,
  "_Province": null,
  "_Area_Code": "12345",
  "_Postal_Code": null,
  "_Product_Item_ID": null,
  "_Product_Item_ID_Display": null,
  "_Billing_Address": null,
  "_Billing_Contact": null,
  "_Shipping_Address": null,
  "_Shipping_Contact": null,
  "_Transaction__DFF": null,
  "productGroup": null,
  "productGroup_Display": null,
  "catalogItemId": null,
  "corporate": null,
  "Team": null,
  "individual": null,
  "trigger": null,
  "productsold": null,
  "performance": null,
  "category": null,
  "task": null,
  "__FLEX_Context": "204",
  "__FLEX_Context_DisplayValue": "204",
...
}

Note:

When you update a field, a transaction record is created with a new TransactionId. The ObjectStatus of the old TransactionId record is set to OBSOLETED. You must use the new TransactionId to view the changes. You can get the new TransactionId using this GET request:
https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/incentiveCompensationTransactions?q=[TransactionNumber={TransactionNumber}];[TransactionType={TransactionType}]
Back to Top