xsales

The xsales postback is used to inform you of the total of successful cross sales related to a main sale.

Request parameters

Parameter

Data type

Description

callback

string

Specifies the action for this request, which in this case is "xsales".

transaction_id

numeric

Vendo internal transaction ID of the original sale.
Example: 12345

subscription_id

numeric

Vendo's subscription identifier of the original sale.
Example: 123456789

site_id

numeric

Vendo's site identifier of the original sale.
Example: 123456789

xsale_1

string

Site name of the first cross sale.

xsale_2

string

Site name of the second cross sale.

is_test

boolean

Whether or not 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 request was received successfully.

Example:

<?xml version="1.0" encoding="UTF-8"?>
<postbackResponse>  
 <xsales>       
  <code>1</code> 
 </xsales>
</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> 
 <xsales>  
  <code>2</code>  
  <errorMessage>Custom error message</errorMessage> 
 </xsales>
</postbackResponse>

🚧

Note for NATS users

NATS v3 doesn't support this postback. If you run NATS v3, you need to create a script to handle it. Contact Vendo support for more information.


Did this page help you?