본문으로 건너뛰기

Customers

This object represents a customer of your business. Use it to create recurring charges, save payment and contact information, and track payments that belong to the same customer.

Customer Object

Field NameDescriptionRequiredformatExampleupdateunique
uidsystem customer idYesuuidv4xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxNoYes
uuidYour Unique identifier of the customerNouuidv4xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxYesYes (if provided)
nameName of the customerNo-John DoeYesNo
emailEmail of the customerNoemailuser+1@example.comYesNo
phonePhone of the customerNoE.164+14155552671YesNo
descriptionDescription of the customerNo-A shofrt description of the customerYesNo
tagsList of tags associated with the customerNotext[]["premium", "vip", "new-customer"]YesNo
metadataK:V Metadata of the customerNojson{"my_custom_field_1" : "value", ... }YesNo

uid

uid is the system generated uuidv4 unique identifier of the customer. this cannot be modified or provided by the user.

uuid

uuid is a uuidv4 format unique identifier of the customer. this can be provided by the user. this is useful when the customer is created in another system and you want to keep the sync between the two systems.

Use this to ensure "uniqueness" of the customer within the CRM and related features.

For example,

  • customer from your database
  • customer from salesforce

phone

phone is a phone number of the customer in E.164 format. If you don't know how to format the phone number properly, you can use the Grida E.164 tool to format the phone number.

tags

A list of tags associated with the customer. Tags are managed per project, can have descriptions, and are useful for categorization, segmentation, and quick filtering.

Tags are created automatically if they don't already exist when provided during customer creation or update operations.

Example:

{
"tags": ["premium", "vip", "new-customer"]
}
  • Tags are project-scoped and uniquely identified by their name.
  • Renaming a tag automatically updates all customer-tag associations.
  • Deleting a tag removes all customer-tag associations. (does not delete the customer)

CSV Note: When providing the tags within the CSV file, you should provide comma separated text (for example, "tag1,tag2,tag3"). The list of tags must be wrapped in quotation marks.

Learn more about tags.

metadata

Set of key-value pairs that you can attach to a customer. This can be useful for storing additional information about the object in a structured format.

CSV Note: When providing the meatadata.* within the CSV file, you should provide the flat JSON object.

For example, you want to upload

{
"my_custom_field_1": "value 1",
"my_custom_field_2": "value 2"
}

You should provide the following value in the CSV file.

metadata.my_custom_field_1,metadata.my_custom_field_2
value 1,value 2

IMPORTANT: We do not support partial update of metadata. in all operations, you must provide the full metadata with the previous values included.


Working with CSV

You can use the CSV file to bulk insert or update data into the Grida customer object.

We don't support upsert with csv file. you'll need to use api for upsertion.

Description of the customer CSV file

Field NameDescriptionRequiredformatExample
uuidYour Unique identifier of the customerNouuidv4xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
nameName of the customerNo-John Doe
emailEmail of the customerNoemailuser+1@example.com
phonePhone of the customerNoE.164+14155552671
descriptionDescription of the customerNo-A shofrt description of the customer
tagsA comma-separated list of tags used to tag the customerNo-"tag1,tag2,tag3"
metadata.*Metadata of the customerNo-value

Inserting

When inserting data, you should not provide any other field than the ones mentioned below.

Field NameDescriptionRequiredformatExample
uuidYour Unique identifier of the customerNouuidv4xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
nameName of the customerNo-John Doe
emailEmail of the customerNoemailuser+1@example.com
phonePhone of the customerNoE.164+14155552671
descriptionDescription of the customerNo-A shofrt description of the customer
tagsA comma-separated list of tags used to tag the customerNo-"tag1,tag2,tag3"
metadata.*Metadata of the customerNo-value

While the uuid is optional, if you wish to update the customer later, you must provide it.

Updating (Unstable)

To upsert data, you need to provide the uid or uuid field in the CSV file.

Field NameDescriptionRequiredformatExample
uid / uuidUnique identifierYesuuidv4xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
nameName of the customerNo-John Doe
emailEmail of the customerNoemailuser+1@example.com
phonePhone of the customerNoE.164+14155552671
descriptionDescription of the customerNo-A shofrt description of the customer
metadata.*Metadata of the customerNo-value

When updating, the non-provided fields will not be updated.

Important: For metadata, once provided, it will be replaced with the new metadata.

Important: Tags cannot be updated using the CSV file. - Contact support for more information.