Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The voidTokenAuth request will void a transaction created by createToken and which had been authorizedsuccessful pre-authorised.


To check if a transaction is on authorised status use verifyToken(V6) and check for result 001.


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

 

Response

The method will respond with the result of your request


Variables to send:

ParameterData typeDescription
 Request
Classification 
Request
 Text
Text
 chargeTokenAuth
voidTokenAuthMandatory
CompanyTokenTokenToken you got from
3G
DPO Pay to operate this APIMandatory
TransactionTokenTokenTransaction token as accepted from the createToken.Mandatory
voidDetailsTextReason for the voidMandatory


Request example:


Code Block
languagexml
titlerequest example

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

...


Response:

The server will respond for the chargeTokenAuth request the voidTokenAuth 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:


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

...