AccountInterface
Implemented by
Fields
The type of account.
List of active hardship agreements for the user when is_in_hardship is True.
The referral schemes currently active for this account.
The billing address of this account, stored in the new libaddressinput-based format.
Note that name and organization are very unlikely to be
supplied here; the billing_name field on the account
itself is generally used for that purpose instead.
Fetch annual statements for the account.
Applications by this account to become our customer. More recent applications will be listed first.
Arguments
The account application status.
Assistance agreements for account.
The current account balance.
Arguments
If this variable is set to true, the balance will be calculated based on the sum of balances on all ledgers configured to contribute to this account's balance. Otherwise, only the main ledger's balance will be fetched (legacy behaviour). If you are unsure, set this value to true.
Fetch a specific issued bill (invoice/statement) for the account.
Arguments
The unique identifier of the bill.
The unique identifier of the bill. A pending billing document will not have an identifier yet. And not all finalized billing documents will have an identifier. Prefer using the id field unless advised by Kraken.
The number of the ledger for the bill. When provided, only the period- or item-based documentfor this account that is linked to that ledger is returned; pre-kraken, collective bills, and legacy bills are excluded.
The billing address of the account.
The billing email of the account.
The billing name of the account.
Information about the account's billing cycle.
The billing sub name of the account.
The active billing trigger configuration for the account.
Fetch issued bills (invoices/statements) for the account.
Arguments
Optional date representing the beginning of the search results. This date value is inclusive.
Include bills without PDFs.
Include held statements within the results.
Include pre-Kraken / historical statements within the results.
Include item-based billing documents (invoices) within the results.
Include open statements. This flag needs to be used along with includeBillsWithoutPDF=false otherwise results will prove unexpected.
Optional date representing the beginning of the search results based on issued date. This date value is inclusive.
Optional date representing the end of the search results based on issued date. This date value is exclusive.
The number of a ledger for the bill. When provided, only period- or item-based documents for this account that are linked to that ledger are returned; collective bills and legacy bills are excluded. Historic/pre-Kraken bills are unaffected by this filter and are included or excluded solely by includeHistoricStatements.
Only include bills emailed to the current user's email.
The order in which to return the bills.
Optional date representing the end of the search results. This date value is exclusive.
The brand of the account.
Business info related to a business account.
The company type of a business account.
Use `business.businessType` instead
- Marked as deprecated on 2022-03-09.
- Scheduled for removal on or after 2024-01-01.
The campaigns associated with an account.
Whether the account can request a credit refund.
The method the account has specified they prefer we contact them.
Use `commsDeliveryPreference` instead
- Marked as deprecated on 2022-05-27.
- Scheduled for removal on or after 2024-01-01.
The complaints associated with an account.
Consents linked to this account.
Contribution agreements for account.
The datetime that the account was originally created.
Get customer assets for an account.
Debt collection proceedings for account.
The direct debit instructions of the account
Arguments
Filter the direct debit instructions by status
The document accessibility preference of the account.
The account events that were recorded for the account.
Arguments
Filter the account events by their type.
Files attached to this account.
True if there is an active Hardship Agreement for this account. False otherwise.
Ledgers provide the foundation of bookkeeping functionality. Similar to a bank account, they allow us to keep track of financial activity on a particular customer account.
Arguments
If this variable is set to false, debt ledgerswill be filtered out of the ledgers list.
The ledger to return.
Please use 'ledgerNumber' instead. This is in the form of 'L-123456789A'
- Marked as deprecated on 2024-10-22.
- Scheduled for removal on or after 2025-06-25.
The ledger to return by its number.
The maximum amount a customer is allowed to request as a refund and the reason why that's the maximum amount.
Arguments
The ledger number to calculate maximum refund for.
Metadata associated with the account.
Notes for the account.
A code that uniquely identifies the account.
The current account overdue balance.
Files attached to this account.
Paginated payment forecasts for an account. Starts from today's date (inclusive). The interface supports last but does not guarantee 'lastness'.
Arguments
The end date to retrieve forecasts for. This end date is inclusive.
The ledger to return payment forecasts from. Defaults to the main ledger when no ID is passed.
Please use 'ledgerNumber' instead. This is in the form of 'L-123456789A'
- Marked as deprecated on 2024-10-22.
- Scheduled for removal on or after 2025-06-25.
The number of the ledger to return payment forecasts from. Defaults to the main ledger when no number is passed.
A list displaying the payment forecast for an account. The list starts from today's date (inclusive).
Please use 'paginatedPaymentForecast' instead.
- Marked as deprecated on 2024-01-03.
- Scheduled for removal on or after 2025-01-01.
Arguments
The end date to retrieve forecasts for. This end date is inclusive.
The ledger to return payment forecasts from. Defaults to the main ledger when no ID is passed.
Please use 'ledgerNumber' instead. This is in the form of 'L-123456789A'
- Marked as deprecated on 2024-10-22.
- Scheduled for removal on or after 2025-06-25.
The number of the ledger to return payment forecasts from. Defaults to the main ledger when no number is passed.
The payment instructions of the account.
Arguments
Filter the payment instructions by status.
The payment plans that have been created for this account.
The payments made into an account from a payment instruction.
Arguments
Whether to include payment promises (of any kind: made, broken or fulfilled) or not. The default is to include them.
The id of the ledger to return payments from.
Please use 'ledgerNumber' instead. This is in the form of 'L-123456789A'
- Marked as deprecated on 2024-10-22.
- Scheduled for removal on or after 2025-06-25.
WARNING: Will be mandatory in future versions
The number of the ledger to return payments from.
Filter for payments that were taken for a particular reason.
The schedules that describe how we would expect to take payments for an account on a given month.
Arguments
Please use 'includeDormant' instead.
- Marked as deprecated on 2023-12-06.
- Scheduled for removal on or after 2024-12-06.
If false, we remove the currently valid schedule if it has already fulfilled its purpose and will have no further impact on customer payments, along with any schedules which are not valid from today.
The ledger id to return the payment schedules from.
Please use 'ledgerNumber' instead. This is in the form of 'L-123456789A'
- Marked as deprecated on 2024-10-22.
- Scheduled for removal on or after 2025-06-25.
The ledger number to return the payment schedules from.
The ledger to return transactions from.
The portfolio this account is linked to.
The language that the account preferred for communications.
Account references linked to this account.
The referrals created by this account.
Arguments
Only return referrals with the specified status. Return all referrals by default.
Number of referrals created by this account.
The reminders associated with an account.
The repayments that have been requested for this account.
Arguments
Only return repayments whose status matches one of these statuses.
Details about the eligibility status for requesting a refund.
Arguments
The ledger number to check refund eligibility.
The rewards applied to this account.
List of billing address lines.
The current status of the account.
Fetch transactions that have taken place on the account.
Arguments
Optional date representing the beginning of the postedDate range filter. This date value is inclusive.
In a multi-ledger scenario, include all ledgers' transactions if true. Analogously, if false and no ledgerId or ledger_number argument is present, the list of transactions defaults to the main ledger (legacy behaviour).
The ledger to return transactions from.
Please use 'ledgerNumber' instead. This is in the form of 'L-123456789A'
- Marked as deprecated on 2024-10-22.
- Scheduled for removal on or after 2025-06-25.
The number of the ledger to return transactions from.
The order in which to return the transactions.
Optional date representing the end of the postedDate range filter. This date value is exclusive.
Include only these specific transaction types in the result.
Exclude these specific transaction types from the result.
Unique reference number from a 3rd party enrolment.
Example
{
"accountType": "BUSINESS",
"activeHardshipAgreements": [HardshipAgreementType],
"activeReferralSchemes": ReferralSchemeTypes,
"address": RichAddressType,
"annualStatements": AnnualStatementConnectionTypeConnection,
"applications": AccountApplicationConnectionTypeConnection,
"assistanceAgreements": [AssistanceAgreementType],
"balance": 13,
"bill": BillInterface,
"billingAddress": "total-from-happy-nearly-PM",
"billingAddressLine1": "old-machine-plant-suggest-land",
"billingAddressLine2": "matter-special-about-claim-foot",
"billingAddressLine3": "degree-to-challenge-blue-fish",
"billingAddressLine4": "meet-start-yet-system-participant",
"billingAddressLine5": "also-as-piece-star-enter",
"billingAddressPostcode": "wide-nearly-off-peace-avoid",
"billingCountryCode": "color-view-environment-bar-executive",
"billingDeliveryPointIdentifier": "96048293",
"billingEmail": "enjoy-decision-everyone-lose-scene",
"billingName": "feeling-them-wish-state-avoid",
"billingOptions": BillingOptionsType,
"billingSubName": "firm-understand-teacher-card-kind",
"billingTriggerConfiguration": BillingTriggerConfiguration,
"bills": BillConnectionTypeConnection,
"brand": "hair-section-agreement-firm-seek",
"business": BusinessType,
"campaigns": [AccountCampaignType],
"canRequestRefund": true,
"commsDeliveryPreference": "EMAIL",
"complaints": ComplaintConnectionTypeConnection,
"consents": [ConsentType],
"contributionAgreements": [ContributionAgreementType],
"createdAt": "2020-03-07T11:44:42.402298+00:00",
"customerAssets": [CustomerAssetType],
"debtCollectionProceedings": [DebtCollectionProceedingType],
"directDebitInstructions": DirectDebitInstructionConnectionTypeConnection,
"documentAccessibility": "LARGE_PRINT",
"events": AccountEventConnectionTypeConnection,
"fileAttachments": [AccountFileAttachment],
"isInHardship": true,
"ledgers": [LedgerType],
"maximumRefund": MaximumRefundType,
"metadata": [Metadata],
"notes": [AccountNoteType],
"number": "American-open-professional-their-interesting",
"overdueBalance": 26,
"paginatedFileAttachments": AccountFileAttachmentConnectionTypeConnection,
"paginatedPaymentForecast": PaymentForecastConnectionTypeConnection,
"paymentMethods": PaymentInstructionConnectionTypeConnection,
"paymentPlans": PaymentPlanConnectionTypeConnection,
"payments": AccountPaymentConnectionTypeConnection,
"paymentSchedules": PaymentScheduleConnectionTypeConnection,
"portfolio": PortfolioType,
"preferredLanguageForComms": "do-onto-wind-media-return",
"provisionalTransactions": ProvisionalTransactionConnectionTypeConnection,
"references": [AccountReferenceType],
"referrals": ReferralConnectionTypeConnection,
"referralsCreated": 59,
"reminders": AccountReminderConnectionTypeConnection,
"repayments": AccountRepaymentConnectionTypeConnection,
"requestRefundEligibility": RequestRefundEligibilityType,
"rewards": [RewardType],
"splitBillingAddress": "cultural-area-while-friend-who",
"status": "PENDING",
"transactions": TransactionConnectionTypeConnection,
"urn": "rich-detail-usually-act-word"
}