Versions Compared

Key

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

Description

The refundToken request will create refund for the transaction currency.

URL: https://secure1secure.sandbox3gdirectpay.directpay.onlinecom/API/v6/


Usage

Use this method in order to create refund for paid transaction.

...

Parameter

Data type

Description


 Request

 Text

 refundToken

Mandatory

CompanyToken

Token

Token you got from 3G to operate this API

Mandatory

TransactionToken

Token

Transaction token as accepted from the createToken.

Mandatory (Used in place of TransRef)

TransRef
TextDPO Ref generated on createToken responseMandatory (Used in place of TransactionToken)

refundAmount

Numeric

Requested refund amount.

Mandatory

refundDetails

 Text

Requested refund description.

Mandatory

refundRef
 TextRefund reference.Optional
refundApproval
 1\0In case it being sent, refund will be checked by a checker.Optional

...

Code Block
languagexml
titlerequest example
Using Token
<?xml version="1.0" encoding="utf-8"?>
<API3G>
  <Request>refundToken</Request>
  <CompanyToken>68B90B5E-25F6-4146-8AB1-CV4GA0C41A7F</CompanyToken>
  <TransactionToken>246757AE-4D4F-7763-BFF5-326704703102</TransactionToken>
  <refundAmount>1.2</refundAmount>
  <refundDetails>Refund discription< description</refundDetails>
</API3G>

Using DPO REF
<?xml version="1.0" encoding="utf-8"?>
<API3G>
<Request>refundToken</Request>
<CompanyToken>68B90B5E-25F6-4146-8AB1-CV4GA0C41A7F</CompanyToken>
<TransRef>R4852596P6</TransRef>
<refundAmount>1.2</refundAmount>
<refundDetails>Refund description</refundDetails>
</API3G>


Respond:

...