GET /api/businesses

Returns information about businesses on the platform, as an RSS feed.

Authorization Roles/Permissions: Must have Read permission for the resource. Otherwise, the information is not returned.

This topic includes the following sections:

HTTP Method

GET

Back to top

URL

https://{hostname}/api/businesses

Back to top

Sample Request

The example below shows a request for information about businesses on the platform.

Request URL

https://{hostname}/api/businesses

Sample request headers

Accept: application/json

Sample request body

Not applicable.

Back to top

Request Headers

For general information on request header values, refer to HTTP Request Headers.

Header Description
Accept

application/json, application/xml, text/xml

application/vnd.soa.v71+json, application/vnd.soa.v71+xml

application/vnd.soa.v72+json, application/vnd.soa.v72+xml

application/vnd.soa.v80+json, application/vnd.soa.v80+xml

application/vnd.soa.v81+json, application/vnd.soa.v81+xml

application/vnd.soa.v83+json, application/vnd.soa.v83+xml

Back to top

Request Parameters

Parameter Parm Type Data Type Required Description
Federation Query boolean Optional

Indicates whether the current implementation is a federation.

If not specified, defaults to false.

Back to top

Response

If successful, this operation returns HTTP status code 200, with information about the businesses on the platform.

Back to top

Sample Response

The sample response below shows successful completion of this operation.

Sample response headers: application/vnd.soa.v83+json

Status Code: 200 OK
Content-Type:  application/vnd.soa.v83+json
Date: Thu, 16 Mar 2017 18:25:37 GMT

Sample response body: application/vnd.soa.v83+json

{
  "Business" : [ {
    "BusinessID" : "70284b50-fb9e-4ebf-963d-fad8c0327b43.automation",
    "BusinessKey" : "uddi:soa.com:atmosphere:business:b9885c7b-0a67-11e7-950e-dfadbdf627aa",
    "Name" : "ACME Payments Corporation",
    "Description" : "ACME Payments Corporation",
    "Visibility" : "Limited",
    "AvatarURL" : "http://api.local.acmepaymentscorp.com/api/businesses/avatar/_VG4UbuRRHPiPJZT-cqY3NFQ/Company",
    "ParentBusinessID" : "tenantbusiness.automation",
    "TargetResources" : {
      "TargetResource" : [ {
        "Name" : "Tenant - automation",
        "ID" : "tenantbusiness.automation",
        "Type" : "business",
        "Avatar" : "http://api.local.acmepaymentscorp.com/api/businesses/avatar/_VG4UbuRRHPiPJZT-cqY3NFQ/atmo.tenant"
      } ]
    }
  }, {
    "BusinessID" : "tenantbusiness.automation",
    "BusinessKey" : "uddi:soa.com:atmosphere:tenant:automation",
    "Name" : "Tenant - automation",
    "Visibility" : "Limited",
    "AvatarURL" : "http://api.local.acmepaymentscorp.com/api/businesses/avatar/_VG4UbuRRHPiPJZT-cqY3NFQ/atmo.tenant"
  }, {
    "BusinessID" : "30a5b59d-aaa5-475f-b561-672e432afa19.automation",
    "BusinessKey" : "uddi:soa.com:atmosphere:business:8be88c0c-0a64-11e7-950e-dfadbdf627aa",
    "Name" : "Test Org",
    "Description" : "test",
    "Visibility" : "Limited",
    "AvatarURL" : "http://api.local.acmepaymentscorp.com/api/businesses/avatar/_VG4UbuRRHPiPJZT-cqY3NFQ/Department",
    "ParentBusinessID" : "tenantbusiness.automation",
    "TargetResources" : {
      "TargetResource" : [ {
        "Name" : "Tenant - automation",
        "ID" : "tenantbusiness.automation",
        "Type" : "business",
        "Avatar" : "http://api.local.acmepaymentscorp.com/api/businesses/avatar/_VG4UbuRRHPiPJZT-cqY3NFQ/atmo.tenant"
      } ]
    }
  } ]
}

Back to top

Sample response headers: application/vnd.soa.v83+xml

Status Code: 200 OK
Content-Type: application/vnd.soa.v83+xml
Date: Thu, 16 Mar 2017 18:30:55 GMT

Sample response body: application/vnd.soa.v83+xml

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<BusinessInfos xmlns="http://soa.com/xsd/business/1.0" xmlns:ns2="http://soa.com/xsd/dnmodel/1.0" xmlns:ns3="http://soa.com/xsd/legals/1.0" xmlns:ns4="http://soa.com/xsd/api/1.0">
  <Business>
    <BusinessID>70284b50-fb9e-4ebf-963d-fad8c0327b43.automation</BusinessID>
    <BusinessKey>uddi:soa.com:atmosphere:business:b9885c7b-0a67-11e7-950e-dfadbdf627aa</BusinessKey>
    <Name>ACME Payments Corporation</Name>
    <Description>ACME Payments Corporation</Description>
    <Visibility>Limited</Visibility>
    <AvatarURL>http://api.local.acmepaymentscorp.com/api/businesses/avatar/_VG4UbuRRHPiPJZT-cqY3NFQ/Company</AvatarURL>
    <ParentBusinessID>tenantbusiness.automation</ParentBusinessID>
    <ns2:TargetResources>
      <ns2:TargetResource>
        <ns2:Name>Tenant - automation</ns2:Name>
        <ns2:ID>tenantbusiness.automation</ns2:ID>
        <ns2:Type>business</ns2:Type>
        <ns2:Avatar>http://api.local.acmepaymentscorp.com/api/businesses/avatar/_VG4UbuRRHPiPJZT-cqY3NFQ/atmo.tenant</ns2:Avatar>
      </ns2:TargetResource>
    </ns2:TargetResources>
  </Business>
  <Business>
    <BusinessID>tenantbusiness.automation</BusinessID>
    <BusinessKey>uddi:soa.com:atmosphere:tenant:automation</BusinessKey>
    <Name>Tenant - automation</Name>
    <Visibility>Limited</Visibility>
    <AvatarURL>http://api.local.acmepaymentscorp.com/api/businesses/avatar/_VG4UbuRRHPiPJZT-cqY3NFQ/atmo.tenant</AvatarURL>
  </Business>
  <Business>
    <BusinessID>30a5b59d-aaa5-475f-b561-672e432afa19.automation</BusinessID>
    <BusinessKey>uddi:soa.com:atmosphere:business:8be88c0c-0a64-11e7-950e-dfadbdf627aa</BusinessKey>
    <Name>Test Org</Name>
    <Description>test</Description>
    <Visibility>Limited</Visibility>
    <AvatarURL>http://api.local.acmepaymentscorp.com/api/businesses/avatar/_VG4UbuRRHPiPJZT-cqY3NFQ/Department</AvatarURL>
    <ParentBusinessID>tenantbusiness.automation</ParentBusinessID>
    <ns2:TargetResources>
      <ns2:TargetResource>
        <ns2:Name>Tenant - automation</ns2:Name>
        <ns2:ID>tenantbusiness.automation</ns2:ID>
        <ns2:Type>business</ns2:Type>
        <ns2:Avatar>http://api.local.acmepaymentscorp.com/api/businesses/avatar/_VG4UbuRRHPiPJZT-cqY3NFQ/atmo.tenant</ns2:Avatar>
      </ns2:TargetResource>
    </ns2:TargetResources>
  </Business>
</BusinessInfos>

Back to top

Response Headers

For general information on response header values, refer to HTTP Response Headers.

Header Description
Content-Type

application/json, application/xml, text/xml

application/vnd.soa.v71+json, application/vnd.soa.v71+xml

application/vnd.soa.v72+json, application/vnd.soa.v72+xml

application/vnd.soa.v80+json, application/vnd.soa.v80+xml

application/vnd.soa.v81+json, application/vnd.soa.v81+xml

application/vnd.soa.v83+json, application/vnd.soa.v83+xml

Back to top

Response Body

The response body is in the form of an RSS channel, and includes the items listed below. The RSS version is 1.0. The title of the RSS channel is Businesses. Each item in the channel represents a business on the platform, and includes the information listed below.

Name Description
title The text title of the business.
category[ ]

A name/value pair containing information about the business. For example:

"value" : "business",
"domain" : "uddi:soa.com:resourcetype"
GUID Unique GUID for the business (BusinessID).

Back to top

Error Codes/Messages

If the call is unsuccessful an error code/message is returned. One or more examples of possible errors for this operation are shown below.

Item Value
500 An error occurred processing the call.

More information about Akana API Platform API error messages.

Back to top

Related Topics