ZEscrow Docs

Close Subaccount

Mutation Variables

{
"organizationIdentifier": "0fd7d511-2152-4b78-bc95-4e5d3c003520",
"subaccountIdentifier": "9d481fc3-dfdc-48c6-9e58-89e2f3219d31",
"memo": "User has left the app"
}

Mutation

mutation closeAccount($closeAccount: CloseAccountInput) {
closeAccount(closeAccount: $closeAccount) {
accruedInterest
authorizer {
...ContactFragment
}
authorizerIdentifier
balance {
...BalanceFragment
}
beneficiary {
...BeneficiaryFragment
}
closeDate
complianceAttestment
complianceDocuments {
...DocumentFragment
}
config {
...SubaccountConfigFragment
}
createdAt
earnedInterest
externalCompliance
folderPath
hasCompletedSignatureCard
identifier
initialAccruedInterest
initialBalance
interestRate
nickname
openedDate
result {
...subaccountPendingStepsFragment
}
status
subaccountFolder {
...SubaccountFolderFragment
}
subaccountFolderIdentifier
subaccountType
transactions {
...SubaccountTransactionFragment
}
updatedAt
}
}

Response

{
"data": {
"closeAccount": {
"accruedInterest": Decimal,
"authorizer": Contact,
"authorizerIdentifier": 4,
"balance": Balance,
"beneficiary": Beneficiary,
"closeDate": "2007-12-03T10:15:30Z",
"complianceAttestment": false,
"complianceDocuments": [Document],
"config": SubaccountConfig,
"createdAt": "2007-12-03T10:15:30Z",
"earnedInterest": Decimal,
"externalCompliance": true,
"folderPath": "xyz789",
"hasCompletedSignatureCard": false,
"identifier": 4,
"initialAccruedInterest": Decimal,
"initialBalance": Decimal,
"interestRate": Decimal,
"nickname": "abc123",
"openedDate": "2007-12-03T10:15:30Z",
"result": subaccountPendingSteps,
"status": "UNKNOWN",
"subaccountFolder": SubaccountFolder,
"subaccountFolderIdentifier": "4",
"subaccountType": "UNKNOWN",
"transactions": [SubaccountTransaction],
"updatedAt": "2007-12-03T10:15:30Z"
}
}
}