import Stigg from '@stigg/typescript';
const client = new Stigg({
apiKey: process.env['STIGG_API_KEY'], // This is the default and can be omitted
});
const customerResponse = await client.v1.customers.unarchive('x');
console.log(customerResponse.data);
Restores an archived customer, allowing them to create new subscriptions again.
POST
/
api
/
v1
/
customers
/
{id}
/
unarchive
JavaScript
import Stigg from '@stigg/typescript';
const client = new Stigg({
apiKey: process.env['STIGG_API_KEY'], // This is the default and can be omitted
});
const customerResponse = await client.v1.customers.unarchive('x');
console.log(customerResponse.data);