Raw
1 type: object
2 description: The notification's details.
3 x-schemaName: AdminNotification
4 required:
5 - id
6 - to
7 - channel
8 - template
9 - provider_id
10 - created_at
11 properties:
12 id:
13 type: string
14 title: id
15 description: The notification's ID.
16 to:
17 type: string
18 title: to
19 description: >-
20 Where to send the notification to. For example, if `channel` is `email`,
21 this can be an email number.
22 channel:
23 type: string
24 title: channel
25 description: Through which channel is the notification sent through.
26 example: email
27 template:
28 type: string
29 title: template
30 description: >-
31 The ID of the template in a third-party service used as the notification's
32 shape.
33 data:
34 type: object
35 description: Data payload to send with the notification.
36 trigger_type:
37 type: string
38 title: trigger_type
39 description: What triggered this notification.
40 example: order.created
41 resource_id:
42 type: string
43 title: resource_id
44 description: >-
45 The ID of the associated resource. For example, if the notification was
46 triggered because an order was created, this would be the ID of the order.
47 resource_type:
48 type: string
49 title: resource_type
50 description: The type of the resource that triggered the notification.
51 example: order
52 receiver_id:
53 type: string
54 title: receiver_id
55 description: The ID of the user or customer that's receiving this notification.
56 original_notification_id:
57 type: string
58 title: original_notification_id
59 description: The ID of the original notification, if this notification is resent.
60 external_id:
61 type: string
62 title: external_id
63 description: The ID of the notification in an external or third-party system.
64 provider_id:
65 type: string
66 title: provider_id
67 description: The ID of the provider used to send the notification.
68 created_at:
69 type: string
70 format: date-time
71 title: created_at
72 description: The date the notification was created.