Update a Customer
Name
update_customer
Description
Updates the specified customer by setting the values of the parameters passed. [API reference]
Related Tables
Parameters
Output Columns
Label | Data Type (SSIS) | Data Type (SQL) | Length | Raw | Description |
---|---|---|---|---|---|
Id |
DT_WSTR
|
nvarchar(100)
|
100 | False |
|
Object |
DT_WSTR
|
nvarchar(100)
|
100 | False |
|
Name |
DT_WSTR
|
nvarchar(255)
|
255 | False |
|
DT_WSTR
|
nvarchar(100)
|
100 | False |
||
Description |
DT_WSTR
|
nvarchar(4000)
|
4000 | False |
|
Phone |
DT_WSTR
|
nvarchar(100)
|
100 | False |
|
PaymentMethod |
DT_WSTR
|
nvarchar(100)
|
100 | False |
|
DefaultSource |
DT_WSTR
|
nvarchar(100)
|
100 | False |
|
DefaultCurrency |
DT_WSTR
|
nvarchar(100)
|
100 | False |
|
Balance |
DT_WSTR
|
nvarchar(100)
|
100 | False |
|
Coupon |
DT_WSTR
|
nvarchar(100)
|
100 | False |
|
PreferredLocales |
DT_WSTR
|
nvarchar(100)
|
100 | True |
|
PromotionCode |
DT_WSTR
|
nvarchar(100)
|
100 | False |
|
AddressLine1 |
DT_WSTR
|
nvarchar(100)
|
100 | False |
|
AddressLine2 |
DT_WSTR
|
nvarchar(100)
|
100 | False |
|
AddressCity |
DT_WSTR
|
nvarchar(100)
|
100 | False |
|
AddressState |
DT_WSTR
|
nvarchar(100)
|
100 | False |
|
AddressCountry |
DT_WSTR
|
nvarchar(100)
|
100 | False |
|
AddressPostalCode |
DT_WSTR
|
nvarchar(100)
|
100 | False |
|
ShippingName |
DT_WSTR
|
nvarchar(255)
|
255 | False |
|
ShippingPhone |
DT_WSTR
|
nvarchar(100)
|
100 | False |
|
ShippingAddressLine1 |
DT_WSTR
|
nvarchar(100)
|
100 | False |
|
ShippingAddressLine2 |
DT_WSTR
|
nvarchar(100)
|
100 | False |
|
ShippingAddressCity |
DT_WSTR
|
nvarchar(100)
|
100 | False |
|
ShippingAddressCountry |
DT_WSTR
|
nvarchar(100)
|
100 | False |
|
ShippingAddressState |
DT_WSTR
|
nvarchar(100)
|
100 | False |
|
ShippingAddressPostalCode |
DT_WSTR
|
nvarchar(100)
|
100 | False |
|
TaxIDType |
DT_WSTR
|
nvarchar(100)
|
100 | False |
|
TaxIDValue |
DT_WSTR
|
nvarchar(100)
|
100 | False |
|
InvoicePrefix |
DT_WSTR
|
nvarchar(100)
|
100 | False |
|
InvoiceSettingsDefaultPaymentMethod |
DT_WSTR
|
nvarchar(100)
|
100 | False |
|
InvoiceSettingsFooter |
DT_WSTR
|
nvarchar(100)
|
100 | False |
|
NextInvoiceSequence |
DT_WSTR
|
nvarchar(100)
|
100 | False |
|
TaxExempt |
DT_WSTR
|
nvarchar(100)
|
100 | False |
|
Created |
DT_DBTIMESTAMP
|
datetime
|
False |
||
LiveMode |
DT_WSTR
|
nvarchar(100)
|
100 | False |
|
Metadata |
DT_WSTR
|
nvarchar(1000)
|
1000 | False |
Input Columns
Label | Data Type (SSIS) | Data Type (SQL) | Length | Raw | Description |
---|---|---|---|---|---|
Id |
DT_WSTR
|
nvarchar(4000)
|
4000 | False |
|
Name |
DT_WSTR
|
nvarchar(255)
|
255 | False |
|
DT_WSTR
|
nvarchar(100)
|
100 | False |
||
Description |
DT_WSTR
|
nvarchar(4000)
|
4000 | False |
|
Phone |
DT_WSTR
|
nvarchar(100)
|
100 | False |
|
PaymentMethod |
DT_WSTR
|
nvarchar(100)
|
100 | False |
|
Balance |
DT_WSTR
|
nvarchar(100)
|
100 | False |
|
Coupon |
DT_WSTR
|
nvarchar(100)
|
100 | False |
|
tax_id_data_type |
DT_WSTR
|
nvarchar(4000)
|
4000 | False |
|
tax_id_data_value |
DT_WSTR
|
nvarchar(4000)
|
4000 | False |
|
PreferredLocales |
DT_WSTR
|
nvarchar(100)
|
100 | True |
|
PromotionCode |
DT_WSTR
|
nvarchar(100)
|
100 | False |
|
AddressLine1 |
DT_WSTR
|
nvarchar(100)
|
100 | False |
|
AddressLine2 |
DT_WSTR
|
nvarchar(100)
|
100 | False |
|
AddressCity |
DT_WSTR
|
nvarchar(100)
|
100 | False |
|
AddressState |
DT_WSTR
|
nvarchar(100)
|
100 | False |
|
AddressCountry |
DT_WSTR
|
nvarchar(100)
|
100 | False |
|
AddressPostalCode |
DT_WSTR
|
nvarchar(100)
|
100 | False |
|
ShippingName |
DT_WSTR
|
nvarchar(255)
|
255 | False |
|
ShippingPhone |
DT_WSTR
|
nvarchar(100)
|
100 | False |
|
ShippingAddressLine1 |
DT_WSTR
|
nvarchar(100)
|
100 | False |
|
ShippingAddressLine2 |
DT_WSTR
|
nvarchar(100)
|
100 | False |
|
ShippingAddressCity |
DT_WSTR
|
nvarchar(100)
|
100 | False |
|
ShippingAddressCountry |
DT_WSTR
|
nvarchar(100)
|
100 | False |
|
ShippingAddressState |
DT_WSTR
|
nvarchar(100)
|
100 | False |
|
ShippingAddressPostalCode |
DT_WSTR
|
nvarchar(100)
|
100 | False |
|
TaxIDType |
DT_WSTR
|
nvarchar(100)
|
100 | False |
|
TaxIDValue |
DT_WSTR
|
nvarchar(100)
|
100 | False |
|
InvoicePrefix |
DT_WSTR
|
nvarchar(100)
|
100 | False |
|
InvoiceSettingsDefaultPaymentMethod |
DT_WSTR
|
nvarchar(100)
|
100 | False |
|
InvoiceSettingsFooter |
DT_WSTR
|
nvarchar(100)
|
100 | False |
|
NextInvoiceSequence |
DT_WSTR
|
nvarchar(100)
|
100 | False |
|
TaxExempt |
DT_WSTR
|
nvarchar(100)
|
100 | False |
Examples
SSIS
Use Stripe Connector in API Source component to read data or in API Destination component to read/write data:
Update rows in Customers table using API Destination
This Endpoint belongs to Customers table, therefore you cannot work with it directly. Use this table and table-operation pair instead:

ODBC application
Use these SQL queries in your ODBC application data source:
Update a customer
SELECT * FROM update_customer
WITH
(
"Id" = 'abcd-1234-id'
)
Update a Customer
Update a customer
UPDATE Customers
SET Name='Cust1-Updated'
, Email='a-updated@b.com'
, Phone='+1 800-123-2345'
, Description='Desc-updated'
, AddressLine1='Line-1-upd'
, AddressLine2='Line-2-upd'
, AddressCity='SomeCity'
, AddressState='NY'
, AddressCountry='USA'
, AddressPostalCode='112233'
, ShippingPhone='+1 800-123-2345'
, ShippingName='SHName-upd'
, ShippingAddressLine1='Line-1-upd'
, ShippingAddressLine2='Line-2-upd'
, ShippingAddressCity='SomeCity'
, ShippingAddressState='NY'
, ShippingAddressCountry='USA'
, ShippingAddressPostalCode='112233'
, Balance=100
WHERE Id='cus_IcUG2lD69ZHuol'
update_customer
endpoint belongs to
Customers
table(s), and can therefore be used via those table(s).
SQL Server
Use these SQL queries in SQL Server after you create a data source in Data Gateway:
Update a customer
DECLARE @MyQuery NVARCHAR(MAX) = 'SELECT * FROM update_customer
WITH
(
"Id" = ''abcd-1234-id''
)';
EXEC (@MyQuery) AT [LS_TO_STRIPE_IN_GATEWAY];
Update a Customer
Update a customer
DECLARE @MyQuery NVARCHAR(MAX) = 'UPDATE Customers
SET Name=''Cust1-Updated''
, Email=''a-updated@b.com''
, Phone=''+1 800-123-2345''
, Description=''Desc-updated''
, AddressLine1=''Line-1-upd''
, AddressLine2=''Line-2-upd''
, AddressCity=''SomeCity''
, AddressState=''NY''
, AddressCountry=''USA''
, AddressPostalCode=''112233''
, ShippingPhone=''+1 800-123-2345''
, ShippingName=''SHName-upd''
, ShippingAddressLine1=''Line-1-upd''
, ShippingAddressLine2=''Line-2-upd''
, ShippingAddressCity=''SomeCity''
, ShippingAddressState=''NY''
, ShippingAddressCountry=''USA''
, ShippingAddressPostalCode=''112233''
, Balance=100
WHERE Id=''cus_IcUG2lD69ZHuol''';
EXEC (@MyQuery) AT [LS_TO_STRIPE_IN_GATEWAY];
update_customer
endpoint belongs to
Customers
table(s), and can therefore be used via those table(s).