Calculate Rebate Amount and Upsert Payout

Calculate the rebate amount and upsert the rebate payout for the specified aggregate record.

This object is available in API version 51.0 and later for users with Rebate Management license.

Supported REST HTTP Methods 

URI: /services/data/vXX.X/actions/standard/calculateRebateAmountAndUpsertPayout

Where XX.X is the latest API version.

Formats: JSON, XML

HTTP Methods: GET, HEAD, POST

Authentication: Authorization: Bearer TOKEN

Where TOKEN is a variable.

Inputs 

InputTypeDescription
aggregateIdIDRequired. The ID of the aggregate record for which you want to calculate the rebate amount and upsert the rebate payout.
payoutMemberFieldNameStringThe name of the field that contains the rebate program member ID for which to perform the payout calculations.

Outputs 

OutputTypeDescription
programRebateTypePayoutSourceIdIDThe ID of the program rebate type payout source record, which is generated if the request is successful.

Usage 

Sample Request

1{
2   "inputs":[
3      {"aggregateId":"a00xx000000cCtxAAE"},
4      {"aggregateId":"a00xx000000cCvZAAU"},
5      {"aggregateId":"a00xx000000cCxBAAU"}
6   ]
7}

Sample Response

1{
2   "errors":null,
3   "isSuccess":true,
4   "outputValues":{ 
5      "programRebateTypePayoutSourceId":"0ntxx00004000002AAA"
6   }
7}