import Ivy from '@getivy/node-sdk';const client = new Ivy({ apiKey: process.env['IVY_API_KEY'], // This is the default and can be omitted});const customer = await client.customers.delete({ id: 'id' });console.log(customer.success);
Copy
Ask AI
{ "success": true}
Customer
Delete a Customer
Delete a Customer by wiping personal data and marking the customer as deleted.
POST
/
api
/
service
/
customer
/
delete
JavaScript
Copy
Ask AI
import Ivy from '@getivy/node-sdk';const client = new Ivy({ apiKey: process.env['IVY_API_KEY'], // This is the default and can be omitted});const customer = await client.customers.delete({ id: 'id' });console.log(customer.success);