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.archive('x');
console.log(customerResponse.data);{
"data": {
"createdAt": "2026-12-09T01:44:41.821Z",
"updatedAt": "2026-12-09T01:44:41.824Z",
"archivedAt": "2026-12-09T01:44:41.826Z",
"name": "John Doe",
"email": "[email protected]",
"id": "customer-6e24b4",
"metadata": {},
"integrations": [],
"defaultPaymentMethod": {
"type": "CARD",
"billingId": "pm_1Q0PsIJvEtkwdCNYMSaVuRz6",
"cardLast4Digits": "1234",
"cardExpiryMonth": 12,
"cardExpiryYear": 2025
},
"couponId": "coupon-6e24b4"
}
}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.archive('x');
console.log(customerResponse.data);{
"data": {
"createdAt": "2026-12-09T01:44:41.821Z",
"updatedAt": "2026-12-09T01:44:41.824Z",
"archivedAt": "2026-12-09T01:44:41.826Z",
"name": "John Doe",
"email": "[email protected]",
"id": "customer-6e24b4",
"metadata": {},
"integrations": [],
"defaultPaymentMethod": {
"type": "CARD",
"billingId": "pm_1Q0PsIJvEtkwdCNYMSaVuRz6",
"cardLast4Digits": "1234",
"cardExpiryMonth": 12,
"cardExpiryYear": 2025
},
"couponId": "coupon-6e24b4"
}
}Server API Key
Server API Key
The unique identifier of the entity
1 - 255OK
Response object
A customer can be either an organization or an individual
Show child attributes