Skip to main content
PATCH
/
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
});

const response = await client.payment.updateIntent({
  fulfillmentAddress: {
    address1: 'address1',
    city: 'city',
    postalCode: 'postalCode',
    state: 'AL',
  },
  fulfillmentType: 'DELIVERY',
  paymentIntentId: 'paymentIntentId',
});

console.log(response);
{}

Authorizations

api-key
string
header
required

API key authentication for public endpoints

Body

application/json
fulfillmentType
enum<string>
required

The fulfillment type.

Available options:
DELIVERY,
PICKUP
fulfillmentAddress
object
required

The fulfillment address.

paymentIntentId
string
required

The payment intent ID requiring update.

Response

Payment intent updated successfully.

The response is of type object.