Use consent-related services
In this tutorial, you will learn how to use the Account Information API to perform various account operations. By the end of this tutorial, you will be able to:
- Renew a consent request that has not been completed
- Revoke previously granted consent
Renew consent (U.S. only)
Use the API to:
- Fix consents in expired status to allow access to consumer's banking data.
- Resend consent request when customers don't complete account validation within timeout period (manually entered accounts only).
The following example shows the minimum required fields for the United States.
curl --request POST \
--url https://api-mock.payments.jpmorgan.com/paybybank/v2/consents/0488ecb133c34b6ab5e57a61680c463f/renew \
--header 'Accept: application/json' \
--header 'Client-Id: ' \
--header 'Content-Type: application/json' \
--header 'Idempotency-Key: ' \
--header 'Request-Id: ' \
--data '{
"locale": "en-ES",
"redirectUrl": "https://abc.merchant.com/callback"
}'
{
"consentLinkId": "ed392d86-83f3-4611-ac51-3a00442c8fc5",
"consentId": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
"referenceId": "120c99c4b05347d096ccd77f758f7315",
"consentLink": "https://globalconnect.jpmorgan.com?consentLinkId=ed392d86-83f3-4611-ac51-3a00442c8fc5&redirect_uri=https://test.merchant.com/callback&locale=en_US",
"updatedAt": "2025-05-29T14:06:01Z",
"consentLinkExpiringAt": "2025-05-29T14:16:45Z"
}
Revoke consent
For connected accounts, you can revoke customer consent that was previously granted. The following example shows the minimum required fields for the U.S.
curl --request DELETE \
--url https://api-mock.payments.jpmorgan.com/paybybank/v2/consents/0488ecb133c34b6ab5e57a61680c463f \
--header 'Accept: application/json' \
--header 'Client-Id: ' \
--header 'Idempotency-Key: ' \
--header 'Request-Id: '
204 (Consent Revoked Successfully)Use a branded U.S. experience
One single connectivity supports multiple configured customer experiences, you can use the optional Experience-Id header when you renew consent.
This selects the applicable UI or branding variant for the renewed consent journey. Use only the experience identifier assigned to your integration during onboarding.
For the header definition and operation details, see Renew consent in the AIS API reference.