Skip to content

Use offer by code

Use Offer By CodeΒΆ

Description

Uses an offer by its code. This action is used to redeem an offer that was assigned to a member using a code.

Parameters

Parameter Type Format Description
Offer Code String Text The offer code to use. Must match the code of an existing offer on the member.

Outputs

Adds the used offer to Context.result.data.offersUsed.

JavaScript API

UDF.useOfferByCode(offerCode, callback)

Events Triggered

Generates the L2 UseOfferEvent.

Possible Errors

Error Code Error Message Description
2011 Cannot find offer with code %s The offer code wasn't found on the member.
2012 Offer "%s" with code "%s" is not yet effective The offer isn't currently effective.
2013 Offer "%s" with code "%s" has expired on %s The offer has expired.
2014 Failed to use offer "%s". No more uses left. The offer has reached its maximum number of uses.
2072 Cannot use cancelled offer "%s" with code "%s" The offer has been cancelled.
4041 Division Access Denied for user Reported when user lacks division access for the offer.

Additional Considerations

  • The offer must be assigned to the member before it can be used
  • The offer must be within its effective dates
  • The offer must not have exceeded its maximum uses
  • The offer must not be cancelled