Skip to main content
When a new customer visits your site to purchase a product or service, establish an account for that customer and store the related information in a database in your system. You can also create a record of customer information in Subscribe to facilitate the financial transactions you later pass to Subscribe for processing. To establish a new customer account, create an Account object, populate it with data, and store that data in the Subscribe database using the Account object’s update method. Note that the authentication information resides in the Account object, and that you must add the Account object information as a first step in a new call.
When you create an Account object, Subscribe assigns it a globally unique Vindicia identifier (VID). As the preceding example illustrates, your application can capture the VID for later use. The Account object also includes a data member called merchantAccountId, which enables you to assign your own identifier for the account, such as a database login, user name, or email address. Be certain to specify a unique value for this field when creating an Account. For more information, see Section 1: The Account Object in the Subscribe API Guide. Parent topic:Working with Accounts