Fetch an Organisation by reference

You can use OrganisationManager::getByReference() to fetch an Organisation by its reference. This requires the authenticated user to have the View all organisations privilege in CXM.


/** @var \Jadu\Quantum\ServiceApiClient\Manager\OrganisationManager $organisationManager */
$organisationManager = $container->get('quantum_service_api_client.manager.organisation');

$organisation = $organisationManager->getByReference('OznQ12Oc');

This will give you an Organisation object, containing information such as:

  • name
  • address
  • telephone
  • vat number
  • registered business name
  • company registration number
  • charity reference number
  • NHS organisation code

results matching ""

    No results matching ""