customerLoginInfo
The customerLoginInfo postback is used to query your User Management API about the last login to your site's member's area and to receive information about username and password changes carried out on your side.
Vendo uses this postback to improve our customer support. The customerLoginInfo postback is sent some time after each transaction to check if the customer is actively using the product and to see if the username and/or password has changed.
Request parameters
Parameter | Data type | Description |
---|---|---|
callback | string | Specifies the action for this request, which in this case is "customerLoginInfo". |
subscription_id | numeric | Vendo's subscription identifier. Example: 123456789 |
Your server must reply with one of these response formats:
OK (Response code 1)
Reply with this if the request was received successfully. Please provide accurate information about the last login date (format: YYYY-MM-DD) as well as the current username and password, in case you allow your end users to change them on your end.
Example:
<?xml version="1.0" encoding="UTF-8" ?>
<postbackResponse>
<customerLoginInfo>
<code>1</code>
<lastLogin>2016-07-15</lastLogin>
<username>steven</username>
<password>123456abc</password>
</customerLoginInfo>
</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/debugging. Make sure this error message is meaningful because it is stored to a logfile for later debugging.
Example:
<?xml version="1.0" encoding="UTF-8"?>
<postbackResponse>
<customerLoginInfo>
<code>2</code>
<errorMessage>Custom error message</errorMessage>
</customerLoginInfo>
</postbackResponse>
Note for NATS users
NATS v3 doesn't support this postback. If you run NATS v3, you have to create a script to handle it. Contact Vendo support for more information.
Updated over 2 years ago