• Overview View our development partners
  • APIs Easily interface with mBLAST's database
    • ATOM/RSS Submit your data without web services programming
    • Web Services Easily interface with mBLAST's database
      • API Activation Form
      • Analyst Reports
      • Articles
      • Books
      • Companies
        • Company.Search
        • Company.Get
        • Company.Add
        • Company.Update
        • Company.Delete
      • Events
      • Glossaries
      • People
      • Press Releases
      • Products
      • Publications
      • Venues
      • White Papers
  • Applications Create dynamic functionality on your website

Company.Add

Adds a company to the database.

HTTP Operation

HTTP POST

URL

https://www.mblast.com/api/rest/v.01/company.add.aspx

Parameters

See the documentation for creating REST queries.

ParameterData typeDescription
apiapi (required)mBLAST API assigned to developer.
namestring (required)The name of the company.
address1stringThe first address line for the company's main address.
address2stringThe second address line for the company's main address.
citystringThe city for the company's main address.
stateprovincestringThe state or province for the company's main address.
postalcodestringThe postal code for the company's main address.
countrycountryThe country for the company's main address
mailaddress1string (required)The first address line for the company's mailing address.
mailaddress2string (required)The second address line for the company's mailing address.
mailcitystring (required)The city for the company's mailing address.
mailstateprovincestringThe state or province for the company's mailing address.
mailpostalcodestringThe postal code for the company's mailing address.
mailcountrycountryThe country for the company's mailing address.
emailstringThe main email address for the company.
phonephoneThe main phone number for the company
faxphoneThe main fax number for the company.
linkstring (required)The url for the company's web site.
logolinkstringThe url for the company's logo.
descriptionstringA description of the company and its business.

Response Elements

Response are returned in an XML document.

FieldDescription
responseContains the query response.
companyContains the individual company information.
recordIDThe recordID assigned to the company.
nameThe name of the company.
address1The first address line for the company's main address.
address2The second address line for the company's main address.
cityThe city for the company's main address.
stateprovinceThe state or province for the company's main address.
postalcodeThe postal code for the company's main address.
countryThe country for the company's main address
mailaddress1The first address line for the company's mailing address.
mailaddress2The second address line for the company's mailing address.
mailcityThe city for the company's mailing address.
mailstateprovinceThe state or province for the company's mailing address.
mailpostalcodeThe postal code for the company's mailing address.
mailcountryThe country for the company's mailing address.
emailThe main email address for the company.
phoneThe main phone number for the company
faxThe main fax number for the company.
linkThe url for the company's web site.
logolinkThe url for the company's logo.
descriptionA description of the company and its business.

Example response

The following is an example of the response returned by the Company.Add method.

<?xml version="1.0" encoding="UTF-8"?>
<response>
  <company>
    <recordID>12345</recordID>
    <name>Microsoft Corporation</name>
    <address1>One Microsoft Way</address1>
    <city>Redmond</city>
    <stateprovince>WA</stateprovince>
    <postalcode>98052</postalcode>
    <country>United States Of America</country>
    <mailaddress1>One Microsoft Way</mailaddress1>
    <mailcity>The city for the company's mailing address.</mailcity>
    <mailstateprovince>Redmond</mailstateprovince>
    <mailpostalcode>WA</mailpostalcode>
    <mailcountry>98052</mailcountry>
    <email>info@microsoft.com</email>
    <phone>+1 (425) 882-8080</phone>
    <link>http://www.microsoft.com</link>
    <description>
      Microsoft's mission is to create software for the 
      personal computer. 
    </description>
  </company>
</response>

Errors

Company.Add returns the standard errors. There are no errors specific to this method.

Home | Terms and Conditions | Privacy Policy | FAQ | About Us | Contact Us © 2000-2008 Media & Marketing Solutions, Inc.