changeUsernamePassword
Vendo triggers the changeUsernamePassword postback to notify that the username, password, or both have been updated for an existing subscription.
Request parameters
Parameter | Data type | Description |
|---|---|---|
callback | string | Specifies the action for this request, which in this case is "changeUsernamePassword". |
username | string | End user's new username. If this value is empty, it means that the username didn't change and as such should be ignored as only the password should be updated. |
password | string | End user's new or existing password. |
subscription_id | numeric | Vendo's subscription identifier. |
site_id | numeric | Vendo's site identifier. |
is_test | boolean | Whether or not this request is related to a test transaction or subscription.
0 for no (real transaction) |
Your server must reply with one of these response formats:
OK (Response code 1)
Reply with this if the request was received successfully.
Example:
<?xml version="1.0" encoding="UTF-8"?>
<postbackResponse>
<changeUsernamePassword>
<code>1</code>
</changeUsernamePassword>
</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 changeUsernamePassword postback after your error response.
Example:
<?xml version="1.0" encoding="UTF-8"?>
<postbackResponse>
<changeUsernamePassword>
<code>2</code>
<errorMessage>Custom error message</errorMessage>
</changeUsernamePassword>
</postbackResponse>
Note for NATS usersNATS 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 15 days ago
