Skip to main content

Delete a customer

Deletes a customer resource.

Deleted customers can still be retrieved through the retrieve customer endpoint to track their history.


Endpoint

DELETE /customers/:id

Sample code

const client = require('payrex-node')('insert your PayRex Secret API key.');

const customer = await client.customers.delete('<ID of a customer resource>');

Returns

Returns a deleted resource.