Versions Compared

Key

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

A refund or void can be submitted via the API using the /txns endpoint. You can look up additional information about the /txns endpoint in theAPI Reference.

Table of Contents

...

Submitting a

...

Refund or

...

Void a

...

Payment via the API

The process of submitting a card payment (sale) refund, an eCheck refund, or voiding an approved transaction is virtually the same. The only difference between these three options is the type value included in the request.

...

Code Block
{
	"fortxn": "t1_txn_5f1841b4b1200ea4d1af843",
	"type": "4"
}

...

How to cancel an approved payment via the API

As covered elsewhere, the fundamental difference between voiding and canceling a payment is that canceling a transaction simply removes the approved payment from the Merchant’s daily batch, but does not actually reverse the authorization (as voiding does).

...