Skip to main content

Arguments

phoneNumber : String

A phone number to find accounts associated with.

portfolioNumber : String

A portfolio number to find accounts associated with.

Returns

[AccountType]

Allowed Viewers

Customer Partner User Third party

Required Permissions

Can search for accounts

Query Complexity

1

Examples

The example data in the variables and responses below are autogenerated values designed to resemble real inputs. They do not represent actual customer data, and in some cases may require additional validation.

Query

query Accounts( $phoneNumber: String, $portfolioNumber: String ) { accounts( phoneNumber: $phoneNumber, portfolioNumber: $portfolioNumber ) { accountType activeHardshipAgreements { ...HardshipAgreementTypeFragment } activeReferralSchemes { ...ReferralSchemeTypesFragment } address { ...RichAddressTypeFragment } agreements { ...AgreementConnectionTypeConnectionFragment } annualStatements { ...AnnualStatementConnectionTypeConnectionFragment } applications { ...AccountApplicationConnectionTypeConnectionFragment } assistanceAgreements { ...AssistanceAgreementTypeFragment } balance bill { ...BillInterfaceFragment } billingAddress billingAddressLine1 billingAddressLine2 billingAddressLine3 billingAddressLine4 billingAddressLine5 billingAddressPostcode billingCountryCode billingDeliveryPointIdentifier billingEmail billingName billingOptions { ...BillingOptionsTypeFragment } billingSubName billingTriggerConfiguration { ...BillingTriggerConfigurationFragment } bills { ...BillConnectionTypeConnectionFragment } brand business { ...BusinessTypeFragment } campaigns { ...AccountCampaignTypeFragment } canModifyPayments { ...CanModifyPaymentsTypeFragment } canRequestRefund commsDeliveryPreference consents { ...ConsentTypeFragment } contributionAgreements { ...ContributionAgreementTypeFragment } createdAt creditStorage { ...CreditStorageFragment } customerAssets { ...CustomerAssetTypeFragment } debtCollectionProceedings { ...DebtCollectionProceedingTypeFragment } directDebitInstructions { ...DirectDebitInstructionConnectionTypeConnectionFragment } documentAccessibility energyChequeCertificates { ...EnergyChequeCertificateFragment } energyCheques { ...EnergyChequeFragment } events { ...AccountEventConnectionTypeConnectionFragment } fileAttachments { ...AccountFileAttachmentFragment } fraPotLedger { ...SupplementaryLedgerTypeFragment } id isInHardship ledgers { ...LedgerTypeFragment } marketSupplyAgreements { ...AgreementConnectionFragment } maximumRefund { ...MaximumRefundTypeFragment } metadata { ...MetadataFragment } nextPaymentOrRepayment { ...FraPaymentsInterfaceFragment } notes { ...AccountNoteTypeFragment } number overdueBalance paginatedFileAttachments { ...AccountFileAttachmentConnectionTypeConnectionFragment } paginatedPaymentForecast { ...PaymentForecastConnectionTypeConnectionFragment } paymentMethods { ...PaymentInstructionConnectionTypeConnectionFragment } paymentPlans { ...PaymentPlanConnectionTypeConnectionFragment } payments { ...AccountPaymentConnectionTypeConnectionFragment } paymentSchedules { ...PaymentScheduleConnectionTypeConnectionFragment } portfolio { ...PortfolioTypeFragment } preferredLanguageForComms properties { ...PropertyTypeFragment } provisionalTransactions { ...ProvisionalTransactionConnectionTypeConnectionFragment } references { ...AccountReferenceTypeFragment } referrals { ...ReferralConnectionTypeConnectionFragment } referralsCreated reminders { ...AccountReminderConnectionTypeConnectionFragment } repayments { ...AccountRepaymentConnectionTypeConnectionFragment } requestRefundEligibility { ...RequestRefundEligibilityTypeFragment } rewards { ...RewardTypeFragment } splitBillingAddress status supplyContracts { ...SupplyContractConnectionTypeConnectionFragment } transactions { ...TransactionConnectionTypeConnectionFragment } urn users { ...AccountUserTypeFragment } } }

Variables

{ "phoneNumber": "sound-word-trade-production-garden", "portfolioNumber": "P-81575DE5" }

Response

{ "data": { "accounts": [ { "accountType": "BUSINESS", "activeHardshipAgreements": [HardshipAgreementType], "activeReferralSchemes": ReferralSchemeTypes, "address": RichAddressType, "agreements": AgreementConnectionTypeConnection, "annualStatements": AnnualStatementConnectionTypeConnection, "applications": AccountApplicationConnectionTypeConnection, "assistanceAgreements": [AssistanceAgreementType], "balance": 31, "bill": BillInterface, "billingAddress": "away-movie-newspaper-claim-heart", "billingAddressLine1": "again-describe-dog-American-middle", "billingAddressLine2": "couple-mean-partner-your-baby", "billingAddressLine3": "huge-let-note-answer-bed", "billingAddressLine4": "behind-spring-and-million-since", "billingAddressLine5": "again-teacher-letter-reveal-coach", "billingAddressPostcode": "card-no-step-side-PM", "billingCountryCode": "yeah-sort-network-recognize-recognize", "billingDeliveryPointIdentifier": "36940104", "billingEmail": "many-everything-up-else-evidence", "billingName": "compare-return-base-guess-up", "billingOptions": BillingOptionsType, "billingSubName": "election-edge-his-not-add", "billingTriggerConfiguration": BillingTriggerConfiguration, "bills": BillConnectionTypeConnection, "brand": "west-where-difficult-audience-often", "business": BusinessType, "campaigns": [AccountCampaignType], "canModifyPayments": CanModifyPaymentsType, "canRequestRefund": true, "commsDeliveryPreference": "EMAIL", "consents": [ConsentType], "contributionAgreements": [ContributionAgreementType], "createdAt": "2004-12-30T19:43:30.276071+00:00", "creditStorage": CreditStorage, "customerAssets": [CustomerAssetType], "debtCollectionProceedings": [DebtCollectionProceedingType], "directDebitInstructions": DirectDebitInstructionConnectionTypeConnection, "documentAccessibility": "LARGE_PRINT", "energyChequeCertificates": [EnergyChequeCertificate], "energyCheques": [EnergyCheque], "events": AccountEventConnectionTypeConnection, "fileAttachments": [AccountFileAttachment], "fraPotLedger": SupplementaryLedgerType, "id": "82881841", "isInHardship": true, "ledgers": [LedgerType], "marketSupplyAgreements": AgreementConnection, "maximumRefund": MaximumRefundType, "metadata": [Metadata], "nextPaymentOrRepayment": FraPaymentsInterface, "notes": [AccountNoteType], "number": "investment-the-officer-network-hospital", "overdueBalance": 26, "paginatedFileAttachments": AccountFileAttachmentConnectionTypeConnection, "paginatedPaymentForecast": PaymentForecastConnectionTypeConnection, "paymentMethods": PaymentInstructionConnectionTypeConnection, "paymentPlans": PaymentPlanConnectionTypeConnection, "payments": AccountPaymentConnectionTypeConnection, "paymentSchedules": PaymentScheduleConnectionTypeConnection, "portfolio": PortfolioType, "preferredLanguageForComms": "bar-various-check-project-air", "properties": [PropertyType], "provisionalTransactions": ProvisionalTransactionConnectionTypeConnection, "references": [AccountReferenceType], "referrals": ReferralConnectionTypeConnection, "referralsCreated": 52, "reminders": AccountReminderConnectionTypeConnection, "repayments": AccountRepaymentConnectionTypeConnection, "requestRefundEligibility": RequestRefundEligibilityType, "rewards": [RewardType], "splitBillingAddress": "him-radio-opportunity-can-Mrs", "status": "PENDING", "supplyContracts": SupplyContractConnectionTypeConnection, "transactions": TransactionConnectionTypeConnection, "urn": "avoid-drop-high-experience-product", "users": [AccountUserType] } ] } }