Get Eligible Promotions (POST)

Get eligible promotions for line items within a quote or an order.

This API accepts line item IDs and sales transaction ID as the input and then initializes the context by filtering on the specific line items.

Resource 

1/revenue/transaction-management/sales-transactions/actions/get-eligible-promotions

Resource Example 

1https://{yourInstance}.salesforce.com/services/data/v68.0/revenue/transaction-management/sales-transactions/actions/get-eligible-promotions

Available Version 

66.0

HTTP Methods 

POST

Request Body for POST 

JSON Example

1{
2  "salesTransactionId": "0Q0xx0000004EOECA2",
3  "lineItemIds": [
4    "0QLxx0000004E7eGAE",
5    "0QLxx0000004GCeGAM",
6    "0QLxx0000004E7gGAE"
7  ]
8}

Properties

NameTypeDescriptionRequired or OptionalAvailable Version
lineItemIdsString[]List of line item IDs to evaluate for promotions. The object type is auto-determined from the sales transaction ID.Required66.0
salesTransactionIdStringThe sales transaction ID, such as an order ID or a quote ID, for the promotion evaluation.Required66.0

Response Body for POST 

Get Eligible Promotions