Issuers
This section deals with issuers of green assets, i.e. showing, adding, and removing issuers of green assets
Returns private or public issuers
POST
https://api.bws.ninja/v1/call
Use this operation to retrieve issuers of green assets.
Request Body
Example responses
[
{
"issuer_id": 1,
"issuer_identifier": "35f0c1a1c08",
"issuer_name": "X Bank",
"issuer_currency_code": "EUR",
"issuer_visibility": "public"
},
{
"issuer_id": 6,
"issuer_identifier": "good-bank-issuer",
"issuer_name": "Good Bank",
"issuer_currency_code": "SEK",
"issuer_visibility": "private"
}
]
{
"message": "No such issuer is registered."
}
{
"message": "Not authorized."
}
Operation parameters
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": "getIssuers",
"parameters": {
"issuer_visibility": "public"
}
}
Creates or updates information about an existing issuer
POST
https://api.bws.ninja/v1/call
Use this operation to add issuers of green assets. This operation also alters already existing issuer information.
Request Body
Example responses
{
"message": "Issuer was successfully added."
}
{
"message": "Invalid issuer visibility term used."
}
{
"message": "Not authorized."
}
Operation parameters
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": "addIssuer",
"parameters": {
"issuer_identifier": "good_issuer",
"issuer_name": "Good Bank",
"issuer_currency_code": "EUR",
"issuer_visibility": "private"
}
}
Removes an issuer
POST
https://api.bws.ninja/v1/call
Use this operation to remove issuers of green assets from the ESG.Credits data repository.
Request Body
Example responses
{
"Issuer was successfully removed."
}
{
"message": "Issuer was not removed. Asset(s) exist."
}
{
"message": "Not authorized."
}
Operation parameters
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": "removeIssuer",
"parameters": {
"issuer_identifier": "good_issuer"
}