Send new member onboarding packages using direct mail from PostCard Mania

  • Updated

Onboard new Credit Union members with information about the range of products and services offered to build long-term member relationships. Credit Unions can consider adding offline “welcome packages” as part of their onboarding process, and coordinate and time the sending of these offline packages with their new member automated programs.

This feature is only available when using All Contacts. If you don't see All Contacts, please fill out the form here to request this feature activation.

Get an API Key

  1. Login to PCM Integrations.
  2. Navigate to Settings > API Keys:
  3. If testing use Sandbox API Keys otherwise use Production. For the purposes of this guide, we are using Sandbox API key.

  4. Click to generate Sandbox Secret Key
  5. If this is your first time generating a key and you are certain an existing one is not already used for another integration, click on Generate API Secret
  6. Generate API Secret
  1. Copy and save the secret key. It will no longer be visible after you leave the screen.


Generate Secure Token - “Long Live Token”

The token generated in this step is required in the webhook set-up in Act-On. You may use an API developer platform of your choice. This guide will show you how to generate it using Postman.

  1. Login to Postman
  2. Follow example as provided in Settings > API keys
  3. Make a POST request to URL
    • Choose Json formatting and add the following in the body
      "apiKey" : "{apiKey}",
         "apiSecret" : "{apiSecret}
  1. Replace the API key and Secret from the prior steps (this example is using the Sandbox API Key and Secret)
  2. Send request. You should see a 200 response code with the token details (code and expiration code). Note: if expiration date is not a year from the date it is generated, reach out to the Support team to enable the “Long Live Token” feature for your account).

Create Letter Design

  1. Navigate to PostCard Mania and click on Letter under the Design menu
  2. If the design already exists, click to open, otherwise create a new one
    • Note: you can host the letter PDF in Act-On’s Media Library or any other accessible hosts like AWS,, etc.
  3. Navigate to the Order JSON Example
  4. Copy values needed for the webhook setup in Act-On
    • ExtrefNBr
    • designID
    • MailClass


Create Webhook 

  1. Login to Act-On and navigate to Settings > Connectors
  2. Click Outgoing Webhooks
  3. Click on Add Endpoint button and add relevant information.
    There are two options here. You can choose to create one from a template or from blank.
    • Template
      1. Go to Transformation template tab
      2. Click on “PostCard Mania - Place Letter Order”
      3. Add URL
      4. Event should already be defaulted to “automated-program-step.executed”
      5. Create
    • Blank
      1. Go to Custom URL tab
      2. URL - POST
      3. Description: Optional but recommended you add a description that is relevant to the use case
      4. Event: automated-program-step.executed
      5. Save
  4. Edit endpoint
  5. Click on Advanced tab
  6. Add rate limit
  7. Type “Authentication” in Key field and the Bearer token retrieved in the earlier step.
  8. Click on the + button to save
  9. If Transformation is not enabled, toggle to “Enabled”
  10. Click on Edit transformation
  11. Make updates to the payload. You can copy and paste the below message. Make sure you adapt the content based on your desired template:
    1. Update extRefNbr value from the Order Json Example
    2. Update DesignID value from the Order Json Example
    3. Fetch the URL where the design for the letter is stored. If stored in Act-On’s media library, it will look something like this
    4. Update eprintOnBothSides to either True or False
    5. Update  returnAddress to the desired return address fields
    6. Update recipient personalizations based on the field names found in Data Management
      • Format of the personalization should include
        • - identifies that the transformation variable is updated from the webhook
        • [“token”] - formatting required for the transformation to personalize accordingly
      • Example personalizations fromAct-On account’s Settings>Data Management configuration
        • Mailing City -["Business City"]
        • Date and Time -["Date and Time"]

  1. Run the test and confirm email is received validating that the test was successful. If API keys used for the test are for Sandbox, note that you will need to retrieve a Production API from PostCard Mania and use those in Act-On when creating a webhook.

"extRefNbr": "12345",
"designID": 2551,
"color": false,
"letter": "",
"insertAddressingPage": false,
"envelope": {
  "type": "Regular"
"globalDesignVariables": [
    "key": "pdfurl",
    "value": "image url"
  },    {
    "key": "returnaddress",
    "value": "text"
  },    {
    "key": "returnaddresscity",
    "value": "text"
    "key": "returnaddressname",
    "value": "text"
  },    {
    "key": "returnaddressstate",
    "value": "text"
  },    {
    "key": "returnaddresszipcode",
    "value": "text"
"mailClass": "FirstClass",
"printOnBothSides": true,
"recipients": [
    "firstName": "Test",
    "lastName": "Person",
    "address": "123 4th St",
    "address2": "Unit 1",
    "city": "Clearwater",
    "state": "FL",
    "zipCode": "33765",
    "variables": []
],  "returnAddress": {
  "firstName": "Return",
  "lastName": "Address",
  "address": "123 4th St",
  "address2": "Unit 1",
  "city": "Clearwater",
  "state": "FL",
  "zipCode": "33765"

Create Automated Program

  1. Log into Act-On
  2. Go to Automations > Automated Programs
  3. Add new program
  4. Choose desired source list
    • This will be the segment that includes all the contacts that will be nurtured with a letter from PostCard Mania as they enter the program. In this scenario, the segment is based on prospects that are qualified once they reach a score of 100 pts in Act-On.
  5. Add Step: Outgoing Webhooks
  6. Select the URL of the webhook created in the prior section (look at Description of endpoint URL to ensure you are selecting the correct one).
  7. Choose all the contact fields you wish to include in the webhook payload. These are the fields mapped in the transformation area of the webhook.
  8. Submit and save
  9. Start Program

A successful program will trigger a webhook that has a 200 response code. You can validate this from Settings > Connectors > Outgoing Webhooks by viewing the logs for the endpoint called by the Automated Program.



Was this article helpful?

Have more questions? Submit a request