Step 8: Webhook Notification (Consent Status Update)
Once the Data Principal Grants or Revokes consent via the Consent Notice UI, the Consent Manager will notify the Data Fiduciary (DF) by calling the configured Webhook URL.
This webhook delivers the final consent decision along with a cryptographically signed payload.
π When Is the Webhook Triggered?β
The webhook is triggered when:
- User grants consent
- User revokes consent
- Consent expires
- A consent request nobody answered expires (12 months after it was created)
β³ Expiry and Retentionβ
Consent validity. Every consent notice says how long a consent given through it stays valid (for example 1 year, at most 15 years). The receipt's top-level expiresAt is the time the user first granted consent plus that validity; changing choices later doesn't move it. On that date the consent expires and you receive the webhook with status expired. To keep processing, send a new consent request.
Retention. Each purpose's purposes[].retention says how long you may keep its data and when that period starts (trigger):
CONSENT_GIVEN: from when consent is givenCONSENT_WITHDRAWN: after consent is withdrawnSERVICE_ENDED: after the service ends or the account is closedTRANSACTION_COMPLETED: after the transaction is completedLAST_INTERACTION: after the user's last interaction with youOTHER: described intriggerText
A duration of 0 means the data is erased as soon as that event happens (for example, when the service ends); it is never combined with CONSENT_GIVEN.
The Consent Manager can't see these events, so it gives no erase-by date: you erase on the rule.
Withdrawal. You receive the webhook with status withdrawn. Erase the data for the withdrawn purposes, unless the purpose has a legalBasis: the law that requires keeping the data after withdrawal. The user is shown that legal basis when they withdraw, and the data is kept only as that law requires.
If different purposes need different re-consent cadences, put them in separate consent notices.
π Webhook Endpoint (DF Side)β
During onboarding, the DF must configure a webhook URL in the Consent Manager dashboard.
Example:
https://yourdomain.com/api/webhooks/consent-status
This endpoint must:
- Accept
POSTrequests - Accept
application/json - Be publicly accessible over HTTPS
Webhook Requestβ
Method: POST
Content-Type: application/json
Webhook Payloadβ
{
"consent_id": "string",
"status": "string",
"receipt": {
...
}
}
Consent Receipt Schemaβ
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://www.indiaconsent.com/schema/consent-receipt-v1.json",
"title": "ConsentReceipt",
"type": "object",
"required": [
"receiptId",
"version",
"consentId",
"cmId",
"status",
"fiduciary",
"dataPrincipal",
"service",
"language",
"purposes",
"issuedAt",
"expiresAt",
"payloadHash",
"receiptPayload",
"supersedesPrevious"
],
"properties": {
"receiptId": {
"type": "string",
"description": "Unique identifier for this receipt (UUID preferred).",
"pattern": "^[a-zA-Z0-9\-_:]+$"
},
"version": {
"type": "string",
"description": "Schema/version of the receipt format.",
"enum": [
"1.0"
]
},
"consentId": {
"type": "string",
"description": "Reference to the ConsentRequest ID (crId) this receipt was generated from"
},
"cmId": {
"type": "string",
"description": "Identifier of the Consent Manager issuing this receipt."
},
"fiduciary": {
"type": "object",
"description": "Information about the fiduciary managing this consent",
"required": [
"fidId",
"name"
],
"properties": {
"fidId": {
"type": "string",
"description": "Unique identifier of the fiduciary in CM system."
},
"name": {
"type": "string",
"description": "Registered name of the fiduciary."
}
},
"additionalProperties": false
},
"dataPrincipal": {
"type": "object",
"description": "Data Principal information as known to CM (NO PII from DF).",
"required": [
"dpHash"
],
"properties": {
"dpHash": {
"type": "string",
"description": "Pseudonymous identifier linking this receipt to the DP within this fiduciary context."
}
},
"additionalProperties": false
},
"service": {
"type": "object",
"description": "Service for which consent was given.",
"required": [
"serviceId",
"serviceName"
],
"properties": {
"serviceId": {
"type": "string",
"description": "Unique identifier for the service"
},
"serviceName": {
"type": "string",
"description": "Human-readable name of the service"
}
}
},
"language": {
"type": "string",
"description": "Language code of the selected language of consent grant/revoke (e.g., 'en', 'hi', 'ta')"
},
"purposes": {
"type": "array",
"description": "List of purposes with associated data categories and user choices.",
"minItems": 1,
"items": {
"type": "object",
"required": [
"purposeId",
"purposeText",
"description",
"dataCategories"
],
"properties": {
"purposeId": {
"type": "string",
"description": "Unique identifier for this purpose (DF-defined)."
},
"purposeText": {
"type": "string",
"description": "Human-readable text of the purpose."
},
"description": {
"type": "string",
"description": "Human-readable description of the purpose."
},
"dataCategories": {
"type": "array",
"description": "Categories of data under this purpose",
"minItems": 1,
"items": {
"type": "object",
"required": [
"id",
"label",
"allowed"
],
"properties": {
"id": {
"type": "string",
"description": "Unique identifier for this data category (DF-defined)"
},
"label": {
"type": "string",
"description": "User-visible text (CM will render as toggle label)"
},
"allowed": {
"type": "boolean",
"description": "Whether the user consented to this data category under this purpose."
}
}
}
},
"retention": {
"type": "object",
"required": [
"duration",
"unit",
"trigger"
],
"properties": {
"duration": {
"type": "integer",
"description": "Data retention duration for this purpose, in the unit below, as set on the purpose in the consent notice. E.g. unit 'month' and duration 6 is shown to the DP as '6 Months'."
},
"unit": {
"type": "string",
"enum": [
"day",
"month",
"year"
]
},
"trigger": {
"type": "string",
"enum": ["CONSENT_GIVEN", "CONSENT_WITHDRAWN", "SERVICE_ENDED", "TRANSACTION_COMPLETED", "LAST_INTERACTION", "OTHER"],
"description": "When this purpose's retention period starts, e.g. SERVICE_ENDED: the data may be kept for the duration above after the service ends or the account is closed. The Consent Manager can't see that event, so no date is given: the DF erases on this rule, and earlier when consent is withdrawn unless a legal basis is given."
},
"triggerText": {
"type": "string",
"description": "When it starts, in words (in the receipt's language); only for trigger OTHER."
},
"legalBasis": {
"type": "string",
"description": "The law or rule that requires keeping this purpose's data after consent is withdrawn (in the receipt's language). Absent when there is none: then the data is erased on withdrawal."
}
}
}
},
"additionalProperties": false
}
},
"status": {
"type": "string",
"description": "Effective status of the consent at the time of issuing/updating the receipt.",
"enum": [
"granted",
"revoked",
"expired"
]
},
"issuedAt": {
"type": "string",
"format": "date-time",
"description": "Timestamp when the receipt was issued."
},
"expiresAt": {
"type": "string",
"format": "date-time",
"description": "When the consent expires: the first grant plus the notice's consent validity (content.consentValidity, at most 15 years). Changing choices later does not move it. On that date the Consent Manager marks the consent expired and sends the expired webhook; to keep processing, the DF must request consent again. For a denied or withdrawn consent it equals issuedAt."
},
"cmNotice": {
"type": "object",
"description": "Information about how DP can manage consent and contact CM.",
"required": [
"manageUrl"
],
"properties": {
"manageUrl": {
"type": "string",
"format": "uri",
"description": "URL where DP can view/revoke this consent."
}
},
"additionalProperties": true
},
"payloadHash": {
"type": "string",
"description": "Hash (e.g., SHA-256) of the canonical JSON payload of this receipt (without signature)."
},
"receiptPayload": {
"type": "string",
"description": "Canonical JSON representation of the complete receipt (payload + signature) as stored in DB"
},
"supersedesPrevious": {
"type": "boolean",
"default": true,
"description": "Whether this receipt supersedes a previous one"
}
},
"additionalProperties": false
}
Sample Consent Receiptβ
{
"cmId" : "cm-indiaconsent-01",
"consentId" : "0d2f6211-17f3-4e99-aec0-d6a0d404cfcd",
"dataPrincipal" : {
"dpHash" : "68fb2ced2daaf430ebd5c9eb"
},
"expiresAt" : "2026-04-06T11:39:09.891204400Z",
"fiduciary" : {
"fidId" : "c8ab306d-0a53-4af1-9f3c-c4662df39500",
"name" : "AlignMyCareer"
},
"issuedAt" : "2026-04-06T11:39:09.891204400Z",
"language" : "en",
"payloadHash" : "6cfaf1d741a62828ed41e910c16080fcfbc349bbc4e696a11bd73fc62517e88d",
"purposes" : [
{
"purposeId" : "order.placement",
"purposeText" : "Order Placement & Fulfilment",
"description" : "To place, process, ship, and deliver your orders purchased on our platform",
"retention" : {
"unit" : "year",
"duration" : 1,
"expiresAt" : "2027-04-06T11:39:09.891204400Z"
},
"dataCategories" : [
{
"allowed" : true,
"id" : "contact.fullname",
"label" : "Full Name"
},
{
"allowed" : true,
"id" : "contact.email",
"label" : "Email Address"
},
{
"allowed" : true,
"id" : "contact.address",
"label" : "Shipping Address"
}
]
},
{
"purposeId" : "payment.processing",
"purposeText" : "Payment Processing & Refunds",
"description" : "To process payments, refunds, charges, and transaction confirmations.",
"retention" : {
"unit" : "year",
"duration" : 1,
"expiresAt" : "2027-04-06T11:39:09.891204400Z"
},
"dataCategories" : [
{
"allowed" : true,
"id" : "payment.method",
"label" : "Payment Method"
},
{
"allowed" : true,
"id" : "payment.status",
"label" : "Payment Status"
}
]
}
],
"receiptId" : "adbf439a-d216-4862-8ee6-7164199a1509",
"receiptPayload" : "{"payload":{"cmId":"cm-indiaconsent-01","cmNotice":{"manageUrl":"http://localhost:5173/consent?cr_id=0d2f6211-17f3-4e99-aec0-d6a0d404cfcd"},"consentId":"0d2f6211-17f3-4e99-aec0-d6a0d404cfcd","dataPrincipal":{"dpHash":"68fb2ced2daaf430ebd5c9eb"},"expiresAt":"2026-04-06T11:39:09.891204400Z","fiduciary":{"fidId":"c8ab306d-0a53-4af1-9f3c-c4662df39500","name":"AlignMyCareer"},"issuedAt":"2026-04-06T11:39:09.891204400Z","language":"en","purposes":[{"dataCategories":[{"allowed":true,"id":"contact.fullname","label":"Full Name"},{"allowed":true,"id":"contact.email","label":"Email Address"},{"allowed":true,"id":"contact.address","label":"Shipping Address"}],"description":"To place, process, ship, and deliver your orders purchased on our platform","purposeId":"order.placement","purposeText":"Order Placement & Fulfilment","retention":{"duration":1,"expiresAt":"2027-04-06T11:39:09.891204400Z","unit":"year"}},{"dataCategories":[{"allowed":true,"id":"payment.method","label":"Payment Method"},{"allowed":true,"id":"payment.status","label":"Payment Status"}],"description":"To process payments, refunds, charges, and transaction confirmations.","purposeId":"payment.processing","purposeText":"Payment Processing & Refunds","retention":{"duration":1,"expiresAt":"2027-04-06T11:39:09.891204400Z","unit":"year"}}],"receiptId":"adbf439a-d216-4862-8ee6-7164199a1509","service":{"serviceId":"shopping.order.fulfilment","serviceName":"Online Shopping & Order Fulfilment"},"status":"granted","supersedesPrevious":true,"version":"1.0"},"signature":{"alg":"RS256","jwsCompact":"eyJraWQiOiJjbS1yc2Eta2V5IiwidHlwIjoiY29uc2VudC1yZWNlaXB0K2p3dCIsImFsZyI6IlJTMjU2In0.eyJjbUlkIjoiY20taW5kaWFjb25zZW50LTAxIiwiY21Ob3RpY2UiOnsibWFuYWdlVXJsIjoiaHR0cDovL2xvY2FsaG9zdDo1MTczL2NvbnNlbnQ_Y3JfaWQ9MGQyZjYyMTEtMTdmMy00ZTk5LWFlYzAtZDZhMGQ0MDRjZmNkIn0sImNvbnNlbnRJZCI6IjBkMmY2MjExLTE3ZjMtNGU5OS1hZWMwLWQ2YTBkNDA0Y2ZjZCIsImRhdGFQcmluY2lwYWwiOnsiZHBIYXN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e910c16080fcfbc349bbc4e696a11bd73fc62517e88d","signedAt":"2026-04-06T11:39:09.891204400Z"}}",
"service" : {
"serviceId" : "shopping.order.fulfilment",
"serviceName" : "Online Shopping & Order Fulfilment"
},
"status" : "granted",
"supersedesPrevious" : true,
"version" : "1.0"
}
π Webhook Signature Verificationβ
To ensure authenticity:
-
Each webhook payload is digitally signed.
-
The DF must verify the signature using the Consent Managerβs public key.
-
Optionally validate the receipt hash for integrity.
Recommended Validation Stepsβ
-
Verify the request is received over HTTPS.
-
Validate signature using public key.
-
Validate receipt hash.
-
Ensure
requestIdmatches an existing request. -
Ensure idempotency (avoid duplicate processing).
Expected DF Responseβ
Your webhook endpoint must return:
HTTP/1.1 200 OK
If a non-2xx response is returned:
- Consent Manager may retry delivery.
- Multiple attempts may occur.
π Retry Policy (Recommended Behavior)β
- If webhook fails, retry mechanism will attempt redelivery.
- Ensure your endpoint is idempotent.
β οΈ Important Security Guidelinesβ
-
Do not trust payload without signature validation.
-
Do not expose webhook URL publicly without validation logic.
-
Maintain logs for audit purposes.
-
Store consent receipt securely for compliance.
Consent Lifecycle Completionβ
User Grants / Revokes
β
Consent Manager Generates Receipt
β
Signed Webhook Sent to DF
β
DF Verifies & Stores Consent Record