Common Errors
This guide covers common errors you may encounter when working with the Consent Management API and how to resolve them.400 Bad Request
Missing Required Consents
Error:- US Policy:
eSignAct(E-Sign Act compliance),termsAndPrivacy,marketingNotifications,smsNotifications,emailNotifications - Global Policy:
termsAndPrivacy,marketingNotifications,smsNotifications,emailNotifications(excludeseSignAct)
Invalid Consent Type
Error:eSignActtermsAndPrivacymarketingNotificationssmsNotificationsemailNotifications
Invalid Consent Status
Error:- For creation:
granted,denied - For revocation:
revoked(set automatically)
Empty Onboarding ID
Error:onboardingId in request.
Solution:
Missing Tenant ID
Error:tenantId field in request.
Solution:
The
tenantId value should be provided by Baanx during onboarding. Contact support if you don’t have your tenant ID.409 Conflict
Duplicate Onboarding ID
Error:onboardingId that already exists.
Solution:
Generate a new unique onboardingId:
User Already Linked
Error:userId to a consent set that’s already been linked.
Solution:
Check if consent set is already linked before attempting to link:
404 Not Found
Consent Set Not Found
Error:- ❌ Incorrect
consentSetId - ❌ Consent set created in different environment (sandbox vs production)
- ❌ Using wrong tenant context
User Not Found
Error:Consent Not Found for Revocation
Error:498 Invalid Client Key
Error:x-client-key header.
Solution:
499 Missing Client Key
Error:x-client-key header not included in request.
Solution:
Ensure all requests include the required header:
500 Internal Server Error
Error:If 500 errors persist, contact Baanx support with your request details and timestamp for investigation.
Common Integration Issues
Issue: Consent Status Always Incomplete
Symptoms:- Created consent set with all required consents
- Status returns
incompleteinstead ofcomplete
-
Using
deniedstatus for required consents:Fix: Required consents must begranted: -
Revoked consents:
If any required consent has been revoked, status becomes
incomplete. Check:
Issue: Can’t Find Consent Set After Creation
Symptoms:- Created consent set successfully
- Can’t retrieve it using
GET /v2/consent/user/{userId}
userId yet.
Solution:
-
After creating consent set, store the
consentSetId: -
After user creation, link the consent set:
-
Now you can retrieve by
userId:
Issue: Metadata Not Appearing in Audit Trail
Symptoms:- Provided metadata in consent creation
- Metadata missing or incomplete in audit records
All metadata values must be serializable to JSON. Avoid passing functions, circular references, or undefined values.
Issue: HATEOAS Links Not Working
Symptoms:- Received
_linksobject in response - Following links results in 404 errors
href from _links directly:
Issue: Rate Limiting
Symptoms:- Requests failing intermittently
- 429 Too Many Requests errors
Debugging Tips
1. Enable Request Logging
2. Validate Before Sending
3. Test in Sandbox First
Always test consent flows in sandbox environment before production:Getting Help
If you continue experiencing issues:- Check API Status: Verify the Baanx API is operational
- Review Request/Response: Use logging to inspect full request and response
- Contact Support: Email support@baanx.com with:
- Request timestamp
- Request/response details (redact sensitive data)
x-request-idfrom response headers- Steps to reproduce
Next Steps
Implementation Guide
Return to implementation guide
API Reference
Complete endpoint documentation
Compliance Guide
Regulatory requirements
Overview
Back to consent management overview