Skip to main content
DELETE
/
v1
/
payment
/
intent
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
});

await client.payment.deleteIntent({ paymentIntentId: 'paymentIntentId' });
{
  "code": "BAD_REQUEST",
  "message": "Invalid input parameters"
}

Authorizations

api-key
string
header
required

API key authentication for public endpoints

Query Parameters

paymentIntentId
string
required

The payment intent ID.

Response

Payment intent deleted successfully.