StateSet One
- Core Concepts
- API Reference
- Customer Management
- Order Management
- Returns Management
- Warranty Management
- Wholesale Management
- Inventory Management
- Purchase Orders
- Manufacturing
- Warehouse Operations
- CRM
- Supplier Management
- System
Update Customer
This endpoint updates an existing customer.
curl --location --request PUT 'https://api.stateset.com/v1/customers/:id' \
--header 'Content-Type: application/json' \
--header 'Authorization: Token <token>' \
--data-raw '{
"id": "string",
"email": "string",
"firstName": "string",
"lastName": "string",
"phone": "string",
"stripe_customer_id": "string",
"timestamp": "string",
"activationDate": "string"
}'
{
"id": "string",
"email": "string",
"firstName": "string",
"lastName": "string",
"phone": "string",
"stripe_customer_id": "string",
"timestamp": "string",
"activationDate": "string"
}
Body
This is the sso_id of the customer
This is the customer object.
Response
Indicates whether the call was successful. 1 if successful, 0 if not.
The contents of the user group
Show Toggle object
Show Toggle object
Indicates whether a new user group was created.
This is the user group token (userGroupToken or USER_GROUP_TOKEN) that will be used to identify which user group is viewing the dashboard. You should save this on your end to use when rendering an embedded dashboard.
This is the name of the user group provided in the request body.
This is the user_group_id provided in the request body.
This is the properties object if it was provided in the request body
This is the environment tag of the user group. Possible values are ‘Customer’ and ‘Testing’
curl --location --request PUT 'https://api.stateset.com/v1/customers/:id' \
--header 'Content-Type: application/json' \
--header 'Authorization: Token <token>' \
--data-raw '{
"id": "string",
"email": "string",
"firstName": "string",
"lastName": "string",
"phone": "string",
"stripe_customer_id": "string",
"timestamp": "string",
"activationDate": "string"
}'
{
"id": "string",
"email": "string",
"firstName": "string",
"lastName": "string",
"phone": "string",
"stripe_customer_id": "string",
"timestamp": "string",
"activationDate": "string"
}
curl --location --request PUT 'https://api.stateset.com/v1/customers/:id' \
--header 'Content-Type: application/json' \
--header 'Authorization: Token <token>' \
--data-raw '{
"id": "string",
"email": "string",
"firstName": "string",
"lastName": "string",
"phone": "string",
"stripe_customer_id": "string",
"timestamp": "string",
"activationDate": "string"
}'
{
"id": "string",
"email": "string",
"firstName": "string",
"lastName": "string",
"phone": "string",
"stripe_customer_id": "string",
"timestamp": "string",
"activationDate": "string"
}