Get facilities owned by the given organization.
GET/partner/v1.0/organizations/:organizationId/facilities
Get facilities owned by the given organization.
Request
Path Parameters
The ID of the organization in the Carbon Trail platform
Query Parameters
Default value: 1
The page number to retrieve. Defaults to 1.
Default value: 10
The number of facilities to retrieve per page. Defaults to 10.
An OData $filter expression. Results can be filtered by name, countryName, category, or type, externalId/{Name}.
Example: $filter=countryName eq 'India' and startswith(name, 'Plant') and externalId/SAP eq 'Facility-001'
Responses
- 200
- 400
OK
- text/plain
- application/json
- text/json
- Schema
- Example (from schema)
Schema
Array [
Array [
]
Array [
- CustomFieldValue
- TextCustomFieldValue
- SelectCustomFieldValue
- MultiSelectCustomFieldValue
- Text
- Select
- Multi-Select
- Text
- Select
- Multi-Select
- Text
- Select
- Multi-Select
- Text
- Select
- Multi-Select
]
Array [
]
]
data
object[]
nullable
The list of items for the current page.
The unique identifier of the facility in CarbonTrail.
The unique identifier of the organization the facility belongs to.
The unique identifier of the subsidiary the facility belongs to.
The name of the facility.
location
object
Represents a geographical location where a manufacturing process or material sourcing takes place.
The unique identifier of the location.
The name of the city.
The name of the state where the location is situated.
Possible values: non-empty
The ISO 3166-1 alpha-2 country code.
The full name of the country.
The name of the continent.
The latitude coordinate of the location.
The longitude coordinate of the location.
Possible values: [Owned, Leased To Others, Leased From Others, Franchise, Supplier Factory, Non-Leased Upstream, Non-Leased Downstream]
Possible values: [Unknown, Factory, Warehouse, Retail Store, Office, Service Center, Logistics Center, Outlet Store, Showroom]
The total area of the facility in square meters, when available.
The leased area of the facility in square meters, when available.
The occupancy rate of the facility as a percentage from 0 to 100, when available.
The primary contact email address for the facility.
aliases
object[]
nullable
The aliases associated with the facility, including alternative identifiers.
The unique identifier of the alias definition in CarbonTrail.
The name of the alias (e.g., "Supplier ID", "Facility ID").
The identifier value associated with the entity for this alias.
customFieldValues
object[]
nullable
The values of custom fields associated with the facility.
oneOf
Represents a custom field value.
type
string
required
Possible values: [Text, Select, Multi-Select]
The value of the text custom field.
The value of the multi-select custom field.
The values of the multi-select custom field.
Possible values: non-empty
The unique identifier of the custom field this value is associated with.
Represents a text custom field value.
type
string
required
Possible values: [Text, Select, Multi-Select]
circular(TextCustomFieldValue)
The value of the multi-select custom field.
The values of the multi-select custom field.
Possible values: non-empty
The unique identifier of the custom field this value is associated with.
The value of the text custom field.
Represents a select custom field value.
type
string
required
Possible values: [Text, Select, Multi-Select]
The value of the text custom field.
circular(SelectCustomFieldValue)
The values of the multi-select custom field.
Possible values: non-empty
The unique identifier of the custom field this value is associated with.
The value of the multi-select custom field.
Represents a multi-select custom field value.
type
string
required
Possible values: [Text, Select, Multi-Select]
The value of the text custom field.
The value of the multi-select custom field.
circular(MultiSelectCustomFieldValue)
Possible values: non-empty
The unique identifier of the custom field this value is associated with.
The values of the multi-select custom field.
externalIdentities
object[]
nullable
The identifiers of the facility in source systems, used for idempotency to prevent duplicate imports.
The name of the system (e.g., "SAP", "Workday", "Snowflake") where this ID is from.
The unique identifier value from the system.
The date and time the facility was created, in UTC.
The date and time the facility was last updated, in UTC, when available.
The current page number (1-indexed).
The number of items per page.
The total number of items across all pages.
{
"data": [
{
"id": "string",
"organizationId": "string",
"subsidiaryId": "string",
"name": "string",
"location": {
"id": "loc-12345",
"city": "Paris",
"stateName": "Île-de-France",
"country": "FR",
"countryName": "France",
"continent": "Europe",
"latitude": 48.8566,
"longitude": 2.3522
},
"category": "Owned",
"type": "Unknown",
"area": 0,
"leasedArea": 0,
"occupancyRate": 0,
"primaryEmail": "string",
"aliases": [
{
"id": "string",
"name": "string",
"value": "string"
}
],
"customFieldValues": [
{},
null,
null,
null
],
"externalIdentities": [
{
"name": "string",
"value": "string"
}
],
"created": "2024-07-29T15:51:28.071Z",
"updated": "2024-07-29T15:51:28.071Z"
}
],
"page": 1,
"pageSize": 100,
"totalCount": 250
}
- Schema
- Example (from schema)
Schema
Array [
Array [
]
Array [
- CustomFieldValue
- TextCustomFieldValue
- SelectCustomFieldValue
- MultiSelectCustomFieldValue
- Text
- Select
- Multi-Select
- Text
- Select
- Multi-Select
- Text
- Select
- Multi-Select
- Text
- Select
- Multi-Select
]
Array [
]
]
data
object[]
nullable
The list of items for the current page.
The unique identifier of the facility in CarbonTrail.
The unique identifier of the organization the facility belongs to.
The unique identifier of the subsidiary the facility belongs to.
The name of the facility.
location
object
Represents a geographical location where a manufacturing process or material sourcing takes place.
The unique identifier of the location.
The name of the city.
The name of the state where the location is situated.
Possible values: non-empty
The ISO 3166-1 alpha-2 country code.
The full name of the country.
The name of the continent.
The latitude coordinate of the location.
The longitude coordinate of the location.
Possible values: [Owned, Leased To Others, Leased From Others, Franchise, Supplier Factory, Non-Leased Upstream, Non-Leased Downstream]
Possible values: [Unknown, Factory, Warehouse, Retail Store, Office, Service Center, Logistics Center, Outlet Store, Showroom]
The total area of the facility in square meters, when available.
The leased area of the facility in square meters, when available.
The occupancy rate of the facility as a percentage from 0 to 100, when available.
The primary contact email address for the facility.
aliases
object[]
nullable
The aliases associated with the facility, including alternative identifiers.
The unique identifier of the alias definition in CarbonTrail.
The name of the alias (e.g., "Supplier ID", "Facility ID").
The identifier value associated with the entity for this alias.
customFieldValues
object[]
nullable
The values of custom fields associated with the facility.
oneOf
Represents a custom field value.
type
string
required
Possible values: [Text, Select, Multi-Select]
The value of the text custom field.
The value of the multi-select custom field.
The values of the multi-select custom field.
Possible values: non-empty
The unique identifier of the custom field this value is associated with.
Represents a text custom field value.
type
string
required
Possible values: [Text, Select, Multi-Select]
circular(TextCustomFieldValue)
The value of the multi-select custom field.
The values of the multi-select custom field.
Possible values: non-empty
The unique identifier of the custom field this value is associated with.
The value of the text custom field.
Represents a select custom field value.
type
string
required
Possible values: [Text, Select, Multi-Select]
The value of the text custom field.
circular(SelectCustomFieldValue)
The values of the multi-select custom field.
Possible values: non-empty
The unique identifier of the custom field this value is associated with.
The value of the multi-select custom field.
Represents a multi-select custom field value.
type
string
required
Possible values: [Text, Select, Multi-Select]
The value of the text custom field.
The value of the multi-select custom field.
circular(MultiSelectCustomFieldValue)
Possible values: non-empty
The unique identifier of the custom field this value is associated with.
The values of the multi-select custom field.
externalIdentities
object[]
nullable
The identifiers of the facility in source systems, used for idempotency to prevent duplicate imports.
The name of the system (e.g., "SAP", "Workday", "Snowflake") where this ID is from.
The unique identifier value from the system.
The date and time the facility was created, in UTC.
The date and time the facility was last updated, in UTC, when available.
The current page number (1-indexed).
The number of items per page.
The total number of items across all pages.
{
"data": [
{
"id": "string",
"organizationId": "string",
"subsidiaryId": "string",
"name": "string",
"location": {
"id": "loc-12345",
"city": "Paris",
"stateName": "Île-de-France",
"country": "FR",
"countryName": "France",
"continent": "Europe",
"latitude": 48.8566,
"longitude": 2.3522
},
"category": "Owned",
"type": "Unknown",
"area": 0,
"leasedArea": 0,
"occupancyRate": 0,
"primaryEmail": "string",
"aliases": [
{
"id": "string",
"name": "string",
"value": "string"
}
],
"customFieldValues": [
{},
null,
null,
null
],
"externalIdentities": [
{
"name": "string",
"value": "string"
}
],
"created": "2024-07-29T15:51:28.071Z",
"updated": "2024-07-29T15:51:28.071Z"
}
],
"page": 1,
"pageSize": 100,
"totalCount": 250
}
- Schema
- Example (from schema)
Schema
Array [
Array [
]
Array [
- CustomFieldValue
- TextCustomFieldValue
- SelectCustomFieldValue
- MultiSelectCustomFieldValue
- Text
- Select
- Multi-Select
- Text
- Select
- Multi-Select
- Text
- Select
- Multi-Select
- Text
- Select
- Multi-Select
]
Array [
]
]
data
object[]
nullable
The list of items for the current page.
The unique identifier of the facility in CarbonTrail.
The unique identifier of the organization the facility belongs to.
The unique identifier of the subsidiary the facility belongs to.
The name of the facility.
location
object
Represents a geographical location where a manufacturing process or material sourcing takes place.
The unique identifier of the location.
The name of the city.
The name of the state where the location is situated.
Possible values: non-empty
The ISO 3166-1 alpha-2 country code.
The full name of the country.
The name of the continent.
The latitude coordinate of the location.
The longitude coordinate of the location.
Possible values: [Owned, Leased To Others, Leased From Others, Franchise, Supplier Factory, Non-Leased Upstream, Non-Leased Downstream]
Possible values: [Unknown, Factory, Warehouse, Retail Store, Office, Service Center, Logistics Center, Outlet Store, Showroom]
The total area of the facility in square meters, when available.
The leased area of the facility in square meters, when available.
The occupancy rate of the facility as a percentage from 0 to 100, when available.
The primary contact email address for the facility.
aliases
object[]
nullable
The aliases associated with the facility, including alternative identifiers.
The unique identifier of the alias definition in CarbonTrail.
The name of the alias (e.g., "Supplier ID", "Facility ID").
The identifier value associated with the entity for this alias.
customFieldValues
object[]
nullable
The values of custom fields associated with the facility.
oneOf
Represents a custom field value.
type
string
required
Possible values: [Text, Select, Multi-Select]
The value of the text custom field.
The value of the multi-select custom field.
The values of the multi-select custom field.
Possible values: non-empty
The unique identifier of the custom field this value is associated with.
Represents a text custom field value.
type
string
required
Possible values: [Text, Select, Multi-Select]
circular(TextCustomFieldValue)
The value of the multi-select custom field.
The values of the multi-select custom field.
Possible values: non-empty
The unique identifier of the custom field this value is associated with.
The value of the text custom field.
Represents a select custom field value.
type
string
required
Possible values: [Text, Select, Multi-Select]
The value of the text custom field.
circular(SelectCustomFieldValue)
The values of the multi-select custom field.
Possible values: non-empty
The unique identifier of the custom field this value is associated with.
The value of the multi-select custom field.
Represents a multi-select custom field value.
type
string
required
Possible values: [Text, Select, Multi-Select]
The value of the text custom field.
The value of the multi-select custom field.
circular(MultiSelectCustomFieldValue)
Possible values: non-empty
The unique identifier of the custom field this value is associated with.
The values of the multi-select custom field.
externalIdentities
object[]
nullable
The identifiers of the facility in source systems, used for idempotency to prevent duplicate imports.
The name of the system (e.g., "SAP", "Workday", "Snowflake") where this ID is from.
The unique identifier value from the system.
The date and time the facility was created, in UTC.
The date and time the facility was last updated, in UTC, when available.
The current page number (1-indexed).
The number of items per page.
The total number of items across all pages.
{
"data": [
{
"id": "string",
"organizationId": "string",
"subsidiaryId": "string",
"name": "string",
"location": {
"id": "loc-12345",
"city": "Paris",
"stateName": "Île-de-France",
"country": "FR",
"countryName": "France",
"continent": "Europe",
"latitude": 48.8566,
"longitude": 2.3522
},
"category": "Owned",
"type": "Unknown",
"area": 0,
"leasedArea": 0,
"occupancyRate": 0,
"primaryEmail": "string",
"aliases": [
{
"id": "string",
"name": "string",
"value": "string"
}
],
"customFieldValues": [
{},
null,
null,
null
],
"externalIdentities": [
{
"name": "string",
"value": "string"
}
],
"created": "2024-07-29T15:51:28.071Z",
"updated": "2024-07-29T15:51:28.071Z"
}
],
"page": 1,
"pageSize": 100,
"totalCount": 250
}
Bad Request
- text/plain
- application/json
- text/json
- Schema
- Example (from schema)
Schema
{
"type": "string",
"title": "string",
"status": 0,
"detail": "string",
"instance": "string"
}
- Schema
- Example (from schema)
Schema
{
"type": "string",
"title": "string",
"status": 0,
"detail": "string",
"instance": "string"
}
- Schema
- Example (from schema)
Schema
{
"type": "string",
"title": "string",
"status": 0,
"detail": "string",
"instance": "string"
}