Post create a subscription

post

{basePath}/notifications/subscriptions

The API creates a subscription to a resource for the current subscriber.

Request

Supported Media Types
Body ()
The subscriptionViewModel
Root Schema : SubscriptionViewModel
Type: object
A Subscription subset with the exclusions of subscriptionId and subscriberId
Show Source
Nested Schema : MessageType
Type: object
Information about the type of message.
Show Source
  • Identifier of the message type [Source - POS] "CheckNotification", "OrganizationsNotification", "ConfigurationNotification" supports organization, property, and revenue center hierarchy level subscriptions. "EmployeesNotification" supports organization, and property hierarchy level subscriptions.
    Example: { "id":"CheckNotification" }
Nested Schema : PostOfficeOptions
Type: object
Information about the PostOffice for the subscription
Show Source
  • Information about the PostOffice for the subscription Valid values are "PushOnePostOffice"
Back to Top

Response

Supported Media Types

200 Response

The subscription
Body ()
Root Schema : Subscription
Type: object
A Subscription
Show Source
Nested Schema : MessageType
Type: object
Information about the type of message.
Show Source
  • Identifier of the message type [Source - POS] "CheckNotification", "OrganizationsNotification", "ConfigurationNotification" supports organization, property, and revenue center hierarchy level subscriptions. "EmployeesNotification" supports organization, and property hierarchy level subscriptions.
    Example: { "id":"CheckNotification" }
Nested Schema : PostOfficeOptions
Type: object
Information about the PostOffice for the subscription
Show Source
  • Information about the PostOffice for the subscription Valid values are "PushOnePostOffice"

400 Response

400 Bad Request Note - A subscription for message type ID 'EmployeesNotification' will return 400 if RvcRef has a value. Such a subscription would never receive any notifications.
Body ()
Root Schema : NotificationsApiBadRequest
400 Bad Request

403 Response

403 Forbidden

404 Response

404 Requested resource not found
Back to Top

Examples

Example Request Body

The following example shows the contents of the request body in JSON format:


{
  "callbackUri": "string",
  "messageType": {
    "id": "CheckNotification"
  },
  "postOfficeOptions": {
    "PostOfficeType": "string"
  },
  "orgShortName": "string",
  "locRef": "string",
  "rvcRef": "string"
}

Example Response Body

The following example shows the contents of the response body in JSON format:


{
  "subscriptionId": "string",
  "callbackUri": "string",
  "messageType": {
    "id": "CheckNotification"
  },
  "postOfficeOptions": {
    "PostOfficeType": "string"
  },
  "orgShortName": "string",
  "locRef": "string",
  "rvcRef": "string"
}
Back to Top