Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

Description

The voidTokenAuth request will void a transaction created by createToken and which had been authorized

URL: https://secure.3gdirectpay.com/API/v6/

 

Response

The method will respond with the result of your request


Variables to send:

Parameter

Data type

Description


 Request

 Text

 voidTokenAuth

Mandatory

CompanyToken

Token

Token you got from 3G to operate this API

Mandatory

TransactionToken

Token

Transaction token as accepted from the createToken.

Mandatory

ParameterData typeDescription

Request



CompanyToken



TransactionToken



voidDetails





Request example:



request example
<API3G>
<Request>voidTokenAuth</Request>
<CompanyToken>57466282-EBD7-4ED5-B699-8659330A6996</CompanyToken>
<TransactionToken>72983CAC-5DB1-4C7F-BD88-352066B71592</TransactionToken>
<voidDetails>Booking Cancelled</voidDetails>
</API3G>


Respond:

The server will respond for the chargeTokenAuth request according to the following results:

Parameter

Data type

Description

Result

3 digits code

A code will be sent with the result of the request

ResultExplanation

Text

Free text of the result


Respond example:


response example
<?xml version="1.0" encoding="utf-8"?>
<API3G>
	<Result>000</Result>
	<ResultExplanation>Transaction has been voided</ResultExplanation>
</API3G>



  • No labels