Hooks
Identifier for the calling service. Must match a configured subscription gateway
in ACTIVE_SUBSCRIPTION_GATEWAYS or SUBSCRIPTION_GATEWAY dynamic settings.
HMAC hash for request validation. Generated by the subscription gateway's
get_unsubscription_hash(request_datetime) method. Algorithm depends on gateway implementation.
Request timestamp in ISO format. Must be within 1 minute of server time to be valid (time gap validated as: (now - request_datetime).seconds / 60 < 1).
Unsubscription processed successfully. Users' communication preferences updated. Returns empty response body with 200 status.
No content
Validation error, hash mismatch, or time gap error.
Common errors:
- Hash mismatch error
- Time gap error
- Ensure unsubscribed_users field has at most 100 items.
Too many requests (throttled)
No content
Identifier for the calling service. Must have a corresponding secret key
in KVKK_UNSUBSCRIPTION_SECRET_MAP setting.
KVKK-specific SHA-256 hash for request validation.
Calculated as: sha256(secret_key + request_datetime.isoformat()).hexdigest()
where secret_key is retrieved from KVKK_UNSUBSCRIPTION_SECRET_MAP[service_name].
Request timestamp in ISO format. Must be within 1 minute of server time (time gap validated as: (now - request_datetime).seconds / 60 < 1).
Unsubscription processed successfully. Users' communication preferences updated. Audit events created for each user update. Returns empty response body with 200 status.
No content
Validation error, hash mismatch, or time gap error.
Common errors:
- Hash mismatch error
- Time gap error
- Only email or phone field acceptable
- User data must include email or phone field
- Ensure unsubscribed_users field has at most 100 items.
Too many requests (throttled)
No content
Last updated
Was this helpful?

