Description
The refundToken request will create refund for the transaction currency.
URL: https://secure.3gdirectpay.com/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 | Text | DPO Ref generated on createToken response | Mandatory (Used in place of TransactionToken) |
refundAmount | Numeric | Requested refund amount. | Mandatory |
refundDetails | Text | Requested refund description. | Mandatory |
refundRef | Text | Refund reference. | Optional |
refundApproval | 1\0 | In case it being sent, refund will be checked by a checker. | Optional |
...
Code Block | ||||
---|---|---|---|---|
| ||||
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:
...