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 Current »

New endpoint to get status of refund on a transactions returning all refunds done on the transactions if multiple of them

Parameter

Data Type

Description

 

Request

Text

verifyRefund

Mandatory

CompanyToken

Text (Token - UUID)

Token you got from 3G to operate this API

Mandatory

TransactionToken

Text (Token - UUID)

Mandatory - Optional

(TransactionToken or TransRef to be be passed)

Mandatory or Optional if TransRef is sent

TransRef

Text

Mandatory - Optional

(TransactionToken or TransRef to be be passed)

Mandatory or Optional if TransactionToken is sent.

http://einate-3g.dev.directpay.online/API/V7/

request for example:

<?xml version="1.0" encoding="utf-8"?>
<API3G>
 <Request>verifyRefund</Request>
  <CompanyToken>4D48CB2C-497A-4F0B-9544-83B664FA0E32</CompanyToken>
  <TransRef>R4964845</TransRef>
  <TransactionToken>DDED6926-AB11-4D9E-8D9F-212ADD255444</TransactionToken>
</API3G>

response:

  1. Sample Successful Response

<?xml version="1.0" encoding="UTF-8"?>
<API3G><Code>000</Code>
    <Explanation>Results Found</Explanation>
    <Refunds>
        <Refund><Code>003</Code>
            <RefundStatus>Automated done</RefundStatus>
            <RefundDate>2022-09-28 14:12:52</RefundDate>
            <RefundAmount>1.0000</RefundAmount>
        </Refund>
    </Refunds>
</API3G>
  1. Sample Successful Response if Multiple refunds on a transaction

<?xml version="1.0" encoding="UTF-8"?>
<API3G><Code>000</Code>
    <Explanation>Results Found</Explanation>
    <Refunds>
        <Refund><Code>003</Code>
            <RefundStatus>Automated done</RefundStatus>
            <RefundDate>2022-08-31 14:36:34</RefundDate>
            <RefundAmount>1.0000</RefundAmount>
        </Refund>
        <Refund><Code>003</Code>
            <RefundStatus>Automated done</RefundStatus>
            <RefundDate>2022-08-31 14:48:44</RefundDate>
            <RefundAmount>1.0000</RefundAmount>
        </Refund>
        <Refund><Code>003</Code>
            <RefundStatus>Automated done</RefundStatus>
            <RefundDate>2022-08-31 14:48:49</RefundDate>
            <RefundAmount>1.0000</RefundAmount>
        </Refund>
    </Refunds>
</API3G>

  1. Sample failed response:

<?xml version="1.0" encoding="UTF-8"?>
<API3G><Code>000</Code>
    <Explanation>No refunds found</Explanation>
    <Refunds></Refunds>
</API3G>

  • No labels