Get Customer Consents

Lists every consent your customer has given, at every bank, newest first: its status, its dates, the accounts it covers or covered, and why it ended. The data comes from Planky's own record, so the bank is not called.

A consent with status reconfirm needs the customer's reconfirmation: their data is not collected until they reconfirm. Send them a link from Create Reconfirmation Link.

GET

/public/v3/customers/{customer_id}/consents

Parameters

ParameterData typeRequired?Description
customer_idstringyesCustomer ID

Query parameters

none

Request Body Parameters

none

Response Body Parameters

ParameterData typeRequired?Description
consentsarrayyesEvery consent the customer authorised, newest first. Empty when there are none.
consents[].idintegeryesConsent ID
consents[].bank.slugstringyesBank slug - identifier of the bank
consents[].bank.namestringyesBank name
consents[].statusstringyes`active`, `reconfirm` (the customer must reconfirm on the Planky page before their data is collected again), `revoked` or `expired`
consents[].created_atstringyesWhen the consent was created (UTC)
consents[].authorised_atstringyesWhen the customer authorised it at the bank (UTC)
consents[].last_reconfirmed_atstringnoWhen the customer last reconfirmed it (UTC). Null if never reconfirmed.
consents[].reconfirmation_due_datestringnoDate (YYYY-MM-DD) by which the customer must reconfirm. Null when the consent has ended, or when it ends on or before that date (see end_date): reconfirming cannot extend a consent past its end date.
consents[].end_datestringnoDate (YYYY-MM-DD) the consent ends at the bank. The customer has to connect again to share data after it.
consents[].last_data_collected_atstringnoWhen data was last collected from the bank for the accounts still shared (UTC). Null once the consent has ended.
consents[].revoked_atstringnoWhen the consent was revoked (UTC)
consents[].revoked_reasonstringnoWho ended it: `customer`, `client`, `bank`, `planky` or `replaced_by_new_connection`
consents[].accountsarrayyesThe accounts the consent covers or covered
consents[].accounts[].idintegernoAccount ID
consents[].accounts[].namestringnoAccount name
consents[].accounts[].masked_numberstringnoLast four characters of the account number, e.g. •••• 5564
consents[].accounts[].shared_fromstringyesWhen the account started being shared under this consent (UTC)
consents[].accounts[].shared_untilstringnoWhen it stopped being shared (UTC). Null while it is shared.
consents[].accounts[].end_reasonstringnoWhy it stopped: `removed_at_reconfirmation`, `consent_revoked`, `consent_expired` or `replaced_by_new_consent`

Request example

Response example:

Was this article helpful?

Friendly Score UK Ltd.

41 Luke Street

London EC2A 4DP

Call us on +44 7577 470461

Company registered in England

Company number 09168668, ICO ZA111687

VAT registration number 206 9758 80

Authorised and Regulated by the Financial Conduct Authority. (FRN: 821100, 781963)