Loading

Loyalty Management: Unified Execution API Request Reference

Julkaisupäivä: Nov 3, 2026
Kuvaus

The Loyalty Management Unified Execution API evaluates promotions for a cart and processes loyalty transaction journals in a single request. This article covers the complete request structure, supported API version, license requirements, execution settings, rate limits, and response details — including common errors observed in production integrations.

Ratkaisu

1. Review License and API Version Requirements

The Unified Execution API requires the full Loyalty Management license. Orgs on Loyalty Management Starter do not have access to the promotion evaluation and execution endpoints (/connect/global-promotions-management/promotions, /eligible-promotions, /promotion-execution). If these endpoints return 404 NOT_FOUND, verify that the org has the GlobalPromotionsMgmtBasicAddOn or Loyalty Management Growth Permission Set License provisioned under Company Information > Permission Set Licenses.

The resource supports POST requests and is available starting with API version 68.0. Use API version 68.0 or later.

2. Build the Request Using the Documented Inputs

Review the Unified Executions (POST) resource reference for the complete request structure.

 

InputRequiredPurpose
cartYesContains a cartDetails array with at least one cart detail.
runSettingNoControls whether the request runs in simulation mode or processes the execution.
ruleLibraryApiNameNoSpecifies the API name of an active rule library. If omitted, the API uses the active rule library.
 

Cart details contain the loyalty program, member, journal type, activity date, currency, transaction amount, and cart line item fields used for promotion evaluation and loyalty processing.

Important: Do not assume that combining existing promotion and transaction journal request bodies produces a valid Unified Execution request. Build the payload according to the reference only.

 

3. Test the Request in a Sandbox

Prepare a request using the documented cart structure and valid sandbox data.
Set runSetting.isSimulation to true.
Submit the request.
Review the response status, messages, and simulation results.
The following snippet shows the simulation setting only. A complete request must also include the required cart input.

{
  "runSetting": {
    "isSimulation": true
  }
}

When isSimulation is true, the API returns simulation results without creating records. If omitted, the default value is false and the request processes the execution.

Note on Sandbox Limits: Lower-tier sandboxes (Developer or Partial Copy) have significantly lower general storage and standard platform API allocations than Production or Full sandboxes. Test results from these environments may not be representative of production throughput.

See Execution Details Input.

4.Interpret the Response

Unified Execution uses the same output representation as transaction journal execution.

PropertyMeaning
statusIndicates whether the request succeeded (true) or failed (false).
messageProvides additional context about the result.
programNameIdentifies the loyalty program.
processResultContains transaction journal processing details and currency-wise member points balances after processing. This collection is empty during simulation.
simulationResultsContains simulation details. This collection is empty during actual execution.

The response includes details of points, badges, games, and vouchers provided by the executed loyalty program process rules. It does not include rewards provided by flows or subprocesses that those rules execute.

5. Troubleshoot Common Errors

Error: "Specify values for these required fields and try again: TransactionJournal.CurrencyIsoCode"

This error occurs even when currencyISOCode is present in the payload. The currency value is not mapping to the Transaction Journal record. To resolve:

  • Verify the field name casing in your cart payload. The correct field name is currencyIsoCode (camel case with lowercase 'so'). A casing mismatch causes the value to be silently ignored.
  • Confirm the Loyalty Program's currency configuration is active and matches the value passed in the payload.
  • Verify the Journal Type and Subtype configuration in the org is correct.
  • If the payload and org configuration are both valid and the issue persists consistently, contact Salesforce Support with the payload and org details.

Error: 404 NOT_FOUND on promotion endpoints

  • Confirm the org has the full Loyalty Management license (not Starter). See Section 1.
  • Verify the user holds the required permission sets: Promotion Designer, Loyalty Program Promotion Designer, Context Service Admin, and Context Service Runtime.
  • Confirm the CartDetailGetEligiblePromotion context definition is extended and active.
  • Confirm an active GPM rule library is pointing to the context definition.

Error: "Accrual Process with process type TransactionJournal isn't supported"

This error occurs when calling the standard program-processes API endpoint (/connect/loyalty/programs/{programName}/program-processes/{processName}) with a TransactionJournal process type. TransactionJournal cannot be called directly through that endpoint. Use one of these alternatives:

  • Credit Points template (recommended for simple point crediting): Create a process using the Credit Points template instead.
  • Transaction Journal Execution API: Use /services/data/vXX.X/connect/realtime/loyalty/programs/{programName} — this automatically picks up the process matching the journal type and subtype.

https://developer.salesforce.com/docs/marketing/loyalty-api/guide/connect-requests-execution-details-input.html

Lisäresurssit
Knowledge-artikkelin numero

005465981

 
Ladataan
Salesforce Help | Article