Approve (or Reject) a Partner Account
When a partner account is created using the self-registration process on the partner portal, the operator needs to approve (or reject) the request. This can be done using either the GUI interface or REST interface.
Approve a Partner Account Using the GUI
- Access the partner and API management portal at https://<AppServerx-XMI-IP>:9002/portal/partner/index/partnerLogin.html.
- Login with the operator account.
- Click on the red circle on
top right corner.
The screen displays all requests pending an approval.
- Select the partner request and right click to View Details.
- Review the details and approve or reject the request.
Approve a Partner Account Using REST
The partner approval using REST is a three step process involving getting the notification, approving the request, and updating the notification status.
- To get the notification, use the GET method from
the
/portal/prm/prm_pm_rest/services/partner_manager/notification/PartnerManagerNotification/listNotificationsByStatus/UNREAD
resource URL.
To authorize the request, use the operator username and password in the header of the request.
For more details on the request and response formats, see https://docs.oracle.com/communications/E81149_01/doc.70/e96582/resource_Partner_Manager_Notification.html.
An example of the notification request and response follow:
Request:GET /portal/prm/prm_pm_rest/services/partner_manager/notification/PartnerManagerNotification/listNotificationsByStatus/UNREAD HTTP/1.1 Host: 10.75.244.188:9001 User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:58.0) Gecko/20100101 Firefox/58.0 Accept: application/json, text/javascript, */*; q=0.01 Accept-Language: en-US,en;q=0.5 Accept-Encoding: gzip, deflate Referer: http://10.75.244.188:9001/portal/partner/index/partnerMain.html AuthorizationX: Basic cGFydG5lcjE6e0FFU301Z2Q1UFpwcDZVTmJHdkxrRnBPSXpuMDNMNGxNeDRDZUpCcnBQTjJYaXZrPQ== X-Requested-With: XMLHttpRequest Connection: keep-alive
Response:HTTP/1.1 200 OK Date: Wed, 31 Jan 2018 05:50:57 GMT Content-Length: 9447 Content-Type: application/json X-FRAME-OPTIONS: DENY {"ListNotificationsByStatusResponse":{"return":[{"id":"113e1904-8419-4cd2-958a-659a950aba6c", "content":"Partner Create Application Task","date":"01/31/2018","receiver":"PM", "sender":"partner1","senderCompany":"oracle","redirectObject":{"type":"ns4:application", "notificationId":"113e1904-8419-4cd2-958a-659a950aba6c","applicationID":"fa789e8d-9b97-455a-b556-491ed5253da5", "applicationName":"mmitestapp1","partnerName":"partner1","partnerCompany":"oracle", "description":"mmi testing application 1","applicationAPIs":[{"apiDisplayName":"3gpp_t8_nidd", "apiName":"3gpp_t8_nidd","accessURL":"http://10.10.10.9:8001/3gpp_t8_nidd/v1\nhttps://10.10.10.9:7002/3gpp_t8_nidd/v1", "apiVersion":"v1","apiDescription":"dsr nidd test api ","needReadContract":false}], "trafficUser":"partner1_mmitestapp1","trafficPassword": "{AES}UEYOH2WTIo5Kwgodl7uFtmMCr5oLLBTz3H6jQ4jK5j9AoPdBhjYJiqtqpvB86IuYwNybnTP+x3hTAgn/UTLrUw==", "submitDate":"2018-01-31-05:00","effectiveFrom":"2018-01-31-05:00","effectiveTo":"2018-03-28-04:00", "status":"CREATE PENDING APPROVAL","lockStatus":"UNLOCKED","quota":{"days":1,"limitExceedOK":true, "qtaLimit":10000},"rate":{"reqLimit":10,"timePeriod":1},"icon":"expressive/app.png"}, "status":"UNREAD"},{"id":"9bdc365a-40fd-496c-9cff-dd1ec805dd18","content":"Partner Delete Pending Application Task", "date":"01/31/2018","receiver":"PM","sender":"partner1","senderCompany":"oracle", "redirectObject":{"type":"ns4:application","notificationId":"9bdc365a-40fd-496c-9cff-dd1ec805dd18", "applicationID":"60c5e194-ad46-4935-ba78-4777bab65eaf","applicationName":"mmitestapp1", "partnerName":"partner1","partnerCompany":"oracle","description":"mmi testing application 1", "applicationAPIs":[{"apiDisplayName":"3gpp_t8_nidd","apiName":"3gpp_t8_nidd", "accessURL":"http://10.10.10.9:8001/3gpp_t8_nidd/v1\nhttps://10.10.10.9:7002/3gpp_t8_nidd/v1", "apiVersion":"v1","apiDescription":"dsr nidd test api ","applicationMethodSLAs":[{"methodName":"", "interfaceName":"57cf5ce0-a175-43d2-a1f4-53fb3ebae851", "quota":{"days":0,"limitExceedOK":false,"qtaLimit":0},"rate":{"reqLimit":0,"timePeriod":0}, "methodGuarantee":{"reqLimitGuarantee":0,"timePeriodGuarantee":0}}],"needReadContract":false}], "trafficUser":"partner1_mmitestapp1","submitDate":"2018-01-31-05:00","effectiveFrom":"2018-01-31-05:00", "effectiveTo":"2018-04-24-04:00","status":"CREATE PENDING APPROVAL","lockStatus":"UNLOCKED", "quota":{"days":1,"limitExceedOK":true,"qtaLimit":10000},"rate":{"reqLimit":10,"timePeriod":1}, "icon":"expressive/app.png"},"status":"UNREAD"},{"id":"b012db05-caac-421f-ad3b-95d5350fc72a", "content":"Partner Create Application Task","date":"01/31/2018","receiver":"PM","sender":"partner1", "senderCompany":"oracle","redirectObject":{"type":"ns4:application", "notificationId":"b012db05-caac-421f-ad3b-95d5350fc72a","applicationID":"60c5e194-ad46-4935-ba78-4777bab65eaf", "applicationName":"mmitestapp1","partnerName":"partner1","partnerCompany":"oracle", "description":"mmi testing application 1","applicationAPIs":[{"apiDisplayName":"3gpp_t8_nidd", "apiName":"3gpp_t8_nidd","accessURL":"http://10.10.10.9:8001/3gpp_t8_nidd/v1\nhttps://10.10.10.9:7002/3gpp_t8_nidd/v1", "apiVersion":"v1","apiDescription":"dsr nidd test api ","needReadContract":false}], "trafficUser":"partner1_mmitestapp1","trafficPassword": "{AES}pqXqICn4W4IJq/u8kitcbn8w82RJKQKZbI2WUaV9KzKOMOcxSUQhU1vd/9hEsZcDBwqjP93HllvhoU41UwOCaw==", "submitDate":"2018-01-31-05:00","effectiveFrom":"2018-01-31-05:00","effectiveTo":"2018-04-24-04:00", "status":"CREATE PENDING APPROVAL","lockStatus":"UNLOCKED","quota":{"days":1,"limitExceedOK":true,"qtaLimit":10000}, "rate":{"reqLimit":10,"timePeriod":1},"icon":"expressive/app.png"},"status":"UNREAD"}]}}
- To approve the partner account creation request,
use the POST method from the
/portal/prm/prm_pm_rest/services/accountmanage/AccountManagement/approve
resource URL.
Note the account creation notification ID from the previous step.
To authorize the request, use the operator username and password in the header of the request.
For more details on the request and response formats, see https://docs.oracle.com/communications/E81149_01/doc.70/e96582/resource_Partner_Manager_Account.html.
An example of an approval request and response follow:
Request:POST /portal/prm/prm_pm_rest/services/accountmanage/AccountManagement/approve HTTP/1.1 Host: 10.178.254.224:9001 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Firefox/52.0 Accept: application/json, text/javascript, */*; q=0.01 Accept-Language: en-US,en;q=0.5 Accept-Encoding: gzip, deflate Content-Type: application/json AuthorizationX: Basic b3JhY2xlb3AxOntBRVN9ZnBTRHBaeWw0dGRqR0lob3c2SzZFOThGT2tKbGxyZXB5Y3RrbUx0MmhPWT0= x-requested-with: XMLHttpRequest Referer: http://10.178.254.224:9001/portal/partner-manager/index/main.html Content-Length: 935 Connection: keep-alive {"approve":{"userInfo":{"city":"Bangalaore","company":"oracle","companyURL":"http://oracle.com", "contacts":[{"city":"Bangalore","contactTimeFrom":"09:00","contactTimeTo":"17:00","country":"India", "emailAddress":"test_partner@oracle.com","firstName":"test_fn","lastName":"test_ln","phone":null}], "country":"India","emailAddr":"test_user1@oracle.com","financial":{"bankAccountNumber":"", "bankAddress":"","bankName":"","bankRoutingNumber":"","city":"","country":"","invoiceTo":"", "referenceAccount":"","stateOrProvince":"","taxID":"","zipOrPostalCode":""},"firstName":"test_fn", "lastName":"test_ln","password":"{AES}mhY96ryJA82JHEiChWJo3rDczngO/YuMYN5tSxH4Oko=","phone":"91984538533", "securityAnswer":"tp1","securityAnswerChoice":"0","stateOrProvince":"Karnataka","status":0, "streetAddress":"kudebeesanhalli","userName":"test_user1","zipOrPostalCode":"560072", "userType":"PRM_SP","notificationId":"b1e706fb-4436-401f-972c-99821f052805"}}}
Response:HTTP/1.1 200 OK Date: Thu, 30 Aug 2018 08:42:48 GMT Content-Length: 22 Content-Type: application/json X-Frame-Options: DENY {"approveResponse":{}}
- Once the request has been approved or rejected,
change the notification status, using the POST method from the
/portal/prm/prm_pm_rest/services/partner_manager/notification/PartnerManagerNotification/updateNotificationStatus
resource URL.
To authorize the request, use the operator username and password in the header of the request.
For more details on the request and response formats, see https://docs.oracle.com/communications/E81149_01/doc.70/e96582/resource_Partner_Manager_Notification.html.
An example of an updated notification status request and response follow:
Request:POST /portal/prm/prm_pm_rest/services/partner_manager/notification/PartnerManagerNotification/updateNotificationStatus HTTP/1.1 Host: 10.178.254.224:9001 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Firefox/52.0 Accept: application/json, text/javascript, */*; q=0.01 Accept-Language: en-US,en;q=0.5 Accept-Encoding: gzip, deflate Content-Type: application/json AuthorizationX: Basic b3JhY2xlb3AxOntBRVN9ZnBTRHBaeWw0dGRqR0lob3c2SzZFOThGT2tKbGxyZXB5Y3RrbUx0MmhPWT0= x-requested-with: XMLHttpRequest Referer: http://10.178.254.224:9001/portal/partner-manager/index/main.html Content-Length: 102 Connection: keep-alive {"updateNotificationStatus":{"notificationId":"b1e706fb-4436-401f-972c-99821f052805","status":"READ"}}
Response:HTTP/1.1 200 OK Date: Thu, 30 Aug 2018 08:42:48 GMT Content-Length: 39 Content-Type: application/json X-Frame-Options: DENY {"updateNotificationStatusResponse":{}}