Transaction Variables (Refund)

Created by Paul Deveza, Modified on Tue, 16 Jun at 1:52 AM by Paul Deveza

POST

POST URL:https://api.openpath.io/v1/nmi

The Openpath NMI Emulation API can receive Transactions posted in any of the following formats listed below:

Query String
(Not Recommended)
A query string is a part of a uniform resource locator (URL) that assigns values to specified parameters. A query string commonly includes fields added to a base URL by a Web browser or other client application, for example as part of an HTML, choosing the appearance of a page, or jumping to positions in multimedia content.
Form DataThe FormData interface provides a way to easily construct a set of key/value pairs representing form fields and their values, which can then be easily sent using the XMLHttpRequest.send() method. It uses the same format a form would use if the encoding type were set to "multipart/form-data".
X-WWW Form URL Encoded (Recommended)

"application/x-www-form-urlencoded" is the default encoding (in HTTP terms Content-Type) a web form uses to transfer data, not multipart/form-data. To send an HTTP post request on form submission with a Content Type of multipart/form-data, one must explicitly specify this as the enctype value.

 

Refund (refund)

Transaction refunds will reverse a previously settled or pending settlement transaction. If the transaction has not been settled, a transaction void can also reverse it.

 

Variable NameDescription
type*Type of transaction.
Values: 'refund'
username*Site Username assigned to a merchant Site account as API Login ID.
password*Site Password assigned to a merchant Site account as Transaction Key.
transactionid*Original payment gateway transaction id
amountTotal amount to be refunded. This amount may be equal to or less than the settled amount. Setting the amount to 0.00 will refund the entire amount.
Format: x.xx
payment**The type of payment.
Default: 'creditcard'
Values: 'creditcard' or 'check'
*Always required
**Required for ACH transactions

 

Response

See: Transaction Response Variables

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article