Lavanda Developer Docs
  • Welcome
  • Quickstart
    • Getting Started
    • Versioning
    • API Explorer
  • Concepts
    • Structure & Terms
    • Auth
    • Webhooks
    • API Paradigms
      • Connections
      • Pagination (Cursors)
      • Client Name Header
  • CRM
    • Leads
    • Contacts
    • Companies
    • Institutions
    • Offers
    • Subjects
  • Bookings
    • Bookings
  • Spaces & Inventory
    • Buildings
    • Unit Types
    • Units
  • Availability
    • Availability
  • Pricing
    • Pricing
    • Product
  • Ecommerce
    • Flow
    • Search
    • Checkout
  • Guest Messaging
    • General
  • Finance & Accounting
    • Invoices
    • Payments
  • Tickets
    • Tickets
    • Tasks
    • Charges
  • Users
    • Queries
      • whoami
    • Mutations
  • Legacy
    • README
    • Auth
    • Create Lead
    • Legacy Azure API
Powered by GitBook
On this page
  • Types
  • Search / List companies
  • Get company
  • Edit company
  • Delete company
  1. CRM

Companies

Types

type CrmCompany {
    id: ID
    domain: string
    name: string
    notes: string
    taxNumber: string
    address: Address # See building type
}

Search / List companies

input CrmCompaniesSearchQueryInput {
   workspaceIds: ID[]
}

query {
    crm {
       companies {
          search(
             q: CrmCompaniesSearchQueryInput
          ) {
             edges {
                node {
                   # CrmCompany
                }
             }
          }   
       }
    }
}

* For brevity cursor types have been excluded - See Pagination (Cursors)

** For brevity most connection keys have been excluded - See Connections

Get company

query {
    crm {
       company(companyId: ID) {
          # CrmCompany
       }
    }
}

Edit company

mutation {
    crm {
       companies {
          update(
             companyId: ID
             data: CrmCompany
          ) {
             # CrmCompany
          }   
       }
    }
}

Delete company

mutation {
    crm {
       companies {
          delete(
             companyId: ID
          ) 
       }
    }
}
PreviousContactsNextInstitutions

Last updated 1 year ago