Overview
Recipients represent the individual or entity to whom you are sending mail. They can be created, updated, and managed through these endpoints. A mailing list ID is required when creating a recipient.Naming
A recipient name is not required. In this case ‘Resident’ will be used. You can also just specify a company using thecompany field.
The company field can also be used to add a secondary name (such as a spouse).
Addressing
Theaddress field can be used to specify the recipient’s street address or it can also be used to specify the full address (in which case we’ll autoparse and split into fields automatically).
Lookup by Email
If no/invalid address is specified and a validemail address is, we’ll attempt to look up a valid street address using the email address for a fee.
Additional fields
custom1 through custom10, phone, and email can all be specified to help identify the recipient. The custom fields can also be used as replacement variables: %CUSTOM1% through %CUSTOM10% in messages, ~CUSTOM1~ through ~CUSTOM10~ in image templates, and in QR Code URLs.
Absentee (property) address
Useabsentee_address when the property a mailer is about is not where the recipient gets mail — for example, an absentee owner who lives elsewhere. Set address to where the mail should go and absentee_address to the property:
absentee_address on its own, for example "742 Evergreen Terrace, Springfield, IL 62704". absentee_city, absentee_province, and absentee_postal_code are optional, and only work alongside absentee_address.
These variables then use the property address instead of the mailing address:
The absentee fields work the same way when creating a recipient, when creating multiple recipients, and on each entry in
recipients on the Send Mailer endpoints.
Things to know:
- The mailer is still delivered to
address. The absentee fields only change what the variables above show. - Send the full address. Street View looks the property up from it, so a street line alone (
742 Evergreen Terrace) can land on the wrong town. Include the city, state, and ZIP, either inabsentee_addressor in the separate fields. - It has its own field. The property address is stored as
absentee_address, with any separate city, state, and ZIP joined into it (742 Evergreen Terrace, Springfield, IL 62704). Recipients and order items come back withabsentee_addressin API responses, and webhooks report it asrecipient.absentee_address. You can setcustom1throughcustom10alongside it. For templates built before this field existed, an emptycustom2is also filled with the absentee address, and follows it when you change or remove it; acustom2you set yourself is never changed. - The older
custom1/custom2convention still works. Settingcustom1toabsenteeandcustom2to the property address has the same effect asabsentee_address: the address is copied intoabsentee_address, andcustom1andcustom2are kept exactly as you sent them. If you send both, a non-emptyabsentee_addresswins. Changingcustom1to anything other thanabsenteelater removes the copied address. - Updating a recipient accepts the same fields. An update that leaves out
absentee_addresskeeps the current absentee address. One that includes it replaces the stored address as a whole, so sendabsentee_addresswith any city, state, or ZIP you include:absentee_city,absentee_province, orabsentee_postal_codeon their own (for example, only a new ZIP) are refused with a400and nothing is updated. To remove the absentee address, sendabsentee_addressas an empty string ornull; if the recipient uses the older convention, that also clears theabsenteevalue incustom1. Don’t sendcustom1=absenteeand acustom2address in that same request, or the address is copied fromcustom2instead of removed. - Without it, the variables fall back to the mailing address.
~STREET_VIEW~and~ABSENTEE_STREET~show the recipient’s ownaddresswhen no absentee address is set.