Skip to main content

API Operations

This table provides a quick reference of all API operations with their descriptions. Click the operation name to view the full details and code samples.

NameDescription
AddAddressThis function adds an address to the mailing. To validate the address use the Process Mailing call after adding it.
AddBackgroundFileToLibraryThis call allows a background file to be added to the library, overwriting the existing background of the same name if it already exists.
AddCampaignThis call adds a Dotpost campaign.
AddDeliveryAddressThis call is for courier despatch orders only and adds a delivery address to the order.
AddDesignerImageThis call adds an image file to a designer template.
AddDesignerStoredImageThis call adds a stored image to a designer template.
AddDesignerTemplateThis call adds a designer template to the current mailing, allowing the creation of postcards, greeting cards or outer envelopes by uploading or selecting the parts that make up the final template....
AddDesignerTextThis call adds text to part of a designer template or to set the return address on an outer envelope.
AddLibraryTemplateBackgroundRuleThis call adds a template background rule to a library mail pack.
AddMailingFilterAdds a filter to the mailing to adjust how the mailing is processed.
AddMailingListFileThis function adds the addresses from a mailing list file to the mailing. This call returns a Mailing List GUID that can be used for obtaining address count information. To check if the import is c...
AddMailingListFileForAddressCountThis function adds the addresses from a mailing list file to a temporary mailing list. This call returns a Mailing List GUID that can be used for obtaining address count information.
AddMailingListFileToLibraryThis call is no longer supported; addresses should be added to each mailing.
AddMailingListFileWithPasswordThis function adds the addresses from a mailing list file to the mailing, optionally supplying an encryption password. This call returns a Mailing List GUID that can be used for obtaining address c...
AddMailingListFileWithPasswordToLibraryThis call is no longer supported; addresses should be added to each mailing.
AddMailingListFromLibraryThis call is no longer supported; addresses should be added to each mailing.
AddMailingListFromOrderThis call is now obsolete; addresses should be added to each mailing.
AddMailingListStringThis function starts a process of importing addresses from a formatted string to the mailing. This call returns a Mailing List GUID that can be used for obtaining address count information. To chec...
AddMailingListStringForAddressCountThis function adds the addresses from a formatted string to a temporary mailing list. This call returns a Mailing List GUID that can be used for obtaining address count information.
AddMailingListStringToLibraryThis call is no longer supported; addresses should be added to each mailing.
AddMailPackFromLibraryThis call adds a mail pack from the library. This call returns a mail pack GUID that can be used to set variable values along with TemplateGUID 1, TemplateGUID 2 etc for each template that has been...
AddMailPackFromOrderThis call is now obsolete; documents should be added to each mailing or mail packs added from the library.**
AddMailPackToLibraryThis call adds a mail pack to the library. Returns a mail pack GUID of either the existing mail pack with the name supplied or a newly created mail pack if the name does not exist.
AddSelfThis function adds the speficied user’s address to the mailing.
AddTemplateBackgroundFileThis call allows a background file to be added against a specific template on a mailing.
AddTemplateBackgroundRuleThis call enables data intelligence on a mailing and adds a background rule against the specified template.
AddTemplateFileThis call adds a template document to the mailing. This call returns a template GUID that can be used to add a background file or variable values.
AddTemplateFileToLibraryThis call adds a template document to the library, overwriting the existing background of the same name if it already exists.
AddTemplateFromLibraryThis call adds a documents or outer envelopes from the library. This call returns a template GUID that can be used to add a background file or set variable values. For corporate users this call can...
AddTemplateFromOrderThis call is now obsolete; documents should be added to each mailing or added from the library.**
AddTemplateToLibraryMailPackThis call adds a library template to a library mail pack.
AddTemplateUseRuleThis call enables data intelligence on a mailing and adds a template use rule.
AddUserThis call adds a user to your account. Note that calls that attempt to create users are restricted to a maximum of 10 per minute.
AddUserOrganisationStructureLinkThis call is for corporate users only and links a user to the organisational structure.
AddUserSignupDataThis call is for corporate users only and adds additional sign-up data for the user.
AgreeToTermsThis call sets the current user as agreeing to the terms of service and marketing preferences.
AutoCorrectAddressesThis function applies correction to the addresses after all the addresses have been added to the mailing.
CancelMailingThis call cancels a mailing.
CancelMailingApprovalThis call cancels all approval on the mailing, allowing the mailing to be edited.
CanUseDotpostThis call returns various information relating to Dotpost settings on the account.
ContentApproveMailingThis call is for corporate users only and content approves or rejects a mailing. Please note that the mailing will be submitted if auto submit is enabled on the account, otherwise the PayMailing ex...
CreateAccountThis call creates a Docmail account. You must obtain permission from the Docmail support team to use this call. Note that calls that attempt to create users are restricted to a maximum of 10 per mi...
CreateFileMailingThis call allows one or more mailings to be created from a zip file without the need for any further calls. To control the mailings an XML configuration file needs to be included within the zip fil...
CreateMailingThis call adds a new mailing to the account using the parameters defined. This call returns a mailing GUID that can be used to add data to the mailing, and it also returns the order ref.
CreateZipMailingThis call allows one or more mailings to be created from a zip file without the need for any further calls. To control the mailings an XML configuration file needs to be included within the zip fil...
DeleteAddressThis call deletes the mailing address matching the supplied Customer Address ID. The Customer Address ID must be supplied in the address data and should be unique for each address on the mailing. I...
DeleteLibraryBackgroundThis call deletes a library background matching the supplied name.
DeleteLibraryMailPackThis call deletes the library mail pack accessible for the user matching the supplied name.
DeleteLibraryTemplateThis call deletes the library document or insert accessible for the user matching the supplied name.
DeleteLibraryTemplateFromLibraryMailPackThis call deletes a document from a library mail pack.
DeleteMailingThis call deletes a mailing.
DeleteMailingListThis call deletes all addresses from the mailing.
DeleteMailPackThis call deletes all templates from the mailing.
DeleteTemplateThis call deletes a template from the mailing.
ExtendedCallThis call is for calling an extended method.
ExtendedCallDefinitionPublic Function ExtendedCallDefinition(ByVal Username As String, ByVal Password As String, ByVal MethodName As String, ByVal ReturnFormat As String) As String
GetBalanceThis call gets the current balance for the given account type. Returns Current Balance for a top-up account, or Credit Limit, Credit Available and Amount owed for an invoice account.
GetClosedFaceEnvelopesImageThis call gets a PNG format sample preview image file for a closed face envelope.
GetDefaultMailingOptionsThis call returns the default mailing options on the account for a given product.
GetLibraryBackgroundFileGets the file of the library background matching the supplied background name.
GetLibraryMailPackFileGets a zip file of mail pack matching the supplied mail pack name.
GetLibraryTemplateFileGets the file of the supplied template name.
GetMailingDetailsThis call gets the details of the mailing. Please note that the status code changes to “Complete” once the mailing has been despatched. This information is only updated a few times a day, therefore...
GetMailingFileGets a zip file of the mailing, including the documents, address data, proof files and an XML control file.
GetMailingGUIDFromOrderRefThis call gets the mailing GUID for a given order reference.
GetMailingListZipThis call provides a zip archive file containing a CSV file of the addresses on a mailing.
GetMailingPriceEstimateThis function gets a price estimate for a mailing given a total number of expected printed sides.
GetMailPackZipThis call provides all the templates from a mail pack in a zip archive file.
GetPriceEstimateThis function gets a price estimate for a given set of parameters.
GetPriceEstimateWithReturnsThis call returns a price estimate including the cost of returns managements.
GetProcessingErrorThis call returns details of any errors from processing the mailing.
GetProofFileThis call gets the PDF proof file for the mailing. Before using this call the mailing must have been fully processed by calling Process Mailing, otherwise a failure will be returned.
GetProofImageThis call gets the PNG format proof image file for a given page. Proof images are limited to a maximum of 20 pages. The mailing must have been fully processed before using this call, otherwise a fa...
GetProofPackFileThis call gets the PDF proof file for the mailing via a pack number returned from the ListProofPackDetails call. Before using this call the mailing must have been fully processed by calling Process...
GetProofPackImageThis call gets the PNG format proof image file for a given pack number (returned from the ListProofPackDetails call) and page. Proof images are limited to a maximum of 20 pages. The mailing must ha...
GetReturnAddressesThis call requires no additional properties as the data returned is based upon the user name passed into the Extended Call.
GetStatusThis call gets the processing status of the mailing. This call can be polled at regular intervals to ascertain when the processing is complete. Fully processing a mailing including a proof takes a...
GetTemplateImageThis call returns a byte array image preview or thumbnail. Pass the page number as 0 for the thumbnail or 1 for the large preview image.
GetUserLoginKeyThis call returns a pass key that can be used instead of a user password. It is recommended that a pass key is used for performance. If a key expires then a -130 error code will be returned from ...
GetZipStatusThis call returns the status of the zip file processing, along with “MailingGUID 1”, “MailingGUID 2” etc for each mailing in the XML file.
ListClosedFaceEnvelopesThis call returns a list of Outer Envelopes configured on the account.
ListDocumentTypesThis call returns a list of available document types for a given product type.
ListDotpostCampaignsThis call returns a list of Dotpost campaigns available for an account.
ListLibraryBackgroundsThis call retrieves a list of library backgrounds.
ListLibraryBackgroundsPageCountThis call retrieves the page count for a list of library backgrounds, returns a page count of zero if no backgrounds are found for the search criteria.
ListLibraryMailingListsThis call is no longer supported; addresses should be added to each mailing.
ListLibraryMailingListsPageCountThis call is no longer supported; addresses should be added to each mailing.
ListLibraryMailPacksThis call retrieves a list of library mail packs.
ListLibraryMailPacksPageCountThis call retrieves the page count for a list of library mail packs, returns a page count of zero if no mail packs are found for the search criteria.
ListLibraryTemplatesThis call retrieves a list of library templates.
ListLibraryTemplatesPageCountThis call retrieves the page count for a list of library templates, returns a page count of zero if no templates are found for the search criteria.
ListMailingFilterCategoriesThis call is for corporate users only and returns a list of the mailing filter categories.
ListMailingFiltersForCategoryThis call is for corporate users only and returns a list of mailing filter values for a given category.
ListMailingProcessingDataThis call is now obsolete.
ListMailingsThis call retrieves a list of mailings.
ListMailingsPageCountThis call retrieves the page count for a list of mailings, returns a page count of zero if no mailings are found for the search criteria.
ListMailingsWithDescriptionThis call returns a list of mailings including the mailing description.
ListMailingVariableValuesThis call is no longer supported.
ListOrganisationStructureDataThis call is for corporate users and returns a list of organisation structure data for a given category name.
ListProductTypesThis call returns a list of available product types.
ListProofPackDetailsThis call returns a list of the proofs available. A proof per address and despatch type is returned if Dotpost or Per Address Proofs are enabled on the mailing.
ListReplyEnvelopesThis call returns a list of Reply Envelopes configured on the account.
ListReturnsThis call returns a list of Returns on the account, ordered by the most recently recorded first.
ListTemplateVariablesThis call returns a list of available template variables for a given template. Please note that before using this call for mailing templates a partial Process Mailingcall must be made to process th...
PayMailingThis call pays for a mailing if it is not automatically submitted from the Process Mailing call.
PollMailingListAddressCountsThis function polls the status of the address count.
ProcessMailingThis call runs the processing on the mailing and optionally submits a mailing for printing. If your mailing has already been processed and there are no changes then this call can be called again wi...
RefreshBudgetPeriodsThis call is for corporate users only and updates the budget periods to the latest period if the mailing was created against a previous budget period. The account must use the budget approval metho...
RetrieveMailingFromArchiveThis call is now obsolete.
SetDataIntelligenceThis call sets the use data intelligence flag on a mailing.
SetDataIntelligenceDefaultTemplateRuleSets the data intelligence default template rule and turns on data intelligence for the mailing if not already set.
SetErrorSimulationThis call sets an error code on the account that makes GetStatus return “Error in processing” and the GetProcessingError return the supplied error code.
SetMailingAPICancelOnlyThis call sets whether the mailing can be cancelled from the API only.
SetMailingListProofOptionThis function applies proof option to the addresses after all the addresses have been added to the mailing.
SetMailingReturnsManagedThis call sets the returns management option on a mailing.
SetMailPackVariableValueThis call sets a variable value for all templates containing the variable in the mail pack. Please note that this call does not check for a valid variable name as it occurs prior to scanning templa...
SetTemplateBackgroundThis call sets the template background to the specified library background.
SetTemplateVariableValueThis call sets a variable value on a specified template. Please note that this call does not check for a valid variable name as it occurs prior to scanning the template for variables.
TermsAgreementRequiredThis call checks if terms of service agreement is required. Terms can be agreed by logging into the website or by calling AgreeToTerms
UpdateMailingOptionsThis call updates the mailing options for a given mailing GUID.
UserApproveMailingThis call user approves the mailing. Please note that the mailing will be submitted if there is no further corporate approval required and auto submission is enabled on the account; otherwise the m...