Added
Consents Listing and Retrieval
about 3 hours ago
Consents Breaking Changes
The Consents API responses have been updated to support multiple destination accounts and richer account information. These updates affect both listing and retrieval and include breaking changes to an existing field.
Breaking changes
GET /consents/v1andGET /consents/v1/{consent_id}: Thedestination_account_idfield in the response has changed.- Its required status has changed. Do not assume it is always present.
- Its type has changed. Update your response model and any strict validators or deserializers to accept the new type.
- If your integration previously read or validated a single
destination_account_id, you must now handle both the updateddestination_account_idfield and the newdestination_account_idsarray described below.
What you should change
- Update your response parsing for both endpoints to:
- Accept the updated
destination_account_idtype and handle it being absent. - Prefer
destination_account_idswhen present to capture all permitted destinations, and fall back todestination_account_idwhen only a single destination applies. - If you branch logic for immediate payments, also read
immediate_payment.destination_account_idwhen present.
- Accept the updated
New and expanded response data
-
GET /consents/v1— List customers consentsdata.[].beneficiary_typeis now returned. This identifies the kind of beneficiary covered by the consent and allows you to tailor payment or transfer behavior based on beneficiary category.data.[].destination_account_idsis now returned. Use this to read all destination accounts that the consent allows. This is important if a consent permits multiple destinations.data.[].immediate_payment.destination_account_idis now returned for consents that include immediate payment settings. Use this to determine the destination account specifically for immediate payments under the consent.data.[].consented_account.account_sub_typeis now returned. This provides a finer classification of the consented account using the newAccountSubTypemodel.
-
GET /consents/v1/{consent_id}— Retrieve consent detailsbeneficiary_typeis now returned for the consent, letting you identify the beneficiary category when working with a single consent.destination_account_idsis now returned to enumerate all destination accounts allowed by this consent.immediate_payment.destination_account_idis now returned when the consent defines an immediate payment destination.consented_account.account_sub_typeis now returned to indicate the sub-type of the consented account via theAccountSubTypemodel.
New data model
AccountSubTypeis introduced and used inconsented_account.account_sub_type. Incorporate this into your models to read the more granular account classification where provided.
