Create, update, delete, and query the available Customers in Stripe.
Table Specific Information
Server-Side Query Support
The connector will use the Stripe API to filter the results by the following columns and operators while the rest of the filter is executed client side within the connector.
- Id, Created, Email support the following operators:<,>>=, <, <=, =.
The provider supports all columns to be used as criteria in the Where clause of Select statement, as long as SupportEnhancedSQL is set to True. If SupportEnhancedSQL property is set to False, you still can retreive:
-a Customer by specifying its Id:
SELECT * FROM Customers WHERE Id = 'cus_AA9uRhvt0xicaf'
-Customers created after a specific date (Created may be used with the >, >=, <, <=, or = conditions and may be used twice to specify a range):
SELECT * FROM Customers WHERE Created > '2016-01-03'
To create a new customer, at least Email or Description is required:
INSERT INTO Customers (Email, Description) VALUES ('firstname.lastname@example.org', 'New account')
To apply a discount to a new customer, set the DiscountId field to the CouponId, which will be discounted:
INSERT INTO Customers (Email, Description, DiscountId) VALUES ('email@example.com', 'New account', 'cup_123456')
To modify a Customer, specify the Customer Id and run an Update statement.
UPDATE Customers SET Description='An updated account' WHERE Id='cus_85PEPye2wfN4u4'
To apply a discount to an existing customer, set the DiscountId field to the CouponId, which will be discounted:
UPDATE Customers SET DiscountId='cup_123456' WHERE Id='cus_85PEPye2wfN4u4'
To Delete a Customer, specify the Customer Id and run an Delete statement.
DELETE FROM CUSTOMERS WHERE Id='cus_8AcjiGnVMz2sMr'
The Id of the customer.
The current balance of the customer.
The customer's address.
The time of creation.
The currency the customer can be charged in for recurring billing purposes.
The Id of the default source attached to this customer.
Whether or not the latest charge for the latest invoice of the customer has failed.
The id of the discount.
The customer description.
The email of the customer.
If the customer is in live mode.
The set of key/value pairs that you can attach to a customer object.
The customer's full name or business name.
The customer's phone number.
The shipping information associated with the customer.
The payment sources of the customer, if any.
The current subscriptions of the customer, if any.
Pseudo column fields are used in the WHERE clause of SELECT statements and offer a more granular control over the tuples that are returned from the data source.
The Id of the connected account to get customers for.