If you need to use a field other than "id" to update/create user information within Receptive, there are two more parameters that may be added to the snippet:
Description: Specifies which user field should be used to find/create a user within Receptive. Valid values are "email" and "id". Defaults to "id"
Example: "email" or "id"
Note: If using "email", the user ID must be unique within the account. For example, you could have a user with #111 in an account named "Test One", AND have a user with #111 in "Test Two". But you couldn't have two users with the same #111 in "Test One".
Description: Specifies which account field should be used to find/create an account within Receptive. Valid values are "name" and "id". Defaults to "id"
Example: "name" or "id"
With this in place, users/accounts are looked up in Receptive by the field specified. Please note, that if anything other than "id" is used:
- The ID specified in the snippet will overwrite the current ID within Receptive
- If two or more records exist with the same field data, the operation will fail with a 400 code