BWS API Docs
Contact UsCreate AccountSign In
  • Welcome!
    • Developer Grants
  • Quick Start
  • Platform Fees
    • Fees Calculator
  • API How Tos
    • API Endpoint
    • Authentication
      • Get your API Key
    • Main API Methods
      • 'call' API Method
      • 'fetch' API Method
    • API Responses
      • Error Status Codes
  • Certificate Of Trust
  • Media Assets
    • BWS Logo
    • Snapshots
      • BWS.IPFS.Upload
  • PLATFORM APIs
    • BWS.IPFS.Upload
      • Solution Overview
      • Operations
    • BWS.Blockchain.Save
      • Solution Overview
      • Operations
    • BWS.Blockchain.Hash
      • Solution Overview
      • Operations
    • BWS.NFT.zK
      • Solution Overview
        • NFT Ownership
        • NFT Data Location
        • Available Networks
      • Operations
        • Create NFT
        • List NFTs
        • Transfer NFT
        • Send NFT by Email
      • NFT Attributes (traits)
  • Marketplace Solutions
    • BWS.Blockchain.Badges
      • Badges User Interface
      • Badges API
        • Issuers
        • Badges
        • Awards (Credentials)
    • BWS.NFT.GameCube
      • NFT Game Overview
      • NFT Game Cube API
        • Calendar
        • Field
        • Cubes
        • Plays (Field-Calendar)
        • Match
        • Prizes
        • Event Types
        • Live Events
    • BWS.ESG.Credits
      • Solution Overview
      • ESG Credits API
        • Taxonomy
        • Translations
        • Currencies
        • Frameworks
        • Projects
        • Issuers
        • Assets
        • Investors
        • Positions
        • Portfolios
        • Impacts
        • Blockchain
        • Users
  • TELEGRAM BOTS
    • X BOT
      • Install
        • How does it work?
      • Commands
        • X Filtering
        • Leaderboard Points
        • Report Schedule
Powered by GitBook
On this page
  • getSDGs
  • Returns all United Nations Sustainable Development Goals
  • getEUObjectives
  • Returns European Union Environmental Development Objectives
  • getCategories
  • Returns the categories of the taxonomy for a particular reporting year
  • getSubCategories
  • Returns the sub categories of the taxonomy for a particular reporting year
  • getSuperIndicators
  • Returns the super indicators of the taxonomy for a particular reporting year
  • getIndicators
  • Returns the indicators and super indicators of the taxonomy for a particular reporting year
  • getUnits
  • Returns the units of the taxonomy for a particular reporting year
  • addCategory
  • Adds and updates a category to the taxonomy for a particular reporting year
  • addSubCategory
  • Adds and updates a sub category to the taxonomy for a particular reporting year
  • addGoalObjectiveToSubCategory
  • Adds a SDG and EU Objective to a sub category for a particular reporting year
  • addUnit
  • Adds and updates a unit to the taxonomy for a particular reporting year
  • addSuperIndicator
  • Adds and updates a super indicator to the taxonomy for a particular reporting year
  • addIndicator
  • Adds and updates an indicator to the taxonomy for a particular reporting year
  • getTaxonomy
  • Returns the taxonomy for a particular reporting year
  • copyTaxonomyToNewYear
  • Copies a taxonomy from one reporting year to another reporting year
  • removeIndicator
  • Removes an indicator
  • removeSuperIndicator
  • Removes a super indicator
  • removeUnit
  • Removes a unit
  • removeGoalObjectiveFromSubCategory
  • Removes an SDG and EU Objective from a sub category
  • removeSubCategory
  • Removes a sub category
  • removeCategory
  • Removes a category

Was this helpful?

  1. Marketplace Solutions
  2. BWS.ESG.Credits
  3. ESG Credits API

Taxonomy

This section has operations to build up the taxonomy of choice, i.e. categories, indicators, and units, as well as United Nation's Sustainability Development Goals and EU Environmental Objectives.

PreviousESG Credits APINextTranslations

Last updated 1 year ago

Was this helpful?

Returns all United Nations Sustainable Development Goals

POST https://api.bws.ninja/v1/call

Use this operation to explore which UN SDGs that are available to reference in your taxonomy.

Request Body

Name
Type
Description

solution*

string

BWS.ESG.Credits

operation*

string

getSDGs

parameters

JSON

check Operation parameters

Example responses

[
    {
        "sdg_id": 1,
        "goal_no": "1",
        "sdg": "No poverty",
        "language": "English"
    },
    {
        "sdg_id": 2,
        "goal_no": "2",
        "sdg": "Zero hunger",
        "language": "English"
    },
    {
        "sdg_id": 3,
        "goal_no": "3",
        "sdg": "Good health and well-being",
        "language": "English"
    },
    {
        "sdg_id": 4,
        "goal_no": "4",
        "sdg": "Quality education",
        "language": "English"
    },
    {
        "sdg_id": 5,
        "goal_no": "5",
        "sdg": "Gender equality",
        "language": "English"
    },
    {
        "sdg_id": 6,
        "goal_no": "6",
        "sdg": "Clean water and sanitation",
        "language": "English"
    },
    {
        "sdg_id": 7,
        "goal_no": "7",
        "sdg": "Affordable and clean energy",
        "language": "English"
    },
    {
        "sdg_id": 8,
        "goal_no": "8",
        "sdg": "Decent work and economic growth",
        "language": "English"
    },
    {
        "sdg_id": 9,
        "goal_no": "9",
        "sdg": "Industry, innovation and infrastructure",
        "language": "English"
    },
    {
        "sdg_id": 10,
        "goal_no": "10",
        "sdg": "Reduced inequality",
        "language": "English"
    },
    {
        "sdg_id": 11,
        "goal_no": "11",
        "sdg": "Sustainable cities and communities",
        "language": "English"
    },
    {
        "sdg_id": 12,
        "goal_no": "12",
        "sdg": "Responsible consumption and production",
        "language": "English"
    },
    {
        "sdg_id": 13,
        "goal_no": "13",
        "sdg": "Climate action",
        "language": "English"
    },
    {
        "sdg_id": 14,
        "goal_no": "14",
        "sdg": "Life below water",
        "language": "English"
    },
    {
        "sdg_id": 15,
        "goal_no": "15",
        "sdg": "Life on land",
        "language": "English"
    },
    {
        "sdg_id": 16,
        "goal_no": "16",
        "sdg": "Peace and strong justice institutions",
        "language": "English"
    },
    {
        "sdg_id": 17,
        "goal_no": "17",
        "sdg": "Partnerships to achieve the goal",
        "language": "English"
    }
]
{
    "message": "More details are needed to retrieve SDGs."
}
{
    "message": "Not authorized."
}

Operation parameters

Parameter
Type/Format
Required
Description

language_code

string

no

Language codes as per getLanguages. Default is the original language.

Example code

curl --location 'https://api.bws.ninja/v1/call' \
--header 'X-Api-Key: API-KEY' \
--header 'Content-Type: application/json' \
--data '{
    "solution": "BWS.ESG.Credits",
    "operation": "getSDGs",
     "parameters": {
        "language_code": "en"
        }
    }

Returns European Union Environmental Development Objectives

POST https://api.bws.ninja/v1/call

Use this operation to explore which EU Objectives that are available to reference in your taxonomy.

Request Body

Name
Type
Description

solution*

string

BWS.ESG.Credits

operation*

string

getEUObjectives

parameters

string

check Operation parameters

Example responses

[
    {
        "eu_objectiv_id": 1,
        "objective_no": "1",
        "objective": "Climate change mitigation",
        "language": "English"
    },
    {
        "eu_objectiv_id": 2,
        "objective_no": "2",
        "objective": "Climate change adaptation",
        "language": "English"
    },
    {
        "eu_objectiv_id": 3,
        "objective_no": "3",
        "objective": "Sustainable use and protection of water and marine resources",
        "language": "English"
    },
    {
        "eu_objectiv_id": 4,
        "objective_no": "4",
        "objective": "Transition to a circular economy",
        "language": "English"
    },
    {
        "eu_objectiv_id": 5,
        "objective_no": "5",
        "objective": "Pollution prevention and control",
        "language": "English"
    },
    {
        "eu_objectiv_id": 6,
        "objective_no": "6",
        "objective": "Protection and restoration of biodiversity and ecosystems",
        "language": "English"
    }
]
{
    "message": "More details are needed to retrieve EU Objectives."
}
{
    "message": "Not authorized."
}

Operation parameters

Parameter
Type/Format
Required
Description

language_code

string

no

Language codes as per getLanguages. Default is the original language.

Example code

curl --location 'https://api.bws.ninja/v1/call' \
--header 'X-Api-Key: API-KEY' \
--header 'Content-Type: application/json' \
--data '{
    "solution": "BWS.ESG.Credits",
    "operation": "getEUObjectives",
    "parameters": {
        "language_code": "en"
        }
    }

Returns the categories of the taxonomy for a particular reporting year

POST https://api.bws.ninja/v1/call

Use this operation to retrieve all categories of your taxonomy.

Request Body

Name
Type
Description

solution*

string

BWS.ESG.Credits

operation*

string

getCategories

parameters*

JSON

check Operation parameters

Example responses

[
    {
        "category_id": 63,
        "category_name": "Renewable energy",
        "language": "English"
    },
    {
        "category_id": 64,
        "category_name": "Green buildings",
        "language": "English"
    },
    {
        "category_id": 65,
        "category_name": "Sustainable forestry",
        "language": "English"
    },
    {
        "category_id": 66,
        "category_name": "Clean transportation",
        "language": "English"
    },
    {
        "category_id": 67,
        "category_name": "Energy efficiency",
        "language": "English"
    },
    {
        "category_id": 68,
        "category_name": "Pollution prevention and control",
        "language": "English"
    },
    {
        "category_id": 69,
        "category_name": "Circular economy",
        "language": "English"
    }
]
{
    "message": "No such categories registered."
}
{
    "message": "Not authorized."
}

Operation parameters

Parameter
Type/Format
Required
Description

reporting_year

number/4 digits

yes

Year of the taxonomy

language_code

string

no

Language codes as per getLanguages. Default is the original language.

Example code

curl --location 'https://api.bws.ninja/v1/call' \
--header 'X-Api-Key: API-KEY' \
--header 'Content-Type: application/json' \
--data '{
    "solution": "BWS.ESG.Credits",
    "operation": "getCategories",
    "parameters": {
        "reporting_year": 2023,
        "language_code": "en"
        }
    }

Returns the sub categories of the taxonomy for a particular reporting year

POST https://api.bws.ninja/v1/call

Use this operation to retrieve all sub categories of your taxonomy.

Request Body

Name
Type
Description

solution*

string

BWS.ESG.Credits

operation*

string

getSubCategories

parameters*

JSON

check Operation parameters

Example responses

[
    {
        "sub_category_id": 55,
        "sub_category_name": "Wind power",
        "category_id": 63,
        "category_name": "Renewable energy",
        "sdg": {
            "7": "Affordable and clean energy",
            "13": "Climate action"
        },
        "eu_objective": {},
        "language": "English"
    },
    {
        "sub_category_id": 56,
        "sub_category_name": "Hydro- and solar power, biogas",
        "category_id": 63,
        "category_name": "Renewable energy",
        "sdg": {
            "7": "Affordable and clean energy",
            "13": "Climate action"
        },
        "eu_objective": {},
        "language": "English"
    },
    {
        "sub_category_id": 57,
        "sub_category_name": "Green buildings",
        "category_id": 64,
        "category_name": "Green buildings",
        "sdg": {
            "7": "Affordable and clean energy",
            "13": "Climate action"
        },
        "eu_objective": {},
        "language": "English"
    },
    {
        "sub_category_id": 58,
        "sub_category_name": "Sustainable forestry",
        "category_id": 65,
        "category_name": "Sustainable forestry",
        "sdg": {
            "13": "Climate action",
            "15": "Life on land"
        },
        "eu_objective": {},
        "language": "English"
    },
    {
        "sub_category_id": 59,
        "sub_category_name": "Biogas/electrical buses and electrical cars",
        "category_id": 66,
        "category_name": "Clean transportation",
        "sdg": {
            "11": "Sustainable cities and communities",
            "13": "Climate action"
        },
        "eu_objective": {},
        "language": "English"
    },
    {
        "sub_category_id": 60,
        "sub_category_name": "Electric trains",
        "category_id": 66,
        "category_name": "Clean transportation",
        "sdg": {
            "11": "Sustainable cities and communities",
            "13": "Climate action"
        },
        "eu_objective": {},
        "language": "English"
    }
]
{
    "message": "No such sub categories registered."
}
{
    "message": "Not authorized."
}

Operation parameters

Parameter
Type/Format
Required
Description

reporting_year

number, 4 digits

yes

Year of the taxonomy

language_code

string

no

Language codes as per getLanguages. Default is the original language.

Example code

curl --location 'https://api.bws.ninja/v1/call' \
--header 'X-Api-Key: API-KEY' \
--header 'Content-Type: application/json' \
--data '{
    "solution": "BWS.ESG.Credits",
    "operation": "getSubCategories",
    "parameters": {
        "reporting_year": 2023,
        "language_code": "en"
        }
    }

Returns the super indicators of the taxonomy for a particular reporting year

POST https://api.bws.ninja/v1/call

Use this operation to retrieve all super indicators of your taxonomy.

Request Body

Name
Type
Description

solution*

string

BWS.ESG.Credits

operation*

string

getSuperIndicators

parameters*

JSON

check Operation arameters

Example responses

[
    {
        "super_indicator_id": 28,
        "super_indicator_name": "Annual emission reduction",
        "category_id": 63,
        "category_name": "Renewable energy",
        "language": "English"
    },
    {
        "super_indicator_id": 28,
        "super_indicator_name": "Annual emission reduction",
        "category_id": 64,
        "category_name": "Green buildings",
        "language": "English"
    },
    {
        "super_indicator_id": 28,
        "super_indicator_name": "Annual emission reduction",
        "category_id": 67,
        "category_name": "Energy efficiency",
        "language": "English"
    },
    {
        "super_indicator_id": 28,
        "super_indicator_name": "Annual emission reduction",
        "category_id": 69,
        "category_name": "Circular economy",
        "language": "English"
    },
    {
        "super_indicator_id": 29,
        "super_indicator_name": "Effect",
        "category_id": 63,
        "category_name": "Renewable energy",
        "language": "English"
    },
    {
        "super_indicator_id": 29,
        "super_indicator_name": "Effect",
        "category_id": 67,
        "category_name": "Energy efficiency",
        "language": "English"
    },
    {
        "super_indicator_id": 31,
        "super_indicator_name": "Annual energy savings",
        "category_id": 64,
        "category_name": "Green buildings",
        "language": "English"
    }
]
{
    "message": "No such super indicators registered."
}
{
    "message": "Not authorized."
}

Operation parameters

Parameter
Type/Format
Required
Description

reporting_year

number, 4 digits

yes

Year of the taxonomy

language_code

string

no

Language codes as per getLanguages. Default is the original language.

Example code

curl --location 'https://api.bws.ninja/v1/call' \
--header 'X-Api-Key: API-KEY' \
--header 'Content-Type: application/json' \
--data '{
    "solution": "BWS.ESG.Credits",
    "operation": "getSuperIndicators",
    "parameters": {
        "reporting_year": 2023,
        "language_code": "en"
        }
    }

Returns the indicators and super indicators of the taxonomy for a particular reporting year

POST https://api.bws.ninja/v1/call

Use this operation to retrieve all indicators of your taxonomy.

Request Body

Name
Type
Description

solution*

string

BWS.ESG.Credits

operation*

string

getIndicators

parameters*

JSON

check Operation parameters

Example responses

[
    {
        "indicator_id": 34,
        "indicator_name": "Annual emission reduction",
        "super_indicator_id": 28,
        "super_indicator_name": "Annual emission reduction",
        "language": "English"
    },
    {
        "indicator_id": 35,
        "indicator_name": "Effect",
        "super_indicator_id": 29,
        "super_indicator_name": "Effect",
        "language": "English"
    },
    {
        "indicator_id": 36,
        "indicator_name": "Annual electricity/energy production",
        "super_indicator_id": 30,
        "super_indicator_name": "Annual electricity/energy production",
        "language": "English"
    },
    {
        "indicator_id": 37,
        "indicator_name": "Annual energy savings",
        "super_indicator_id": 31,
        "super_indicator_name": "Annual energy savings",
        "language": "English"
    }
]
{
    "message": "No such indicators registered."
}
{
    "message": "Not authorized."
}

Operation parameters

Parameter
Type/Format
Required
Description

reporting_year

number, 4 digits

yes

Year of the taxonomy

language_code

string

no

Language codes as per getLanguages. Default is the original language.

Example code

curl --location 'https://api.bws.ninja/v1/call' \
--header 'X-Api-Key: API-KEY' \
--header 'Content-Type: application/json' \
--data '{
    "solution": "BWS.ESG.Credits",
    "operation": "getIndicators",
    "parameters": {
        "reporting_year": 2023,
        "language_code": "en"
        }
    }

Returns the units of the taxonomy for a particular reporting year

POST https://api.bws.ninja/v1/call

Use this operation to retrieve all units of your taxonomy.

Request Body

Name
Type
Description

solution*

string

BWS.ESG.Credits

operation*

string

getUnits

parameters*

string

check Operation parameters

Example responses

[
    {
        "unit_id": 25,
        "unit_name": "CO2e kg",
        "language": "English"
    },
    {
        "unit_id": 26,
        "unit_name": "kW",
        "language": "English"
    },
    {
        "unit_id": 27,
        "unit_name": "MWh",
        "language": "English"
    }
]
{
    "message": "No such units registered."
}
{
    "message": "Not authorized."
}

Operation parameters

Parameter
Type/Format
Required
Description

reporting_year

number, 4 digits

yes

Year of the taxonomy

language_code

string

no

Language codes as per getLanguages. Default is the original language.

Example code

curl --location 'https://api.bws.ninja/v1/call' \
--header 'X-Api-Key: API-KEY' \
--header 'Content-Type: application/json' \
--data '{
    "solution": "BWS.ESG.Credits",
    "operation": "getUnits",
    "parameters": {
        "reporting_year": 2023,
        "language_code": "en"
        }
    }

Adds and updates a category to the taxonomy for a particular reporting year

POST https://api.bws.ninja/v1/call

Use this operation to add a category to your taxonomy.

Request Body

Name
Type
Description

solution*

string

BWS.ESG.Credits

operation*

string

addCategory

parameters*

JSON

check Operation parameters

Example responses

{
    "message": "Category was successfully added (id). 67"
}
{
    "message": "Suggested category name to change was not found."
}
{
    "message": "Not authorized."
}

Operation parameters

Parameter
Type/Format
Required
Description

category_name

string

yes

Category name to add or change

reporting_year

number/4 digits

yes

Year of the taxonomy

category_name_changed

string

no

New category name

language_code

string

yes

Selection of original language code as per getLanguages

Example code

curl --location 'https://api.bws.ninja/v1/call' \
--header 'X-Api-Key: API-KEY' \
--header 'Content-Type: application/json' \
--data '{
    "solution": "BWS.ESG.Credits",
    "operation": "addCategory",
    "parameters": {
        "category_name": "Circular economy",
        "reporting_year": 2023,
        "category_name_changed": "",
        "language_code": "en"
        }
    }

Adds and updates a sub category to the taxonomy for a particular reporting year

POST https://api.bws.ninja/v1/call

Use this operation to add a sub category to your taxonomy.

Request Body

Name
Type
Description

solution*

string

BWS.ESG.Credits

operation*

string

addSubCategory

parameters*

JSON

check Operation parameters

Example responses

{
    "message": "Sub category name was successfully changed."
}
{
    "message": "Suggested sub category name is already in use."
}
{
    "message": "Not authorized."
}

Operation parameters

Parameter
Type/Format
Required
Description

sub_category_name

string

yes

Sub category name to add or change

category_id

number/integer

yes

Integer identifier for a category

reporting_year

number/4 digits

yes

Year of the taxonomy

sub_category_name_changed

string

no

New sub category name

language_code

string

yes

Selection of original language code as per getLanguages

Example code

curl --location 'https://api.bws.ninja/v1/call' \
--header 'X-Api-Key: API-KEY' \
--header 'Content-Type: application/json' \
--data '{
    "solution": "BWS.ESG.Credits",
    "operation": "addSubCategory",
    "parameters": {
        "sub_category_name": "Circular economy",
        "category_id": 69,
        "reporting_year": 2023,
        "sub_category_name_changed": "",
        "category_id_changed": "",
        "language_code": "en"
        }
    }

Adds a SDG and EU Objective to a sub category for a particular reporting year

POST https://api.bws.ninja/v1/call

Use this operation to add SDGs and EU Environmental Objectives to a sub category of your taxonomy.

Request Body

Name
Type
Description

solution*

string

BWS.ESG.Credits

operation*

string

addGoalObjectiveToSubCategory

parameters*

string

check Operation parameters

Example responses

{
    "message": "SDG was successfully added."
}
{
    "message": "That SDG is already assigned to this sub category."
}
{
    "message": "Not authorized."
}

Operation parameters

Parameter
Type/Format
Required
Description

sub_category_id

number, integer

yes

Integer identifier for a sub category

reporting_year

number/4 digits

yes

Year of the taxonomy

sdg_id

number/integer

no

Integer identifier for an SDG

eu_objective_id

number/integer

no

Integer identifier for an EU Environmental Objective

Example code

curl --location 'https://api.bws.ninja/v1/call' \
--header 'X-Api-Key: API-KEY' \
--header 'Content-Type: application/json' \
--data '{
    "solution": "BWS.ESG.Credits",
    "operation": "addGoalObjectiveToSubCategory",
    "parameters": {
        "sub_category_id": 63,
        "reporting_year": 2023,
        "sdg_id": 12,
        "eu_objective_id": ""
        }
    }

Adds and updates a unit to the taxonomy for a particular reporting year

POST https://api.bws.ninja/v1/call

Use this operation to add a unit to your taxonomy.

Request Body

Name
Type
Description

solution*

string

BWS.ESG.Credits

operation*

string

addUnit

parameters*

JSON

check Operation parameters

Example responses

{
    "message": "Unit was successfully added (id). 45"
}
{
    "message": "No unit possible to register for that language code."
}
{
    "message": "Not authorized."
}

Operation parameters

Parameter
Type/Format
Required
Description

unit_name

string

yes

Unit name to add or change

reporting_year

number/4 digits

yes

Year of the taxonomy

unit_name_changed

string

no

New unit name

language_code

string

yes

Selection of original language code as per getLanguages

Example code

curl --location 'https://api.bws.ninja/v1/call' \
--header 'X-Api-Key: API-KEY' \
--header 'Content-Type: application/json' \
--data '{
    "solution": "BWS.ESG.Credits",
    "operation": "addUnit",
    "parameters": {
        "unit_name": "MWh",
        "reporting_year": 2023,
        "unit_name_changed": "",
        "language_code": "en"
        }
    }

Adds and updates a super indicator to the taxonomy for a particular reporting year

POST https://api.bws.ninja/v1/call

Use this operation to add a super category to your taxonomy.

Request Body

Name
Type
Description

solution*

string

BWS.ESG.Credits

operation*

string

addSuperIndicator

parameters*

JSON

check Operation parameters

Example responses

{
    "message": "Super indicator name was successfully changed."
}
{
    "message": "No such super indicator for that reporting year."
}
{
    "message": "Not authorized."
}

Operation parameters

Parameter
Type/Format
Required
Description

super_indicator_name

string

yes

Super indicator name to add or change

category_id

number/integer

yes

Integer identifier for a category

reporting_year

number/4 digits

yes

Year of the taxonomy

super_indicator_name_changed

string

no

New super indicator name

category_id_changed

number/integer

no

New category id

language_code

string

yes

Selection of original language code as per getLanguages

Example code

curl --location 'https://api.bws.ninja/v1/call' \
--header 'X-Api-Key: API-KEY' \
--header 'Content-Type: application/json' \
--data '{
    "solution": "BWS.ESG.Credits",
    "operation": "addSuperIndicator",
    "parameters": {
        "super_indicator_name": "Annual energy savings",
        "category_id": 64,
        "reporting_year": 2023,
        "super_indicator_name_changed": "",
        "category_id_changed": "",
        "language_code": "en"
        }
    }

Adds and updates an indicator to the taxonomy for a particular reporting year

POST https://api.bws.ninja/v1/call

Use this operation to add an indicator to your taxonomy.

Request Body

Name
Type
Description

solution*

string

BWS.ESG.Credits

operation*

string

addIndicator

parameters*

JSON

check Operation parameters

Example responses

{
    "message": "Indicator was sucessfully added (id). 23"
}
{
    "message": "Suggested indicator name is already in use."
}
{
    "message": "Not authorized."
}

Operation parameters

Parameter
Type/Format
Required
Description

indicator_name

string

yes

Indicator name to add or change

super_indicator_id

number/integer

yes

Integer identifier for a super indicator

unit_id

number/integer

yes

Integer identifier for a unit

reporting_year

number/4 digits

yes

Year of the taxonomy

indicator_name_changed

string

no

New indicator name

super_indicator_id_changed

number/integer

no

New super indicator id

unit_id_changed

number/integer

no

New unit id

language_code

string

yes

Selection of original language code as per getLanguages

Example code

curl --location 'https://api.bws.ninja/v1/call' \
--header 'X-Api-Key: API-KEY' \
--header 'Content-Type: application/json' \
--data '{
    "solution": "BWS.ESG.Credits",
    "operation": "addIndicator",
    "parameters": {
        "indicator_name": "Annual energy savings",
        "super_indicator_id": 31,
        "unit_id": 27,
        "reporting_year": 2023,
        "indicator_name_changed": "",
        "super_indicator_id_changed": "",
        "unit_id_changed": "",
        "language_code": "en"
        }
    }

Returns the taxonomy for a particular reporting year

POST https://api.bws.ninja/v1/call

Use this operation retrieve your stored taxonomy.

Request Body

Name
Type
Description

solution*

string

BWS.ESG.Credits

operation*

string

getTaxonomy

parameters*

JSON

check Operation parameters

Example responses

[
    {
        "category_id": 63,
        "category_name": "Renewable energy",
        "sub_category_id": 55,
        "sub_category_name": "Wind power",
        "super_indicator_id": 28,
        "super_indicator_name": "Annual emission reduction",
        "indicator_id": 34,
        "indicator_name": "Annual emission reduction",
        "unit_id": 25,
        "unit_name": "CO2e kg",
        "sdg": {
            "7": "Affordable and clean energy",
            "13": "Climate action"
        },
        "eu_objective": {},
        "language": "English"
    },
    {
        "category_id": 63,
        "category_name": "Renewable energy",
        "sub_category_id": 56,
        "sub_category_name": "Hydro- and solar power, biogas",
        "super_indicator_id": 28,
        "super_indicator_name": "Annual emission reduction",
        "indicator_id": 34,
        "indicator_name": "Annual emission reduction",
        "unit_id": 25,
        "unit_name": "CO2e kg",
        "sdg": {
            "7": "Affordable and clean energy",
            "13": "Climate action"
        },
        "eu_objective": {},
        "language": "English"
    },
    {
        "category_id": 63,
        "category_name": "Renewable energy",
        "sub_category_id": 56,
        "sub_category_name": "Hydro- and solar power, biogas",
        "super_indicator_id": 29,
        "super_indicator_name": "Effect",
        "indicator_id": 35,
        "indicator_name": "Effect",
        "unit_id": 26,
        "unit_name": "kW",
        "sdg": {
            "7": "Affordable and clean energy",
            "13": "Climate action"
        },
        "eu_objective": {},
        "language": "English"
    },
    {
        "category_id": 64,
        "category_name": "Green buildings",
        "sub_category_id": 57,
        "sub_category_name": "Green buildings",
        "super_indicator_id": 31,
        "super_indicator_name": "Annual energy savings",
        "indicator_id": 37,
        "indicator_name": "Annual energy savings",
        "unit_id": 27,
        "unit_name": "MWh",
        "sdg": {
            "7": "Affordable and clean energy",
            "13": "Climate action"
        },
        "eu_objective": {},
        "language": "English"
    },
    {
        "category_id": 65,
        "category_name": "Sustainable forestry",
        "sub_category_id": 58,
        "sub_category_name": "Sustainable forestry",
        "super_indicator_id": 28,
        "super_indicator_name": "Annual emission reduction",
        "indicator_id": 34,
        "indicator_name": "Annual emission reduction",
        "unit_id": 25,
        "unit_name": "CO2e kg",
        "sdg": {
            "13": "Climate action",
            "15": "Life on land"
        },
        "eu_objective": {},
        "language": "English"
    },
    {
        "category_id": 66,
        "category_name": "Clean transportation",
        "sub_category_id": 59,
        "sub_category_name": "Biogas/electrical buses and electrical cars",
        "super_indicator_id": 28,
        "super_indicator_name": "Annual emission reduction",
        "indicator_id": 34,
        "indicator_name": "Annual emission reduction",
        "unit_id": 25,
        "unit_name": "CO2e kg",
        "sdg": {
            "11": "Sustainable cities and communities",
            "13": "Climate action"
        },
        "eu_objective": {},
        "language": "English"
    }
]
{
    "message": "No such taxonomy registered."
}
{
    "message": "Not authorized."
}

Operation parameters

Parameter
Type/Format
Required
Description

reporting_year

number/integer

yes

Year of the taxonomy

Example code

curl --location 'https://api.bws.ninja/v1/call' \
--header 'X-Api-Key: API-KEY' \
--header 'Content-Type: application/json' \
--data '{
    "solution": "BWS.ESG.Credits",
    "operation": "getTaxonomy",
    "parameters": {
        "reporting_year": 2023
        }
    }

Copies a taxonomy from one reporting year to another reporting year

POST https://api.bws.ninja/v1/call

Use this operation to copy your taxonomy to a new year.

Request Body

Name
Type
Description

solution*

string

BWS.ESG.Credits

operation*

string

copyTaxonomyToNewYear

parameters*

JSON

check Operation parameters

Example responses

{
    "message": "Taxonomy was successfully copied."
}
{
    "message": "Not copied, taxonomy already exists for target year."
}
{
    "message": "Not authorized."
}

Operation parameters

Parameter
Type/Format
Required
Description

source_year

number/4 digits

yes

Source year of the taxonomy

target_year

number/4 digits

yes

Target year of the taxonomy

Example code

curl --location 'https://api.bws.ninja/v1/call' \
--header 'X-Api-Key: API-KEY' \
--header 'Content-Type: application/json' \
--data '{
    "solution": "BWS.ESG.Credits",
    "operation": "copyTaxonomyToNewYear",
    "parameters": {
        "source_year": 2022,
        "target_year": 2023
        }
    }

Removes an indicator

POST https://api.bws.ninja/v1/call

Request Body

Name
Type
Description

solution*

string

BWS.ESG.Credits

operation*

string

removeIndicator

parameters*

JSON

check Operation parameters

Example responses

{
    "message": "Indicator was successfully removed."
}
{
    "message": "Cannot remove indicator. Still used in a framework."
}
{
    "message": "Not authorized."
}

Operation parameters

Parameter
Type/Format
Required
Description

indicator_id

number/integer

yes

reporting_year

number/4 digits

yes

Example code

curl --location 'https://api.bws.ninja/v1/call' \
--header 'X-Api-Key: API-KEY' \
--header 'Content-Type: application/json' \
--data '{
    "solution": "BWS.ESG.Credits",
    "operation": "removeIndicator",
    "parameters": {
        "indicator_id": 13,
        "reporting_year": 2023
        }
    }

Removes a super indicator

POST https://api.bws.ninja/v1/call

Request Body

Name
Type
Description

solution*

string

BWS.ESG.Credits

operation*

string

removeSuperIndicator

parameters*

JSON

check Operation parameters

Example responses

{
    "message": "Super indicator was successfully removed."
}
{
    "message": "No such super indicator."
}
{
    "message": "Not authorized."
}

Operation parameters

Parameter
Type/Format
Required
Description

super_indicator_id

number/integer

yes

reporting_year

number/4 digits

yes

Example code

curl --location 'https://api.bws.ninja/v1/call' \
--header 'X-Api-Key: API-KEY' \
--header 'Content-Type: application/json' \
--data '{
    "solution": "BWS.ESG.Credits",
    "operation": "removeSuperIndicator",
    "parameters": {
        "super_indicator_id": 56,
        "reporting_year": 2023
        }
    }

Removes a unit

POST https://api.bws.ninja/v1/call

Request Body

Name
Type
Description

solution*

string

BWS.ESG.Credits

operation*

string

removeUnit

parameters*

JSON

check Operation parameters

Example responses

{
    "message": "Unit was successfully removed."
}
{
    "message": "Cannot remove unit. Still referred to by an indicator."
}
{
    "message": "Not authorized."
}

Operation parameters

Parameter
Type/Format
Required
Description

unit_id

number/integer

yes

reporting_year

number/4 digits

yes

Example code

curl --location 'https://api.bws.ninja/v1/call' \
--header 'X-Api-Key: API-KEY' \
--header 'Content-Type: application/json' \
--data '{
    "solution": "BWS.ESG.Credits",
    "operation": "removeUnit",
    "parameters": {
        "unit_id": 14,
        "reporting_year": 2023
        }
    }

Removes an SDG and EU Objective from a sub category

POST https://api.bws.ninja/v1/call

Use this operation to remove SDGs and EU Environmental Objectives from your taxonomy.

Request Body

Name
Type
Description

solution*

string

BWS.ESG.Credits

operation*

string

removeGoalObjectiveFromSubCategory

parameters*

JSON

check Operation parameters

Example responses

{
    "message": "The SDG was successfully removed from this sub category."
}
{
    "message": "That SDG does not exist for this sub category."
}
{
    "message": "Not authorized."
}

Operation parameters

Parameter
Type/Format
Required
Description

reporting_year

number/4 digits

yes

Year of the taxonomy

sub_category_id

number/integer

yes

Integer identifier for a sub category

sdg_id

number/integer

yes

Integer identifier for an SDG

eu_objective_id

number/integer

yes

Integer identifier for an EU Environmental Objective

Example code

curl --location 'https://api.bws.ninja/v1/call' \
--header 'X-Api-Key: API-KEY' \
--header 'Content-Type: application/json' \
--data '{
    "solution": "BWS.ESG.Credits",
    "operation": "removeGoalObjectiveFromSubCategory"
    "parameters": {
        "reporting_year": 2023
        "sub_category_id": 13
        "sdg_id": 4
        "eu_objective_id": 2
        }
    }

Removes a sub category

POST https://api.bws.ninja/v1/call

Request Body

Name
Type
Description

solution*

string

BWS.ESG.Credits

operation*

string

removeSubCategory

parameters*

JSON

check Operation parameters

Example responses

{
    "message": "Sub category was successfully removed."
}
{
    "message": "Cannot remove sub category. Position needs to be removed first."
}
{
    "message": "Not authorized."
}

Operation parameters

Parameter
Type/Format
Required
Description

sub_category_id

number/integer

yes

reporting_year

number/4 digits

yes

Example code

curl --location 'https://api.bws.ninja/v1/call' \
--header 'X-Api-Key: API-KEY' \
--header 'Content-Type: application/json' \
--data '{
    "solution": "BWS.ESG.Credits",
    "operation": "removeSubCategory",
    "parameters": {
        "sub_category_id": 35,
        "reporting_year": 2023
        }
    }

Removes a category

POST https://api.bws.ninja/v1/call

Request Body

Name
Type
Description

solution*

string

BWS.ESG.Credits

operation*

string

removeCategory

parameters*

JSON

check Operation parameters

Example responses

{
    "message": "Category was successfully removed."
}
{
    "message": "Cannot remove category. Still referred to by a sub category."
}
{
    "message": "Not authorized."
}

Operation parameters

Parameter
Type/Format
Required
Description

category_id

number/integer

yes

reporting_year

number/4 digits

yes

Example code

curl --location 'https://api.bws.ninja/v1/call' \
--header 'X-Api-Key: API-KEY' \
--header 'Content-Type: application/json' \
--data '{
    "solution": "BWS.ESG.Credits",
    "operation": "removeCategory",
    "parameters": {
        "category_id": 57,
        "reporting_year": 2023
        }
    }

getSDGs
getEUObjectives
getCategories
getSubCategories
getSuperIndicators
getIndicators
getUnits
addCategory
addSubCategory
addGoalObjectiveToSubCategory
addUnit
addSuperIndicator
addIndicator
getTaxonomy
copyTaxonomyToNewYear
removeIndicator
removeSuperIndicator
removeUnit
removeGoalObjectiveFromSubCategory
removeSubCategory
removeCategory