Simla icon

Simla

Consume Simla API

Actions10

Customer → Edit

AI-generated

Summary

Edit customer information in the Simla system.

Inputs

  • customerData (required) — Specify the data to update for the customer, including fields such as first name, last name, email, phones, tags, and custom fields.
  • id (required) — Provide the unique identifier for the customer that is being edited.
  • site (required) — Specify the site associated with the customer.

Output shape

a single record

Returns the updated customer information. Ensure to provide the correct customer ID and site.

Examples

Example 1: Update a customer's first and last name along with their phone number.

Set 'customerData' with 'firstName', 'lastName', and 'phones' (as a nested collection). Provide the corresponding 'id' and 'site'.

Example 2: Add tags to a customer while removing existing tags.

Set 'customerData' with 'addTags' and 'removeTags'. Include required 'id' and 'site'.

Discussion