--- displayed_sidebar: entitiesSidebar --- import ParameterTypes from "@site/src/components/ParameterTypes" # Notification A notification is an alert sent, typically to customers, using the installed Notification Provider as a reaction to internal events such as `order.placed`. Notifications can be resent. ## Properties `", "description": "An optional key-value map with additional details", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "orders", "type": "[Order](Order.mdx)[]", "description": "The details of the orders this customer placed.", "optional": false, "defaultValue": "", "expandable": true, "children": [] }, { "name": "password_hash", "type": "`string`", "description": "", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "phone", "type": "`string`", "description": "The customer's phone number", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "shipping_addresses", "type": "[Address](Address.mdx)[]", "description": "The details of the shipping addresses associated with the customer.", "optional": false, "defaultValue": "", "expandable": true, "children": [] }, { "name": "updated_at", "type": "`Date`", "description": "The date with timezone at which the resource was updated.", "optional": false, "defaultValue": "", "expandable": false, "children": [] } ] }, { "name": "customer_id", "type": "``null`` \\| `string`", "description": "The ID of the customer that this notification was sent to.", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "data", "type": "`Record`", "description": "The data that the Notification was sent with. This contains all the data necessary for the Notification Provider to initiate a resend.", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "event_name", "type": "`string`", "description": "The name of the event that the notification was sent for.", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "id", "type": "`string`", "description": "The notification's ID", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "parent_id", "type": "`string`", "description": "The notification's parent ID", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "parent_notification", "type": "[Notification](Notification.mdx)", "description": "The details of the parent notification.", "optional": false, "defaultValue": "", "expandable": true, "children": [ { "name": "created_at", "type": "`Date`", "description": "The date with timezone at which the resource was created.", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "customer", "type": "[Customer](Customer.mdx)", "description": "The details of the customer that this notification was sent to.", "optional": false, "defaultValue": "", "expandable": true, "children": [] }, { "name": "customer_id", "type": "``null`` \\| `string`", "description": "The ID of the customer that this notification was sent to.", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "data", "type": "`Record`", "description": "The data that the Notification was sent with. This contains all the data necessary for the Notification Provider to initiate a resend.", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "event_name", "type": "`string`", "description": "The name of the event that the notification was sent for.", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "id", "type": "`string`", "description": "The notification's ID", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "parent_id", "type": "`string`", "description": "The notification's parent ID", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "parent_notification", "type": "[Notification](Notification.mdx)", "description": "The details of the parent notification.", "optional": false, "defaultValue": "", "expandable": true, "children": [] }, { "name": "provider", "type": "[NotificationProvider](NotificationProvider.mdx)", "description": "The notification provider used to send the notification.", "optional": false, "defaultValue": "", "expandable": true, "children": [] }, { "name": "provider_id", "type": "`string`", "description": "The ID of the notification provider used to send the notification.", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "resends", "type": "[Notification](Notification.mdx)[]", "description": "The details of all resends of the notification.", "optional": false, "defaultValue": "", "expandable": true, "children": [] }, { "name": "resource_id", "type": "`string`", "description": "The ID of the resource that the Notification refers to.", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "resource_type", "type": "`string`", "description": "The type of resource that the Notification refers to.", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "to", "type": "`string`", "description": "The address that the Notification was sent to. This will usually be an email address, but can represent other addresses such as a chat bot user ID.", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "updated_at", "type": "`Date`", "description": "The date with timezone at which the resource was updated.", "optional": false, "defaultValue": "", "expandable": false, "children": [] } ] }, { "name": "provider", "type": "[NotificationProvider](NotificationProvider.mdx)", "description": "The notification provider used to send the notification.", "optional": false, "defaultValue": "", "expandable": true, "children": [ { "name": "id", "type": "`string`", "description": "The ID of the notification provider as given by the notification service.", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "is_installed", "type": "`boolean`", "description": "Whether the notification service is installed in the current version. If a notification service is no longer installed, the `is\\_installed` attribute is set to `false`.", "optional": false, "defaultValue": "true", "expandable": false, "children": [] } ] }, { "name": "provider_id", "type": "`string`", "description": "The ID of the notification provider used to send the notification.", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "resends", "type": "[Notification](Notification.mdx)[]", "description": "The details of all resends of the notification.", "optional": false, "defaultValue": "", "expandable": true, "children": [ { "name": "created_at", "type": "`Date`", "description": "The date with timezone at which the resource was created.", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "customer", "type": "[Customer](Customer.mdx)", "description": "The details of the customer that this notification was sent to.", "optional": false, "defaultValue": "", "expandable": true, "children": [] }, { "name": "customer_id", "type": "``null`` \\| `string`", "description": "The ID of the customer that this notification was sent to.", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "data", "type": "`Record`", "description": "The data that the Notification was sent with. This contains all the data necessary for the Notification Provider to initiate a resend.", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "event_name", "type": "`string`", "description": "The name of the event that the notification was sent for.", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "id", "type": "`string`", "description": "The notification's ID", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "parent_id", "type": "`string`", "description": "The notification's parent ID", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "parent_notification", "type": "[Notification](Notification.mdx)", "description": "The details of the parent notification.", "optional": false, "defaultValue": "", "expandable": true, "children": [] }, { "name": "provider", "type": "[NotificationProvider](NotificationProvider.mdx)", "description": "The notification provider used to send the notification.", "optional": false, "defaultValue": "", "expandable": true, "children": [] }, { "name": "provider_id", "type": "`string`", "description": "The ID of the notification provider used to send the notification.", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "resends", "type": "[Notification](Notification.mdx)[]", "description": "The details of all resends of the notification.", "optional": false, "defaultValue": "", "expandable": true, "children": [] }, { "name": "resource_id", "type": "`string`", "description": "The ID of the resource that the Notification refers to.", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "resource_type", "type": "`string`", "description": "The type of resource that the Notification refers to.", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "to", "type": "`string`", "description": "The address that the Notification was sent to. This will usually be an email address, but can represent other addresses such as a chat bot user ID.", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "updated_at", "type": "`Date`", "description": "The date with timezone at which the resource was updated.", "optional": false, "defaultValue": "", "expandable": false, "children": [] } ] }, { "name": "resource_id", "type": "`string`", "description": "The ID of the resource that the Notification refers to.", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "resource_type", "type": "`string`", "description": "The type of resource that the Notification refers to.", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "to", "type": "`string`", "description": "The address that the Notification was sent to. This will usually be an email address, but can represent other addresses such as a chat bot user ID.", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "updated_at", "type": "`Date`", "description": "The date with timezone at which the resource was updated.", "optional": false, "defaultValue": "", "expandable": false, "children": [] } ]} />