Skip to main content

CDR end-of-life webhook

The call Open Gateway makes to your Software Product when an agreement ends, so you can delete or de-identify its data.

When an agreement is revoked or expires, Open Gateway (OG) calls your Software Product's end-of-life webhook: the agreementEndCallbackUrl of the Agreement Template the agreement was primed with. A batch job makes these calls every 3 minutes.

The request​

OG sends a POST whose body is a JWT signed by OG. Verify the JWT's signature against OG's JWKS before you act on it. The claims are:

ClaimMeaning
issIssuer.
audAudience: your Software Product.
nbfNot before: when the token becomes valid.
iatWhen the token was issued.
expWhen the token expires: 60 seconds after it was issued.
cdrArrangementIdThe CDR Arrangement ID, as known across the CDR ecosystem.
interactionIdA unique ID for the call. Use it to recognise a retried call you have already processed.
principalIdThe Principal the agreement belongs to.
softwareProductIdYour Software Product's ID.

Your response​

The webhook's response determines what happens next:

  • 204: the call is marked FINISHED.
  • Any other status code: the call stays queued and is retried in the next batch run. If it has still not succeeded 7 days after the agreement ended, it is marked FAILED and not retried.

Retries run at the fixed 3-minute interval; there is no back-off. If your Software Product has no end-of-life webhook URL configured, OG cannot deliver the call, and it is marked FAILED after 7 days.

Because a call can be retried, make your handler idempotent: process each interactionId once, and return 204 for a call you have already processed.

Reference​

From the Open Gateway API 4.0.1. See the full reference.

Loading...