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
| Parameter | Data type | Required? | Description |
|---|---|---|---|
| customer_id | string | yes | Customer ID |
none
none
| Parameter | Data type | Required? | Description |
|---|---|---|---|
| consents | array | yes | Every consent the customer authorised, newest first. Empty when there are none. |
| consents[].id | integer | yes | Consent ID |
| consents[].bank.slug | string | yes | Bank slug - identifier of the bank |
| consents[].bank.name | string | yes | Bank name |
| consents[].status | string | yes | `active`, `reconfirm` (the customer must reconfirm on the Planky page before their data is collected again), `revoked` or `expired` |
| consents[].created_at | string | yes | When the consent was created (UTC) |
| consents[].authorised_at | string | yes | When the customer authorised it at the bank (UTC) |
| consents[].last_reconfirmed_at | string | no | When the customer last reconfirmed it (UTC). Null if never reconfirmed. |
| consents[].reconfirmation_due_date | string | no | Date (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_date | string | no | Date (YYYY-MM-DD) the consent ends at the bank. The customer has to connect again to share data after it. |
| consents[].last_data_collected_at | string | no | When data was last collected from the bank for the accounts still shared (UTC). Null once the consent has ended. |
| consents[].revoked_at | string | no | When the consent was revoked (UTC) |
| consents[].revoked_reason | string | no | Who ended it: `customer`, `client`, `bank`, `planky` or `replaced_by_new_connection` |
| consents[].accounts | array | yes | The accounts the consent covers or covered |
| consents[].accounts[].id | integer | no | Account ID |
| consents[].accounts[].name | string | no | Account name |
| consents[].accounts[].masked_number | string | no | Last four characters of the account number, e.g. •••• 5564 |
| consents[].accounts[].shared_from | string | yes | When the account started being shared under this consent (UTC) |
| consents[].accounts[].shared_until | string | no | When it stopped being shared (UTC). Null while it is shared. |
| consents[].accounts[].end_reason | string | no | Why it stopped: `removed_at_reconfirmation`, `consent_revoked`, `consent_expired` or `replaced_by_new_consent` |
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)