Skip to content

Get countries by company

Request

Fetches a list of countries associated with the specified company ID. A valid authorization token is required.

Security
Bearer
Query
companyIdinteger, (int32)required

The unique identifier for the company used to filter countries.

curl -i -X GET \
  'https://developer.sustainabilitymaster.ai/_mock/openapi/api/EnterpriseTables/CountryByCompany?companyId=0' \
  -H 'Authorization: YOUR_API_KEY_HERE'

Responses

Successfully retrieved the list of countries filtered by company

Bodyapplication/json
Array [
idinteger, (int32)

Gets or sets the unique identifier for the country.

Example:1
namestring or null

Gets or sets the name of the country.

Example:"United States"
companyIdinteger or null, (int32)

Gets or sets the unique identifier of the associated company.

Example:101
companyNamestring or null

Gets or sets the name of the associated company.

Example:"Acme Corp"
]
Response
[ { "id": 1, "name": "United States", "companyId": 101, "companyName": "Acme Corp" } ]