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).
{
    "PendingUserAction": {
        "RedirectUrl": "https://sca.sandbox.mangopay.com/?token=0193cf51ed367151a0cb1c59def21e13"
    }
}
// This POST has no body
I