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
        • Monitoring Setup
Powered by GitBook
On this page
  • getIssuers
  • Returns private or public issuers
  • addIssuer
  • Creates or updates information about an existing issuer
  • removeIssuer
  • Removes an issuer

Was this helpful?

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

Issuers

This section deals with issuers of green assets, i.e. showing, adding, and removing issuers of green assets

PreviousProjectsNextAssets

Last updated 1 year ago

Was this helpful?

Returns private or public issuers

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

Use this operation to retrieve issuers of green assets.

Request Body

Name
Type
Description

solution*

string

BWS.ESG.Credits

operation*

string

getIssuers

parameters

JSON

check Operation parameters

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

Parameter
Type/Format
Required
Description

issuer_visibility

string

no

Public or private. Default is private, meaning not visible across different BWS accounts.

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

Name
Type
Description

solution*

string

BWS.ESG.Credits

operation*

string

addIssuer

parameters*

JSON

check Operation parameters

Example responses

{
    "message": "Issuer was successfully added."
}
{
    "message": "Invalid issuer visibility term used."
}
{
    "message": "Not authorized."
}

Operation parameters

Parameter
Type/Format
Required
Description

issuer_identifier

string

yes

String identifier for an issuer

issuer_name

string

yes

Issuer name

issuer_currency_code

string

yes

Currency code of the asset, as per getCurrencies

issuer_visibility

string

no

Public or private. Default is private, meaning not visible across different BWS accounts.

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

Name
Type
Description

solution*

string

BWS.ESG.Credits

operation*

string

removeIssuer

parameters*

JSON

check Operation parameters

Example responses

{
    "Issuer was successfully removed."
}
{
    "message": "Issuer was not removed. Asset(s) exist."
}
{
    "message": "Not authorized."
}

Operation parameters

Parameter
Type/Format
Required
Description

issuer_identifier

string

yes

String identifier for an issuer

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"
    }

getIssuers
addIssuer
removeIssuer