Getting Started With Coupon Carrier and Braze

Coupon Carrier is a service that helps you distribute unique codes and coupons to your customers. You can choose to import your own set of unique codes or generate new ones automatically depending on which services as systems you use today.

You can use Braze's Connected Content feature to pull in unique codes from your Coupon Carrier code list.

Here's an example of how the connected_content tag is added:

{% connected_content https://api.couponcarrier.io/v2/integration-apis/braze/get-code?emailaddress={{${email_address} | url_param_escape}}&codelist=<CodeListId> :basic_auth credential_name %}

The parameters are emailaddress and codelist. The email would be the recipient's email address, which you can dynamically add using Braze's ${email_address} merge tag. We're also escaping the value to prevent invalid characters in the URL. The codelist is the Id of the code list you'd like to get the code from. You can find the code list id in your account when you browse a code list:You'll need to add the credentials according to their documentation: https://www.braze.com/docs/user_guide/personalization_and_dynamic_content/connected_content/making_an_api_call/#using-basic-authentication

The username should be your Coupon Carrier API key (found under account settings), and the password can be any value, ex: "blank".

This endpoint will return a JSON response so you can get the result according to their documentation: https://www.braze.com/docs/user_guide/personalization_and_dynamic_content/connected_content/local_connected_content_variables/#json-parsing

Still need help? Contact Us Contact Us