legalEntitiesByName
Search legal entities by name, to choose which one to link to a lead with saveLeadLegalEntity. Returns every legal entity whose name contains the text, ordered by name, so legal entities sharing a name can be told apart.
Arguments
Text the legal entities' names must contain, ignoring case.
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 LegalEntitiesByName($name: String!) {
legalEntitiesByName(name: $name) {
associatedEntities {
...LegalEntityAssociatedEntitiesTypeFragment
}
displayableNumber
id
industryClassificationCodes
legalAddress {
...RichAddressTypeFragment
}
legalEntityType
name
primaryRegistrationNumber
primaryTaxIdentifierNumber
secondaryRegistrationNumber
secondaryTaxIdentifierNumber
state
tradingName
}
}
Variables
{
"name": "manager-long-different-include-night"
}
Response
{
"data": {
"legalEntitiesByName": [
{
"associatedEntities": LegalEntityAssociatedEntitiesType,
"displayableNumber": "trade-truth-every-position-answer",
"id": "19603464",
"industryClassificationCodes": "shake-population-happy-memory-society",
"legalAddress": RichAddressType,
"legalEntityType": "SOLE_TRADER",
"name": "data-federal-federal-need-close",
"primaryRegistrationNumber": "red-let-be-but-paper",
"primaryTaxIdentifierNumber": "method-help-choose-interview-walk",
"secondaryRegistrationNumber": "rest-site-manager-hour-PM",
"secondaryTaxIdentifierNumber": "himself-suddenly-name-yes-model",
"state": "DRAFT",
"tradingName": "bed-effort-big-say-base"
}
]
}
}