Leanplum's user guides and developer documentation.

Affirm integration

Affirm partners with email service providers to allow merchants to include monthly payment pricing information in their emails to customers.

The Leanplum-Affirm integration uses Linked Data, which allows you to inject third-party contextual data into all messaging channels. We built Linked Data for unlimited flexibility by allowing you to use Jinja-­style syntax to help turn raw data from any source into a useful, human-readable message.

Linked Data must be enabled

This is an advanced feature that is not enabled by default. Contact your CSM if you are interested in getting started with Linked Data.

Setup

  1. Log into Affirm. Find and copy your Public API Key.

  2. Now log into Leanplum. Navigate to Keys & Settings. Select the Linked Data tab on the left.

  3. Type "Affirm" into the Name field. In the URL field, paste the API endpoint: https://www.affirm.com/api/promos/v2/**your_public_api_key}**.

  4. Click Add to link your data.

  1. Navigate to the Messaging tab in Leanplum. Click Create Message and select Email.

  2. Populate the email with Linked Data from Affirm.

  1. Send an email preview to yourself to ensure the Linked Data is working properly.