Mailing Lists

Mailing lists are entities that hold a list of recipients created from either Contacts or Mailing List Imports and are used to send orders in bulk.

To begin populating a mailing list, use the Create Job endpoint to add or remove either Contacts or Mailing List Imports by their unique identifiers (beginning with either contact_ or mailing_list_import_). "Contact" and "Mailing List Import" entities must be created and processed before being added to a mailing list.

To create specific sender contacts for each recipient, create a Mailing List Import with unique senders for each recipient, and add this mailing list import to your mailing list.

Mailing List Response

NameTypeDescription
idstringA unique ID prefixed with mailing_list_
objectstringAlways mailing_list
livebooleantrue if this is a live mode mailing list else false
descriptionstring or undefinedOptional description for mailing list
metadataobject or undefinedSee metadata
errorsarray of objects with a type and messageErrors encountered when processing mailing list
statuscreating_contacts, removing_contacts, orcompletedProcessing status of mailing list

Processing Errors

Errors that may be encountered when processing jobs for mailing lists are detailed below. Error information and processing status can be retrieved for mailing lists using the Get Mailing List and List Mailing Lists endpoints.

TypeDescription
mailing_list_imports_not_found_errorThe mailing list import specified in the request was not found
download_file_errorAn error occurred when downloading the file for the mailing list import
operational_errorGeneral error operational errors such as entities not found
internal_service_errorSomething went wrong on PostGrid's side