addUser
Vendo triggers the addUser postback when an end user has successfully completed a signup transaction. It is sent so that your system knows the user should be granted access to your site.
TimeoutsThe postback will time out if your platform does not respond within 30 seconds. If this occurs, our platform will automatically retry the request.
Request parameters
Parameter | Data type | Description |
|---|---|---|
callback | string | Specifies the action for this request, which in this case is "addUser". |
username | string | End user's username. |
password | string | End user's password. |
string | End user's email. | |
subscription_id | numeric | Vendo's subscription identifier. |
site_id | numeric | Vendo's site identifier. |
customer_id | numeric | Vendo's customer identifier. |
firstname | string | End user's first name. |
lastname | string | End user's last name. |
street | string | End user's street address. |
zip | string | End user's zip code. |
city | string | End user's city. |
country | string | End user's country. 2-letter ISO 3166-1 alpha-2 format. |
language | string | End user's language. 2-letter ISO 639-1 format. |
ip | string | End user's IP. |
merchant_reference | string | The custom reference that you might have passed in the original request via the ref parameter. Example: 123 |
is_test | boolean | Whether this request is related to a test transaction or subscription. |
Your server must reply with one of these response formats:
OK (Response code 1)
Reply with this if the request was successful and the end user was granted access.
Example:
<?xml version="1.0" encoding="UTF-8"?>
<postbackResponse>
<addUser>
<code>1</code>
</addUser>
</postbackResponse>ERROR (Response code 2)
Reply with this if you encountered an unexpected problem with the request.
Include a custom error message with your message for tracing and debugging. Make sure this error message is meaningful, as it will be stored in a log file for later debugging.
Vendo will attempt a new addUser postback after your error response.
Example:
<?xml version="1.0" encoding="UTF-8"?>
<postbackResponse>
<addUser>
<code>2</code>
<errorMessage>Custom error message</errorMessage>
</addUser>
</postbackResponse>Updated about 8 hours ago
