cancel
Showing results for 
Search instead for 
Did you mean: 

CIM - Refund Transaction

Hello,

 

At present we are using the Authorize.net using CIM method for our payments and we need to work on it to the following:

 

1. Refund the Full Amount of the transaction

2. Refund the Partial amount which is specified by us.

 

Could you please help us to implement the above Refund implementation...or Is it possible to do the Refund Transaction using CIM.?

Edward3
Member
5 REPLIES 5

Hello @Edward3

 

For a full or partial refund, use the payment type of refundTransaction. See the full details in the API Reference at  http://developer.authorize.net/api/reference/#payment-transactions-void-a-transaction

 

If the transaction has not yet settled, you'll need to use voidTransaction

 

Richard

RichardH
Administrator Administrator
Administrator

Hello @RichardH,

 

Here I mentioned the code which u have sent. In this, what is "refId" and "refTransId" and How to retrieve that too.

 

<createTransactionRequest xmlns="AnetApi/xml/v1/schema/AnetApiSchema.xsd">
<merchantAuthentication>
<name>API_LOGIN_ID</name>
<transactionKey>API_TRANSACTION_KEY</transactionKey>
</merchantAuthentication>
<refId>123456</refId>
<transactionRequest>
<transactionType>voidTransaction</transactionType>
<refTransId>22434566</refTransId>
</transactionRequest>
</createTransactionRequest>

On http://developer.authorize.net/api/reference/#payment-transactions-void-a-transaction

refIdMerchant-assigned reference ID for the request.
If included in the request, this value will be included in the response. This feature might be especially useful for multi-threaded applications.

This element is not used for mobile device requests. Use mobileDeviceId instead.
Up to 20 characters.

 

refTransIdRequired.
Transaction ID of an unsettled transaction.

String.

 

What do you mean how to retrieve that?

Hello,

 

Yes. How to get the value of refId and refTransId. 

If you read my post

refId is merchant defined. so you should have it

refTransId is from the transaction that you created.