Enrollments

Enrollment Status Updated

Sent when an enrollment's status changes. Delivered to a configured webhook endpoint (webhooksUrl): the merchant's, or the one given on the enrollment request. Subscription/registration of that endpoint is out of scope for this page.

postWebhookenrollmentStatusUpdated

Payload

specversion'1.0.2' required

The CloudEvents specification version.

idstring required

Unique event id (idempotency key for consumers).

sourcestring required
subjectstring required

The resource this event is about, e.g. the merchantId or enrollmentId.

timestring date-time required
datacontenttype'application/json' required

The event content type.

type'ENROLLMENT_STATUS_UPDATED' required

Discriminator selecting the shape of data.

Example payload

{
  "specversion": "1.0.2",
  "id": "evt_abcdefghijklmno123456",
  "source": "https://www.ppro.com",
  "subject": "MIDNITH123",
  "datacontenttype": "application/json",
  "data": {
    "enrollmentId": "enrollment_lUj4DR28ygrIgcuhhdZZa",
    "merchantId": "MERCHANTID456",
    "externalMerchantReference": "ENTITY1234567890",
    "paymentMethod": "TWINT",
    "currentStatus": {
      "status": "ACTIVE",
      "statusReason": {
        "reasonType": "PROVIDER_DECLINE",
        "reasonCode": "GENERIC_DECLINE",
        "reasonMessage": "enrollment declined"
      }
    }
  }
}

Response

Webhook received.

Changes

Webhooks have no change history: a webhook is keyed by its event name rather than a path and method, so no recorded change can name it.