Digital entity
There are 3 types of entities that we use in the processing center:
identification entity - for creating digital identificators
processing entity - for distribution of identificators between branches and customers
customer's entity - each external user has their own Stellar entity
Create an additional processing entity
Entities are created in 4 ways:
a counterparty is already created with 2 digital entities: an identification and a processing.
an employee can create an additional processing entity for their Counterparty (e.g., to separate identificator flow between branches) - see below.
an employee can create an digital entity for a customer (each customer has their own Stellar entity) - see Customer.
a customer can create an entity for themselves (not yet implemented).
Create account
Counterparty GUID
type of account: processing or emission (for branch accounts only processing type is possible)
POST /api/v1/counterparty/{counterparty_guid}/accounts HTTP/1.1
Host: your_host
Content-Type: application/json
Accept: */*
Content-Length: 69
{
"account_kind": "processing",
"iban": "text",
"key_keeper_login": "text"
}
{
"guid": "text"
}
The attribute branch_guid
is optional.
Get entity list
Get the list of accounts that are visible to the user.
Get accounts list
Counterparty GUID
wallet account guid (uuid)
wallet user guid (uuid)
account kinds (string)
iban
Parameter to search by guid, iban, login or external_id
offset (int)
list order (string)
GET /api/v1/counterparty/{counterparty_guid}/accounts HTTP/1.1
Host: your_host
Accept: */*
[
{
"accounts": [
{
"account_kind": "processing",
"counterparty_guid": "text",
"created_at": "text",
"iban": "text",
"stellar_address": "text",
"updated_at": "text",
"wallet_account_guid": "text",
"wallet_user_external_id": "text",
"wallet_user_guid": "text"
}
],
"total": 1
}
]
The filter search_string
accepts the following values:
customer_guid
- the unique identifier of the customer. More you can find hereaccount_guid
- the unique identifier of the digital entityaccount_iban
- IBAN of an account without spacescustomer.login
- customer's login, which was assigned upon customer registrationcustomer.external_id
- customer's external identifier, can be the same aslogin
Get digital entity
Get the accounts for the counterparty.
Get account
Counterparty GUID
wallet account guid (uuid)
iban (string)
GET /api/v1/counterparty/{counterparty_guid}/accounts/{account_guid} HTTP/1.1
Host: your_host
Accept: */*
{
"activated": true,
"assets": [
{
"activated": true,
"balance": 1,
"code": "text",
"minor_unit": 1,
"name": "text",
"platform": "text",
"stellar_code": "text",
"stellar_issuer": "text"
}
],
"assets_total": 1,
"blocked": true,
"guid": "text",
"iban": "text",
"name": "text",
"platform": "text",
"registered": true,
"type": "text"
}
Last updated