Skip to main content

Companies

To search for B-BBEE scorecards, first locate the company to which the scorecard was issued.

Beagle lets you search for companies using one or more query parameters. When multiple parameters are supplied, results include records that match any of the provided identifiers.


Endpoints

MethodPathPurpose
GET/api/companiesSearch companies by VAT number, registration number, and/or ID number
Authentication

Include the following headers on every request:

  • Authorization: Basic <base64_encoded_credentials>
  • Accept: application/json

See Authentication.


Attributes

Query Parameters

FieldTypeRequiredDescription
vat_numberstringconditionalSearch by VAT number. At least one identifier is required.
registration_numberstringconditionalSearch by company registration number. At least one identifier is required.
id_numberstringconditionalSearch by ID number (sole proprietors). At least one identifier is required.

Response Fields

FieldTypeDescription
idstringBeagle company identifier. Used to retrieve scorecards.
commoditystringIndustry or commodity classification.
identification_numberstring | nullID number, if applicable.
regionstringGeographic region.
registration_numberstring | nullCompany registration number.
trading_namestringCompany trading name.
vat_numberstringVAT number.

Notes

  • At least one query parameter (vat_number, registration_number, or id_number) should be provided.
  • When multiple parameters are supplied, results include records that match any of the provided identifiers.

Search companies

Search for companies by VAT number, registration number, or ID number.

GET /api/companies

Code examples

curl -X GET "https://www.beagledatabase.co.za/api/companies?vat_number=412345678" \
-u "<your username>:<your password>" \
-H "Accept: application/json"

Response

[
{
"id": "8ovHrj",
"commodity": "Food Services",
"identification_number": null,
"region": "National",
"registration_number": null,
"trading_name": "ACME Corp",
"vat_number": "412345678"
}
]