## Query Subscription

- Query a subscription.

- - ###

    Method | GET
    Request URL | /services/EventingConnector/subscriptions/{subscriptionId}
    Request Content-type | N/A
    Request Body | N/A
    Response Content-type | application/json
    Response Body | Subscription.json
    Response Status | 200 – subscription successfully retrieved 400 – invalid request 404 - Subscription with subscriptionId not found 500 – Runtime errors

Subscription.json

    {
        "title":"Subscription",
        "description":"Subscription schema",
        "type":"object",
        "properties":{
            "family":{
                "description":"The family of event",
                "type":"string"
            },
            "eventTypes":{
                "type":"array",
                "eventType":{
                    "type":"string"
                },
                "minItems":0,
                "uniqueItems":true
            },
            "callbackUrl":{
                "description":"endpoint of the listener",
                "type":"string"
            },
            "callbackContentType":{
                "description":"content-type of the event to be sent to endpoint of the listener, options [multipart/form-data, application/json]. Default is multipart/form-data",
                "type":"string"
            },
            "filter":{
                "description":"filters on metadata",
                "type":"object",
                "properties":{
                    "correlationId":{
                        "type":"string"
                    },
                    "user":{
                        "type":"string"
                    },
                    "serviceProfile":{
                        "type":"string"
                    },
                    "criteria":{
                        "id":"criteria",
                        "type":"array",
                        "items":{
                            "$ref":"#/criterion"
                        },
                        "additionalItems":false
                    },
                    "ignoreCaseCriteria":{
                        "id":"ignoreCaseCriteria",
                        "type":"array",
                        "items":{
                            "$ref":"#/criterion"
                        },
                        "additionalItems":false
                    }
                }
            }
        },
        "criterion":{
            "id":"items",
            "type":"object",
            "properties":{
                "key":{
                    "id":"key",
                    "type":"string"
                },
                "value":{
                    "id":"value",
                    "type":"string"
                }
            },
            "additionalProperties":false
        }
    }

Copyright © 2017 Avaya. All Rights Reserved.