Secure Payments API – POST Reset Password Unlock
Introduction
Unlocking reset passwords is one of the account management options available through the Secure Payments (formerly PCI Wallet) API. This step generally follows a Password Reset.
How To
After a password reset has been requested, you will need to provide the token that was sent to your email address to complete the reset process. The password reset email will include a link similar to this:
https://securepayments.loanpro.io/forgotPassword.php?token=NWM1NzQ2Y2EtZTFkMC00OTgzLTk0MjYtZjhiNzY1YzEzNzMz
This URL contains a token parameter that will be used in the request to set a new password. The request should include a token parameter with the token from the URL in the password reset email and a password parameter. This password still needs to adhere to the password requirements listed above.
You'll send this token and your new password to the following endpoint:
POST https://securepayments.loanpro.io/api/reset-password-unlock
Here's a JSON payload:
{
"token": "the-token-from-the-email-you-got",
"password": "LoanPro2021!"
}
And the same payload as a cURL request:
curl -X POST --header 'Content-Type: application/json' --header 'Accept: application/json' -d '{ \
"token": "NWM1NzQ2Y2EtZTFkMC00OTgzLTk0MjYtZjhiNzY1YzEzNzMz", \
"password": "YOUR NEW PASSWORD" \
}' 'https://securepayments.loanpro.io/api/reset-password-unlock'