Create a Subscription

Creates a new subscription for specified Encompass instance.

Important Maintenance Information

ICE regularly reviews webhook subscriptions and will automatically delete bad webhook subscriptions which have undeliverable endpoints (and are more than 30 days old, generate more than 1,000 events per week, have a delivery status of 5XX, errors, and timeouts). Please be sure to regularly review your active webhook subscriptions for an optimal user experience.

Usage Notes

  • Refer to the GET Resource API response for resources and events available for subscriptions.
  • The subscription

How To's

How to specify filter attributes when subscribing to loan "change" events

When specifying filter attributes for a loan "change" event subscription, note that the fields in the Loan resource can be classified into three broad categories:

  1. Static Fields : These are the fields that can be listed as attributes directly.
    Example: applicationTakenMethodType
    Attribute: "/applicationTakenMethodType"

  2. Collections : These are the entities within the Loan object which contains a list of items.
    The attribute can be specified in the form of "/entity/itemNumber".
    A few examples are Applications, Contacts, and Custom Fields.
    Attribute:
    i. "applications/0/" will trigger a notification if there is a change in any field within application with applicationIndex '0'
    ii. To subscribe for a notification which gets triggered due to a change in any of the items in the Contacts collection, use "/contacts/
    "
    iii. To subscribe for a notification which gets triggered due to the completion of a milestone, use "/milestoneLogs/*/doneIndicator"



    Example: To be notified when the name of a contact type LOAN_CLOSER is updated

    V1 JSON Path: "/contacts[?(@/contactType == \"LOAN_CLOSER\")]/name">
    Supported Filter Attribute: "/contacts/\*/contactType/name"<br>
  1. Collections with conditional Patterns : These are entities which contain items that can
    have multiple conditions. Currently, they can be subscribed to only at the collection level.
    A couple of examples are Fees and Assets.
    Attribute: "/fees/*"

  2. Variable Collections: When subscribing to variable collections that start with a 0 such as Non-Borrowing Owners, to ensure the loan "change" webhook event is sent when the initial and subsequent records are added to the collection, specify the loan "change" filter attributes in 2 formats including with, and without a slash. This will ensure that you are notified when the first and any subsequent Non-Borrowing Owners are added to the loan.



    Example:

    "filters": {
      	 "attributes": [
             "/nonBorrowerOwners/*",
              "/nonBorrowerOwners"
          ]
      }
    

    To determine if the collection is variable or not, refer to the "multiInstance"=true attribute in the V3 Get Field Schema API. If "multiInstance"=true for a given field then the collection is variable, in which case both "/nonBorrowerOwners/* and "/nonBorrowerOwners" attributes must be specified when subscribing to this collection.


How to specify filter attributes when subscribing to loan "fieldchange" events

When specifying filter attributes for a "fieldchange" event subscription, note the following format:

/fields/{{fieldId}}

Example:

"filters": {
    "attributes": [
        "/fields/1109"
    ]

No validation on filter's attributes

Please note that we do not validate the values specified under attributes. Invalid attributes are ignored.

Language
URL