Skip to main content
POST
/
v1
/
payment
/
reverse
JavaScript
import Benny from '@bennyapi/sdk';

const client = new Benny({
  subdomain: 'My-Subdomain',
  apiKey: process.env['BENNY_API_KEY'], // This is the default and can be omitted
});

const response = await client.payment.reverse();

console.log(response.retrievalReferenceNumber);
{
  "retrievalReferenceNumber": "<string>"
}

Authorizations

api-key
string
header
required

API key authentication for public endpoints

Body

application/json
paymentIntentId
string

The payment intent ID.

refundIntentId
string

The refund intent ID.

Response

Payment reversed successfully.

retrievalReferenceNumber
string
required

The underlying retrieval reference number representing the transaction for auditing purpsoes