APIs
This section covers the details of the APIs supported by Entitlement microservices.
Business APIs
GET/party/customers/userIds/{externaluserId}/entitlements
https://j7nvrho2zb.execute-api.eu-west-2.amazonaws.com/test-primary/v1.0.0/party/customers/userIds/ROLFGERLING/entitlements?
{
"items": [
{
"resourceName": "account",
"entitlementss": [
"GB0010001-78956",
"GB0010001-79038",
"GB0010001-79065"
]
}
]
}GET/system/entitlements/resources/users/{userId}
http://<<host>>:<<port>>/ms-entitlement-api/api/v1.0.0/system/entitlements/resources/users/2900086473289?serviceid=string&channelid=string&customfilterid=string
{
"entitlementResource": [
{
"resourcecategories": [
"savings"
],
"roleId": [
"PaymentsDomesticCreator"
],
"resources": [
"78963"
],
"resourcefilters": [
"{"filterValue":["896541276"],"filterName":["creditAccount"],"filterOperation":["notEqual"]}"
]
},
{
"resourcecategories": [
"savings"
],
"roleId": [
"PaymentApprover"
],
"resources": [
"78965"
],
"resourcefilters": [
"{"filterValue":["896547156"],"filterName":["creditAccount"],"filterOperation":["equal"]}"
]
}
]
}Managment APIs
POST/system/entitlements/{userId}/resources/{resourceId}
http://<<host>>:<<port>>/ms-entitlement-api/api/v1.0.0/system/entitlements/users/2900086473289/resources/78999
{
"entitlements": [
{
"roles": [
"PaymentApprover"
],
"serviceid": "string",
"channelid": "string",
"customfilterid": "string",
"resourceCategory": "savings"
}
]
}{
"entitlements": [
{
"userId": "2900086473289",
"resourceId": "78999",
"roles": [
"PaymentApprover"
],
"serviceid": "string",
"channelid": "string",
"customfilterid": "string",
"resourceCategory": "savings"
}
]
}GET/system/entitlements/{userId}/resources/{resourceId}
http://<<host>>:<<port>>/ms-entitlement-api/api/v1.0.0/system/entitlements/users/2900086473289/resources/78999?serviceid=string&customfilterid=string&channelid=string
{
"entitlements": [
{
"userId": "2900086473289",
"resourceId": "78999",
"roles": [
"PaymentApprover"
],
"serviceid": "string",
"channelid": "string",
"customfilterid": "string",
"resourceCategory": "savings"
}
]
}PUT/system/entitlements/users/{userId}/resources/{resourceId}
http://<<host>>:<<port>>/ms-entitlement-api/api/v1.0.0/system/entitlements/users/2900086473289/resources/78999
{
"entitlements": [
{
"resourceCategory": "savings",
"serviceid": "string",
"channelid": "string",
"customfilterid": "string",
"roles": [
{
"mode": "add",
"roles": [
"BalanceViewer"
]
}
]
}
]
}{
"entitlements": [
{
"userId": "2900086473289",
"resourceId": "78999",
"resourceCategory": "savings",
"serviceid": "string",
"channelid": "string",
"customfilterid": "string",
"roles": [
{
"roles": [
"PaymentApprover",
"BalanceViewer"
]
}
]
}
]
}
DELETE/system/entitlements/{userId}/resources/{resourceId}
http://<<host>>:<<port>>/ms-entitlement-api/api/v1.0.0/system/entitlements/users/2900086473289/resources/78999?serviceid=string&customfilterid=string&channelid=string}
{
"entitlements": [
{
"userId": "2900086473289",
"resourceId": "78999",
"roles": [
"PaymentApprover",
"BalanceViewer"
],
"serviceid": "string",
"channelid": "string",
"customfilterid": "string",
"resourceCategory": "savings"
}
]
}POST/system/entitlements/resources/{resourceId}
http://<<host>>:<<port>>/ms-entitlement-api/api/v1.0.0/system/entitlements/resources/78999
{
"entitlements": [
{
"userId": "1928885555",
"serviceid": "string",
"channelid": "string",
"customfilterid": "string",
"roles": [
"PaymentsDomesticCreator"
],
"resourceCategory": "saving"
}
]
}
{
"entitlements": [
{
"userId": "1928885555",
"resourceId": "78999",
"serviceid": "string",
"channelid": "string",
"customfilterid": "string",
"roles": [
"PaymentsDomesticCreator"
],
"resourceCategory": "saving"
}
]
}
PUT/system/entitlements/resources/{resourceId}
http://<<host>>:<<port>>/ms-entitlement-api/api/v1.0.0/system/entitlements/resources/78999
{
"entitlements": [
{
"userId": "1928885555",
"serviceid": "string",
"channelid": "string",
"customfilterid": "string",
"resourceCategory": "saving",
"roles": [
{
"mode": "add",
"roles": ["PaymentApprover"]
}
]
}
]
}
{
"entitlements": [
{
"userId": "1928885555",
"resourceId": "78999",
"roles": [
{
"roles": [
"PaymentsDomesticCreator",
"PaymentApprover"
]
}
],
"resourceCategory": "saving",
"serviceid": "string",
"channelid": "string",
"customfilterid": "string"
}
]
}DELETE/system/entitlements/resources/{resourceId}
http://<<host>>:<<port>>/ms-entitlement-api/api/v1.0.0/system/entitlements/resources/78999?customfilterid=string&serviceid=string&channelid=string
{
"entitlements": [
{
"userId": "1928885555",
"resourceId": "78999",
"roles": [
"PaymentsDomesticCreator",
"PaymentApprover"
],
"serviceid": "string",
"channelid": "string",
"customfilterid": "string",
"resourceCategory": "saving"
}
]
}GET/system/entitlements/resources/{resourceId}
http://<<host>>:<<port>>/ms-entitlement-api/api/v1.0.0/system/entitlements/resources/78999?customfilterid=string&serviceid=string&channelid=string
{
"entitlements": [
{
"userId": "1928885555",
"resourceId": "78999",
"roles": [
"PaymentsDomesticCreator"
],
"serviceid": "string",
"channelid": "string",
"customfilterid": "string",
"resourceCategory": "saving"
}
]
}POST/system/entitlements/users/{userId}:
http://<<host>>:<<port>>/ms-entitlement-api/api/v1.0.0/system/entitlements/users/2900086473289
{
"entitlements": [
{
"serviceid": "string",
"channelid": "string",
"customfilterid": "string",
"resources": [
{
"roles": [
"PaymentsDomesticCreator"
],
"resourceFilter": "creditAccount!=896541276"
},{
"roles": [
"PaymentsDomesticCreator"
],
"resourceId": "78963",
"resourceCategory":"savings"
},{
"roles": [
"PaymentApprover"
],
"resourceFilter": "creditAccount=896547156"
},{
"roles": [
"PaymentApprover"
],
"resourceId": "78965",
"resourceCategory":"savings"
}
]
}
]
}{
"entitlements": [
{
"serviceid": "string",
"channelid": "string",
"customfilterid": "string",
"resources": [
{
"userId": "2900086473289",
"roles": [
"PaymentsDomesticCreator"
],
"resourceFilter": "creditAccount!=896541276"
}
]
},
{
"serviceid": "string",
"channelid": "string",
"customfilterid": "string",
"resources": [
{
"userId": "2900086473289",
"resourceId": "78963",
"roles": [
"PaymentsDomesticCreator"
],
"resourceCategory": "savings"
}
]
},
{
"serviceid": "string",
"channelid": "string",
"customfilterid": "string",
"resources": [
{
"userId": "2900086473289",
"roles": [
"PaymentApprover"
],
"resourceFilter": "creditAccount=896547156"
}
]
},
{
"serviceid": "string",
"channelid": "string",
"customfilterid": "string",
"resources": [
{
"userId": "2900086473289",
"resourceId": "78965",
"roles": [
"PaymentApprover"
],
"resourceCategory": "savings"
}
]
}
]
}GET/system/entitlements/users/{userId}
http://<<host>>:<<port>>/ms-entitlement-api/api/v1.0.0/system/entitlements/users/2900086473289?customfilterid=string&channelid=string&serviceid=string
{
"entitlements": [
{
"userId": "2900086473289",
"roles": [
"PaymentsDomesticCreator"
],
"serviceid": "string",
"channelid": "string",
"customfilterid": "string",
"resourceFilter": "creditAccount!=896541276"
},
{
"userId": "2900086473289",
"resourceId": "78963",
"roles": [
"PaymentsDomesticCreator"
],
"serviceid": "string",
"channelid": "string",
"customfilterid": "string",
"resourceCategory": "savings"
},
{
"userId": "2900086473289",
"roles": [
"PaymentApprover"
],
"serviceid": "string",
"channelid": "string",
"customfilterid": "string",
"resourceFilter": "creditAccount=896547156"
},
{
"userId": "2900086473289",
"resourceId": "78965",
"roles": [
"PaymentApprover"
],
"serviceid": "string",
"channelid": "string",
"customfilterid": "string",
"resourceCategory": "savings"
}
]
}PUT/system/entitlements/users/{userId}:
http://<<host>>:<<port>>/ms-entitlement-api/api/v1.0.0/system/entitlements/users/2900086473289
{
"entitlements": [
{
"serviceid": "string",
"channelid": "string",
"customfilterid": "string",
"resources": [
{
"resourceId": "78963",
"mode": "add",
"roles": [
"PaymentsCreator"
],
"resourceCategory":"savings"
}
]
}
]
}{
"entitlements": [
{
"userId": "2900086473289",
"serviceid": "string",
"channelid": "string",
"customfilterid": "string",
"resources": [
{
"resourceId": "78963",
"roles": [
"PaymentsDomesticCreator",
"PaymentsCreator"
],
"resourceCategory": "savings"
}
]
}
]
}
DELETE/system/entitlements/users/{userId}:
http://<<host>>:<<port>>/ms-entitlement-api/api/v1.0.0/system/entitlements/users/2900086473289?customfilterid=string&channelid=string&serviceid=string
{
"entitlements": [
{
"userId": "2900086473289",
"roles": [
"PaymentsDomesticCreator"
],
"serviceid": "string",
"channelid": "string",
"customfilterid": "string",
"resourceFilter": "creditAccount!=896541276"
},
{
"userId": "2900086473289",
"resourceId": "78963",
"roles": [
"PaymentsDomesticCreator",
"PaymentsCreator"
],
"serviceid": "string",
"channelid": "string",
"customfilterid": "string",
"resourceCategory": "savings"
},
{
"userId": "2900086473289",
"roles": [
"PaymentApprover"
],
"serviceid": "string",
"channelid": "string",
"customfilterid": "string",
"resourceFilter": "creditAccount=896547156"
},
{
"userId": "2900086473289",
"resourceId": "78965",
"roles": [
"PaymentApprover"
],
"serviceid": "string",
"channelid": "string",
"customfilterid": "string",
"resourceCategory": "savings"
}
]
}In this topic