UltraCart REST Auto Responder API
Note: This is for the UltraCart internal Auto Responder (Home → Marketing → AutoResponders).
This API does not interact with third-party external auto responders such as GetResponse, etc.
This API is not complete. It is not yet scheduled for development. A single API call was created (subscribe) to meet the needs of merchants. Thanks.
Â
Â
Introduction (Things you'll wish you read first)
The UltraCart REST API aims to be a lightweight protocol for tying a checkout page(s) to the UltraCart back end.
Â
Â
Every call needs a merchant id (our merchant id isÂ
Most of the examples below use the http header since it's easy to use with jQuery. If you wished to do it for all your ajax calls, you could execute this javascript:
However, that makes each call less atomic (and jQuery doesn't recommend it). Still, it's an option and may work well with your site. If you receive an error "Missing Merchant ID", you've forgotten to do one of the above. Â Now, in case you're wondering why the three methods use different names...
|
Â
Â
When something doesn't work or you get an error, open your browser console and view the headers. Look for the error. then fix it. Can't? Then get on github.com. Ask for help. |
Â
Â
Object Model
There are no objects specific to the Auto Responder API yet.
Â
Auto Responder REST API
Â
Â
/rest/autoresponder/subscribe
Method | GET | Comments |
---|---|---|
Description | enrolls a customer into a campaign | Â |
Cookies | none | Â |
Path Parameters | none | Â |
Query Parameters | _mid campaignOid name | Merchant ID ( this can also be passed as a cookie or header – see notes in the Introduction) Integer, campaign id. You may find this on the main Auto Responder page in the Campaigns table. It's the first column. Email of customer to enroll Optional first and last name. If this is null, the email is inserted in this field also |
Headers | none | Â |
Receives Json | none | Â |
Returns Json | None. Plain Text | Here are the various return messages:
  Discussion: If the customer does not exist in the campaign and everything works, If the customer exists, and in a finished state, and the campaign is set to re-enroll, then the customer is re-enrolled and If the customer exists and the campaign is not configured for re-enrollment, failure. already enrolled and no re-enrollment. is returned. If the customer exists and re-enrollment is turned on, yet the customer is in progress, nothing is done and failure. customer is enrolled and in-progress. nothing done.  is returned. It's important to realize the none of the above conditions are bad. Each message above is indicative of a healthy auto responder. success/failure pertains to enroll, but regards business logic.  If there is a server error, a 500 status code will return. If there is invalid or missing parameters, a 400 status code will return. Those are the issues you need to worry about. |
Â
Example:
http://secure.ultracart.com/rest/autoresponder/subscribe?_mid=DEMO&campaignOid=1&displayName=Test+User&email=test@test.com
Â
Â
Â
Â
Â