cURL
curl --request POST \ --url https://sandbox.finhub.cloud/api/v2.1/customer/organization/{organizationId}/consents/{consentType} \ --header 'Authorization: <authorization>' \ --header 'Content-Type: application/json' \ --header 'X-Forwarded-For: <x-forwarded-for>' \ --header 'X-Forwarded-From: <x-forwarded-from>' \ --header 'X-Tenant-ID: <x-tenant-id>' \ --header 'deviceId: <deviceid>' \ --header 'platform: <platform>' \ --data ' { "accepted": true, "version": "1.0" } '
Accept terms/privacy/data-processing consent for a B2B organization
POST /api/v2.1/customer/organization/{organizationId}/consents/{consentType}
terms
privacy
data-processing
{ "accepted": true, "version": "1.0" }
{ "code": 200, "message": "Success" }
true
"1.0"
Consent accepted