Definitions

Date/time formats and time zone

All date and time values can either be sent as strings or as the XML-RPC dateTime.iso8601 type. If you choose to send it as strings, they must be sent with the following format:

Date:
YYYY-MM-DD (E.g.: 2010-05-31)
Date with time:
YYYY-MM-DD HH:MM:SS (E.g.: 2010-05-31 18:42:53)
Time:
HH:MM:SS (E.g.: 18:42:53)

If you choose to send you dates and times as the dateTime.iso8601 type, you must conform to the XML-RPC specification.

Time zone support

The timestamps you send to the API will be interpreted according to the time zone your account has been configured with. This can be configured from the Ubivox interface: Account and then Contact details.

Note

The current local time for the account (in the time zone, as configured on the contact details) can be looked up by calling ubivox.server_time().

Note

An array of the supported time zones can be fetched from the API using ubivox.time_zones().

Error codes

All error reporting is done through XML-RPC fault messages. The following error conditions can happen:

Error code Error message
1001 Invalid e-mail address
1002 The user is not subscribed
1003 The user is already subscribed
1004 Invalid data field
1005 Invalid data field key
1006 Invalid data field type
1007 Invalid data field access
2001 Invalid mailing list
2002 The course has already ended (no stage to advance to)
2003 Invalid stage.
2004 Opt-in not configured (on one or more lists).
3001 Invalid delivery
3002 Delivery not in edit state
3003 Delivery not in standby state
3004 Problem with delivery content
3005 Mail merging error
4001 Invalid import
4002 Too many invalid addresses in import file
4003 Another import already exists with this filename
4004 Invalid import filename
4005 Format error in import file
5001 Invalid date/time format
5002 Invalid date format
5003 Invalid offset
5004 Invalid reference (only a-z, A-Z, 0-9, - and _ allowed)
5005 Invalid time zone
5006 Invalid language
5007 Invalid filename
5008 Invalid rule set
5009 Invalid timezone
5010 Invalid target
5011 Invalid webhook
5012 Invalid hook
6001 Wrong number of parameters given
6002 No such method
7001 Invalid client
7002 FTP username taken
7003 Hostname taken
7004 Username taken
7005 Invalid user
7006 Account name taken
7007 Invalid account type
7008 Invalid account name
8001 Invalid rebate code
9994 Unauthorized
9995 Account type upgrade needed (contact sales)
9996 Not approved for this call
9997 Too many calls (throttling)
9998 XML error (maybe not wellformed)
9999 Unknown error

In each method, error conditions that can occur is listed.

Subscriber data

All API methods that work with subscriber data do so by utilizing the XML-RPC struct type (see Protocols). The struct is a mapping from the data key to the data value for this particular subscriber.

Data fields with predefined options

When dealing with data fields with predefined options, you need to supply the keys of your options in a comma separated string as the value of the data field.

Supported hooks for webhooks

We currently support the following hooks/events for webhooks:

  • subscription
  • unsubscription
  • remove_subscription
  • suspend_subscription
  • activate_subscription
  • login
  • junk_delivery
  • junk_email
  • bounced_email

For explanations, please refer to the Ubivox webhook interface located inside the Ubivox system from Account then Webhooks.

Table Of Contents

Previous topic

Accessing the API

Next topic

API Methods