Skip to main content
POST
/
v2.01
/
{ClientId}
/
sca
/
users
/
{UserId}
/
consent
// This POST has no body
{
    "PendingUserAction": {
        "RedirectUrl": "https://sca.sandbox.mangopay.com/?token=0193cf51ed367151a0cb1c59def21e13"
    }
}
This endpoint allows your platform to manage consent given by the end user for SCA-triggering actions taken under proxy. Your platform needs to retrieve the returned PendingUserAction.RedirectUrl, add an encoded returnUrl query parameter for them to be returned to after the SCA session, and redirect the user (read more about SCA redirection). On the SCA session link in the response, the user can:
  • Give consent for the first time
  • Give consent to additional actions included by your platform
  • Revoke consent (which your platform must allow at any time)
Read more about proxy consent for SCA-triggering actions

Path parameters

UserId
string
required
The unique identifier of the user.

Responses

200

PendingUserAction
object
Object containing the link needed for SCA redirection if triggered by the API call (otherwise returned null).
{
    "Message": "One or several required parameters are missing or incorrect. An incorrect resource ID also raises this kind of error.",
    "Type": "param_error",
    "Id": "b66bd1bf-6176-4416-8e1e-82e4f5cffad7#1762179938",
    "Date": 1762179940,
    "errors": {
        "Invalid SCA request": "Consent cannot be given when no proxy is required by the client."
    }
}
{
    "PendingUserAction": {
        "RedirectUrl": "https://sca.sandbox.mangopay.com/?token=0193cf51ed367151a0cb1c59def21e13"
    }
}
// This POST has no body