cancelToken
Description
The cancelToken request will be used to cancel active transactions.
URL:Â https://secure.3gdirectpay.com/API/v6/
Response
The method will return the operation result.
Variables to send:
Parameter | Data type | Description | |
 Request |  Text |  cancelToken | Mandatory |
CompanyToken | Token | Token you got from 3G to operate this API | Mandatory |
TransactionToken | Token | Transaction token as accepted from the createToken. | Mandatory |
Request example:
<?xml version="1.0" encoding="utf-8"?> <API3G> <CompanyToken>68B90B5E-25F6-4146-8AB1-C7A3A0C41A7F</CompanyToken> <Request>cancelToken</Request> <TransactionToken>EC9E975A-A7A2-4031-8972-BF123CDD9EDD</TransactionToken> </API3G>
Respond:
The server will respond for the cancelToken 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 codes:
Code | Explanation |
000 | Token been updated to status cancelled |
999 | Custom error message |
804 | Error in XML |
950 | Request missing transaction level mandatory fields |
Respond example:
<?xml version="1.0" encoding="utf-8"?> <API3G> <Result>000</Result> <ResultExplanation>Token been updated to status cancelled</ResultExplanation> </API3G>