Subscription Schema Reference
Objects
CreateSubscriberPayload
Return type of CreateSubscriber.
Field Name | Description |
| The information about a newly created subscriber. |
Example
{
"subscriber": NewSubscriber!
}
CreateSubscriptionPayload
Return type of CreateSubscription.
Field Name | Description |
| The information about a newly created event subscription. |
Example
{
"subscription": EventSubscription!
}
UpdateSubscriberPayload
Return type of UpdateSubscriber.
Field Name | Description |
| The information about an updated subscriber. |
Example
{
"subscriber": Subscriber!
}
InputObjects
CreateSubscriberFields
Input object for making new subscribers.
Field Name | Description |
| The entity subscribing to event notifications. Naming convention is |
| An URL where subscription notification events will be sent to. |
Example
{
"name": "Example Provider - Example Brand",
"webhookUrl": "https://example.net/subscriptions"
}
CreateSubscriptionFields
Input object for making new subscriptions.
Field Name | Description |
| A |
| A |
| A |
| An ID for the owner of the entity to receive notifications about. For the Menu API the |
| An |
Example
{
"eventEntity": "Order",
"eventKey": "accepted",
"parentEntity": "Caterer",
"parentId": "ezcater-caterer-id",
"subscriberId": "your-subscriber-id"
}
EventSubscription
A subscription allows a subscriber to enable notifications for a particular event (e.g. when an order is accepted at a particular catering location). When a subscription is created, all event notifications will be received at the subscriber’s webhook URL.
Field Name | Description |
| A |
| A |
| A |
| An ID for the owner of the entity to receive notifications about. For the Menu API the |
| An |
Example
{
"eventEntity": "Order",
"eventKey": "accepted",
"parentEntity": "Caterer",
"parentId": "ezcater-caterer-id",
"subscriberId": "your-subscriber-id"
}
NewSubscriber
This object represents a URL to receive all subscription notifications. One subscriber can be created per access token. A subscriber can have many subscriptions.
Field Name | Description |
| The ID for the subscriber |
| The entity subscribing to event notifications. Naming convention is |
| Active Event Subscriptions for the Subscriber |
| The token provided when POSTing events to the webhook to ensure the notification was sent by ezCater. |
| An URL where subscription notification events will be sent to. |
Example
{
"id": "your-subscriber-id",
"name": "Example Provider - Example Brand",
"subscriptions": [EventSubscription!]!,
"webhookSecret": "be6efd0f8e88fec0d51364559ca9a258e70031f7f38448ea2e9705928a929a8d",
"webhookUrl": "https://example.net/subscriptions"
}
Subscriber
This object represents a URL to receive all subscription notifications. One subscriber can be created per access token. A subscriber can have many subscriptions.
Field Name | Description |
| The ID for the subscriber |
| The entity subscribing to event notifications. Naming convention is |
| Active Event Subscriptions for the Subscriber |
| An URL where subscription notification events will be sent to. |
Example
{
"id": "your-subscriber-id",
"name": "Example Provider - Example Brand",
"subscriptions": [EventSubscription!]!,
"webhookUrl": "https://example.net/subscriptions"
}
UpdateSubscriberFields
Input object for updating subscribers.
Field Name | Description |
| The entity subscribing to event notifications. Naming convention is |
| An URL where subscription notification events will be sent to. |
Example
{
"name": "Example Provider - Example Brand",
"webhookUrl": "https://example.net/subscriptions"
}
Enums
EventEntity
The name of the entity to receive subscription notifications about. Applied to the eventEntity type as the field's return type.
Enum Name | Description |
| The |
| The |
| The |
EventKey
The particular event to notify on. Applied to the eventKey type as the field's return type.
Intercom callout — info
As the integration functionality expands, there may be additional event subscription options as well.
Enum Name | Description |
| An |
| An |
| An |
| An |
| An |
| An |
| A |
| A |
| A |
| A |
ParentEntity
The owner of the entity to receive notifications about. Applied to the parentEntity type as the field's return type.
Enum Name | Description |
| The |
Scalars
ID
The ID scalar type represents a unique identifier, often used to refetch an object or as key for a cache. The ID type appears in a JSON response as a String; however, it is not intended to be human-readable. When expected as an input type, any string (such as "4") or integer (such as 4) input value will be accepted as an ID.
String
The String scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
UUID
Universally unique identifier as defined by RFC 4122.
