|
|||||||||||||||||||||||||||||||||||||||||||
Manage Applications through APIYou, as an administrator or a super user, have an option to manage registered applications through an API. Using the API, you can:
Get TokenTo access the registered applications, you have to get the authorization token first by sending the following request to the Authorization service: POST https://auth.edifecsfedcloud.com/auth/realms/main/protocol/openid-connect/token The request body must contain the following data in the format x-www-form-urlencoded:
Add the following script to the request, for the access token to be used as a global variable: Copy
![]() Copy
Fetch the details of the registered applications through the APIYou can fetch the details of the registered applications through the API from the Applications tab based on the following items:
Use the following APIs to access the application information, add/update the client ID and the secret key, and update credentials for applications:
If the operation is successful, you receive a response in the JSON format. When a failure occurs, a JSON object with the error code and error message are returned. Search for Registered ApplicationsTo get applications of a certain organization from the Applications tab, send the following request: GET https://fdp.edifecsfedcloud.com/api/fdp/portal/search/applications Curl request: curl -X GET "https://fdp.edifecsfedcloud.com/api/fdp/portal/search/applications" -H "accept: application/json" To get applications based on the organization type (payer, provider, logistics, employer, retailer, vendor, and other) from the Applications tab, send the following request: GET https://fdp.edifecsfedcloud.com/api/fdp/portal/search/applications?organizationtype = value Curl request: curl -X GET "https://fdp.edifecsfedcloud.com/api/fdp/portal/applications?organizationtype = value" -H "accept: application/json" Callback URL/Redirect URLYou can also search for applications by Callback URL or Redirect URL, to do this, send the following requests: GET https://fdp.edifecsfedcloud.com/api/fdp/portal/applications?callbackUrl=value GET https://fdp.edifecsfedcloud.com/api/fdp/portal/applications?redirectUrl=value Curl requests: curl -X GET "https://fdp.edifecsfedcloud.com/api/fdp/portal/applications?callbackUrl=value" -H "accept: application/json" curl -X GET "https://fdp.edifecsfedcloud.com/api/fdp/portal/applications?redirectUrl=value" -H "accept: application/json" Client ID's and Secret Key's statusYou can also search for applications by a client ID's and secret key's status (Assigned or Not Assigned), to do this, send the following requests: GET https://fdp.edifecsfedcloud.com/api/fdp/portal/applications?status = Assigned GET https://fdp.edifecsfedcloud.com/api/fdp/portal/applications?status = NotAssigned Curl requests: curl -X GET "https://fdp.edifecsfedcloud.com/api/fdp/portal/applications?status=Assigned" -H "accept: application/json" curl -X GET "https://fdp.edifecsfedcloud.com/api/fdp/portal/applications?status=NotAssigned" -H "accept: application/json" Portal IDYou can also search for applications by Portal ID, to do this, send the following requests: GET https://fdp.edifecsfedcloud.com/api/fdp/portal/applications?portalId = value Curl request: curl -X GET "https://fdp.edifecsfedcloud.com/api/fdp/portal/applications?portalId = value" -H "accept: application/json" Use the following request parameters:
Add the following request header with the access token as a global variable:
If the operation is successful, you receive a response in the JSON format. The response from the API can contain the following details. ![]()
When a failure occurs, a JSON object with the error code and error message are returned. Access API using an application userApplication users registered in Smart Trading Cloud and added to specific user groups can access APIs with any application and automate the process. Note Application users are not the developers who registered their applications in the Developer Portal. They are the pseudo users created by account administrators and used for automated systems, which means any application on the payer's side that may need access to data submitted to the Developer Portal. To access an API using an application user, complete the following steps:
To access an API using an application user:
|