Skip to main content
GET
/
api
/
v1
/
customers
/
{id}
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.retrieve('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"
  }
}

Authorizations

X-API-KEY
string
header
required

Server API Key

Headers

X-API-KEY
string
required

Server API Key

Path Parameters

id
string
required

The unique identifier of the entity

Required string length: 1 - 255

Response

OK

Response object

data
Customer · object
required

A customer can be either an organization or an individual