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:
| Claim | Meaning |
|---|---|
iss | Issuer. |
aud | Audience: your Software Product. |
nbf | Not before: when the token becomes valid. |
iat | When the token was issued. |
exp | When the token expires: 60 seconds after it was issued. |
cdrArrangementId | The CDR Arrangement ID, as known across the CDR ecosystem. |
interactionId | A unique ID for the call. Use it to recognise a retried call you have already processed. |
principalId | The Principal the agreement belongs to. |
softwareProductId | Your 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...