accountByWorkflowId
Get the account associated with a workflow. Looks for an account number in the workflow context, then in step states. Returns null if no account number is found anywhere in the workflow.
Arguments
The ID of the workflow to look up the associated account for.
Returns
AccountTypeExamples
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 AccountByWorkflowId($workflowId: ID!) {
accountByWorkflowId(workflowId: $workflowId) {
accountType
accountUserAccessors {
...AccountUserAccessorAccessConnectionTypeConnectionFragment
}
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
}
establishment {
...EstablishmentTypeFragment
}
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
}
partnerAccessors {
...PartnerAccessorAccessConnectionTypeConnectionFragment
}
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
{
"workflowId": "32337091"
}
Response
{
"data": {
"accountByWorkflowId": {
"accountType": "BUSINESS",
"accountUserAccessors": AccountUserAccessorAccessConnectionTypeConnection,
"activeHardshipAgreements": [HardshipAgreementType],
"activeReferralSchemes": ReferralSchemeTypes,
"address": RichAddressType,
"agreements": AgreementConnectionTypeConnection,
"annualStatements": AnnualStatementConnectionTypeConnection,
"applications": AccountApplicationConnectionTypeConnection,
"assistanceAgreements": [AssistanceAgreementType],
"balance": 98,
"bill": BillInterface,
"billingAddress": "many-air-increase-inside-quite",
"billingAddressLine1": "learn-exist-trip-poor-hit",
"billingAddressLine2": "travel-against-office-civil-whom",
"billingAddressLine3": "make-pass-quickly-by-attorney",
"billingAddressLine4": "night-area-somebody-my-need",
"billingAddressLine5": "fire-environmental-true-almost-network",
"billingAddressPostcode": "girl-compare-within-able-talk",
"billingCountryCode": "message-instead-arrive-reason-investment",
"billingDeliveryPointIdentifier": "81535554",
"billingEmail": "positive-player-clear-party-son",
"billingName": "environmental-old-still-day-century",
"billingOptions": BillingOptionsType,
"billingSubName": "life-science-determine-put-list",
"billingTriggerConfiguration": BillingTriggerConfiguration,
"bills": BillConnectionTypeConnection,
"brand": "impact-assume-garden-computer-catch",
"business": BusinessType,
"campaigns": [AccountCampaignType],
"canModifyPayments": CanModifyPaymentsType,
"canRequestRefund": true,
"commsDeliveryPreference": "EMAIL",
"consents": [ConsentType],
"contributionAgreements": [ContributionAgreementType],
"createdAt": "1983-03-13T06:41:09.037484+00:00",
"creditStorage": CreditStorage,
"customerAssets": [CustomerAssetType],
"debtCollectionProceedings": [DebtCollectionProceedingType],
"directDebitInstructions": DirectDebitInstructionConnectionTypeConnection,
"documentAccessibility": "LARGE_PRINT",
"energyChequeCertificates": [EnergyChequeCertificate],
"energyCheques": [EnergyCheque],
"establishment": EstablishmentType,
"events": AccountEventConnectionTypeConnection,
"fileAttachments": [AccountFileAttachment],
"fraPotLedger": SupplementaryLedgerType,
"id": "60719059",
"isInHardship": true,
"ledgers": [LedgerType],
"marketSupplyAgreements": AgreementConnection,
"maximumRefund": MaximumRefundType,
"metadata": [Metadata],
"nextPaymentOrRepayment": FraPaymentsInterface,
"notes": [AccountNoteType],
"number": "central-business-force-alone-effort",
"overdueBalance": 20,
"paginatedFileAttachments": AccountFileAttachmentConnectionTypeConnection,
"paginatedPaymentForecast": PaymentForecastConnectionTypeConnection,
"partnerAccessors": PartnerAccessorAccessConnectionTypeConnection,
"paymentMethods": PaymentInstructionConnectionTypeConnection,
"paymentPlans": PaymentPlanConnectionTypeConnection,
"payments": AccountPaymentConnectionTypeConnection,
"paymentSchedules": PaymentScheduleConnectionTypeConnection,
"portfolio": PortfolioType,
"preferredLanguageForComms": "always-best-investment-concern-five",
"properties": [PropertyType],
"provisionalTransactions": ProvisionalTransactionConnectionTypeConnection,
"references": [AccountReferenceType],
"referrals": ReferralConnectionTypeConnection,
"referralsCreated": 1,
"reminders": AccountReminderConnectionTypeConnection,
"repayments": AccountRepaymentConnectionTypeConnection,
"requestRefundEligibility": RequestRefundEligibilityType,
"rewards": [RewardType],
"splitBillingAddress": "available-effect-southern-red-spring",
"status": "PENDING",
"supplyContracts": SupplyContractConnectionTypeConnection,
"transactions": TransactionConnectionTypeConnection,
"urn": "himself-turn-help-message-and",
"users": [AccountUserType]
}
}
}