Hi All,
Hope you are doing well,
I have a question about PartyRole API. In below example which i copied from
Party Role Management API REST Specification document, name and engagedParty.name are same. But per the definition of the partyRole name, it's (A string. A word, term, or phrase by which the PartyRole is known and distinguished from other PartyRoles) so i can't understand how "
Global Pirates" can be a partyRole name.
I think as this is a name for the partyRole, so it should be a name to define a role, like provider or etc, So that this role can be used in the party management API to define associate a role to a party.
I'd appreciate if you would help me to use part and partyRole API properly.
Our use case is that we are going to onboard around 1000 party as provider.
A. I think we should have one record for the partyRole called
Provider. And also have 1000 record for the parties, and relate each of them (in the party management API) to the Provider partyRole.
B. But based on below example, i should have 1000 record for the parties and 1000 record for their partyRole as provider.
Which one of above is correct based on the standard? If
B i'd appreciate if you explain why
A is incorrect.
{
"@type": "PartyRole",
"href": "https:/host:port/tmf-api/partyRoleManagement/v4/partyRole/4079",
"id": "4079",
"name": "Global Pirates",// ??? I think as this is a role, so it should be a name to define a role, like provider or etc.
"status": "Approved",
"statusReason": "NDA has been signed",
"validFor": {
"startDateTime": "2018-06-16T00:00Z",
"endDateTime": "2019-01-13T00:00Z"
},
"engagedParty": {
"@referredType": "Organization",
"href": "https:/host:port/tmf-api/partyManagement/v2/organization/99",
"id": "99",
"name": "Global Pirates",
"role": "Provider"
},
....
------------------------------
Arash Zolfaghari
Tecnotree
------------------------------