...
Tip |
---|
Examples and Demo (Every call is used by the example script and the demo. Just search for the call.) Examples: https://github.com/UltraCart/my_account/blob/master/js/myaccount_rest_1.03.js Demo: https://secure.ultracart.com/merchant/integrationcenter/my_account_demo/ Note: The myaccount_rest link above will go stale as the version is incremented. If that's the case, just go here and look for the latest version: https://github.com/UltraCart/my_account/tree/master/js |
Info | |||||||||
---|---|---|---|---|---|---|---|---|---|
Every call in the MyAccount REST API uses two cookies for authentication:
This is to remain consistent with the UltraCart shopping cart engine. Using the same two cookies avoids multiple login prompts to the customer. These cookies are automatically set by the login methods, so after login, security is transparent. Most pages may use a simple model to handle expired sessions or invalid logins:
Be aware that the valid presence of these two cookies is not enough to constitute a "logged in" status. The customer must have submitted their profile username and password as some point and the server must have a flag set on its internal record denoting the customer as logged. So do not assume that just because you're seeing these two cookies accompany REST calls that the customer is logged in. |
Object Model
These json objects are used with the REST MyAccount API.
...