CompanyService


Click here for a complete list of operations.

GetCompanies

Gets a list of companies based on search parameters. You have to specify which properties you want returned.

Test

The test form is only available for requests from the local machine.

SOAP 1.1

The following is a sample SOAP 1.1 request and response. The placeholders shown need to be replaced with actual values.

POST /CRM/Company/V001/CompanyService.asmx HTTP/1.1
Host: api.24sevenoffice.com
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://24sevenOffice.com/webservices/GetCompanies"

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <GetCompanies xmlns="http://24sevenOffice.com/webservices">
      <searchParams>
        <ExternalId>string</ExternalId>
        <CompanyId>int</CompanyId>
        <CompanyIds>
          <int>int</int>
          <int>int</int>
        </CompanyIds>
        <CompanyName>string</CompanyName>
        <ChangedAfter>dateTime</ChangedAfter>
        <CompanyEmail>string</CompanyEmail>
        <CompanyPhone>string</CompanyPhone>
      </searchParams>
      <returnProperties>
        <string>string</string>
        <string>string</string>
      </returnProperties>
    </GetCompanies>
  </soap:Body>
</soap:Envelope>
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <GetCompaniesResponse xmlns="http://24sevenOffice.com/webservices">
      <GetCompaniesResult>
        <Company>
          <APIException>
            <Type>string</Type>
            <Message>string</Message>
            <StackTrace>string</StackTrace>
          </APIException>
          <Id>int</Id>
          <ExternalId>string</ExternalId>
          <OrganizationNumber>string</OrganizationNumber>
          <Name>string</Name>
          <FirstName>string</FirstName>
          <NickName>string</NickName>
          <Addresses>
            <Post xsi:nil="true" />
            <Delivery xsi:nil="true" />
            <Visit xsi:nil="true" />
            <Invoice xsi:nil="true" />
          </Addresses>
          <PhoneNumbers>
            <Home xsi:nil="true" />
            <Fax xsi:nil="true" />
            <Mobile xsi:nil="true" />
            <Primary xsi:nil="true" />
            <Work xsi:nil="true" />
          </PhoneNumbers>
          <EmailAddresses>
            <Home xsi:nil="true" />
            <Invoice xsi:nil="true" />
            <Primary xsi:nil="true" />
            <Work xsi:nil="true" />
            <Alternative xsi:nil="true" />
          </EmailAddresses>
          <Url>string</Url>
          <Country>string</Country>
          <Note>string</Note>
          <InvoiceLanguage>string</InvoiceLanguage>
          <Type>None or Lead or Consumer or Business or Supplier</Type>
          <Username>string</Username>
          <Password>string</Password>
          <IncorporationDate>dateTime</IncorporationDate>
          <DateCreated>dateTime</DateCreated>
          <Status>int</Status>
          <PriceList>int</PriceList>
          <Owner>int</Owner>
          <BankAccountNo>string</BankAccountNo>
          <TermsOfDeliveryId>int</TermsOfDeliveryId>
          <AccountDebit>short</AccountDebit>
          <AccountCredit>short</AccountCredit>
          <Discount>decimal</Discount>
          <TypeGroup>int</TypeGroup>
          <ShareCapital>decimal</ShareCapital>
          <NumberOfEmployees>int</NumberOfEmployees>
          <Turnover>decimal</Turnover>
          <Profit>decimal</Profit>
          <IndustryId>int</IndustryId>
          <MemberNo>int</MemberNo>
          <DateChanged>dateTime</DateChanged>
          <BlockInvoice>boolean</BlockInvoice>
          <Relations>
            <Relation xsi:nil="true" />
            <Relation xsi:nil="true" />
          </Relations>
          <Maps>
            <CompanyMap xsi:nil="true" />
            <CompanyMap xsi:nil="true" />
          </Maps>
          <DistributionMethod>Unchanged or Print or EMail or ElectronicInvoice or Default</DistributionMethod>
          <CurrencyId>LOCAL or AED or AFN or ALL or AMD or ANG or AOA or ARS or AUD or AWG or AZN or BAM or BBD or BDT or BGN or BHD or BIF or BMD or BND or BOB or BOV or BRL or BSD or BTN or BWP or BYN or BYR or BZD or CAD or CDF or CHE or CHF or CHW or CLF or CLP or CNY or COP or COU or CRC or CUC or CUP or CVE or CZK or DJF or DKK or DOP or DZD or EEK or EGP or ERN or ETB or EUR or FJD or FKP or GBP or GEL or GHS or GIP or GMD or GNF or GTQ or GYD or HKD or HNL or HRK or HTG or HUF or IDR or ILS or INR or IQD or IRR or ISK or JMD or JOD or JPY or KES or KGS or KHR or KMF or KPW or KRW or KWD or KYD or KZT or LAK or LBP or LKR or LRD or LSL or LTL or LVL or LYD or MAD or MDL or MGA or MKD or MMK or MNT or MOP or MRO or MTL or MUR or MVR or MWK or MXN or MXV or MYR or MZN or NAD or NGN or NIO or NOK or NPR or NZD or OMR or PAB or PEN or PGK or PHP or PKR or PLN or PYG or QAR or RON or RSD or RUB or RWF or SAR or SBD or SCR or SDG or SEK or SGD or SHP or SKK or SLL or SOS or SRD or STD or SYP or SZL or THB or TJS or TMT or TND or TOP or TRY or TTD or TWD or TZS or UAH or UGX or USD or UYU or UZS or VEF or VND or VUV or WST or XAF or XAG or XAU or XBA or XBB or XBC or XBD or XCD or XDR or XFU or XOF or XPD or XPF or XPT or XTS or XXX or YER or ZAR or ZMK or ZWL or ZWD</CurrencyId>
          <PaymentTime>short</PaymentTime>
          <GlnNumber>string</GlnNumber>
          <Factoring>boolean</Factoring>
          <LedgerCustomerAccount>short</LedgerCustomerAccount>
          <LedgerSupplierAccount>short</LedgerSupplierAccount>
          <VatNumber>string</VatNumber>
          <Private>boolean</Private>
        </Company>
        <Company>
          <APIException>
            <Type>string</Type>
            <Message>string</Message>
            <StackTrace>string</StackTrace>
          </APIException>
          <Id>int</Id>
          <ExternalId>string</ExternalId>
          <OrganizationNumber>string</OrganizationNumber>
          <Name>string</Name>
          <FirstName>string</FirstName>
          <NickName>string</NickName>
          <Addresses>
            <Post xsi:nil="true" />
            <Delivery xsi:nil="true" />
            <Visit xsi:nil="true" />
            <Invoice xsi:nil="true" />
          </Addresses>
          <PhoneNumbers>
            <Home xsi:nil="true" />
            <Fax xsi:nil="true" />
            <Mobile xsi:nil="true" />
            <Primary xsi:nil="true" />
            <Work xsi:nil="true" />
          </PhoneNumbers>
          <EmailAddresses>
            <Home xsi:nil="true" />
            <Invoice xsi:nil="true" />
            <Primary xsi:nil="true" />
            <Work xsi:nil="true" />
            <Alternative xsi:nil="true" />
          </EmailAddresses>
          <Url>string</Url>
          <Country>string</Country>
          <Note>string</Note>
          <InvoiceLanguage>string</InvoiceLanguage>
          <Type>None or Lead or Consumer or Business or Supplier</Type>
          <Username>string</Username>
          <Password>string</Password>
          <IncorporationDate>dateTime</IncorporationDate>
          <DateCreated>dateTime</DateCreated>
          <Status>int</Status>
          <PriceList>int</PriceList>
          <Owner>int</Owner>
          <BankAccountNo>string</BankAccountNo>
          <TermsOfDeliveryId>int</TermsOfDeliveryId>
          <AccountDebit>short</AccountDebit>
          <AccountCredit>short</AccountCredit>
          <Discount>decimal</Discount>
          <TypeGroup>int</TypeGroup>
          <ShareCapital>decimal</ShareCapital>
          <NumberOfEmployees>int</NumberOfEmployees>
          <Turnover>decimal</Turnover>
          <Profit>decimal</Profit>
          <IndustryId>int</IndustryId>
          <MemberNo>int</MemberNo>
          <DateChanged>dateTime</DateChanged>
          <BlockInvoice>boolean</BlockInvoice>
          <Relations>
            <Relation xsi:nil="true" />
            <Relation xsi:nil="true" />
          </Relations>
          <Maps>
            <CompanyMap xsi:nil="true" />
            <CompanyMap xsi:nil="true" />
          </Maps>
          <DistributionMethod>Unchanged or Print or EMail or ElectronicInvoice or Default</DistributionMethod>
          <CurrencyId>LOCAL or AED or AFN or ALL or AMD or ANG or AOA or ARS or AUD or AWG or AZN or BAM or BBD or BDT or BGN or BHD or BIF or BMD or BND or BOB or BOV or BRL or BSD or BTN or BWP or BYN or BYR or BZD or CAD or CDF or CHE or CHF or CHW or CLF or CLP or CNY or COP or COU or CRC or CUC or CUP or CVE or CZK or DJF or DKK or DOP or DZD or EEK or EGP or ERN or ETB or EUR or FJD or FKP or GBP or GEL or GHS or GIP or GMD or GNF or GTQ or GYD or HKD or HNL or HRK or HTG or HUF or IDR or ILS or INR or IQD or IRR or ISK or JMD or JOD or JPY or KES or KGS or KHR or KMF or KPW or KRW or KWD or KYD or KZT or LAK or LBP or LKR or LRD or LSL or LTL or LVL or LYD or MAD or MDL or MGA or MKD or MMK or MNT or MOP or MRO or MTL or MUR or MVR or MWK or MXN or MXV or MYR or MZN or NAD or NGN or NIO or NOK or NPR or NZD or OMR or PAB or PEN or PGK or PHP or PKR or PLN or PYG or QAR or RON or RSD or RUB or RWF or SAR or SBD or SCR or SDG or SEK or SGD or SHP or SKK or SLL or SOS or SRD or STD or SYP or SZL or THB or TJS or TMT or TND or TOP or TRY or TTD or TWD or TZS or UAH or UGX or USD or UYU or UZS or VEF or VND or VUV or WST or XAF or XAG or XAU or XBA or XBB or XBC or XBD or XCD or XDR or XFU or XOF or XPD or XPF or XPT or XTS or XXX or YER or ZAR or ZMK or ZWL or ZWD</CurrencyId>
          <PaymentTime>short</PaymentTime>
          <GlnNumber>string</GlnNumber>
          <Factoring>boolean</Factoring>
          <LedgerCustomerAccount>short</LedgerCustomerAccount>
          <LedgerSupplierAccount>short</LedgerSupplierAccount>
          <VatNumber>string</VatNumber>
          <Private>boolean</Private>
        </Company>
      </GetCompaniesResult>
    </GetCompaniesResponse>
  </soap:Body>
</soap:Envelope>

SOAP 1.2

The following is a sample SOAP 1.2 request and response. The placeholders shown need to be replaced with actual values.

POST /CRM/Company/V001/CompanyService.asmx HTTP/1.1
Host: api.24sevenoffice.com
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
  <soap12:Body>
    <GetCompanies xmlns="http://24sevenOffice.com/webservices">
      <searchParams>
        <ExternalId>string</ExternalId>
        <CompanyId>int</CompanyId>
        <CompanyIds>
          <int>int</int>
          <int>int</int>
        </CompanyIds>
        <CompanyName>string</CompanyName>
        <ChangedAfter>dateTime</ChangedAfter>
        <CompanyEmail>string</CompanyEmail>
        <CompanyPhone>string</CompanyPhone>
      </searchParams>
      <returnProperties>
        <string>string</string>
        <string>string</string>
      </returnProperties>
    </GetCompanies>
  </soap12:Body>
</soap12:Envelope>
HTTP/1.1 200 OK
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
  <soap12:Body>
    <GetCompaniesResponse xmlns="http://24sevenOffice.com/webservices">
      <GetCompaniesResult>
        <Company>
          <APIException>
            <Type>string</Type>
            <Message>string</Message>
            <StackTrace>string</StackTrace>
          </APIException>
          <Id>int</Id>
          <ExternalId>string</ExternalId>
          <OrganizationNumber>string</OrganizationNumber>
          <Name>string</Name>
          <FirstName>string</FirstName>
          <NickName>string</NickName>
          <Addresses>
            <Post xsi:nil="true" />
            <Delivery xsi:nil="true" />
            <Visit xsi:nil="true" />
            <Invoice xsi:nil="true" />
          </Addresses>
          <PhoneNumbers>
            <Home xsi:nil="true" />
            <Fax xsi:nil="true" />
            <Mobile xsi:nil="true" />
            <Primary xsi:nil="true" />
            <Work xsi:nil="true" />
          </PhoneNumbers>
          <EmailAddresses>
            <Home xsi:nil="true" />
            <Invoice xsi:nil="true" />
            <Primary xsi:nil="true" />
            <Work xsi:nil="true" />
            <Alternative xsi:nil="true" />
          </EmailAddresses>
          <Url>string</Url>
          <Country>string</Country>
          <Note>string</Note>
          <InvoiceLanguage>string</InvoiceLanguage>
          <Type>None or Lead or Consumer or Business or Supplier</Type>
          <Username>string</Username>
          <Password>string</Password>
          <IncorporationDate>dateTime</IncorporationDate>
          <DateCreated>dateTime</DateCreated>
          <Status>int</Status>
          <PriceList>int</PriceList>
          <Owner>int</Owner>
          <BankAccountNo>string</BankAccountNo>
          <TermsOfDeliveryId>int</TermsOfDeliveryId>
          <AccountDebit>short</AccountDebit>
          <AccountCredit>short</AccountCredit>
          <Discount>decimal</Discount>
          <TypeGroup>int</TypeGroup>
          <ShareCapital>decimal</ShareCapital>
          <NumberOfEmployees>int</NumberOfEmployees>
          <Turnover>decimal</Turnover>
          <Profit>decimal</Profit>
          <IndustryId>int</IndustryId>
          <MemberNo>int</MemberNo>
          <DateChanged>dateTime</DateChanged>
          <BlockInvoice>boolean</BlockInvoice>
          <Relations>
            <Relation xsi:nil="true" />
            <Relation xsi:nil="true" />
          </Relations>
          <Maps>
            <CompanyMap xsi:nil="true" />
            <CompanyMap xsi:nil="true" />
          </Maps>
          <DistributionMethod>Unchanged or Print or EMail or ElectronicInvoice or Default</DistributionMethod>
          <CurrencyId>LOCAL or AED or AFN or ALL or AMD or ANG or AOA or ARS or AUD or AWG or AZN or BAM or BBD or BDT or BGN or BHD or BIF or BMD or BND or BOB or BOV or BRL or BSD or BTN or BWP or BYN or BYR or BZD or CAD or CDF or CHE or CHF or CHW or CLF or CLP or CNY or COP or COU or CRC or CUC or CUP or CVE or CZK or DJF or DKK or DOP or DZD or EEK or EGP or ERN or ETB or EUR or FJD or FKP or GBP or GEL or GHS or GIP or GMD or GNF or GTQ or GYD or HKD or HNL or HRK or HTG or HUF or IDR or ILS or INR or IQD or IRR or ISK or JMD or JOD or JPY or KES or KGS or KHR or KMF or KPW or KRW or KWD or KYD or KZT or LAK or LBP or LKR or LRD or LSL or LTL or LVL or LYD or MAD or MDL or MGA or MKD or MMK or MNT or MOP or MRO or MTL or MUR or MVR or MWK or MXN or MXV or MYR or MZN or NAD or NGN or NIO or NOK or NPR or NZD or OMR or PAB or PEN or PGK or PHP or PKR or PLN or PYG or QAR or RON or RSD or RUB or RWF or SAR or SBD or SCR or SDG or SEK or SGD or SHP or SKK or SLL or SOS or SRD or STD or SYP or SZL or THB or TJS or TMT or TND or TOP or TRY or TTD or TWD or TZS or UAH or UGX or USD or UYU or UZS or VEF or VND or VUV or WST or XAF or XAG or XAU or XBA or XBB or XBC or XBD or XCD or XDR or XFU or XOF or XPD or XPF or XPT or XTS or XXX or YER or ZAR or ZMK or ZWL or ZWD</CurrencyId>
          <PaymentTime>short</PaymentTime>
          <GlnNumber>string</GlnNumber>
          <Factoring>boolean</Factoring>
          <LedgerCustomerAccount>short</LedgerCustomerAccount>
          <LedgerSupplierAccount>short</LedgerSupplierAccount>
          <VatNumber>string</VatNumber>
          <Private>boolean</Private>
        </Company>
        <Company>
          <APIException>
            <Type>string</Type>
            <Message>string</Message>
            <StackTrace>string</StackTrace>
          </APIException>
          <Id>int</Id>
          <ExternalId>string</ExternalId>
          <OrganizationNumber>string</OrganizationNumber>
          <Name>string</Name>
          <FirstName>string</FirstName>
          <NickName>string</NickName>
          <Addresses>
            <Post xsi:nil="true" />
            <Delivery xsi:nil="true" />
            <Visit xsi:nil="true" />
            <Invoice xsi:nil="true" />
          </Addresses>
          <PhoneNumbers>
            <Home xsi:nil="true" />
            <Fax xsi:nil="true" />
            <Mobile xsi:nil="true" />
            <Primary xsi:nil="true" />
            <Work xsi:nil="true" />
          </PhoneNumbers>
          <EmailAddresses>
            <Home xsi:nil="true" />
            <Invoice xsi:nil="true" />
            <Primary xsi:nil="true" />
            <Work xsi:nil="true" />
            <Alternative xsi:nil="true" />
          </EmailAddresses>
          <Url>string</Url>
          <Country>string</Country>
          <Note>string</Note>
          <InvoiceLanguage>string</InvoiceLanguage>
          <Type>None or Lead or Consumer or Business or Supplier</Type>
          <Username>string</Username>
          <Password>string</Password>
          <IncorporationDate>dateTime</IncorporationDate>
          <DateCreated>dateTime</DateCreated>
          <Status>int</Status>
          <PriceList>int</PriceList>
          <Owner>int</Owner>
          <BankAccountNo>string</BankAccountNo>
          <TermsOfDeliveryId>int</TermsOfDeliveryId>
          <AccountDebit>short</AccountDebit>
          <AccountCredit>short</AccountCredit>
          <Discount>decimal</Discount>
          <TypeGroup>int</TypeGroup>
          <ShareCapital>decimal</ShareCapital>
          <NumberOfEmployees>int</NumberOfEmployees>
          <Turnover>decimal</Turnover>
          <Profit>decimal</Profit>
          <IndustryId>int</IndustryId>
          <MemberNo>int</MemberNo>
          <DateChanged>dateTime</DateChanged>
          <BlockInvoice>boolean</BlockInvoice>
          <Relations>
            <Relation xsi:nil="true" />
            <Relation xsi:nil="true" />
          </Relations>
          <Maps>
            <CompanyMap xsi:nil="true" />
            <CompanyMap xsi:nil="true" />
          </Maps>
          <DistributionMethod>Unchanged or Print or EMail or ElectronicInvoice or Default</DistributionMethod>
          <CurrencyId>LOCAL or AED or AFN or ALL or AMD or ANG or AOA or ARS or AUD or AWG or AZN or BAM or BBD or BDT or BGN or BHD or BIF or BMD or BND or BOB or BOV or BRL or BSD or BTN or BWP or BYN or BYR or BZD or CAD or CDF or CHE or CHF or CHW or CLF or CLP or CNY or COP or COU or CRC or CUC or CUP or CVE or CZK or DJF or DKK or DOP or DZD or EEK or EGP or ERN or ETB or EUR or FJD or FKP or GBP or GEL or GHS or GIP or GMD or GNF or GTQ or GYD or HKD or HNL or HRK or HTG or HUF or IDR or ILS or INR or IQD or IRR or ISK or JMD or JOD or JPY or KES or KGS or KHR or KMF or KPW or KRW or KWD or KYD or KZT or LAK or LBP or LKR or LRD or LSL or LTL or LVL or LYD or MAD or MDL or MGA or MKD or MMK or MNT or MOP or MRO or MTL or MUR or MVR or MWK or MXN or MXV or MYR or MZN or NAD or NGN or NIO or NOK or NPR or NZD or OMR or PAB or PEN or PGK or PHP or PKR or PLN or PYG or QAR or RON or RSD or RUB or RWF or SAR or SBD or SCR or SDG or SEK or SGD or SHP or SKK or SLL or SOS or SRD or STD or SYP or SZL or THB or TJS or TMT or TND or TOP or TRY or TTD or TWD or TZS or UAH or UGX or USD or UYU or UZS or VEF or VND or VUV or WST or XAF or XAG or XAU or XBA or XBB or XBC or XBD or XCD or XDR or XFU or XOF or XPD or XPF or XPT or XTS or XXX or YER or ZAR or ZMK or ZWL or ZWD</CurrencyId>
          <PaymentTime>short</PaymentTime>
          <GlnNumber>string</GlnNumber>
          <Factoring>boolean</Factoring>
          <LedgerCustomerAccount>short</LedgerCustomerAccount>
          <LedgerSupplierAccount>short</LedgerSupplierAccount>
          <VatNumber>string</VatNumber>
          <Private>boolean</Private>
        </Company>
      </GetCompaniesResult>
    </GetCompaniesResponse>
  </soap12:Body>
</soap12:Envelope>