Update a credit
patch
/fscmRestApi/resources/11.13.18.05/incentiveCompensationTransactions/{TransactionId}/child/Credits/{CreditId}
Request
Path Parameters
-
CreditId(required): integer(int64)
The unique identifier of the credit.
-
TransactionId(required): integer(int64)
The unique identifier of the transaction.
Header Parameters
-
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.
Supported Media Types
- application/json
Root Schema : schema
Type:
Show Source
object
-
AdjustmentComments: string
Title:
Comment
Maximum Length:1000
The commentary for an adjustment to the credit. -
CreditAmount: number
Title:
Credit Amount
The credit amount in processing currency. -
CreditDate: string
(date)
Title:
Credit Date
The date the credit receiver should receive credit. The date is used to determine the credit receivers when processing the credit rules against transactions. -
CreditedParticipantId: integer
(int64)
Title:
Credit Receiver
The unique identifier of the participant who owns the credit. -
HoldFlag: boolean
Title:
Hold
Maximum Length:1
Indicates whether the application must exclude the transaction from processing further. -
ObjectStatus: string
Title:
Process Status
Maximum Length:30
The lookup code that indicates the current state of the credit such as Credited, Obsolete, or Rolled up. Review the available lookup codes for the lookup type CN_TP_CREDIT_OBJECT_STATUS using the Setup and Maintenance, Manage Incentive Compensation Lookups task. -
RevenueType: string
Title:
Revenue Type
Maximum Length:30
The lookup code that categorizes the credit as revenue or non-revenue. Review the available lookup codes for the lookup type CN_RS_REVENUE_TYPE using the Setup and Maintenance, Manage Incentive Compensation Lookups task. -
RoleId: integer
(int64)
Title:
Role
The unique identifier of the role assigned to the credit receiver. -
SplitPct: number
Title:
Split Percent
The percent of the transaction amount that the credit receiver received.
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 : incentiveCompensationTransactions-Credits-item-response
Type:
Show Source
object
-
AdjustmentComments: string
Title:
Comment
Maximum Length:1000
The commentary for an adjustment to the credit. -
AdjustmentStatus: string
Title:
Adjustment Status
Read Only:true
Maximum Length:30
The lookup code that indicates the adjustment state of the credit. Review the available lookup codes for the lookup type CN_TP_CREDIT_ADJ_STATUS using the Setup and Maintenance, Manage Incentive Compensation Lookups task. -
BusinessUnitId: integer
(int64)
Title:
Business Unit
Read Only:true
The unique identifier of the business unit. -
BusinessUnitName: string
Title:
Business Unit
Read Only:true
Maximum Length:240
The name of the business unit. -
CalculationConversionRate: number
Title:
Calculation Currency Conversion Rate
Read Only:true
The exchange rate to convert from source currency to processing currency. -
CalculationCurrencyCode: string
Title:
Currency
Read Only:true
Maximum Length:15
The code indicating the processing currency for the credit amount. The processing currency is selected as either the operating currency or the participant home currency for the business unit. Review the processing currency parameter using the Setup and Maintenance work area, Manage Parameters task. -
ChangedCreditFlag: boolean
Title:
Change Indicator
Read Only:true
Maximum Length:1
Indicates if the credit is new or modified. -
ClsfnRuleId: integer
(int64)
Title:
Classification Rule
Read Only:true
The unique identifier of the classification rule used to assign the credit category, to the credit. -
CollectionStatus: string
Title:
Collection Status
Read Only:true
Maximum Length:30
The lookup code that indicates the reason for a collection error. Review the available lookup codes for the lookup type CN_TP_CREDIT_COLL_STATUS using the Setup and Maintenance, Manage Incentive Compensation Lookups task. -
CreatedBy: string
Read Only:
true
Maximum Length:64
The user who created the record. -
CreatedDuring: string
Title:
Credit Process Type
Read Only:true
Maximum Length:30
The lookup code indicating when this credit record was created. Review the available lookup codes CN_TP_CREDIT_CREATED_DURING using the Setup and Maintenance, Manage Incentive Compensation Lookups task. -
CreationDate: string
(date-time)
Read Only:
true
The date when the record was created. -
CreditAmount: number
Title:
Credit Amount
The credit amount in processing currency. -
CreditCategoryId: integer
(int64)
Title:
Name
The unique record identifier for the credit category to use when overriding the classification process. The credit category is a user-defined business category used to classify a credit for compensation purposes. -
CreditDate: string
(date)
Title:
Credit Date
The date the credit receiver should receive credit. The date is used to determine the credit receivers when processing the credit rules against transactions. -
CreditedParticipantId: integer
(int64)
Title:
Credit Receiver
The unique identifier of the participant who owns the credit. -
CreditId: integer
(int64)
Title:
Credit ID
Read Only:true
The unique identifier of the credit. -
CreditRuleId: integer
(int64)
Title:
Credit Rule
Read Only:true
The unique record identifier of the credit rule used to create the credit. -
CreditType: string
Title:
Credit Type
Read Only:true
Maximum Length:30
Indicates the nature of the credit such as Direct, Indirect or Summarized. -
DirectParticipantId: integer
(int64)
Title:
Direct Participant
Read Only:true
The unique identifier of the participant who is directly involved in the closure transaction. -
DirectRuleId: integer
(int64)
Read Only:
true
The unique identifier of the credit rule used to create the direct credit that corresponds to this credit. -
ErrorCode: string
Read Only:
true
Maximum Length:30
The reason code if the credit is in error status. Review the available lookup codes for the lookup type ORA_CN_PROCESS_ERR_REASON LOOKUP_TYPE using the Setup and Maintenance, Manage Incentive Compensation Lookups task. -
ErrorMeaning: string
Read Only:
true
Maximum Length:80
The reason explaining why the credit is in error status. -
EventDate: string
(date)
Title:
Event Date
Read Only:true
The incentive event date. The event date is used to determine the effective currency conversion rate when the participant's home currency is used as the processing currency. -
HoldFlag: boolean
Title:
Hold
Maximum Length:1
Indicates whether the application must exclude the transaction from processing further. -
HomeConversionRate: number
Title:
Home Currency Conversion Rate
Read Only:true
The exchange rate to convert from processing currency to home currency. -
HomeCreditAmount: number
Title:
Home Credit Amount
Read Only:true
The transaction amount in participant's home currency. -
HomeCurrencyCode: string
Title:
Home Currency
Read Only:true
Maximum Length:15
The code indicating the participant's home currency. -
LastUpdateDate: string
(date-time)
Title:
Last Updated Date
Read Only:true
The date when the record was last updated. -
LastUpdatedBy: string
Title:
Last Updated By
Read Only:true
Maximum Length:64
The user who last updated the record. -
LastUpdateLogin: string
Read Only:
true
Maximum Length:32
The login of the user who last updated the record. -
links: array
Links
Title:
Links
The link relations associated with the resource instance. -
ObjectStatus: string
Title:
Process Status
Maximum Length:30
The lookup code that indicates the current state of the credit such as Credited, Obsolete, or Rolled up. Review the available lookup codes for the lookup type CN_TP_CREDIT_OBJECT_STATUS using the Setup and Maintenance, Manage Incentive Compensation Lookups task. -
OperatingConversionRate: number
Title:
Operating Currency Conversion Rate
Read Only:true
The exchange rate to convert from source currency to operating currency. -
OperatingCreditAmount: number
Title:
Operating Credit Amount
Read Only:true
The credit amount in business unit operating currency. -
OperatingCurrency: string
Title:
Operating Currency
Read Only:true
Maximum Length:10
The code indicating the functional currency of the business unit. -
ProcessCode: string
Title:
Override
Maximum Length:30
The process code associated to the transaction and is a five letter code that determines the combination of Override Classification, Preserve Credits, Do Not Roll Up, and Do Not Calculate values for the transaction. -
ReasonCode: string
Title:
Reason
Read Only:true
Maximum Length:30
The lookup code that indicates the reason for adjusting a credit. You can view the CN_TP_ADJUSTMENT_REASON lookup from the Setup and Maintenance, Manage Incentive Compensation Lookups task. -
RevenueType: string
Title:
Revenue Type
Maximum Length:30
The lookup code that categorizes the credit as revenue or non-revenue. Review the available lookup codes for the lookup type CN_RS_REVENUE_TYPE using the Setup and Maintenance, Manage Incentive Compensation Lookups task. -
RoleId: integer
(int64)
Title:
Role
The unique identifier of the role assigned to the credit receiver. -
RollupDate: string
(date)
Title:
Rollup Date
Read Only:true
The date used to determine the roll up credit receivers when processing the roll up rules against transactions. -
RollupLevel: integer
(int64)
Title:
Rollup Level
Read Only:true
The level of the rollup rule in the rollup hierarchy. This value is applicable in case of rollup credits. -
SourceBusinessUnitId: integer
(int64)
Title:
Source BU
Read Only:true
The unique identifier of the source transaction business unit. -
SourceCreditAmount: number
Title:
Source Credit Amount
Read Only:true
The credit amount in source currency of the transaction. -
SourceCreditId: integer
(int64)
Title:
Source Credit ID
The unique identifier of the source credit or the summarized credit record from which the rollup credit is generated. -
SourceCurrencyCode: string
Title:
Source Currency
Read Only:true
Maximum Length:15
The currency code that represents the currency of the monetary transaction amount in the source application. -
SourceTransactionAmount: number
Title:
Source Transaction Amount
Read Only:true
The transaction amount in source currency of the transaction. -
SplitPct: number
Title:
Split Percent
The percent of the transaction amount that the credit receiver received. -
SummaryCreditId: integer
(int64)
Read Only:
true
The unique identifier of the summary credit to which the credit is associated. -
TransactionAmount: number
Title:
Transaction Amount
Read Only:true
The transaction amount in processing currency. -
TransactionId: integer
(int64)
Title:
Transaction ID
Read Only:true
The unique identifier of the transaction. -
TransactionNumber: string
Title:
Transaction Number
Read Only:true
Maximum Length:30
The transaction identifier that users can recognize and search with, for example, an invoice number or order number. -
TransactionQuantity: number
Title:
Quantity
Read Only:true
The quantity for the transaction line item. -
TransactionType: string
Title:
Transaction Type
Read Only:true
Maximum Length:30
The type of the transaction indicating the source of the transaction, such as order, invoice, or credit memo. Review the available lookup codes for the lookup type CN_TP_TRANSACTION_TYPE using the Setup and Maintenance, Manage Incentive Compensation Lookups task.
Nested Schema : Links
Type:
array
Title:
Links
The link relations associated with the resource instance.
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.
Examples
The following example shows how to update a credit for incentive compensation transaction 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/fscmRestApi/resources/11.13.18.05/incentiveCompensationTransactions/10001/child/Credits/300100186676412
Example of Request Body
The following example shows the contents of the request body in JSON format.
{ "AdjustmentComments": "Credit updated by REST WS" }
Example of Response Body
The following example shows the contents of the response body in JSON format.
{ "CreditId": 300100186676412, "TransactionId": 10001, "TransactionNumber": "OTBI001", "TransactionType": "MANUAL", "CreditDate": "2009-01-01", "CreditedParticipantId": 999666333000595, "DirectParticipantId": 999666333000586, "CreditCategoryId": null, "CreditAmount": 10000, "SplitPct": 100, "CalculationCurrencyCode": "USD", "CalculationConversionRate": 1, "SourceTransactionAmount": 10000, "SourceCurrencyCode": "USD", "TransactionAmount": 10000, "SourceCreditAmount": 10000, "OperatingCreditAmount": 10000, "OperatingCurrency": "USD", "OperatingConversionRate": 1, "HomeCreditAmount": 10000, "HomeCurrencyCode": "USD", "HomeConversionRate": null, "ObjectStatus": "OBSOLETED", "ErrorCode": null, "ErrorMeaning": null, "AdjustmentStatus": "ADJUSTED", "CreditRuleId": null, "LastUpdatedBy": "OIC_MGR_OPERATIONS", "LastUpdateDate": "2020-06-16T11:45:43+00:00", "TransactionQuantity": null, "RevenueType": "REVENUE", "CreditType": "DIRECT", "CreatedDuring": "CREDITING", "CreatedBy": "OIC_MGR_OPERATIONS", "CreationDate": "2020-06-16T09:18:58+00:00", "BusinessUnitId": 204, "BusinessUnitName": "Vision Operations", "AdjustmentComments": "Manual update", "ReasonCode": "OTHER", "RollupLevel": null, "RoleId": null, "RollupDate": "2009-01-01", "EventDate": "2009-01-01", "CollectionStatus": null, "HoldFlag": null, "ProcessCode": "CCREC", "ChangedCreditFlag": null, "SourceBusinessUnitId": 204, "DirectRuleId": null, "SourceCreditId": null, "SummaryCreditId": null, "LastUpdateLogin": "A6BFDB90D59FD19BE0535498F20A7428", "ClsfnRuleId": null, "links": [ { "rel": "self", "href": "https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/incentiveCompensationTransactions/10001/child/Credits/300100186676412", "name": "Credits", "kind": "item", "properties": { "changeIndicator": "ACED0005737200136A6176612E7574696C2E41727261794C6973747881D21D99C7619D03000149000473697A65787000000001770400000001737200116A6176612E6C616E672E496E746567657212E2A0A4F781873802000149000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B02000078700000000278" } }, { "rel": "canonical", "href": "https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/incentiveCompensationTransactions/10001/child/Credits/300100186676412", "name": "Credits", "kind": "item" }, { "rel": "parent", "href": "https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/incentiveCompensationTransactions/10001", "name": "incentiveCompensationTransactions", "kind": "item" }, { "rel": "lov", "href": "https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/incentiveCompensationTransactions/10001/child/Credits/300100186676412/lov/BusinessUnitVVO", "name": "BusinessUnitVVO", "kind": "collection" }, { "rel": "lov", "href": "https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/incentiveCompensationTransactions/10001/child/Credits/300100186676412/lov/CreditTypeVVO", "name": "CreditTypeVVO", "kind": "collection" }, { "rel": "lov", "href": "https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/incentiveCompensationTransactions/10001/child/Credits/300100186676412/lov/RevenueTypeVVO", "name": "RevenueTypeVVO", "kind": "collection" }, { "rel": "lov", "href": "https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/incentiveCompensationTransactions/10001/child/Credits/300100186676412/lov/CreditCategoryVVO", "name": "CreditCategoryVVO", "kind": "collection" }, { "rel": "lov", "href": "https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/incentiveCompensationTransactions/10001/child/Credits/300100186676412/lov/ObjectStatusVVO", "name": "ObjectStatusVVO", "kind": "collection" }, { "rel": "lov", "href": "https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/incentiveCompensationTransactions/10001/child/Credits/300100186676412/lov/CreditRuleVVO", "name": "CreditRuleVVO", "kind": "collection" }, { "rel": "lov", "href": "https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/incentiveCompensationTransactions/10001/child/Credits/300100186676412/lov/CurrencyVVO", "name": "CurrencyVVO", "kind": "collection" } ] }
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}]