Introduction and list of postbacks

It's essential that your postback endpoint script is continuously available and handling exceptions properly as it is the way your system is kept up-to-date with user, subscription and payment transactions details.

🚧

Vendo will only send postbacks from a limited list of IP addresses

You can secure your postback endpoint from unauthorized access by whitelisting our IP address.

👍

Tip

Your Vendo Client Services representative can assist you with preparing and testing your postback endpoint.

❗️

Important note for Vendo Payment Gateway API users.

If you are using Vendo's Payment Gateway API then you do not need to process postbacks. Do not configure any postback URL.

📘

NATS v4 and NATS v5

You must use the VSERVICES biller with NATS. It implements all available Vendo postbacks.

How postbacks are structured

Before you begin

  • Postbacks are HTTP POST requests to your postback endpoint.
  • The request parameters are sent as application/x-www-form-urlencoded key-value pairs in the body of the request.
  • Responses must be sent back in XML format.

The following parameters are common for all postback types:

ParameterData typeDescription
callbackstringThe name of the postback type, f.ex. "checkUser" or "transaction"
is_testbooleanWhether or not this request is related to a test transaction or subscription.
0 for no (real transaction)
1 for yes (test transaction)

Responses

Your server must respond to the postback request with an HTTP/1.1 compliant response with the status 200 OK.

The body of the response must be valid UTF-8 encoded XML with a root element and a child element inside, named after the type of the postback, f.ex.:

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

The response codes have the following general meaning:

Response codeMeaningExplanation
1OKThe postback was correctly received and processed.
2ERROR

An error occurred while trying to receive and process the postback request.

Please provide a meaningful error message in the element <errorMessage> right after the <code> element.

Others?Depends on the postback type, see the corresponding documentation.