Create a new currency

Updated on 12 Jun 2020

Description

Authenticated System User or External Entity acting as a User with corresponding access privileges CURRENCY_MANAGER connects to the System executes all steps of the “Authentication” Use Case. Then the request could be sent to add to the System to create a currency that is not currently existing by the System.

Actors

  1. External Entity that can interact with System Operator API acting as a registered System Operator user with corresponding access privileges CURRENCY_MANAGER.
  2. System Operator running “SDK.Finance” software and exposing portfolio of financial APIs.

Preconditions

  1. The user must have a System Operator profile with enough privileges.

Basic Flow

By default, this flow assumes that External Entity sends Requests to System Operator Endpoints and System Operator sends back Responses to External Entity.

  1. Perform all steps of Use Case “Authentication”.
  2. External Entity sends a request to Endpoint “Create a new currency”.

Endpoint URL: https://sdkfinance.app/api/ui/#!/Currency/Create_currency

Parameters:

Authorization – authorization token

Request body example:



   "code":"string",

   "digitalCode":"string",

   "symbol":"string",

   "name":"string",

   "description":"string"

}
  1. System Operator returns a result confirmation. (See Result example below)

Optional Flow with Web Browser UI

  1. Perform all steps of Use Case “Authentication”.
  2. A user sends a request to Endpoint “Create a new currency”.

Endpoint URL: https://sdkfinance.app/api/ui/#!/Currency/Create_currency

Parameters:

Authorization – authorization token

Request body example:



   "code":"string",

   "digitalCode":"string",

   "symbol":"string",

   "name":"string",

   "description":"string"

}
  1. System Operator returns a result confirmation. (See Result example below)

Post Conditions

Currency is added to the System and available for transactions.

Result example



   "currency":{ 

      "code":"string",

      "digitalCode":"string",

      "symbol":"string",

      "name":"string",

      "description":"string"

   },

   "status":"ok",

   "message":"string"

}