This section details about the service API in the Partner Management module.
For securely accessing any API in MOSIP, you must gain authentication token from kernel authentication manager.
Authenticate through client-id/Secret or User Id/Password having respective roles assigned in IAM.
After successful authentication access token will set as Authorization cookies.
Access API through postman by passing the access token in cookies.
MOSIP common authentication and authorization APIs would be used for authentication and generation of secured authentication token.
After hitting the API, you will get the authorization token in the cookie.
Digital certificate sharing between MOSIP and Partners
MISP (MOSIP Infrastructure Service Provider) Creation
Master data related to Partner Management - like Policy Groups, Partner Manager mappings to Policy Groups, Policy Manager mappings to Policy Groups, Master policy for the country
Partner Management APIs are categorized into following services
MISP Management Service This service would be used by MOSIP Admin for management of MISP(MOSIP Infrastructure Service Provider), management of MISP license keys issued to MISP, activation and deactivation of MISP and MISP license keys, getting details about MISP and MISP license keys
Policy Management Service This service would be used by Policy Manager for management of Policies. Policy manager would be able to create, update and get policy details.
Partner Management Service This service would be used by Partner Manager for management of partner requests. Partners belonging to specific policy group would be able to raise request for issuance of Partner API Keys. Partner Manager would be able to approve OR reject such partner requests. Before approving the partner request for API keys, partner manager would review the request, generate partner API key and map the API key with the policy(ies). By using this service, partner manager would be able to view partner details for given partner API Key, along with the policy mapping for the API key, and its status (active/deactive)
Partner Service This service enables partners to do self registration, submit request for respective authentication policies available for the policy group, sharing of digital certificate for secure communication helping individual authentication through partners.
This service would be used by MOSIP admin for MISP(MOSIP Infrastructure Service Provider) management.
MOSIP Admin would be able to create MISP using this API. At the time of creation of MISP, MISP ID is generated and shared back in response. Post successful MISP creation, by default MISP is set to active status.Kernel ID generator API would be used to generate unique id as mentioned in Kernel ID Generator.
Resource URL
https://{base_url}/partnermanagement/v1/misps
Resource details
Response format
JSON
Requires Authentication
Yes
Request Body Parameters
id
Yes
id
mosip.partnermanagement.misp.create
version
Yes
version of the application
1.0
requesttime
Yes
Time of the request
2019-07-02T05:23:08.019Z
request
Yes
Request for the application
request.organizationName
Yes
MISP organization name
telecom
request.contactNumber
Optional
MISP contact number
9876998888
request.emailId
Yes
MISP emailId
prm@telecom.com
request.address
Yes
MISP address
India
Request Header
Authorization
Yes
authentication token
Mosip-TokeneyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJyYXZpLmJhbGFqaUBtaW5kdHJlZS5jb20iLCJtb2JpbGUiOiIiLCJtYWlsIjoicmF2aS5iYWxhamlAbWluZHRyZWUuY29tIiwicm9sZSI6IklORElWSURVQUwiLCJuYW1lIjoicmF2aS5iYWxhamlAbWluZHRyZWUuY29tIiwiaXNPdHBSZXF1aXJlZCI6dHJ1ZSwiaXNPdHBWZXJpZmllZCI6dHJ1ZSwiaWF0IjoxNTYyNTgwMzg0LCJleHAiOjE1NjI1ODYzODR9.eycrDnzPFBnx57wp6v-iXHtFnRxPgOysG3QETnElSswBUH5ojUUCLsn6SeYukIy-rEZ0SOdr9jkLE6A8tNkj4w
Request
Responses
Success Response
Status code: 200
Description: MISP successfully created
Failure Response
Status code: 200
Description: MISP already registered
Other Failure details
PMS_MSP_001
MOSIP Admin does not exist
Unauthorized MOSIP Admin- UserName not available in database
PMS_MSP_002
Mismatch of the MOSIP Admin Credentials
User Name and Password of the Admin does not match
PMS_MSP_003
A MISP is already registered with name - organizationName
If MISP is already registered with organizationName
PMS_COR_001
Missing Input Parameter - %d
Missing Input Parameter - for all mandatory attributes
PMS_COR_002
Invalid Input Parameter - %d
Invalid Input Parameter - for all attributes not as per defined data definition
PMS_COR_003
Could not process the request
Any Internal Error
This API would be used to approve or reject the MISP.Post successful MISP approval, MISP License key is generated and set to active status.MISP License key is configurable and set to expire in 3 months, 6 months OR any configurable period.
Resource URL
https://{base_url}/partnermanagement/v1/misps/{mispId}/status
Resource details
Response format
JSON
Requires Authentication
Yes
Request Path Parameters
mispId
Yes
id of the misp
64269837502851
Request Header
Authorization
Yes
authentication token
Mosip-TokeneyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJyYXZpLmJhbGFqaUBtaW5kdHJlZS5jb20iLCJtb2JpbGUiOiIiLCJtYWlsIjoicmF2aS5iYWxhamlAbWluZHRyZWUuY29tIiwicm9sZSI6IklORElWSURVQUwiLCJuYW1lIjoicmF2aS5iYWxhamlAbWluZHRyZWUuY29tIiwiaXNPdHBSZXF1aXJlZCI6dHJ1ZSwiaXNPdHBWZXJpZmllZCI6dHJ1ZSwiaWF0IjoxNTYyNTgwMzg0LCJleHAiOjE1NjI1ODYzODR9.eycrDnzPFBnx57wp6v-iXHtFnRxPgOysG3QETnElSswBUH5ojUUCLsn6SeYukIy-rEZ0SOdr9jkLE6A8tNkj4w
Request Body Parameters
id
Yes
id
mosip.partnermanagement.misp.update
version
Yes
version of the application
1.0
requesttime
Yes
Time of the request
2019-07-02T05:23:08.019Z
request
Yes
Request for the application
request.mispStatus
Yes
MISP Status
Approved or Rejected
Request
Responses
Success Response
Status code: 200
Failure Response
Status code: 200
Description: MISP ID does not exist
Other Failure details
PMS_MSP_001
MOSIP Admin does not exist
Unauthorized MOSIP Admin- UserName not available in database
PMS_MSP_002
Mismatch of the MOSIP Admin Credentials
User Name and Password of the Admin does not match
PMS_MSP_004
No information provided for update
No information provided for update
PMS_MSP_005
MISP ID does not exist
MISP ID not available in database
PMS_COR_003
Could not process the request
Any Internal Error
This API would be used to update MISP for given mispID.
Resource URL
https://{base_url}/partnermanagement/v1/misps/{mispId}
Resource details
Response format
JSON
Requires Authentication
Yes
Request Path Parameters
mispId
Yes
id of the misp
64269837502851
Request Header
Authorization
Yes
authentication token
Mosip-TokeneyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJyYXZpLmJhbGFqaUBtaW5kdHJlZS5jb20iLCJtb2JpbGUiOiIiLCJtYWlsIjoicmF2aS5iYWxhamlAbWluZHRyZWUuY29tIiwicm9sZSI6IklORElWSURVQUwiLCJuYW1lIjoicmF2aS5iYWxhamlAbWluZHRyZWUuY29tIiwiaXNPdHBSZXF1aXJlZCI6dHJ1ZSwiaXNPdHBWZXJpZmllZCI6dHJ1ZSwiaWF0IjoxNTYyNTgwMzg0LCJleHAiOjE1NjI1ODYzODR9.eycrDnzPFBnx57wp6v-iXHtFnRxPgOysG3QETnElSswBUH5ojUUCLsn6SeYukIy-rEZ0SOdr9jkLE6A8tNkj4w
Request Body Parameters
id
Yes
id
mosip.partnermanagement.misp.update
version
Yes
version of the application
1.0
requesttime
Yes
Time of the request
2019-07-02T05:23:08.019Z
request
Yes
Request for the application
request.organizationName
Optional
MISP organization name
telecom
request.contactNumber
Optional
MISP contact number
9876998888
request.emailId
Optional
MISP emailId
prm@telecom.com
request.address
Optional
MISP address
India
Request
Responses
Success Response
Status code: 200
Failure Response
Status code: 200
Description: MISP Organization Name, MISP Contact Number, MISP Email ID, MISP Address - None available in request
Other Failure details
PMS_MSP_001
MOSIP Admin does not exist
Unauthorized MOSIP Admin- UserName not available in database
PMS_MSP_002
Mismatch of the MOSIP Admin Credentials
User Name and Password of the Admin does not match
PMS_MSP_004
No information provided for update
No information provided for update
PMS_MSP_005
MISP ID does not exist
MISP ID not available in database
PMS_COR_001
Missing Input Parameter - %d
Missing Input Parameter - for all mandatory attributes
PMS_COR_002
Invalid Input Parameter - %d
Invalid Input Parameter - for all attributes not as per defined data definition
PMS_COR_003
Could not process the request
Any Internal Error
This API would be used for validating MISPs license key.
Validate license key pattern.
Validate license key is associated with the requested MISP id.
Validate license key is Active or not.
Resource URL
https://{base_url}/partnermanagement/v1/misps/{mispId}/licenseKey
Resource details
Response format
JSON
Requires Authentication
Yes
Request Path Parameters
mispId
Yes
id of the misp
64269837502851
Request Body Parameters
id
Yes
id
mosip.partnermanagement.misp.license.validate
version
Yes
version of the application
1.0
requesttime
Yes
Time of the request
2019-05-20T09:48:43.394Z
request
Yes
Request for the application
request.mispLicenseKey
Yes
MISP license key
fa604-affcd-33201-04234
Request Header
Authorization
Yes
authentication token
Mosip-TokeneyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJyYXZpLmJhbGFqaUBtaW5kdHJlZS5jb20iLCJtb2JpbGUiOiIiLCJtYWlsIjoicmF2aS5iYWxhamlAbWluZHRyZWUuY29tIiwicm9sZSI6IklORElWSURVQUwiLCJuYW1lIjoicmF2aS5iYWxhamlAbWluZHRyZWUuY29tIiwiaXNPdHBSZXF1aXJlZCI6dHJ1ZSwiaXNPdHBWZXJpZmllZCI6dHJ1ZSwiaWF0IjoxNTYyNTgwMzg0LCJleHAiOjE1NjI1ODYzODR9.eycrDnzPFBnx57wp6v-iXHtFnRxPgOysG3QETnElSswBUH5ojUUCLsn6SeYukIy-rEZ0SOdr9jkLE6A8tNkj4w
Request
Responses
Success Response
Status code: 200
Description: MISP License validated successfully
Failure Response
Status code: 200
Description: MISP ID/MISP License Key not available in database
Other Failure details
PMS_MSP_001
MOSIP Admin does not exist
Unauthorized MOSIP Admin- UserName not available in database
PMS_MSP_002
Mismatch of the MOSIP Admin Credentials
User Name and Password of the Admin does not match
PMS_MSP_006
MISP ID/MISP License Key does not exist
MISP ID/MISP License Key not available in database
PMS_MSP_007
MISP License key not associated to MISP ID
MISP License key not associated to MISP in the input
PMS_MSP_008
MISP License key not valid
MISP License key not valid
PMS_COR_001
Missing Input Parameter - %d
Missing Input Parameter - for all mandatory attributes
PMS_COR_002
Invalid Input Parameter - %d
Invalid Input Parameter - for all attributes not as per defined data definition
PMS_COR_003
Could not process the request
Any Internal Error
This API would be used to update MISP status for given MISP ID.
Resource URL
https://{base_url}/partnermanagement/v1/misps/{mispId}
Resource details
Response format
JSON
Requires Authentication
Yes
Request Path Parameters
mispId
Yes
id of the misp
64269837502851
Request Header
Authorization
Yes
authentication token
Mosip-TokeneyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJyYXZpLmJhbGFqaUBtaW5kdHJlZS5jb20iLCJtb2JpbGUiOiIiLCJtYWlsIjoicmF2aS5iYWxhamlAbWluZHRyZWUuY29tIiwicm9sZSI6IklORElWSURVQUwiLCJuYW1lIjoicmF2aS5iYWxhamlAbWluZHRyZWUuY29tIiwiaXNPdHBSZXF1aXJlZCI6dHJ1ZSwiaXNPdHBWZXJpZmllZCI6dHJ1ZSwiaWF0IjoxNTYyNTgwMzg0LCJleHAiOjE1NjI1ODYzODR9.eycrDnzPFBnx57wp6v-iXHtFnRxPgOysG3QETnElSswBUH5ojUUCLsn6SeYukIy-rEZ0SOdr9jkLE6A8tNkj4w
Request Body Parameters
id
Yes
id
mosip.partnermanagement.misp.status.update
version
Yes
version of the application
1.0
requesttime
Yes
Time of the request
2019-07-02T05:23:08.019Z
request
Yes
Request for the application
request.mispStatus
Yes
MISP status
De-Active
Request
Responses
Success Response
Status code: 200
Failure Response
Status code: 200
Description: MISP Organization Name, MISP Contact Number, MISP Email ID, MISP Address - None available in request
Other Failure details
PMS_MSP_001
MOSIP Admin does not exist
Unauthorized MOSIP Admin- UserName not available in database
PMS_MSP_002
Mismatch of the MOSIP Admin Credentials
User Name and Password of the Admin does not match
PMS_MSP_004
No information provided for update
No information provided for update
PMS_MSP_005
MISP ID does not exist
MISP ID not available in database
PMS_MSP_009
Failed to update MISP status
Failed to update the MISP status
PMS_MSP_010
MISP status already in the requested status
MISP status already in the requested status
PMS_COR_001
Missing Input Parameter - %d
Missing Input Parameter - for all mandatory attributes
PMS_COR_002
Invalid Input Parameter - %d
Invalid Input Parameter - for all attributes not as per defined data definition
PMS_COR_003
Could not process the request
Any Internal Error
This API would be used to activate/deactivate MISPs License Key for the MSIP ID.
Resource URL
https://{base_url}/partnermanagement/v1/misps/{mispId}/licenseKey
Resource details
Response format
JSON
Requires Authentication
Yes
Request Path Parameters
mispId
Yes
id of the misp
64269837502851
Request Body Parameters
id
Yes
id
mosip.partnermanagement.misp.license.update
version
Yes
version of the application
1.0
requesttime
Yes
Time of the request
2019-01-16T05:23:08.019Z
request
Yes
Request for the application
request.mispStatus
Optional
MISP status
Active
request.mispLicenseKey
Optional
MISP license Key
fa604-affcd-33201-04770
request.mispLicenseKeyStatus
Optional
MISP license Key Status
Active
Request Header
Authorization
Yes
authentication token
Mosip-TokeneyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJyYXZpLmJhbGFqaUBtaW5kdHJlZS5jb20iLCJtb2JpbGUiOiIiLCJtYWlsIjoicmF2aS5iYWxhamlAbWluZHRyZWUuY29tIiwicm9sZSI6IklORElWSURVQUwiLCJuYW1lIjoicmF2aS5iYWxhamlAbWluZHRyZWUuY29tIiwiaXNPdHBSZXF1aXJlZCI6dHJ1ZSwiaXNPdHBWZXJpZmllZCI6dHJ1ZSwiaWF0IjoxNTYyNTgwMzg0LCJleHAiOjE1NjI1ODYzODR9.eycrDnzPFBnx57wp6v-iXHtFnRxPgOysG3QETnElSswBUH5ojUUCLsn6SeYukIy-rEZ0SOdr9jkLE6A8tNkj4w
Request
Responses
Success Response
Status code: 200
Description: MISP License updated successfully
Failure Response
Status code: 200
Description: MISP status, MISP License key status - None available in request
Other Failure details
PMS_MSP_001
MOSIP Admin does not exist
Unauthorized MOSIP Admin- UserName not available in database
PMS_MSP_002
Mismatch of the MOSIP Admin Credentials
User Name and Password of the Admin does not match
PMS_MSP_004
No information provided for update
No information provided for update
PMS_MSP_006
MISP ID/MISP License Key does not exist
MISP ID/MISP License Key not available in database
PMS_MSP_007
MISP License key not associated to MISP ID
MISP License key not associated to MISP in the input
PMS_COR_001
Missing Input Parameter - %d
Missing Input Parameter - for all mandatory attributes
PMS_COR_002
Invalid Input Parameter - %d
Invalid Input Parameter - for all attributes not as per defined data definition
PMS_COR_003
Could not process the request
Any Internal Error
This API would be used to retrieve all MISPs details.
Resource URL
https://{base_url}/partnermanagement/v1/misps
Resource details
Response format
JSON
Requires Authentication
Yes
Request Header
Authorization
Yes
authentication token
Mosip-TokeneyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJyYXZpLmJhbGFqaUBtaW5kdHJlZS5jb20iLCJtb2JpbGUiOiIiLCJtYWlsIjoicmF2aS5iYWxhamlAbWluZHRyZWUuY29tIiwicm9sZSI6IklORElWSURVQUwiLCJuYW1lIjoicmF2aS5iYWxhamlAbWluZHRyZWUuY29tIiwiaXNPdHBSZXF1aXJlZCI6dHJ1ZSwiaXNPdHBWZXJpZmllZCI6dHJ1ZSwiaWF0IjoxNTYyNTgwMzg0LCJleHAiOjE1NjI1ODYzODR9.eycrDnzPFBnx57wp6v-iXHtFnRxPgOysG3QETnElSswBUH5ojUUCLsn6SeYukIy-rEZ0SOdr9jkLE6A8tNkj4w
Responses
Success Response
Status code: 200
Failure Response
Status code: 200
Description: No MISP details found
Other Failure details
PMS_MSP_001
MOSIP Admin does not exist
Unauthorized MOSIP Admin- UserName not available in database
PMS_MSP_002
Mismatch of the MOSIP Admin Credentials
User Name and Password of the Admin does not match
PMS_MSP_012
No MISP details found
No MISP details found
PMS_COR_001
Missing Input Parameter - %d
Missing Input Parameter - for all mandatory attributes
PMS_COR_002
Invalid Input Parameter - %d
Invalid Input Parameter - for all attributes not as per defined data definition
PMS_COR_003
Could not process the request
Any Internal Error
This API would be used to retrieve the MISPs details based on given misp id.
Resource URL
https://{base_url}/partnermanagement/v1/misps/mispId/{mispId}
Resource details
Response format
JSON
Requires Authentication
Yes
Request Path Parameters
mispId
Yes
id of the misp
64269837502851
Request Header
Authorization
Yes
authentication token
Mosip-TokeneyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJyYXZpLmJhbGFqaUBtaW5kdHJlZS5jb20iLCJtb2JpbGUiOiIiLCJtYWlsIjoicmF2aS5iYWxhamlAbWluZHRyZWUuY29tIiwicm9sZSI6IklORElWSURVQUwiLCJuYW1lIjoicmF2aS5iYWxhamlAbWluZHRyZWUuY29tIiwiaXNPdHBSZXF1aXJlZCI6dHJ1ZSwiaXNPdHBWZXJpZmllZCI6dHJ1ZSwiaWF0IjoxNTYyNTgwMzg0LCJleHAiOjE1NjI1ODYzODR9.eycrDnzPFBnx57wp6v-iXHtFnRxPgOysG3QETnElSswBUH5ojUUCLsn6SeYukIy-rEZ0SOdr9jkLE6A8tNkj4w
Responses
Success Response
Status code: 200
Failure Response
Status code: 200
Description: MISP ID does not exist
Other Failure details
PMS_MSP_001
MOSIP Admin does not exist
Unauthorized MOSIP Admin- UserName not available in database
PMS_MSP_002
Mismatch of the MOSIP Admin Credentials
User Name and Password of the Admin does not match
PMS_MSP_005
MISP ID does not exist
MISP ID not available in database
PMS_COR_001
Missing Input Parameter - %d
Missing Input Parameter - for all mandatory attributes
PMS_COR_002
Invalid Input Parameter - %d
Invalid Input Parameter - for all attributes not as per defined data definition
PMS_COR_003
Could not process the request
Any Internal Error
This API would be used to retrieve MISPs details based on given name
If MISP organization name present, then retrieve all misp details for matching organization name.
If MISP organization name not present, then retrieve all misp details.
Resource URL
https://{base_url}/partnermanagement/v1/misps/name/{mispOrgName}
Resource details
Response format
JSON
Requires Authentication
Yes
Request Path Parameters
mispOrgName
Yes
MISP organization name
telecome
Request Header
Authorization
Yes
authentication token
Mosip-TokeneyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJyYXZpLmJhbGFqaUBtaW5kdHJlZS5jb20iLCJtb2JpbGUiOiIiLCJtYWlsIjoicmF2aS5iYWxhamlAbWluZHRyZWUuY29tIiwicm9sZSI6IklORElWSURVQUwiLCJuYW1lIjoicmF2aS5iYWxhamlAbWluZHRyZWUuY29tIiwiaXNPdHBSZXF1aXJlZCI6dHJ1ZSwiaXNPdHBWZXJpZmllZCI6dHJ1ZSwiaWF0IjoxNTYyNTgwMzg0LCJleHAiOjE1NjI1ODYzODR9.eycrDnzPFBnx57wp6v-iXHtFnRxPgOysG3QETnElSswBUH5ojUUCLsn6SeYukIy-rEZ0SOdr9jkLE6A8tNkj4w
Responses
Success Response
Status code: 200
Description: Config parameter retrieved successfully
Failure Response
Status code: 200
Description: No MISP found for the organization
Other Failure details
PMS_MSP_001
MOSIP Admin does not exist
Unauthorized MOSIP Admin- UserName not available in database
PMS_MSP_002
Mismatch of the MOSIP Admin Credentials
User Name and Password of the Admin does not match
PMS_MSP_011
No MISP found for the organization
No MISP found for the organization
PMS_COR_001
Missing Input Parameter - %d
Missing Input Parameter - for all mandatory attributes
PMS_COR_002
Invalid Input Parameter - %d
Invalid Input Parameter - for all attributes not as per defined data definition
PMS_COR_003
Could not process the request
Any Internal Error
This API would be used by MISP Admin / MOSIP Admin for download MISPs license key. In case where license key got expired then user would be able to get a new license key. New license key thus generated would be mapped with given MISP ID . Older license keys would be updated with inactive status.
Resource URL
https://{base_url}/partnermanagement/v1/misps/{mispId}/licenseKey
Resource details
Response format
JSON
Requires Authentication
Yes
Request Path Parameters
mispId
Yes
id of the misp
64269837502851
Request Header
Authorization
Yes
authentication token
Mosip-TokeneyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJyYXZpLmJhbGFqaUBtaW5kdHJlZS5jb20iLCJtb2JpbGUiOiIiLCJtYWlsIjoicmF2aS5iYWxhamlAbWluZHRyZWUuY29tIiwicm9sZSI6IklORElWSURVQUwiLCJuYW1lIjoicmF2aS5iYWxhamlAbWluZHRyZWUuY29tIiwiaXNPdHBSZXF1aXJlZCI6dHJ1ZSwiaXNPdHBWZXJpZmllZCI6dHJ1ZSwiaWF0IjoxNTYyNTgwMzg0LCJleHAiOjE1NjI1ODYzODR9.eycrDnzPFBnx57wp6v-iXHtFnRxPgOysG3QETnElSswBUH5ojUUCLsn6SeYukIy-rEZ0SOdr9jkLE6A8tNkj4w
Responses
Success Response
Status code: 200
Description: MISP License retrieved successfully
Failure Response
Status code: 200
Description: MISP status, MISP License key status - None available in request
Other Failure details
PMS_MSP_001
MOSIP Admin does not exist
Unauthorized MOSIP Admin- UserName not available in database
PMS_MSP_002
Mismatch of the MOSIP Admin Credentials
User Name and Password of the Admin does not match
PMS_MSP_006
MISP ID/MISP License Key does not exist
MISP ID/MISP License Key not available in database
PMS_COR_001
Missing Input Parameter - %d
Missing Input Parameter - for all mandatory attributes
PMS_COR_002
Invalid Input Parameter - %d
Invalid Input Parameter - for all attributes not as per defined data definition
PMS_COR_003
Could not process the request
Any Internal Error
This service would be used by Policy Manager to manage policies for his Policy Group.
This API would be used to create new Policy for policy group
Resource URL
https://{base_url}/partnermanagement/v1/policies
Resource details
Response format
JSON
Requires Authentication
Yes
Request Body Parameters
id
Yes
id
mosip.partnermanagement.policy.create
version
Yes
version of the application
1.0
requesttime
Yes
Time of the request
2019-01-16T05:23:08.019Z
request
Yes
Request for the application
request.name
Yes
name of the policy
Insurance Policy
request.desc
Yes
description of the policy
Desc about policy
request.policies
Yes
policy file
JSON
request.policies.authPolicies
Yes
auth details
Array of JSON
request.policies.allowedKycAttributes
Yes
eKYC details
Array of JSON
Request Header
Authorization
Yes
authentication token
Mosip-TokeneyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJyYXZpLmJhbGFqaUBtaW5kdHJlZS5jb20iLCJtb2JpbGUiOiIiLCJtYWlsIjoicmF2aS5iYWxhamlAbWluZHRyZWUuY29tIiwicm9sZSI6IklORElWSURVQUwiLCJuYW1lIjoicmF2aS5iYWxhamlAbWluZHRyZWUuY29tIiwiaXNPdHBSZXF1aXJlZCI6dHJ1ZSwiaXNPdHBWZXJpZmllZCI6dHJ1ZSwiaWF0IjoxNTYyNTgwMzg0LCJleHAiOjE1NjI1ODYzODR9.eycrDnzPFBnx57wp6v-iXHtFnRxPgOysG3QETnElSswBUH5ojUUCLsn6SeYukIy-rEZ0SOdr9jkLE6A8tNkj4w
Request
Responses
Success Response
Status code: 200
Description: create new Policy for policy group is successful
Failure Response
Status code: 200
Description: If policy name already exists in the policy group
Other Failure details
PMS_POL_001
Policy Manager does not exist
If Policy Manager does not exist
PMS_POL_002
Mismatch of Policy Manager Credentials
If any mismatch of Policy Manager Credentials
PMS_POL_004
Policy Name already exists in the policy Group
If Policy Name already exists in the policy Group
PMS_POL_005
Unsupported KYC attribute in the Policy File
If any unsupported KYC attribute in the Policy File
PMS_POL_006
Unsupported Authentication Type in the Policy File
If any unsupported Authentication Type in the Policy File
PMS_POL_007
eKYC attribute missing in the policy file
If any eKYC attribute missing in the policy file
PMS_COR_001
Missing Input Parameter - %d
Missing Input Parameter - for all mandatory attributes
PMS_COR_002
Invalid Input Parameter - %d
Invalid Input Parameter - for all attributes not as per defined data definition
PMS_COR_003
Could not process the request
Any Internal Error
This API would be used to update existing policy for a policy group
Resource URL
https://{base_url}/partnermanagement/v1/policies/{policyID}
Resource details
Response format
JSON
Requires Authentication
Yes
Request Path Parameters
policyID
Yes
policyID
45678451034176
Request Body Parameters
id
Yes
id
mosip.partnermanagement.policy.update
version
Yes
version of the application
1.0
requesttime
Yes
Time of the request
2019-01-16T05:23:08.019Z
request
Yes
Request for the application
request.name
Yes
name of the policy
Insurance Policy
request.desc
Yes
description of the policy
Desc about policy
request.policies
Yes
policy file
JSON
request.policies.authPolicies
Yes
auth details
Array of JSON
request.policies.allowedKycAttributes
Yes
eKYC details
Array of JSON
Request Header
Authorization
Yes
authentication token
Mosip-TokeneyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJyYXZpLmJhbGFqaUBtaW5kdHJlZS5jb20iLCJtb2JpbGUiOiIiLCJtYWlsIjoicmF2aS5iYWxhamlAbWluZHRyZWUuY29tIiwicm9sZSI6IklORElWSURVQUwiLCJuYW1lIjoicmF2aS5iYWxhamlAbWluZHRyZWUuY29tIiwiaXNPdHBSZXF1aXJlZCI6dHJ1ZSwiaXNPdHBWZXJpZmllZCI6dHJ1ZSwiaWF0IjoxNTYyNTgwMzg0LCJleHAiOjE1NjI1ODYzODR9.eycrDnzPFBnx57wp6v-iXHtFnRxPgOysG3QETnElSswBUH5ojUUCLsn6SeYukIy-rEZ0SOdr9jkLE6A8tNkj4w
Request
Responses
Success Response
Status code: 200
Description: update existing policy for policy group is successful
Failure Response
Status code: 200
Description: If policy ID does not exist
Other Failure details
PMS_POL_001
Policy Manager does not exist
If Policy Manager does not exist
PMS_POL_002
Mismatch of Policy Manager Credentials
If any mismatch of Policy Manager Credentials
PMS_POL_004
Policy Name already exists in the policy Group
If Policy Name already exists in the policy Group
PMS_POL_005
Unsupported KYC attribute in the Policy File
If any unsupported KYC attribute in the Policy File
PMS_POL_006
Unsupported Authentication Type in the Policy File
If any unsupported Authentication Type in the Policy File
PMS_POL_007
eKYC attribute missing in the policy file
If any eKYC attribute missing in the policy file
PMS_POL_008
Policy ID does not exist
If Policy ID does not exist
PMS_POL_009
No information provided for update
if no information provided for update
PMS_POL_010
Policy Manager is denied permission to update the policy
if the policy manager is denied permission to update the policy
PMS_COR_001
Missing Input Parameter - %d
Missing Input Parameter - for all mandatory attributes
PMS_COR_002
Invalid Input Parameter - %d
Invalid Input Parameter - for all attributes not as per defined data definition
PMS_COR_003
Could not process the request
Any Internal Error
This API would be used to update the status (activate/deactivate) for the given policy id.
Resource URL
https://{base_url}/partnermanagement/v1/policies/{policyID}
Resource details
Response format
JSON
Requires Authentication
Yes
Request Path Parameters
policyID
Yes
policyID
45678451034176
Request Body Parameters
id
Yes
id
mosip.partnermanagement.policy.update.status
version
Yes
version of the application
1.0
requesttime
Yes
Time of the request
2019-01-16T05:23:08.019Z
request
Yes
Request for the application
request.status
Yes
status of the policy that needs to update
De-Active
Request Header
Authorization
Yes
authentication token
Mosip-TokeneyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJyYXZpLmJhbGFqaUBtaW5kdHJlZS5jb20iLCJtb2JpbGUiOiIiLCJtYWlsIjoicmF2aS5iYWxhamlAbWluZHRyZWUuY29tIiwicm9sZSI6IklORElWSURVQUwiLCJuYW1lIjoicmF2aS5iYWxhamlAbWluZHRyZWUuY29tIiwiaXNPdHBSZXF1aXJlZCI6dHJ1ZSwiaXNPdHBWZXJpZmllZCI6dHJ1ZSwiaWF0IjoxNTYyNTgwMzg0LCJleHAiOjE1NjI1ODYzODR9.eycrDnzPFBnx57wp6v-iXHtFnRxPgOysG3QETnElSswBUH5ojUUCLsn6SeYukIy-rEZ0SOdr9jkLE6A8tNkj4w
Request
Responses
Success Response
Status code: 200
Description: update the existing policy status successful
Failure Response
Status code: 200
Description: If policy ID does not exist
Other Failure details
PMS_POL_001
Policy Manager does not exist
If Policy Manager does not exist
PMS_POL_002
Mismatch of Policy Manager Credentials
If any mismatch of Policy Manager Credentials
PMS_POL_004
Policy Name already exists in the policy Group
If Policy Name already exists in the policy Group
PMS_POL_008
Policy ID does not exist
If Policy ID does not exist
PMS_POL_012
Policy Manager is denied permission to update the policy status
if the policy manager is denied permission to update the policy status
PMS_COR_001
Missing Input Parameter - %d
Missing Input Parameter - for all mandatory attributes
PMS_COR_002
Invalid Input Parameter - %d
Invalid Input Parameter - for all attributes not as per defined data definition
PMS_COR_003
Could not process the request
Any Internal Error
Policy manager would require this service to get details for the policies in the policy group he belongs to. All the policy groups are required to be back filled in the partner management database through an offline process based on country specific requirements. Partner Manager and Policy Manager assigned for the Policy group are also required to be back filled along with creation of the policy group. Partner management would depend on Kernel IAM module services for all user management related activities. User ID and Password are shared using off-line process.
Resource URL
https://{base_url}/partnermanagement/v1/policies
Resource details
Response format
JSON
Requires Authentication
Yes
Request Header
Authorization
Yes
authentication token
Mosip-TokeneyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJyYXZpLmJhbGFqaUBtaW5kdHJlZS5jb20iLCJtb2JpbGUiOiIiLCJtYWlsIjoicmF2aS5iYWxhamlAbWluZHRyZWUuY29tIiwicm9sZSI6IklORElWSURVQUwiLCJuYW1lIjoicmF2aS5iYWxhamlAbWluZHRyZWUuY29tIiwiaXNPdHBSZXF1aXJlZCI6dHJ1ZSwiaXNPdHBWZXJpZmllZCI6dHJ1ZSwiaWF0IjoxNTYyNTgwMzg0LCJleHAiOjE1NjI1ODYzODR9.eycrDnzPFBnx57wp6v-iXHtFnRxPgOysG3QETnElSswBUH5ojUUCLsn6SeYukIy-rEZ0SOdr9jkLE6A8tNkj4w
Responses
Success Response
Status code: 200
Description: retrieve the policies available for my policy group successful
Failure Response
Status code: 200
Description: No Active policy available in the Policy Group
Other Failure details
PMS_POL_001
Policy Manager does not exist
If Policy Manager does not exist
PMS_POL_002
Mismatch of Policy Manager Credentials
If any mismatch of Policy Manager Credentials
PMS_POL_003
No Active policy available in the Policy Group
No Active policies exist in the policy Group
PMS_COR_001
Missing Input Parameter - %d
Missing Input Parameter - for all mandatory attributes
PMS_COR_002
Invalid Input Parameter - %d
Invalid Input Parameter - for all attributes not as per defined data definition
PMS_COR_003
Could not process the request
Any Internal Error
This API would be used to retrieve existing policy for a policy group based on the policy id.
Resource URL
https://{base_url}/partnermanagement/v1/policies/policyId/{policyID}
Resource details
Response format
JSON
Requires Authentication
Yes
Request Path Parameters
policyID
Yes
policyID
45678451034176
Request Header
Authorization
Yes
authentication token
Mosip-TokeneyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJyYXZpLmJhbGFqaUBtaW5kdHJlZS5jb20iLCJtb2JpbGUiOiIiLCJtYWlsIjoicmF2aS5iYWxhamlAbWluZHRyZWUuY29tIiwicm9sZSI6IklORElWSURVQUwiLCJuYW1lIjoicmF2aS5iYWxhamlAbWluZHRyZWUuY29tIiwiaXNPdHBSZXF1aXJlZCI6dHJ1ZSwiaXNPdHBWZXJpZmllZCI6dHJ1ZSwiaWF0IjoxNTYyNTgwMzg0LCJleHAiOjE1NjI1ODYzODR9.eycrDnzPFBnx57wp6v-iXHtFnRxPgOysG3QETnElSswBUH5ojUUCLsn6SeYukIy-rEZ0SOdr9jkLE6A8tNkj4w
Responses
Success Response
Status code: 200
Description: policy retrieved successfully
Failure Response
Status code: 200
Description: If policy ID does not exist
Other Failure details
PMS_POL_001
Policy Manager does not exist
If Policy Manager does not exist
PMS_POL_002
Mismatch of Policy Manager Credentials
If any mismatch of Policy Manager Credentials
PMS_POL_004
Policy Name already exists in the policy Group
If Policy Name already exists in the policy Group
PMS_POL_008
Policy ID does not exist
If Policy ID does not exist
PMS_POL_011
Policy Manager is denied permission to retrieve the policy
if the policy manager is denied permission to retrieve the policy
PMS_COR_001
Missing Input Parameter - %d
Missing Input Parameter - for all mandatory attributes
PMS_COR_002
Invalid Input Parameter - %d
Invalid Input Parameter - for all attributes not as per defined data definition
PMS_COR_003
Could not process the request
Any Internal Error
This API would be used to retrieve the partner policy details for given PartnerAPIKey.
Resource URL
https://{base_url}/partnermanagement/v1/policies/partnerApiKey/fa604-affcd-33201-04770
Resource details
Response format
JSON
Requires Authentication
Yes
Request Path Parameters
PartnerAPIKey
Yes
PartnerAPIKey
fa604-affcd-33201-04770
Request Header
Authorization
Yes
authentication token
Mosip-TokeneyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJyYXZpLmJhbGFqaUBtaW5kdHJlZS5jb20iLCJtb2JpbGUiOiIiLCJtYWlsIjoicmF2aS5iYWxhamlAbWluZHRyZWUuY29tIiwicm9sZSI6IklORElWSURVQUwiLCJuYW1lIjoicmF2aS5iYWxhamlAbWluZHRyZWUuY29tIiwiaXNPdHBSZXF1aXJlZCI6dHJ1ZSwiaXNPdHBWZXJpZmllZCI6dHJ1ZSwiaWF0IjoxNTYyNTgwMzg0LCJleHAiOjE1NjI1ODYzODR9.eycrDnzPFBnx57wp6v-iXHtFnRxPgOysG3QETnElSswBUH5ojUUCLsn6SeYukIy-rEZ0SOdr9jkLE6A8tNkj4w
Responses
Success Response
Status code: 200
Description: retrieve the partner policy details for given PartnerAPIKey successful
Failure Response
Status code: 200
Description: No policy available for given PartnerAPIKey
Other Failure details
PMS_POL_001
Policy Manager does not exist
If Policy Manager does not exist
PMS_POL_002
Mismatch of Policy Manager Credentials
If any mismatch of Policy Manager Credentials
PMS_POL_013
No policy available for given PartnerAPIKey
No policy available for given PartnerAPIKey
PMS_COR_001
Missing Input Parameter - %d
Missing Input Parameter - for all mandatory attributes
PMS_COR_002
Invalid Input Parameter - %d
Invalid Input Parameter - for all attributes not as per defined data definition
PMS_COR_003
Could not process the request
Any Internal Error
This service enables partner managers to manage respective partners, manage partner API Key requests, manage PartnerAPIKeys to Policies mappings.
[GET /pmpartners/validatePartnerMisp/partnerId/{partnerId}/partnerApiKey/{partner_api_key}/mispLicenseKey/{misp_license_key}]
This API would be used by partner Manager, to update Partner api key to Policy Mappings.
Resource URL
https://{base_url}/partnermanagement/v1/pmpartners/{partnerID}/{PartnerAPIKey}
Resource details
Response format
JSON
Requires Authentication
Yes
Request Path Parameters
partnerID
Yes
partnerID
65432345634232
PartnerAPIKey
Yes
PartnerAPIKey
fa604-affcd-33201-04770
Request Body Parameters
id
Yes
id
mosip.partnermanagement.partners.policy.mapping
version
Yes
version of the application
1.0
requesttime
Yes
Time of the request
2019-01-16T05:23:08.019Z
request
Yes
Request for the application
request.oldPolicyID
Yes
old Policy ID
54662345634232
request.newPolicyID
Yes
new Policy ID
45662345639999
Request Header
Authorization
Yes
authentication token
Mosip-TokeneyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJyYXZpLmJhbGFqaUBtaW5kdHJlZS5jb20iLCJtb2JpbGUiOiIiLCJtYWlsIjoicmF2aS5iYWxhamlAbWluZHRyZWUuY29tIiwicm9sZSI6IklORElWSURVQUwiLCJuYW1lIjoicmF2aS5iYWxhamlAbWluZHRyZWUuY29tIiwiaXNPdHBSZXF1aXJlZCI6dHJ1ZSwiaXNPdHBWZXJpZmllZCI6dHJ1ZSwiaWF0IjoxNTYyNTgwMzg0LCJleHAiOjE1NjI1ODYzODR9.eycrDnzPFBnx57wp6v-iXHtFnRxPgOysG3QETnElSswBUH5ojUUCLsn6SeYukIy-rEZ0SOdr9jkLE6A8tNkj4w
Request
Responses
Success Response
Status code: 200
Description: Partner api key to Policy Mappings updated successfully.
Failure Response
Status code: 200
Description: old/new Policy %d does not exist
Other Failure details
PMS_PMP_001
Partner Manager does not exist
Not a authorized Partner Manager- UserName not available in database
PMS_PMP_002
Mismatch of the Partner Manager Credentials
User Name and Password of the Partner Manager does not match
PMS_PMP_003
Your password has expired. Please reset your password
Password expired
PMS_PMP_008
Partner api key is not assigned to” + old policy ID+ “ hence cannot be updated with new policy
Partner api key is not assigned to old policy ID hence cannot be updated with new policy
PMS_PMP_009
Partner api key does not belong to the Policy Group of the Partner Manger
Partner api key does not belong to the Policy Group of the Partner Manger
PMS_PMP_010
Policy does not belong to the Policy Group of the Partner Manger
Policy does not belong to the Policy Group of the Partner Manger
PMS_PMP_011
Partner api key Request ID does not exist
Partner api key Request ID does not exist
PMS_PMP_014
Policy %d does not exist
Policy does not exist
PMS_COR_001
Missing Input Parameter - %d
Missing Input Parameter - for all mandatory attributes
PMS_COR_002
Invalid Input Parameter - %d
Invalid Input Parameter - for all attributes not as per defined data definition
PMS_COR_003
Could not process the request
Any Internal Error
This API would be used to activate/deactivate Auth/E-KYC Partners
Resource URL
https://{base_url}/partnermanagement/v1/pmpartners/{partnerID}
Resource details
Response format
JSON
Requires Authentication
Yes
Request Path Parameters
partnerID
Yes
partnerID
65432345634232
Request Body Parameters
id
Yes
id
mosip.partnermanagement.partners.status.update
version
Yes
version of the application
1.0
requesttime
Yes
Time of the request
2019-01-16T05:23:08.019Z
request
Yes
Request for the application
request.status
Yes
status of the partner that needs to update
DeActive
Request Header
Authorization
Yes
authentication token
Mosip-TokeneyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJyYXZpLmJhbGFqaUBtaW5kdHJlZS5jb20iLCJtb2JpbGUiOiIiLCJtYWlsIjoicmF2aS5iYWxhamlAbWluZHRyZWUuY29tIiwicm9sZSI6IklORElWSURVQUwiLCJuYW1lIjoicmF2aS5iYWxhamlAbWluZHRyZWUuY29tIiwiaXNPdHBSZXF1aXJlZCI6dHJ1ZSwiaXNPdHBWZXJpZmllZCI6dHJ1ZSwiaWF0IjoxNTYyNTgwMzg0LCJleHAiOjE1NjI1ODYzODR9.eycrDnzPFBnx57wp6v-iXHtFnRxPgOysG3QETnElSswBUH5ojUUCLsn6SeYukIy-rEZ0SOdr9jkLE6A8tNkj4w
Request
Responses
Success Response
Status code: 200
Description: Partner status updated successfully.
Failure Response
Status code: 200
Description: Requested partner ID does not exist
Other Failure details
PMS_PMP_001
Partner Manager does not exist
Not a authorized Partner Manager- UserName not available in database
PMS_PMP_002
Mismatch of the Partner Manager Credentials
User Name and Password of the Partner Manager does not match
PMS_PMP_003
Your password has expired. Please reset your password
Password expired
PMS_PMP_005
Partner ID %d does not exist
Requested Partner ID does not exist
PMS_PMP_006
Partner Manager is denied permission to activate/deactivate Partner
Partner Manager is denied permission to activate/deactivate Partner
PMS_COR_001
Missing Input Parameter - %d
Missing Input Parameter - for all mandatory attributes
PMS_COR_002
Invalid Input Parameter - %d
Invalid Input Parameter - for all attributes not as per defined data definition
PMS_COR_003
Could not process the request
Any Internal Error
Partner Manager would be using this API to activate OR de-activate PartnerAPIKey for given partner.
Resource URL
https://{base_url}/partnermanagement/v1/pmpartners/{partnerID}/{PartnerAPIKey}
Resource details
Response format
JSON
Requires Authentication
Yes
Request Path Parameters
partnerID
Yes
partnerID
65432345634232
PartnerAPIKey
Yes
PartnerAPIKey
fa604-affcd-33201-04770
Request Body Parameters
id
Yes
id
mosip.partnermanagement.partners.apikeystatus.update
version
Yes
version of the application
1.0
requesttime
Yes
Time of the request
2019-01-16T05:23:08.019Z
request
Yes
Request for the application
request.status
Yes
status of the partnerAPI that needs to update
Active
Request Header
Authorization
Yes
authentication token
Mosip-TokeneyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJyYXZpLmJhbGFqaUBtaW5kdHJlZS5jb20iLCJtb2JpbGUiOiIiLCJtYWlsIjoicmF2aS5iYWxhamlAbWluZHRyZWUuY29tIiwicm9sZSI6IklORElWSURVQUwiLCJuYW1lIjoicmF2aS5iYWxhamlAbWluZHRyZWUuY29tIiwiaXNPdHBSZXF1aXJlZCI6dHJ1ZSwiaXNPdHBWZXJpZmllZCI6dHJ1ZSwiaWF0IjoxNTYyNTgwMzg0LCJleHAiOjE1NjI1ODYzODR9.eycrDnzPFBnx57wp6v-iXHtFnRxPgOysG3QETnElSswBUH5ojUUCLsn6SeYukIy-rEZ0SOdr9jkLE6A8tNkj4w
Request
Responses
Success Response
Status code: 200
Description: PartnerAPIKey status updated successfully.
Failure Response
Status code: 200
Description: Requested Partner API Key does not exist
Other Failure details
PMS_PMP_001
Partner Manager does not exist
Not a authorized Partner Manager- UserName not available in database
PMS_PMP_002
Mismatch of the Partner Manager Credentials
User Name and Password of the Partner Manager does not match
PMS_PMP_003
Your password has expired. Please reset your password
Password expired
PMS_PMP_005
Partner ID %d does not exist
Requested Partner ID does not exist
PMS_PMP_006
Partner Manager is denied permission to activate/deactivate Partner
Partner Manager is denied permission to activate/deactivate Partner
PMS_PMP_007
Partner API Key does not exist
Requested Partner API Key does not exist
PMS_PMP_008
Partner api key is not assigned to” + old policy ID+ “ hence cannot be updated with new policy
Partner api key is not assigned to old policy ID hence cannot be updated with new policy
PMS_PMP_009
Partner api key does not belong to the Policy Group of the Partner Manger
Partner api key does not belong to the Policy Group of the Partner Manger
PMS_PMP_010
Policy does not belong to the Policy Group of the Partner Manger
Policy does not belong to the Policy Group of the Partner Manger
PMS_COR_001
Missing Input Parameter - %d
Missing Input Parameter - for all mandatory attributes
PMS_COR_002
Invalid Input Parameter - %d
Invalid Input Parameter - for all attributes not as per defined data definition
PMS_COR_003
Could not process the request
Any Internal Error
Partner Manager would be using this API to approve OR reject partner API key requests based on API key request id. During approval process of the request unique PartnerAPI Key is generated in Partner Management module, which is mapped to requested policies. Partner API Key would be having default active status, expiry of which would configurable.
Resource URL
https://{base_url}/partnermanagement/v1/pmpartners/PartnerAPIKeyRequests/{APIKeyReqID}
Resource details
Response format
JSON
Requires Authentication
Yes
Request Path Parameters
APIKeyReqID
Yes
APIKey Request ID
65432345634232
Request Body Parameters
id
Yes
id
mosip.partnermanagement.partners.apikey.approval
version
Yes
version of the application
1.0
requesttime
Yes
Time of the request
2019-01-16T05:23:08.019Z
request
Yes
Request for the application
request.status
Yes
status of the partner API Key that needs to update
Approved
Request Header
Authorization
Yes
authentication token
Mosip-TokeneyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJyYXZpLmJhbGFqaUBtaW5kdHJlZS5jb20iLCJtb2JpbGUiOiIiLCJtYWlsIjoicmF2aS5iYWxhamlAbWluZHRyZWUuY29tIiwicm9sZSI6IklORElWSURVQUwiLCJuYW1lIjoicmF2aS5iYWxhamlAbWluZHRyZWUuY29tIiwiaXNPdHBSZXF1aXJlZCI6dHJ1ZSwiaXNPdHBWZXJpZmllZCI6dHJ1ZSwiaWF0IjoxNTYyNTgwMzg0LCJleHAiOjE1NjI1ODYzODR9.eycrDnzPFBnx57wp6v-iXHtFnRxPgOysG3QETnElSswBUH5ojUUCLsn6SeYukIy-rEZ0SOdr9jkLE6A8tNkj4w
Request
Responses
Success Response
Status code: 200
Description: PartnerAPIKey approved successfully.
Failure Response
Status code: 200
Description: Requested Partner API Key Request ID does not exist
Other Failure details
PMS_PMP_001
Partner Manager does not exist
Not a authorized Partner Manager- UserName not available in database
PMS_PMP_002
Mismatch of the Partner Manager Credentials
User Name and Password of the Partner Manager does not match
PMS_PMP_003
Your password has expired. Please reset your password
Password expired
PMS_PMP_011
Partner api key Request ID does not exist
Partner api key Request ID does not exist
PMS_PMP_012
Partner Manager is denied permission to approve or reject the request
Partner Manager is denied permission to approve or reject the request
PMS_COR_001
Missing Input Parameter - %d
Missing Input Parameter - for all mandatory attributes
PMS_COR_002
Invalid Input Parameter - %d
Invalid Input Parameter - for all attributes not as per defined data definition
PMS_COR_003
Could not process the request
Any Internal Error
Partner managers would be using this request to retrive the policy mapping to partner and partner api key. Partner management system would be able to validate the following.
Validates if the status of the MISP License Key is active.
Retrieves the MISP status corresponding to the MISP License key in the request.
Validates if the status of MISP is active.
Validates if the status of the Partner ID is active
Validates the length and pattern of the Partner API Key.
Validates if the status of Partner API Key is active.
Validates if the Partner API key belong to the partner.
Retrieves the policy ID mapped to the Partner API key.
Resource URL
https://{base_url}/partnermanagement/v1/pmpartners/validatePartnerMisp/partnerId/{partnerId}/partnerApiKey/{partner_api_key}/mispLicenseKey/{misp_license_key}
Resource details
Response format
JSON
Requires Authentication
Yes
Request Path Parameters
partnerId
Yes
partnerId
87965675766
partner_api_key
Yes
partner_api_key
fa604-affcd-33201-04770
misp_license_key
Yes
misp_license_key
dfgtgfghgv
Request Header
Authorization
Yes
authentication token
Mosip-TokeneyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJyYXZpLmJhbGFqaUBtaW5kdHJlZS5jb20iLCJtb2JpbGUiOiIiLCJtYWlsIjoicmF2aS5iYWxhamlAbWluZHRyZWUuY29tIiwicm9sZSI6IklORElWSURVQUwiLCJuYW1lIjoicmF2aS5iYWxhamlAbWluZHRyZWUuY29tIiwiaXNPdHBSZXF1aXJlZCI6dHJ1ZSwiaXNPdHBWZXJpZmllZCI6dHJ1ZSwiaWF0IjoxNTYyNTgwMzg0LCJleHAiOjE1NjI1ODYzODR9.eycrDnzPFBnx57wp6v-iXHtFnRxPgOysG3QETnElSswBUH5ojUUCLsn6SeYukIy-rEZ0SOdr9jkLE6A8tNkj4w
Responses
Success Response
Status code: 200
Description: Successfully retrives policies mapped to partner and partner api key.
Failure Response
Status code: 200
Description: misp license expired.
Other Failure details
PMS_PMP_001
Partner Manager does not exist
Not a authorized Partner Manager- UserName not available in database
PMS_PMP_002
Mismatch of the Partner Manager Credentials
User Name and Password of the Partner Manager does not match
PMS_PMP_003
Your password has expired. Please reset your password
Password expired
PMS_PMP_007
Partner API Key does not exist
Requested Partner API Key does not exist
PMS_PMP_021
MISP license key is expired
MISP license key is expired
PMS_COR_003
Could not process the request
Any Internal Error
This API would be used to retrieve all Auth/E-KYC Partners for the policy group.
Resource URL
https://{base_url}/partnermanagement/v1/pmpartners
Resource details
Response format
JSON
Requires Authentication
Yes
Request Header
Authorization
Yes
authentication token
Mosip-TokeneyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJyYXZpLmJhbGFqaUBtaW5kdHJlZS5jb20iLCJtb2JpbGUiOiIiLCJtYWlsIjoicmF2aS5iYWxhamlAbWluZHRyZWUuY29tIiwicm9sZSI6IklORElWSURVQUwiLCJuYW1lIjoicmF2aS5iYWxhamlAbWluZHRyZWUuY29tIiwiaXNPdHBSZXF1aXJlZCI6dHJ1ZSwiaXNPdHBWZXJpZmllZCI6dHJ1ZSwiaWF0IjoxNTYyNTgwMzg0LCJleHAiOjE1NjI1ODYzODR9.eycrDnzPFBnx57wp6v-iXHtFnRxPgOysG3QETnElSswBUH5ojUUCLsn6SeYukIy-rEZ0SOdr9jkLE6A8tNkj4w
Responses
Success Response
Status code: 200
Description: retrieve the partner details for the particular policy group.
Failure Response
Status code: 200
Description: No partner Registered in the policy Group
Other Failure details
PMS_PMP_001
Partner Manager does not exist
Not a authorized Partner Manager- UserName not available in database
PMS_PMP_002
Mismatch of the Partner Manager Credentials
User Name and Password of the Partner Manager does not match
PMS_PMP_003
Your password has expired. Please reset your password
Password expired
PMS_PMP_004
No Partners are registered in the Policy Group
No partner Registered in the policy Group
PMS_COR_001
Missing Input Parameter - %d
Missing Input Parameter - for all mandatory attributes
PMS_COR_002
Invalid Input Parameter - %d
Invalid Input Parameter - for all attributes not as per defined data definition
PMS_COR_003
Could not process the request
Any Internal Error
This API would be used to retrieve the particular Auth/E-KYC Partner details for given partner id.
Resource URL
https://{base_url}/partnermanagement/v1/pmpartners/{partnerID}
Resource details
Response format
JSON
Requires Authentication
Yes
Request Path Parameters
partnerID
Yes
Partner ID
87652345634232
Request Header
Authorization
Yes
authentication token
Mosip-TokeneyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJyYXZpLmJhbGFqaUBtaW5kdHJlZS5jb20iLCJtb2JpbGUiOiIiLCJtYWlsIjoicmF2aS5iYWxhamlAbWluZHRyZWUuY29tIiwicm9sZSI6IklORElWSURVQUwiLCJuYW1lIjoicmF2aS5iYWxhamlAbWluZHRyZWUuY29tIiwiaXNPdHBSZXF1aXJlZCI6dHJ1ZSwiaXNPdHBWZXJpZmllZCI6dHJ1ZSwiaWF0IjoxNTYyNTgwMzg0LCJleHAiOjE1NjI1ODYzODR9.eycrDnzPFBnx57wp6v-iXHtFnRxPgOysG3QETnElSswBUH5ojUUCLsn6SeYukIy-rEZ0SOdr9jkLE6A8tNkj4w
Responses
Success Response
Status code: 200
Description: retrieve the partner details for the particular policy group.
Failure Response
Status code: 200
Description: Requested partner does not exist
Other Failure details
PMS_PMP_001
Partner Manager does not exist
Not a authorized Partner Manager- UserName not available in database
PMS_PMP_002
Mismatch of the Partner Manager Credentials
User Name and Password of the Partner Manager does not match
PMS_PMP_003
Your password has expired. Please reset your password
Password expired
PMS_PMP_013
Partner does not exist
Requested partner does not exist
PMS_COR_001
Missing Input Parameter - %d
Missing Input Parameter - for all mandatory attributes
PMS_COR_002
Invalid Input Parameter - %d
Invalid Input Parameter - for all attributes not as per defined data definition
PMS_COR_003
Could not process the request
Any Internal Error
Partner managers would be using this request to retrieve the Partner API key to Policy Mappings. Partner management system would be able to validate Partner API Key pattern, validate expiry for Partner API Key and status details in background, while fetching Policy to Partner API mappings.
Resource URL
https://{base_url}/partnermanagement/v1/pmpartners/{partnerID}/{PartnerAPIKey}
Resource details
Response format
JSON
Requires Authentication
Yes
Request Path Parameters
partnerID
Yes
partnerID
87652345634232
PartnerAPIKey
Yes
PartnerAPIKey
fa604-affcd-33201-04770
Request Header
Authorization
Yes
authentication token
Mosip-TokeneyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJyYXZpLmJhbGFqaUBtaW5kdHJlZS5jb20iLCJtb2JpbGUiOiIiLCJtYWlsIjoicmF2aS5iYWxhamlAbWluZHRyZWUuY29tIiwicm9sZSI6IklORElWSURVQUwiLCJuYW1lIjoicmF2aS5iYWxhamlAbWluZHRyZWUuY29tIiwiaXNPdHBSZXF1aXJlZCI6dHJ1ZSwiaXNPdHBWZXJpZmllZCI6dHJ1ZSwiaWF0IjoxNTYyNTgwMzg0LCJleHAiOjE1NjI1ODYzODR9.eycrDnzPFBnx57wp6v-iXHtFnRxPgOysG3QETnElSswBUH5ojUUCLsn6SeYukIy-rEZ0SOdr9jkLE6A8tNkj4w
Responses
Success Response
Status code: 200
Description: successfully retrieved the Partner API key to Policy Mappings.
Failure Response
Status code: 200
Description: Requested partner does not exist
Other Failure details
PMS_PMP_001
Partner Manager does not exist
Not a authorized Partner Manager- UserName not available in database
PMS_PMP_002
Mismatch of the Partner Manager Credentials
User Name and Password of the Partner Manager does not match
PMS_PMP_003
Your password has expired. Please reset your password
Password expired
PMS_PMP_007
Partner API Key does not exist
Requested Partner API Key does not exist
PMS_PMP_009
Partner api key does not belong to the Policy Group of the Partner Manger
Partner api key does not belong to the Policy Group of the Partner Manger
PMS_COR_001
Missing Input Parameter - %d
Missing Input Parameter - for all mandatory attributes
PMS_COR_002
Invalid Input Parameter - %d
Invalid Input Parameter - for all attributes not as per defined data definition
PMS_COR_003
Could not process the request
Any Internal Error
This API would be used to retrieve all Partner API Key requests as received by partner manager
Resource URL
https://{base_url}/partnermanagement/v1/pmpartners/PartnerAPIKeyRequests
Resource details
Response format
JSON
Requires Authentication
Yes
Request Header
Authorization
Yes
authentication token
Mosip-TokeneyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJyYXZpLmJhbGFqaUBtaW5kdHJlZS5jb20iLCJtb2JpbGUiOiIiLCJtYWlsIjoicmF2aS5iYWxhamlAbWluZHRyZWUuY29tIiwicm9sZSI6IklORElWSURVQUwiLCJuYW1lIjoicmF2aS5iYWxhamlAbWluZHRyZWUuY29tIiwiaXNPdHBSZXF1aXJlZCI6dHJ1ZSwiaXNPdHBWZXJpZmllZCI6dHJ1ZSwiaWF0IjoxNTYyNTgwMzg0LCJleHAiOjE1NjI1ODYzODR9.eycrDnzPFBnx57wp6v-iXHtFnRxPgOysG3QETnElSswBUH5ojUUCLsn6SeYukIy-rEZ0SOdr9jkLE6A8tNkj4w
Responses
Success Response
Status code: 200
Description: successfully retrieved the Partner API key to Policy Mappings.
Failure Response
Status code: 200
Description: No Partner api key requests for the Policy Group
Other Failure details
PMS_PMP_001
Partner Manager does not exist
Not a authorized Partner Manager- UserName not available in database
PMS_PMP_002
Mismatch of the Partner Manager Credentials
User Name and Password of the Partner Manager does not match
PMS_PMP_003
Your password has expired. Please reset your password
Password expired
PMS_PMP_015
No Partner api key requests for the Policy Group
No Partner api key requests for the Policy Group
PMS_COR_001
Missing Input Parameter - %d
Missing Input Parameter - for all mandatory attributes
PMS_COR_002
Invalid Input Parameter - %d
Invalid Input Parameter - for all attributes not as per defined data definition
PMS_COR_003
Could not process the request
Any Internal Error
This API would be used to retrieve the request for Partner API key to Policy Mappings for given request id
Resource URL
https://{base_url}/partnermanagement/v1/pmpartners/PartnerAPIKeyRequests/{APIKeyReqID}
Resource details
Response format
JSON
Requires Authentication
Yes
Request Path Parameters
APIKeyReqID
Yes
APIKey Request ID
873276828663
Request Header
Authorization
Yes
authentication token
Mosip-TokeneyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJyYXZpLmJhbGFqaUBtaW5kdHJlZS5jb20iLCJtb2JpbGUiOiIiLCJtYWlsIjoicmF2aS5iYWxhamlAbWluZHRyZWUuY29tIiwicm9sZSI6IklORElWSURVQUwiLCJuYW1lIjoicmF2aS5iYWxhamlAbWluZHRyZWUuY29tIiwiaXNPdHBSZXF1aXJlZCI6dHJ1ZSwiaXNPdHBWZXJpZmllZCI6dHJ1ZSwiaWF0IjoxNTYyNTgwMzg0LCJleHAiOjE1NjI1ODYzODR9.eycrDnzPFBnx57wp6v-iXHtFnRxPgOysG3QETnElSswBUH5ojUUCLsn6SeYukIy-rEZ0SOdr9jkLE6A8tNkj4w
Responses
Success Response
Status code: 200
Description: successfully retrieved the Partner API key requests for the partner manager.
Failure Response
Status code: 200
Description: No Partner api key requests for the Policy Group
Other Failure details
PMS_PMP_001
Partner Manager does not exist
Not a authorized Partner Manager- UserName not available in database
PMS_PMP_002
Mismatch of the Partner Manager Credentials
User Name and Password of the Partner Manager does not match
PMS_PMP_003
Your password has expired. Please reset your password
Password expired
PMS_PMP_015
No Partner api key requests for the Policy Group
No Partner api key requests for the Policy Group
PMS_COR_001
Missing Input Parameter - %d
Missing Input Parameter - for all mandatory attributes
PMS_COR_002
Invalid Input Parameter - %d
Invalid Input Parameter - for all attributes not as per defined data definition
PMS_COR_003
Could not process the request
Any Internal Error
This service enables partners to do self registration, submit request for respective authentication policies, sharing of digital certificate for secure communication:
This API would be used for self registration by partner to create Auth/E-KYC Partners. Partner Management module would be integrating with Kernel IAM module for generation of userid and password for partners.
User id, as received in response from Kernel IAM module, are stored in partner management database as reference and shared back to partners in response for further communication with MOSIP systems.
Password for any userid would be shared via an off-line process.
Resource URL
https://{base_url}/partnermanagement/v1/partners
Resource details
Response format
JSON
Requires Authentication
Yes
Request Body Parameters
id
Yes
id
mosip.partnermanagement.partners.create
version
Yes
version of the application
1.0
requesttime
Yes
Time of the request
2019-01-16T05:23:08.019Z
request
Yes
Request for the application
request.organizationName
Yes
name of the organization
airtelInd
request.contactNumber
Yes
contact number for the partner
9886779980
request.emailID
Yes
email id of the partner
airtelInd@gmail.com
request.address.authPolicies
Yes
address of the partner
INDIA
request.policyGroup
Yes
policy group
Banking
Request Header
Authorization
Yes
authentication token
Mosip-TokeneyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJyYXZpLmJhbGFqaUBtaW5kdHJlZS5jb20iLCJtb2JpbGUiOiIiLCJtYWlsIjoicmF2aS5iYWxhamlAbWluZHRyZWUuY29tIiwicm9sZSI6IklORElWSURVQUwiLCJuYW1lIjoicmF2aS5iYWxhamlAbWluZHRyZWUuY29tIiwiaXNPdHBSZXF1aXJlZCI6dHJ1ZSwiaXNPdHBWZXJpZmllZCI6dHJ1ZSwiaWF0IjoxNTYyNTgwMzg0LCJleHAiOjE1NjI1ODYzODR9.eycrDnzPFBnx57wp6v-iXHtFnRxPgOysG3QETnElSswBUH5ojUUCLsn6SeYukIy-rEZ0SOdr9jkLE6A8tNkj4w
Request
Responses
Success Response
Status code: 200
Description: Partner successfully created.
Failure Response
Status code: 200
Description: A Partner is already registered with name ”+ Partner Organization Name+ “ in the policy Group +Policy Group
Other Failure details
PMS_PRT_001
A Partner is already registered with name %d in the policy Group %d
A Partner is already registered with name ”+ Partner Organization Name+ “ in the policy Group +Policy Group
PMS_PRT_002
Policy Group does not exist
Policy Group does not exist
PMS_COR_001
Missing Input Parameter - %d
Missing Input Parameter - for all mandatory attributes
PMS_COR_002
Invalid Input Parameter - %d
Invalid Input Parameter - for all attributes not as per defined data definition
PMS_COR_003
Could not process the request
Any Internal Error
This API would be used to submit Partner api key request.
Resource URL
https://{base_url}/partnermanagement/v1/partners/{partnerID}/partnerAPIKeyRequests
Resource details
Response format
JSON
Requires Authentication
Yes
Request Path Parameters
partnerID
Yes
partner ID
6565655443544
Request Body Parameters
id
Yes
id
mosip.partnermanagement.partnerAPIKeyRequest.create
version
Yes
version of the application
1.0
requesttime
Yes
Time of the request
2019-01-16T05:23:08.019Z
request
Yes
Request for the application
request.policyName
Yes
name of the policy
airtelIndPolicy
request.useCaseDescription
Yes
useCase Description
Need to submit the payment
Request Header
Authorization
Yes
authentication token
Mosip-TokeneyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJyYXZpLmJhbGFqaUBtaW5kdHJlZS5jb20iLCJtb2JpbGUiOiIiLCJtYWlsIjoicmF2aS5iYWxhamlAbWluZHRyZWUuY29tIiwicm9sZSI6IklORElWSURVQUwiLCJuYW1lIjoicmF2aS5iYWxhamlAbWluZHRyZWUuY29tIiwiaXNPdHBSZXF1aXJlZCI6dHJ1ZSwiaXNPdHBWZXJpZmllZCI6dHJ1ZSwiaWF0IjoxNTYyNTgwMzg0LCJleHAiOjE1NjI1ODYzODR9.eycrDnzPFBnx57wp6v-iXHtFnRxPgOysG3QETnElSswBUH5ojUUCLsn6SeYukIy-rEZ0SOdr9jkLE6A8tNkj4w
Request
Responses
Success Response
Status code: 200
Description: partnerAPIKeyRequest successfully created.
Failure Response
Status code: 200
Description: A Partner is already registered with name ”+ Partner Organization Name+ “ in the policy Group +Policy Group
Other Failure details
PMS_PRT_001
A Partner is already registered with name %d in the policy Group %d
A Partner is already registered with name ”+ Partner Organization Name+ “ in the policy Group +Policy Group
PMS_PRT_002
Policy Group does not exist
Policy Group does not exist
PMS_PRT_003
Mismatch of the Partner Credentials
User Name and Password of the Partner does not match
PMS_PRT_004
Your password has expired. Please reset your password
Password expired
PMS_PRT_005
Partner does not exist
Partner does not exist
PMS_COR_001
Missing Input Parameter - %d
Missing Input Parameter - for all mandatory attributes
PMS_COR_002
Invalid Input Parameter - %d
Invalid Input Parameter - for all attributes not as per defined data definition
PMS_COR_003
Could not process the request
Any Internal Error
This API would be used to download Partner API key for the given APIKeyReqID
Resource URL
https://{base_url}/partnermanagement/v1/partners/{partnerID}/partnerAPIKeyRequests/{APIKeyReqID}
Resource details
Response format
JSON
Requires Authentication
Yes
Request Path Parameters
partnerID
Yes
partner ID
6565655443544
APIKeyReqID
Yes
API Key RequestID
873276828663
Request Header
Authorization
Yes
authentication token
Mosip-TokeneyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJyYXZpLmJhbGFqaUBtaW5kdHJlZS5jb20iLCJtb2JpbGUiOiIiLCJtYWlsIjoicmF2aS5iYWxhamlAbWluZHRyZWUuY29tIiwicm9sZSI6IklORElWSURVQUwiLCJuYW1lIjoicmF2aS5iYWxhamlAbWluZHRyZWUuY29tIiwiaXNPdHBSZXF1aXJlZCI6dHJ1ZSwiaXNPdHBWZXJpZmllZCI6dHJ1ZSwiaWF0IjoxNTYyNTgwMzg0LCJleHAiOjE1NjI1ODYzODR9.eycrDnzPFBnx57wp6v-iXHtFnRxPgOysG3QETnElSswBUH5ojUUCLsn6SeYukIy-rEZ0SOdr9jkLE6A8tNkj4w
Responses
Success Response
Status code: 200
Description: successfully retrieved the partnerAPIKey.
Failure Response
Status code: 200
Description: APIKeyReqID does not exist
Other Failure details
PMS_PRT_003
Mismatch of the Partner Credentials
User Name and Password of the Partner does not match
PMS_PRT_004
Your password has expired. Please reset your password
Password expired
PMS_PRT_005
Partner does not exist
Partner does not exist
PMS_PRT_006
APIKeyReqID does not exist
APIKeyReqID does not exist
PMS_COR_001
Missing Input Parameter - %d
Missing Input Parameter - for all mandatory attributes
PMS_COR_002
Invalid Input Parameter - %d
Invalid Input Parameter - for all attributes not as per defined data definition
PMS_COR_003
Could not process the request
Any Internal Error
Partners would be procuring digital certificates from Certification Authority (CA), and upload the same to Partner Management using this API.
Partner Management would depend on Kernel to manage partner certificates, validation of partner certificates. Appropriate error messages would be sent back to Partners, in cases where digital certificates expires, certificate validation error happens.
Partners would require to re-issue and upload new digital certificates, in case of expiry of digital certificates. References to Partner digital certificate IDs are stored in partner management DBs, actual storage and validation of partner digital certificate would be in Kernel.
IDA would be using partner provided public keys for encryption of e-kyc response. Partner management module would be using Kernel services for partner key management, encryption/decryption and sharing of keys.
Following Kernel services would be utilized for certificate and key management activities:
Resource URL
https://{base_url}/partnermanagement/v1/partners/digitalcertificate
Resource details
Response format
JSON
Requires Authentication
Yes
Request Body Parameters
id
Yes
id
mosip.partnermanagement.partners.certificate.upload
version
Yes
version of the application
1.0
requesttime
Yes
Time of the request
2019-01-16T05:23:08.019Z
request
Yes
Request for the application
request.partnerCertificate
Yes
partner digital certificate
digital certificate
Request Header
Authorization
Yes
authentication token
Mosip-TokeneyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJyYXZpLmJhbGFqaUBtaW5kdHJlZS5jb20iLCJtb2JpbGUiOiIiLCJtYWlsIjoicmF2aS5iYWxhamlAbWluZHRyZWUuY29tIiwicm9sZSI6IklORElWSURVQUwiLCJuYW1lIjoicmF2aS5iYWxhamlAbWluZHRyZWUuY29tIiwiaXNPdHBSZXF1aXJlZCI6dHJ1ZSwiaXNPdHBWZXJpZmllZCI6dHJ1ZSwiaWF0IjoxNTYyNTgwMzg0LCJleHAiOjE1NjI1ODYzODR9.eycrDnzPFBnx57wp6v-iXHtFnRxPgOysG3QETnElSswBUH5ojUUCLsn6SeYukIy-rEZ0SOdr9jkLE6A8tNkj4w
Request
Responses
Success Response
Status code: 200
Description: successfully uploaded partner's digital certificate
Failure Response
Status code: 200
Description: Partner digital certificate is not valid
Other Failure details
PMS_PRT_003
Mismatch of the Partner Credentials
User Name and Password of the Partner does not match
PMS_PRT_004
Your password has expired. Please reset your password
Password expired
PMS_PRT_005
Partner does not exist
Partner does not exist
PMS_PRT_007
Partner digital certificate is not valid
Partner digital certificate is not valid
PMS_COR_001
Missing Input Parameter - %d
Missing Input Parameter - for all mandatory attributes
PMS_COR_002
Invalid Input Parameter - %d
Invalid Input Parameter - for all attributes not as per defined data definition
This API would be used to update Auth/E-KYC Partner's details.
Resource URL
https://{base_url}/partnermanagement/v1/partners/{partnerID}
Resource details
Response format
JSON
Requires Authentication
Yes
Request Path Parameters
partnerID
Yes
partner ID
6565655443544
Request Body Parameters
id
Yes
id
mosip.partnermanagement.partners.update
version
Yes
version of the application
1.0
requesttime
Yes
Time of the request
2019-01-16T05:23:08.019Z
request
Yes
Request for the application
request.organizationName
Yes
name of the organization
airtelInd
request.contactNumber
Yes
contact number for the partner
9886779980
request.emailID
Yes
email id of the partner
airtelInd@gmail.com
request.address
Yes
address of the partner
Bangalore,INDIA
Request Header
Authorization
Yes
authentication token
Mosip-TokeneyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJyYXZpLmJhbGFqaUBtaW5kdHJlZS5jb20iLCJtb2JpbGUiOiIiLCJtYWlsIjoicmF2aS5iYWxhamlAbWluZHRyZWUuY29tIiwicm9sZSI6IklORElWSURVQUwiLCJuYW1lIjoicmF2aS5iYWxhamlAbWluZHRyZWUuY29tIiwiaXNPdHBSZXF1aXJlZCI6dHJ1ZSwiaXNPdHBWZXJpZmllZCI6dHJ1ZSwiaWF0IjoxNTYyNTgwMzg0LCJleHAiOjE1NjI1ODYzODR9.eycrDnzPFBnx57wp6v-iXHtFnRxPgOysG3QETnElSswBUH5ojUUCLsn6SeYukIy-rEZ0SOdr9jkLE6A8tNkj4w
Request
Responses
Success Response
Status code: 200
Description: Partner successfully updated.
Failure Response
Status code: 200
Description: A Partner is already registered with name ”+ Partner Organization Name+ “ in the policy Group +Policy Group
Other Failure details
PMS_PRT_001
A Partner is already registered with name %d in the policy Group %d
A Partner is already registered with name ”+ Partner Organization Name+ “ in the policy Group +Policy Group
PMS_PRT_003
Mismatch of the Partner Credentials
User Name and Password of the Partner does not match
PMS_PRT_004
Your password has expired. Please reset your password
Password expired
PMS_PRT_005
Partner does not exist
Partner does not exist
PMS_COR_001
Missing Input Parameter - %d
Missing Input Parameter - for all mandatory attributes
PMS_COR_002
Invalid Input Parameter - %d
Invalid Input Parameter - for all attributes not as per defined data definition
PMS_COR_003
Could not process the request
Any Internal Error
As the MOSIP system Partner Management module would integrate with Kernel for validation of partner's digital certificate. In case where MOSIP would act as certification authority for partners, MOSIP would be able to sign and resign partner digital certificates. Partner management module would depend on Kernel services for signing and re-signing of partner digital certificates. Kernel Signature service would be utilized to validate signature : Kernel Signature Service
Resource URL
https://{base_url}/partnermanagement/v1/partners/digitalcertificate
Resource details
Response format
JSON
Requires Authentication
Yes
Request Body Parameters
id
Yes
id
mosip.partnermanagement.partners.certificate.validate
version
Yes
version of the application
1.0
requesttime
Yes
Time of the request
2019-01-16T05:23:08.019Z
request
Yes
Request for the application
request.partnerCertificate
Yes
partner digital certificate
digital certificate
Request Header
Authorization
Yes
authentication token
Mosip-TokeneyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJyYXZpLmJhbGFqaUBtaW5kdHJlZS5jb20iLCJtb2JpbGUiOiIiLCJtYWlsIjoicmF2aS5iYWxhamlAbWluZHRyZWUuY29tIiwicm9sZSI6IklORElWSURVQUwiLCJuYW1lIjoicmF2aS5iYWxhamlAbWluZHRyZWUuY29tIiwiaXNPdHBSZXF1aXJlZCI6dHJ1ZSwiaXNPdHBWZXJpZmllZCI6dHJ1ZSwiaWF0IjoxNTYyNTgwMzg0LCJleHAiOjE1NjI1ODYzODR9.eycrDnzPFBnx57wp6v-iXHtFnRxPgOysG3QETnElSswBUH5ojUUCLsn6SeYukIy-rEZ0SOdr9jkLE6A8tNkj4w
Request
Responses
Success Response
Status code: 200
Description: successfully validated partner's digital certificate
Failure Response
Status code: 200
Description: Partner digital certificate is not valid
Other Failure details
PMS_PRT_003
Mismatch of the Partner Credentials
User Name and Password of the Partner does not match
PMS_PRT_004
Your password has expired. Please reset your password
Password expired
PMS_PRT_005
Partner does not exist
Partner does not exist
PMS_PRT_007
Partner digital certificate is not valid
Partner digital certificate is not valid
PMS_COR_001
Missing Input Parameter - %d
Missing Input Parameter - for all mandatory attributes
PMS_COR_002
Invalid Input Parameter - %d
Invalid Input Parameter - for all attributes not as per defined data definition
PMS_COR_003
Could not process the request
Any Internal Error
This API would be used to retrieve Auth/E-KYC Partner details.
Resource URL
https://{base_url}/partnermanagement/v1/partners/{partnerID}
Resource details
Response format
JSON
Requires Authentication
Yes
Request Path Parameters
partnerID
Yes
partner ID
6565655443544
Request Header
Authorization
Yes
authentication token
Mosip-TokeneyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJyYXZpLmJhbGFqaUBtaW5kdHJlZS5jb20iLCJtb2JpbGUiOiIiLCJtYWlsIjoicmF2aS5iYWxhamlAbWluZHRyZWUuY29tIiwicm9sZSI6IklORElWSURVQUwiLCJuYW1lIjoicmF2aS5iYWxhamlAbWluZHRyZWUuY29tIiwiaXNPdHBSZXF1aXJlZCI6dHJ1ZSwiaXNPdHBWZXJpZmllZCI6dHJ1ZSwiaWF0IjoxNTYyNTgwMzg0LCJleHAiOjE1NjI1ODYzODR9.eycrDnzPFBnx57wp6v-iXHtFnRxPgOysG3QETnElSswBUH5ojUUCLsn6SeYukIy-rEZ0SOdr9jkLE6A8tNkj4w
Responses
Success Response
Status code: 200
Description: successfully retrieved the Partner details.
Failure Response
Status code: 200
Description: Partner does not exist
Other Failure details
PMS_PRT_003
Mismatch of the Partner Credentials
User Name and Password of the Partner does not match
PMS_PRT_004
Your password has expired. Please reset your password
Password expired
PMS_PRT_005
Partner does not exist
Partner does not exist
PMS_COR_001
Missing Input Parameter - %d
Missing Input Parameter - for all mandatory attributes
PMS_COR_002
Invalid Input Parameter - %d
Invalid Input Parameter - for all attributes not as per defined data definition
PMS_COR_003
Could not process the request
Any Internal Error
This API would be used to retrieve all API key requests submitted by partner till date.
Resource URL
https://{base_url}/partnermanagement/v1/partners/{partnerID}/partnerAPIKeyRequests
Resource details
Response format
JSON
Requires Authentication
Yes
Request Path Parameters
partnerID
Yes
partner ID
6565655443544
Request Header
Authorization
Yes
authentication token
Mosip-TokeneyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJyYXZpLmJhbGFqaUBtaW5kdHJlZS5jb20iLCJtb2JpbGUiOiIiLCJtYWlsIjoicmF2aS5iYWxhamlAbWluZHRyZWUuY29tIiwicm9sZSI6IklORElWSURVQUwiLCJuYW1lIjoicmF2aS5iYWxhamlAbWluZHRyZWUuY29tIiwiaXNPdHBSZXF1aXJlZCI6dHJ1ZSwiaXNPdHBWZXJpZmllZCI6dHJ1ZSwiaWF0IjoxNTYyNTgwMzg0LCJleHAiOjE1NjI1ODYzODR9.eycrDnzPFBnx57wp6v-iXHtFnRxPgOysG3QETnElSswBUH5ojUUCLsn6SeYukIy-rEZ0SOdr9jkLE6A8tNkj4w
Responses
Success Response
Status code: 200
Description: successfully retrieved all Active policies available for my policy group.
Failure Response
Status code: 200
Description: No API Key Request found for the partner
Other Failure details
PMS_PRT_003
Mismatch of the Partner Credentials
User Name and Password of the Partner does not match
PMS_PRT_004
Your password has expired. Please reset your password
Password expired
PMS_PRT_005
Partner does not exist
Partner does not exist
PMS_PRT_008
No API Key Request found
No API Key Request found for the partner
PMS_COR_001
Missing Input Parameter - %d
Missing Input Parameter - for all mandatory attributes
PMS_COR_002
Invalid Input Parameter - %d
Invalid Input Parameter - for all attributes not as per defined data definition
PMS_COR_003
Could not process the request
Any Internal Error
This API would be used to view API key request status and API key (in case request is approved).
Resource URL
https://{base_url}/partnermanagement/v1/partners/{partnerID}/partnerAPIKeyRequests/{APIKeyReqID}
Resource details
Response format
JSON
Requires Authentication
Yes
Request Path Parameters
APIKeyReqID
Yes
API Key RequestID
873276828663
Request Header
Authorization
Yes
authentication token
Mosip-TokeneyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJyYXZpLmJhbGFqaUBtaW5kdHJlZS5jb20iLCJtb2JpbGUiOiIiLCJtYWlsIjoicmF2aS5iYWxhamlAbWluZHRyZWUuY29tIiwicm9sZSI6IklORElWSURVQUwiLCJuYW1lIjoicmF2aS5iYWxhamlAbWluZHRyZWUuY29tIiwiaXNPdHBSZXF1aXJlZCI6dHJ1ZSwiaXNPdHBWZXJpZmllZCI6dHJ1ZSwiaWF0IjoxNTYyNTgwMzg0LCJleHAiOjE1NjI1ODYzODR9.eycrDnzPFBnx57wp6v-iXHtFnRxPgOysG3QETnElSswBUH5ojUUCLsn6SeYukIy-rEZ0SOdr9jkLE6A8tNkj4w
Responses
Success Response
Status code: 200
Description: successfully retrieved Partner api key/partner api key request status
Failure Response
Status code: 200
Description: APIKeyReqID does not exist
Other Failure details
PMS_PRT_003
Mismatch of the Partner Credentials
User Name and Password of the Partner does not match
PMS_PRT_004
Your password has expired. Please reset your password
Password expired
PMS_PRT_005
Partner does not exist
Partner does not exist
PMS_PRT_006
APIKeyReqID does not exist
APIKeyReqID does not exist
PMS_COR_001
Missing Input Parameter - %d
Missing Input Parameter - for all mandatory attributes
PMS_COR_002
Invalid Input Parameter - %d
Invalid Input Parameter - for all attributes not as per defined data definition
PMS_COR_003
Could not process the request
Any Internal Error
Partners would be required to download MOSIP digital certificates. Partner would be using MOSIP public key (part of MOSIP digital certificate) and MOSIP digital certificate, for establishing secure communication with MOSIP. Partner management module would depend on Kernel services to manage MOSIP digital certificate, sharing and re-issue of digital certificate post expiry, validation, encryption/decryption activities.
Resource URL
https://{base_url}/partnermanagement/v1/partners/digitalcertificate
Resource details
Response format
JSON
Requires Authentication
Yes
Request Header
Authorization
Yes
authentication token
Mosip-TokeneyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJyYXZpLmJhbGFqaUBtaW5kdHJlZS5jb20iLCJtb2JpbGUiOiIiLCJtYWlsIjoicmF2aS5iYWxhamlAbWluZHRyZWUuY29tIiwicm9sZSI6IklORElWSURVQUwiLCJuYW1lIjoicmF2aS5iYWxhamlAbWluZHRyZWUuY29tIiwiaXNPdHBSZXF1aXJlZCI6dHJ1ZSwiaXNPdHBWZXJpZmllZCI6dHJ1ZSwiaWF0IjoxNTYyNTgwMzg0LCJleHAiOjE1NjI1ODYzODR9.eycrDnzPFBnx57wp6v-iXHtFnRxPgOysG3QETnElSswBUH5ojUUCLsn6SeYukIy-rEZ0SOdr9jkLE6A8tNkj4w
Responses
Success Response
Status code: 200
Description: successfully retrieved mosip digital certificate
Failure Response
Status code: 200
Description: Partner does not exist
Other Failure details
PMS_PRT_003
Mismatch of the Partner Credentials
User Name and Password of the Partner does not match
PMS_PRT_004
Your password has expired. Please reset your password
Password expired
PMS_PRT_005
Partner does not exist
Partner does not exist
PMS_COR_001
Missing Input Parameter - %d
Missing Input Parameter - for all mandatory attributes
PMS_COR_002
Invalid Input Parameter - %d
Invalid Input Parameter - for all attributes not as per defined data definition
PMS_COR_003
Could not process the request
Any Internal Error