@bates-solutions/stripe API Reference - v2.2.1
    Preparing search index...

    Class CustomersService

    Customers service wrapping Stripe Customers.

    const customer = await stripe.customers.create({
    email: 'john@example.com',
    name: 'John Doe',
    });
    Index
    • Delete a customer.

      Parameters

      • customerId: string

        Customer ID to delete

      Returns Promise<void>

      await stripe.customers.delete('cus_123');
      
    • Retrieve a customer by ID.

      Parameters

      • customerId: string

        Customer ID

      Returns Promise<Customer>

      The customer

      When the customer has been deleted

      When the customer is not found

      const customer = await stripe.customers.get('cus_123');