v2

latestOpenAPI 3.0.12026-07-2693281951.6 KB
Notifications

Create Event Subscription

Used to subscribe to notifications relating to a specified event type.

post/notifications/event-subscriptions

Headers

sub-applicationstring uuid

The sub-application ID to which event type is being subscribed to

Request body

eventTypeIdstring required

Unique identifier of the event type (for which notifications will be sent).

Allowed values: payment.status, payment.status.completed, payment.isoStatus

Example request

{
  "eventTypeId": "payment.status.completed",
  "notification": {
    "type": "WEBHOOK",
    "url": "https://httpbin.com/new_endpoint"
  }
}

Response

Event subscription created successfully

linksobject
tracingIdstring

Example response

{
  "data": {
    "eventTypeId": "payment.status.completed",
    "applicationId": "2698db90-6635-4f76-b673-5ce8e2aeda0e",
    "created": "28-07-2021 15:47:03",
    "notification": {
      "type": "WEBHOOK",
      "url": "https://httpbin.com/new_endpoint"
    }
  }
}