Troubleshoot Promo Code Issues

Troubleshoots promo code issues and irregularities. This task provides three endpoints for analyzing data related to promo code as part of troubleshooting activity:

  • Retrieve all promo codes for a promo code list. The related endpoint takes parameters that can be used to limit the number of codes returned by specifying an ID for either a code generation request or a message ID.

  • Retrieve the status associated with a specific promo code generation request.

  • Retrieve invalid promo codes claimed by a customer. Two of the related endpoint parameters can be the user ID for a customer on the SessionM platform; or, it can be an external ID for a customer on an external system integrated with SessionM.

After having retrieved the promo codes or any related data, administrators or developers may see discrepancies in their loyalty program. The data acquired using these endpoints can aid a troubleshooting process may resolve a variety of issues. For example, it might be important to learn which customer attempted to redeem an invalid promo code.

Sequence Diagram

See the overall flow for this task below.

DEVELOPER/ADMIN DEVELOPER/ADMIN CLIENT MIDDLEWARE CLIENT MIDDLEWARE SESSIONM SESSIONM TROUBLESHOOT PROMO CODE ISSUES Determine cause of promo code issue Option 1: Get All Promo Codes Retrieve all promo codes for promo code list Option 2: Get Status of Promo Code Generation Retrieve status for promo code generation request Option 3: Get Invalid Promo Codes Retrieve invalid promo codes claimed by customer Return desired promo codes or related data Display desired promo codes or related data