You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/pages/messaging/agent-chat-api/changelog/index.mdx
+4-5Lines changed: 4 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -37,13 +37,8 @@ The developer preview version provides a preview of the upcoming changes to the
37
37
38
38
### Customers
39
39
40
-
- The [**Customer**](/messaging/agent-chat-api/v3.7/data-structures#customer) data structure has new fields:
41
-
-`carts`, an array of [**Cart**](/messaging/agent-chat-api/v3.7/data-structures#cart) objects,
42
-
-`customer_properties`, a map of [**Customer Property**](/messaging/agent-chat-api/v3.7/data-structures#customer-property) objects.
43
40
- The [**customer_updated**](/messaging/agent-chat-api/v3.7/rtm-pushes/#customer_updated) push now includes cart data.
44
41
- The **Update Customer** ([Web](/messaging/agent-chat-api/v3.7/#update-customer) & [RTM](/messaging/agent-chat-api/v3.7/rtm-reference/#update-customer)) method now allows to clear the values of `name`, `email`, `phone_number` and `address` components by providing an empty string as the new field value.
- The [**Customer**](/messaging/agent-chat-api/data-structures#customer) data structure now contains information about phone number and omnichannel data (when available).
83
81
- The **Update Customer** ([Web](/messaging/agent-chat-api/#update-customer) & [RTM](/messaging/agent-chat-api/rtm-reference/#update-customer)) method has new fields, `phone_number` and `omnichannel`.
84
82
- The `omnichannel` field now supports WhatsApp data: `id`, `name`, and `phone_number`.
85
83
- The [**Customer**](/messaging/agent-chat-api/data-structures#customer) data structure now contains the customer's `address` information.
86
84
- The [**Customer**](/messaging/agent-chat-api/data-structures#customer) data structure has a new `carts` field containing an array of [**Cart**](/messaging/agent-chat-api/data-structures#cart) objects.
85
+
- The [**Customer**](/messaging/agent-chat-api/data-structures#customer) data structure has a new `customer_properties` field containing a map of [**Customer Property**](/messaging/agent-chat-api/data-structures#customer-property) objects.
87
86
- The [**customer_updated**](/messaging/agent-chat-api/rtm-pushes/#customer_updated) push now includes cart data.
Copy file name to clipboardExpand all lines: src/pages/messaging/agent-chat-api/data-structures/index.mdx
+16-1Lines changed: 16 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -436,9 +436,10 @@ It is not possible to send a System event in API version 3.6.
436
436
|`visit`| optional ||
437
437
|`present`| optional ||
438
438
|`statistics`| optional ||
439
-
|`carts`| optional | An array of customer's shopping carts. See [Cart](#cart) for the object structure. |
439
+
|`carts`| optional | An array of customer's shopping carts. See [Cart](#cart) for the object structure. |
440
440
|`omnichannel`| optional ||
441
441
|`address`| optional | An object of the customer's address data. |
442
+
|`customer_properties`| optional | An object where the keys are the IDs of the [customer properties](#customer-property) and the values are their data. |
442
443
443
444
### Cart
444
445
@@ -467,6 +468,20 @@ It is not possible to send a System event in API version 3.6.
467
468
|`quantity`|`number`| The quantity of the item in the cart. |
468
469
|`variant_id`|`number`| The variant ID of the item. |
469
470
471
+
### Customer Property
472
+
473
+
Customer properties are identified by the UUID generated in the [Create customer property definition](/management/customer-data-platform-api#/paths/~1v1~1create_customer_property_definition/post) method.
474
+
The customer property's type is set on creation by the agent.
475
+
476
+
<CodeResponseversion="v3.6"type="agent"title={'Sample Customer Property data structure'}json="customerProperty"/>
0 commit comments