Service ids are used to identify entities throughout the service. They consist of:
- Type: the kind of the entity
- ID: unique key within the type
Type | Format |
---|---|
company |
VATNumber |
security |
ISIN |
entity |
LEI |
branch |
Finsyn internal string |
market |
Finsyn internal string |
# format
[type]_[id]
# examples
company_SE121212121201
security_SE1212121212
market_stockholm
branch_gaming
userfb_148932148213
npm install finsyn-serviceid
const { getId, getType, isType } = require('finsyn-serviceid')
getId('security_SE1212121212')
// 'SE1212121212'
getType('security_SE1212121212')
// 'security'
isType('security')('security_SE1212121212')
// true