Passer au contenu principal
DELETE
/
customers
/
{id}
NodeJs
const { FedaPay, Customer } = require('fedapay');
/* Replace YOUR_SECRETE_API_KEY with your real API key */
FedaPay.setApiKey("YOUR_SECRETE_API_KEY");
/* Specify whether you want to run your query in test or live mode */
FedaPay.setEnvironment('sandbox'); //or setEnvironment('live');
/* Delete customer */
const customer = await Customer.delete(ID, params = {}, headers = {});

Autorisations

Authorization
string
header
requis

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Paramètres de chemin

id
integer
requis

Customer ID.

Réponse

Customer deleted successfully.