checkUser

📘

Timeouts

The 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

ParameterData typeDescription
callbackstringSpecifies the action for this request, which in this case is "checkUser".
usernamestringEnd user's username.
Example: bob123
passwordstringEnd user's password.
Example: AbC112233
emailstringEnd user's email.
Example: [email protected]
subscription_idnumericVendo's subscription identifier.
Example: 12312312
site_idnumericVendo's site identifier.
Example: 87111
merchant_referencestringThe custom reference that you might have passed in the original request via the ref parameter.
Example: 60022*32d5fe4257adf1ba36*1*0*2b
is_testbooleanWhether this request is related to a test transaction or subscription.
0 for no (real transaction)
1 for yes (test transaction)

Your server must reply with one of these response formats:

OK (Response code 1)

Reply with this if the username is available in your system, and the transaction may continue.

Example:

<?xml version="1.0" encoding="UTF-8"?>
<postbackResponse>  
 <checkUser>       
  <code>1</code> 
 </checkUser>
</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 checkUser postback after your error response.

Example:

<?xml version="1.0" encoding="UTF-8"?>
<postbackResponse> 
 <checkUser>  
  <code>2</code>  
  <errorMessage>Custom error message</errorMessage> 
 </checkUser>
</postbackResponse>

NOT AVAILABLE (Response code 3)

Reply with this if the username is not available in your system, for example, if it is already in use by a different user.

Vendo will autogenerate a new username and attempt a new checkUser postback.

Example:

<?xml version="1.0" encoding="UTF-8"?>
<postbackResponse> 
 <checkUser> 
  <code>3</code> 
 </checkUser>
</postbackResponse>

OK MODIFIED (Response code 4)

Reply with this if the user was granted access but with different credentials than the ones we sent.

To overwrite the user details in our system, the new username or password should be passed in the response. Otherwise, the old ones will be maintained.

Example:

<?xml version="1.0" encoding="UTF-8"?>
<postbackResponse>
  <checkUser>    
   <code>4</code>    
   <username>new-username</username>    
   <password>new-password</password> 
 </checkUser>
</postbackResponse>

STOP PROCESSING PAYMENT (Response code 5)

Reply with this if you don’t want the transaction to be processed, for example, if the user already has an active subscription. In such cases, it is your responsibility to notify our platform of the user’s existing subscription, at which point the payment process will be immediately terminated.

Example:

<?xml version="1.0" encoding="UTF-8"?>
<postbackResponse>
  <checkUser>    
   <code>5</code>    
 </checkUser>
</postbackResponse>