Various error responses may be returned when Salesforce Loyalty Management REST APIs or Flow invocable actions are invoked. Common error messages include:
"errorCode": "NOT_FOUND", "message": "Invalid Action Type: mergeLoyaltyProgramMembership"
"FlowActionCall: Invalid request for LoyaltyProgramMemberId" when calling getPointsBalance or similar actions in flows.
"Unknown exception" errors when calling the Loyalty Management API to retrieve member vouchers.
Unknown exception errors may be encountered when the Loyalty Management API is called, and invalid request errors for LoyaltyProgramMemberId or ProgramCurrencyName parameters may be returned by Flows.
These issues may occur in organizations with Loyalty Management enabled, across various API versions (v55.0 through the current version), and may affect both direct REST API calls and Flow-based invocable action calls.
Loyalty Management API errors are typically caused by one of the following conditions: an unsupported API version, invalid or missing required request parameters, insufficient permissions, or missing licenses. The following sections describe each cause and its corresponding resolution.
Certain Loyalty Management standard actions and Connect API endpoints are supported only from specific API versions onward. For example, the mergeLoyaltyProgramMembership action is supported beginning with API version 56.0. When the action is called by using API version 55.0 or earlier, the following error is returned:
Invalid Action Type: mergeLoyaltyProgramMembership
The API endpoint URL should be updated to use the required or latest supported API version. For example:
/services/data/v55.0/actions/standard/mergeLoyaltyProgramMembership
should be updated to:
/services/data/v56.0/actions/standard/mergeLoyaltyProgramMembership
or a later supported version.
When Loyalty Management actions, such as getPointsBalance, are invoked from Flow, the error FlowActionCall: Invalid request for LoyaltyProgramMemberId indicates that one or more required input parameters are null, blank, or contain invalid record IDs. This condition commonly occurs when required values, such as LoyaltyProgramMemberId or ProgramCurrencyName, are not populated by preceding Flow elements, including Get Records or Assignment elements.
getPointsBalance) should be located.LoyaltyProgramMemberId input parameter should be verified to ensure that a valid 18-character Salesforce record ID from the LoyaltyProgramMember object is provided.ProgramCurrencyName or LoyaltyMemberCurrencyId input parameter should be verified to ensure that a valid value corresponding to an existing Loyalty Program Currency record is supplied.Loyalty Management API actions and Flow invocable actions require that the Loyalty Management permission set license be assigned to the running user or integration user. If the required license or permissions are not assigned, unknown exception errors or permission-related failures may be returned. Even when a Flow is executed in system context, license validation may still be enforced by the invoked action.
005388671

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.