Create a credit

post

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

Request

Path Parameters
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.
  • Contains one of the following values: true or false. If true, the server performs an Upsert operation instead of a Create operation. During an Upsert operation, the server attempts to find an existing resource that matches the payload. If a match is found, the server updates the existing resource instead of creating a new one. If not found or false (default), the server performs a Create operation. Note that the Upsert operation isn't supported for date-effective REST resources.
Supported Media Types
Request Body - application/json ()
Root Schema : schema
Type: object
Show Source
  • Title: Comment
    Maximum Length: 1000
    The commentary for an adjustment to the credit.
  • 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: Hold
    Maximum Length: 1
    Indicates whether the application must exclude the transaction from processing further.
  • 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: 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: 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: Source Credit ID
    The unique identifier of the source credit or the summarized credit record from which the rollup credit is generated.
  • Title: Split Percent
    The percent of the transaction amount that the credit receiver received.
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 create a credit for incentive compensation transaction by submitting a POST 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

Example of Request Body

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

{
    "CreditedParticipantId": 999666333000595
}

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": "CREDITED",
  "ErrorCode": null,
  "ErrorMeaning": null,
  "AdjustmentStatus": "NONE",
  "CreditRuleId": null,
  "LastUpdatedBy": "OIC_MGR_OPERATIONS",
  "LastUpdateDate": "2020-06-16T09:18:59.807+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": null,
  "AdjustmentComments": null,
  "ReasonCode": null,
  "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": "ACED0005737200136A6176612E7574696C2E41727261794C6973747881D21D99C7619D03000149000473697A65787000000001770400000001737200116A6176612E6C616E672E496E746567657212E2A0A4F781873802000149000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B02000078700000000178"
      }
    },
    {
      "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"
    }
  ]
}
Back to Top