Using Postman with the SuperGlue Fraud Reporting Data API
Introduction
To support the use of the SuperGlue Fraud Reporting Data API, the CCCTC recommends using a tool such as the Postman API client to simplify the usage of the API’s basic networking languages, protocols, and formatting.
To share a public version of this page, use this URL: Using Postman with the SuperGlue Fraud Reporting Data API
What is Postman?
Postman is a testing platform designed to “easily explore, debug, and test your complex API requests for HTTP, REST, SOAP, GraphQL, and WebSockets. The Postman client also includes built-in support for authentication protocols like OAuth 1.2/2.0, AWS Signature, Hawk, and more.” Learn more in the Postman Learning Center.
Why use Postman with the Bi-directional Fraud Data API?
CCCTC recommends using Postman when interacting with CCCTC APIs. Links to download and install Postman are provided below. In addition, a set of custom Postman collections have been created to help simplify the reporting operations for colleges who may not have the technical resources available to implement the API initially.
Who should use Postman with the API?
Anyone can use Postman as a manual process for executing fraud data reporting operations. Non-technical college staff are encouraged to use Postman for running ad hoc fraud reporting and queries.
Who should you call to get help using Postman with the API?
Contact the Enabling Services team at the CCC Technology Center for help.
Installing & Configuring Postman
Below are instructions for downloading, installing, and configuring Postman for use with the Bi-Directional Fraud Data API.
Step 1: Download & Install Postman
Download and install the latest version of Postman for your platform.
Step 2: Import the Fraud Report Postman Collections
CCCTC staff will provide the account credentials. Use these with the below Postman Collection for authentication and simplifying your fraud data reporting submissions and requests. A Postman collection is a file containing example requests needed to automate fraud requests and workflows.
Postman Collections: Through the Postman API client, requests can be organized into groupings called collections. Such collections help organize the requests for reuse so that time isn’t wasted rebuilding everything from scratch. Collections can tie requests together to automate common workflows, and you can use scripting to visualize your API responses as charts and graphs.
Import the
CCCTC - Fraud Reporting
Postman collection file into the Postman app.From your
My Workspace
page within the Postman App, click on theCollections
button from the left menu, then click theImport
button in the top right of the column.Provide the following URL:
https://cccnext.jira.com/wiki/download/attachments/2851438610/CCCTC - Fraud Reporting.postman_collection.json?api=v2
Once imported, expand the
CCCTC - Fraud Reporting
collection heading to display the requests. These requests are named:Authenticate
Submit Fraud Report
Retrieve Reports - By Recipient Mis Code
Retrieve Reports - By AppId
Retrieve Reports - By cccId
Rescind Fraud Report
Import the
CCCTC APIs - Production
Postman environment file into the Postman app.From your
My Workspace
page within the Postman App, click on theEnvironments
button from the left menu, then click theImport
button in the top right of the column.Provide the following URL:
https://cccnext.jira.com/wiki/download/attachments/2851438610/CCCTC APIs - Production.postman_environment.json?api=v2
Once imported, click on the Environments icon from the upper right side menu in the workspace and select the appropriate environment (
CCCTC APIs - Production
). The parameters for the environment will display in the center of your workspace.
Step 3: Configure Account Credentials
In the
MY_USERNAME
row of theCURRENT VALUE
column, enter the account username provided by CCCTC staff.In the
MY_PASSWORD
row of theCURRENT VALUE
column, enter the account password provided by CCCTC staff.
Using Postman with the Bi-directional Fraud Data API
Getting Your API Access Token Using Postman
Once Postman is installed and the CCCTC - Fraud Reporting
and CCCTC APIs - Production
environment files have been imported and configured with your API account credentials and environment specifications, then your access token is generated and refreshed using the Authenticate
request. Once generated, Postman will automatically store the token as the Bearer
in the Authorization
head for the other API requests.
Once your account credentials (username and password) have been configured for the appropriate environment, then: From Your Postman Workspace… 1: Expand the 3: Ensure the appropriate environment is selected. 4: Click the Send button to generate the access token. Note: The
Access Token In the lower half of your workspace, the JSON code is displayed next to the This token information automatically becomes the Each time you send an Note: Each |
|
NOTE: The access token must be active to successfully authenticate against the API. The access token must be refreshed frequently to maintain authorized access. In Postman, the token must be refreshed every 300 seconds (5 minutes).
Submitting Fraud Reports Using Postman
A fraud report can be submitted, via Postman, using the Submit Fraud Report
request. The operation is sent to the CCCTC API as a POST HTTP web request with the body of the request containing the data structure for the FraudReportSubmit mutation. It appears in the query portion of the workspace, with ($input: FraudReportSubmitInput!) as the required argument. In GraphQL, input can be provided as a variable. In this case, FraudReportSubmit is an object type. The fields below the object indicate the fields that are requested to be included in the response. The input variables appear in the GraphQL VARIABLES box.
Testing: While the purpose of this API is strictly for the reporting and sharing of information related to fraudulent applications and bad actors, any valid AppID or CCCID can be used for testing purposes in the ‘pilot’ environment. In addition to testing the API, this data will support the Tech Centers testing of the internal workflows to identify other applications that may be associated with the individual(s) reported to be fraudulent. Testing should only be against the ‘pilot’ environment.
Querying Fraud Data Using Postman
Once your account credentials (username and password) have been configured for the appropriate environment, then: From Your Postman Workspace… 1: Expand the 2: Click on 3: Ensure the appropriate environment is selected. 4: Click the |
|
Rescinding a Fraud Report using Postman
Once your account credentials (username and password) have been configured for the appropriate environment, then: From Your Postman Workspace 1: Expand the 2: Click on 3: Ensure the appropriate environment is selected. 4: Provide the appropriate variables to identify an existing, previously-submitted, fraud report: cccId, and/or appId. 5: Click the |
|