Provides detailed information about a company.
Client Servlet | Server Servlet | HTTP Methods Supported | Requires Authentication |
---|---|---|---|
CRTeamraiserAPI | None. | GET, POST | No. |
Amounts and Counts
For Cross-Event Companies, if you specify the fr_id the teamCount and participantCount fields in the response will be limited to that teams and participants associated to that company in the specified TeamRaiser event. If you do not specify the fr_id, the teamCount and participantCount will be the count of all teams and participants associated to that National or Regional Company across all the TeamRaiser events that National or Regional Company is associated with.
See topic Common Parameters.
Optional. The id of the company.
Type xsd:nonNegativeInteger.
Optional. The public name of the company.
Type xsd:string.
Optional. The name of the Primary Event Type to limit search results to. Omit this parameter to search on all Primary Event Types. Defaults to null.
Type xsd:string.
Optional. The TeamRaiser event ID.
Type xsd:nonNegativeInteger.
Optional. Tells us if we want to make sure to include Cross-Event Companies in our queries
Type xsd:boolean.
Optional. Whether the list should be sorted in ascending order.
Type xsd:boolean.
Default is true.
Optional. Security Category filter.
Type xsd:integer.
Optional. The database column that will be used to match the filter text (used with "list_filter_text").
Type xsd:string.
Optional. The text that will be used to filter results.
Type xsd:string.
Optional. The requested page number (used with "list_page_size"). The first page (default) is zero. Only one of "list_record_offset" or "list_page_offset" should be used in a request.
Type xsd:integer.
Optional. The number of results in each page (used with "list_record_offset" or "list_page_offset").
Type xsd:integer.
Default is 25.
Optional. The requested initial record number (used with "list_page_size"). The first record (default) is zero. Only one of "list_record_offset" or "list_page_offset" should be used in a request.
Type xsd:integer.
Optional. The column to sort with (used with "list_ascending").
Type xsd:string.
See topic HTTP Status Codes.
XML response<?xml version="1.0" encoding="UTF-8"?> <getCompaniesResponse xsi:schemaLocation="http://convio.com/crm/v1.0 http://service.convio.net/xmlschema/crm.public.v1.xsd" xmlns="http://convio.com/crm/v1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <totalNumberResults>3</totalNumberResults> <company> <eventId>1000</eventId> <companyId>2000</companyId> <companyName>sampleCompany0</companyName> <eventType>eventType0</eventType> <coordinatorId>1000</coordinatorId> <goal>4000</goal> <amountRaised>5000</amountRaised> <companyURL>www.blackbaud.com0</companyURL> <companyType>National</companyType> <teamCount>813</teamCount> <participantCount>985</participantCount> </company> <company> <eventId>1001</eventId> <companyId>2001</companyId> <companyName>sampleCompany1</companyName> <eventType>eventType1</eventType> <coordinatorId>1001</coordinatorId> <goal>4001</goal> <amountRaised>5001</amountRaised> <companyURL>www.blackbaud.com1</companyURL> <companyType>National</companyType> <teamCount>398</teamCount> <participantCount>895</participantCount> </company> <company> <eventId>1002</eventId> <companyId>2002</companyId> <companyName>sampleCompany2</companyName> <eventType>eventType2</eventType> <coordinatorId>1002</coordinatorId> <goal>4002</goal> <amountRaised>5002</amountRaised> <companyURL>www.blackbaud.com2</companyURL> <companyType>National</companyType> <teamCount>46</teamCount> <participantCount>796</participantCount> </company> </getCompaniesResponse>JSON response
{"getCompaniesResponse":{"company":[{"eventId":"1000","companyURL":"www.blackbaud.com0","amountRaised":"5000","participantCount":"359","companyType":"National","eventType":"eventType0","companyId":"2000","companyName":"sampleCompany0","teamCount":"125","goal":"4000","coordinatorId":"1000"},{"eventId":"1001","companyURL":"www.blackbaud.com1","amountRaised":"5001","participantCount":"250","companyType":"National","eventType":"eventType1","companyId":"2001","companyName":"sampleCompany1","teamCount":"861","goal":"4001","coordinatorId":"1001"},{"eventId":"1002","companyURL":"www.blackbaud.com2","amountRaised":"5002","participantCount":"906","companyType":"National","eventType":"eventType2","companyId":"2002","companyName":"sampleCompany2","teamCount":"142","goal":"4002","coordinatorId":"1002"}],"totalNumberResults":"3"}}
To retrieve local companies associated with a TeamRaiser with an event ID (fr_id) of 1000:
https://demo-secure.convio.net/demo829/site/CRTeamraiserAPI?api_key=api_key&v=1.0&method=getCompaniesByInfo&fr_id=1000
To retrieve local companies and cross-event companies associated with a TeamRaiser with an event ID (fr_id) of 1000:
https://demo-secure.convio.net/demo829/site/CRTeamraiserAPI?api_key=api_key&v=1.0&method=getCompaniesByInfo&fr_id=1000&include_cross_event=true
To retrieve details of a local company with a local company ID (company_id) of 1000
https://demo-secure.convio.net/demo829/site/CRTeamraiserAPI?api_key=api_key&v=1.0&method=getCompaniesByInfo&company_id=1000
To retrieve details of a national company with a national company ID (company_id) of 1000:
https://demo-secure.convio.net/demo829/site/CRTeamraiserAPI?api_key=api_key&v=1.0&method=getCompaniesByInfo&company_id=1000&include_cross_event=true
Note that if you do not include &include_cross_event=true in the above example, the call only returns a count of companies that match the criteria, and does not include details of the national company. Including include_cross_event=true does not return the Amount field when the fr_id is not provided. The teamCount and participantCount would include all teams and participants across all events.
Include the event ID (fr_id) to retrieve the amount of money raised by the company. The amountRaised includes offline cash and check donations given directly to the national company. Including fr_id also changes the teamCount and participantCount to only count teams and participants within that TeamRaiser.
https://demo-secure.convio.net/demo829/site/CRTeamraiserAPI?api_key=api_key&v=1.0&method=getCompaniesByInfo&fr_id=1000&company_id=1000&include_cross_event=true
To search for companies where "National" appears in the company name:
https://demo-secure.convio.net/demo829/site/CRTeamraiserAPI?api_key=api_key&v=1.0&method=getCompaniesByInfo&company_name=National
Fixing the above and searching for companies where "National" appears in the company name and retrieve the details of all 3 companies:
https://demo-secure.convio.net/demo829/site/CRTeamraiserAPI?api_key=api_key&v=1.0&method=getCompaniesByInfo&company_name=National&include_cross_event=true
Searching for Companies in the event type of "Walkfest":
https://demo-secure.convio.net/demo829/site/CRTeamraiserAPI?api_key=api_key&v=1.0&method=getCompaniesByInfo&event_type=Walkfest
Fixing the above to return the company details for Cross-Event Companies in the event type of "Walkfest":
https://demo-secure.convio.net/demo829/site/CRTeamraiserAPI?api_key=api_key&v=1.0&method=getCompaniesByInfo&event_type=Walkfest&include_cross_event=true