This guide will help you set up the Send a Postcard action using Stannp's API through Make.com.
Prerequisites
- Stannp API Key: You need to have your Stannp API key ready. You can find it in your Stannp account under Account Settings > API Keys.
- Make.com Account: You should have an active Make.com account and be familiar with creating and running scenarios.
- Recipient Data: Ensure that you have the necessary recipient information available in your Make.com scenario, either from your CRM or other sources.
Step-by-Step Guide
Step 1: Set Up a Scenario in Make.com
- Log in to your Make.com account.
- Go to Scenarios and click on Create a new scenario.
- Select a trigger for your workflow. For example:
- A new order in your e-commerce store.
- A form submission with recipient data.
Step 2: Add the Stannp Module
- Click the + icon to add a new module to your scenario.
- In the search bar, type Stannp and select the Stannp module.
- Choose the Send a postcard action.
Step 3: Connect Your Stannp Account
- If you haven't already connected your Stannp account to Make.com, click Add under the Connection section and enter your Stannp API key.
- Once connected, select your Stannp connection for this scenario.
Step 4: Configure the Send a Postcard Action
Once the Send a postcard action is added, you'll need to configure the parameters for the request. The required fields are Recipient and either Template ID or Front & Back images.
Required Parameters:
-
Recipient:
Map the recipient data from your previous scenario steps. The recipient object should include:title
firstname
lastname
address1
address2
(optional)city
postcode
country
You can use dynamic data from previous modules. For example, the recipient's first name could be mapped to
{{FirstName}}
. -
Template or Images:
- If you are using a Stannp template, specify the template ID.
- If uploading images (front and back), provide the URL or upload the image files.
Optional Parameters:
-
test (boolean):
Set this totrue
to generate a sample PDF without sending the postcard. Set tofalse
to send the postcard for real. -
padding (boolean):
Set to0
to remove the default white border around the postcard, or leave it as is to maintain the padding. -
clearzone (boolean):
Set totrue
to ensure that the postcard has a clear zone overlay for machine readability. Default istrue
. -
tags (string):
Use tags to easily categorize the postcard for reporting. Example:"marketing, reminder"
. -
addons (string):
Specify additional services like FIRST_CLASS postage. -
post_unverified (boolean):
If set tofalse
, the postcard will not be sent if the recipient's address cannot be verified.
Step 5: Test the Scenario
- After configuring the module, click Run Once to test the scenario.
- Verify that all fields are mapped correctly and that the data flows properly from your trigger to the Stannp module.
- Check your Stannp dashboard to ensure the postcard was processed.
Step 6: Activate the Scenario
- Once your test is successful, click Activate to set the scenario live.
- The workflow will now automatically trigger based on the conditions you’ve set up.
Example JSON Body (Sent to Stannp API)
Here’s an example of the data that Make.com sends to Stannp when you configure the Send a Postcard action.
{
"test": false,
"recipient": {
"title": "Mr.",
"firstname": "{{FirstName}}",
"lastname": "{{LastName}}",
"address1": "{{AddressLine1}}",
"address2": "{{AddressLine2}}",
"city": "{{City}}",
"postcode": "{{Postcode}}",
"country": "{{Country}}"
},
"template": 12345,
"tags": "marketing, reminder",
"addons": "FIRST_CLASS",
"clearzone": true,
"post_unverified": false,
"front": "{{FrontImageURL}}",
"back": "{{BackImageURL}}"
}
In this example:
- Dynamic placeholders like
{{FirstName}}
are replaced with actual data from previous steps in your scenario. - The
test
parameter is set tofalse
, meaning the postcard will be sent. - A template ID (12345) is specified to use a pre-configured template for the postcard.
- URLs for front and back images are provided as placeholders
{{FrontImageURL}}
and{{BackImageURL}}
.
Additional Notes:
- Dynamic Data: Use the dynamic data from your previous scenario modules (like customer names or addresses) by selecting the corresponding fields from the dropdown in Make.com.
- Error Handling: You can add error handling in your scenario by using error routes in Make.com to manage potential failures or issues in the API call.
By following these steps, you can automate sending postcards directly from Stannp using Make.com based on your business processes.