Get a credit

get

/fscmRestApi/resources/11.13.18.05/incentiveCompensationTransactions/{TransactionId}/child/Credits/{CreditId}

Request

Path Parameters
Query Parameters
  • This parameter specifies dependencies which are fields that are set before and rolled back after generating the response. Generally they are used to preview the effects of an attribute change. The fields specified in this parameter are always set in the resource instance in question. When a child resource collection is requested and the parameter is set, the fields will be set in the parent resource instance before generating the resource collection payload. The value of this query parameter is a set of dependency fields. Example: dependency=ProductId=2

    Format: <attr1>=<val1>,<attr2>=<value2>
  • When this parameter is provided, the specified children are included in the resource payload (instead of just a link). The value of this query parameter is "all" or "". More than one child can be specified using comma as a separator. Example: ?expand=Employees,Localizations. Nested children can also be provided following the format "Child.NestedChild" (Example: ?expand=Employees.Managers). If a nested child is provided (Example: Employees.Managers), the missing children will be processed implicitly. For example, "?expand=Employees.Managers" is the same as "?expand=Employees,Employees.Managers" (which will expand Employees and Managers).
  • This parameter filters the resource fields. Only the specified fields are returned, which means that if no fields are specified, no fields are returned (useful to get only the links). If an indirect child resource is provided (Example: Employees.Managers), the missing children will be processed implicitly. For example, "?fields=Employees.Managers:Empname" is the same as "?fields=;Employees:;Employees.Managers:Empname" (which will only return the "Empname" field for Managers). the value of this query parameter is a list of resource fields. The attribute can be a direct (Example: Employees) or indirect (Example: Employees.Managers) child. It cannot be combined with expand query parameter. If both are provided, only fields will be considered.

    Format: ?fields=Attribute1,Attribute2

    Format for fields in child resource: ?fields=Accessor1:Attribute1,Attribute2
  • This parameter can be used to show only certain links while accessing a singular resource or a resource collection. The parameter value format is a comma-separated list of : <link_relation>

    Example:
    self,canonical
  • The resource item payload will be filtered in order to contain only data (no links section, for example).
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.

There's no request body for this operation.

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-Credits-item-response
Type: object
Show Source
  • Title: Comment
    Maximum Length: 1000
    The commentary for an adjustment to the credit.
  • 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.
  • Title: Business Unit
    Read Only: true
    The unique identifier of the business unit.
  • Title: Business Unit
    Read Only: true
    Maximum Length: 240
    The name of the business unit.
  • Title: Calculation Currency Conversion Rate
    Read Only: true
    The exchange rate to convert from source currency to processing currency.
  • 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.
  • Title: Change Indicator
    Read Only: true
    Maximum Length: 1
    Indicates if the credit is new or modified.
  • Title: Classification Rule
    Read Only: true
    The unique identifier of the classification rule used to assign the credit category, to the credit.
  • 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.
  • Read Only: true
    Maximum Length: 64
    The user who created the record.
  • 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.
  • Read Only: true
    The date when the record was created.
  • Title: Credit Amount
    The credit amount in processing currency.
  • 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.
  • 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.
  • Title: Credit Receiver
    The unique identifier of the participant who owns the credit.
  • Title: Credit ID
    Read Only: true
    The unique identifier of the credit.
  • Title: Credit Rule
    Read Only: true
    The unique record identifier of the credit rule used to create the credit.
  • Title: Credit Type
    Read Only: true
    Maximum Length: 30
    Indicates the nature of the credit such as Direct, Indirect or Summarized.
  • Title: Direct Participant
    Read Only: true
    The unique identifier of the participant who is directly involved in the closure transaction.
  • Read Only: true
    The unique identifier of the credit rule used to create the direct credit that corresponds to this credit.
  • 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.
  • Read Only: true
    Maximum Length: 80
    The reason explaining why the credit is in error status.
  • 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.
  • Title: Hold
    Maximum Length: 1
    Indicates whether the application must exclude the transaction from processing further.
  • Title: Home Currency Conversion Rate
    Read Only: true
    The exchange rate to convert from processing currency to home currency.
  • Title: Home Credit Amount
    Read Only: true
    The transaction amount in participant's home currency.
  • Title: Home Currency
    Read Only: true
    Maximum Length: 15
    The code indicating the participant's home currency.
  • Title: Last Updated Date
    Read Only: true
    The date when the record was last updated.
  • Title: Last Updated By
    Read Only: true
    Maximum Length: 64
    The user who last updated the record.
  • Read Only: true
    Maximum Length: 32
    The login of the user who last updated the record.
  • Links
  • 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.
  • Title: Operating Currency Conversion Rate
    Read Only: true
    The exchange rate to convert from source currency to operating currency.
  • Title: Operating Credit Amount
    Read Only: true
    The credit amount in business unit operating currency.
  • Title: Operating Currency
    Read Only: true
    Maximum Length: 10
    The code indicating the functional currency of the business unit.
  • 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.
  • 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.
  • 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.
  • Title: Role
    The unique identifier of the role assigned to the credit receiver.
  • Title: Rollup Date
    Read Only: true
    The date used to determine the roll up credit receivers when processing the roll up rules against transactions.
  • 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.
  • Title: Source BU
    Read Only: true
    The unique identifier of the source transaction business unit.
  • Title: Source Credit Amount
    Read Only: true
    The credit amount in source currency of the transaction.
  • Title: Source Credit ID
    The unique identifier of the source credit or the summarized credit record from which the rollup credit is generated.
  • 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.
  • Title: Source Transaction Amount
    Read Only: true
    The transaction amount in source currency of the transaction.
  • Title: Split Percent
    The percent of the transaction amount that the credit receiver received.
  • Read Only: true
    The unique identifier of the summary credit to which the credit is associated.
  • Title: Transaction Amount
    Read Only: true
    The transaction amount in processing currency.
  • Title: Transaction ID
    Read Only: true
    The unique identifier of the transaction.
  • 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.
  • Title: Quantity
    Read Only: true
    The quantity for the transaction line item.
  • 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.
Back to Top

Examples

The following example shows how to get a credit for incentive compensation transaction by submitting a GET 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/Credits/300100186676412

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,

}
Back to Top