Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

 

Code Block
languagehtml/xml
linenumberstrue
<mailupMessage>
<mailupBody>
<ReturnCode>0</ReturnCode>
...
</mailupBody>
</mailupMessage>
Note
titleAuthentication Required
Please note: if you receive a generic 500 error when attempting to use MailUpImport, the reason is typically authentication: Remember to authenticate yourself: this can be done either with an API call (see below) or manually in the admin console.

Glossary

  • Customer: a company/business subscribing to the MailUp service
  • Console URL / NL_URL: MailUp defines a dedicated URL for each Customer. For this reason, external systems must know the exact URL to which to send the request (e.g. http://mailing.myCompany.com/Services/WSMailupImport.asmx). The URL is also used for links, hosted pages, and for the admin console. You can use a custom URL if your account has the Private Labeling feature turned on.
  • WS_MailUpImport: a Web Service designed to import recipients from a third party application, retrieve details on lists & groups, and check the status of an import process
  • MailUp API Account: credentials used specifically with the MailUp API, different from the credentials used to log into your MailUp account. They consist of a username and a password. The API account credentials are automatically created when a new MailUp account is created for a new customer, while for existing customers they are manually created via the MailUp console under Manage > Web Services
  • WS: Web Service

MailUp API status

Once the API account has been created, the MailUp APIs must be activated in order to be able to receive requests (they are disabled by default for safety reasons): they can be activated manually using the MailUp admin console or automatically by calling a specific URL. Deactivation is also done manually through the MailUp admin console. The IP address of the application using the web service must be registered (manually in the admin console or by performing the activation call).

Manual Activation

To manually activate and configure the MailUp API in your MailUp admin console:

  1. Log into your account
  2. Navigate to Manage > Web Services Settings > Account settings > Developer's corner and select the "Webhooks" tab
  3. Select WSMailUpImport from the drop-down at the top
  4. Set a password and store it securely: you will need it in your API calls
  5. Enable the Web services
  6. Add the necessary IP addresses to allow for requests coming from those locations
Here is an example of the settings screen (as of January, 2012)
  1. .
Image Removed

Activation via API (WSActivation.aspx)

A third party application can enable web services via a call to:

http://<MAILUP_CONSOLE_URL>/frontend/WSActivation.aspx?usr=<usr>&pwd=<pwd>&nl_url=<nl_url>&ws_name=<ws_name>

MailUp provides an ASP.NET Web Form to allow third party applications to activate (if not already active) and register (store) the IP address of the caller. The form supports the parameters described below, both in GET and in POST modes:

  • usr: MailUp API Account username (e.g. a7132)
  • pwd: MailUp API Account password
  • nl_url: Console URL (e.g abcd.sp09.com, omitting "http://" )
  • ws_name: Web service name (specify: "WSMailUpImport")

MailUp will register the IP address of the computer calling, and therefore authorize future calls coming from that IP address. If the caller's IP address changes, WSActivation web service must be called again.

Sample WSActivation response

Code Block
languagehtml/xml
linenumberstrue
<mailupMessage>
<mailupBody>
<ReturnCode>0</ReturnCode>
<WS_Activation>
<WS_Name> WS_MailUpImport </WS_Name>
<DateOfRequest>2008-01-16</DateOfRequest>
<User>admin</User>
</WS_Activation>
</mailupBody>
</mailupMessage >

Response Codes (ReturnCode)

CodeDescription
0request execution succeeded
-2ws name has not been specified (1)
-4user name has not been specified (1)
-8password has not been specified (1)
-16nl url has not been specified (1)
-101mismatch between List ID and List GUID (where applicable)
-1000unrecognized error
-1001the account is not valid
-1002the password is not valid
-1003suspended account
-1004inactive account
-1005expired account
-1006the web service is not enabled
-1007the web service is not active
-1008the web service is already active
-1009web service activation error
-1010IP registration error
-1011 IP is not registered
-1012IP is registered but has the “deny access” flag
-1013Missing authentication data 

(1) ReturnCode can be a combination of these

Authentication

...