API DOCUMENTATION
Table of Contents
Getting Started
General Introduction
CredCheck Pro API suite can be used as a single plug & play API for verification requirements of your employees.
This page will help you understand:
- How to set up your account.
- The range of CredCheck Pro API solutions.
- Authentication of your APIs.
- Some key terms related to each of the APIs.
- Documentation of each API
Setting Up Your Account
To run our APIs, you need an api-key and api-secret. If you don’t have these yet, please get in touch with us at admin@credcheck.pro for us to create an account for you.
Key Terms You Should Know
Entry ID
A unique identifier assigned to each task received from you. It is recommended to store this Entry ID for future reference.
Form ID
Identifiers that can be assigned to your tasks for easy recognition. These IDs are pre-configured, and it’s advisable not to alter them.
Webhooks
Webhooks are used to transmit API outputs to a specified endpoint on your server. Each webhook corresponds to a single task and triggers upon task completion, whether successful or with an error. To configure webhooks, contact us at dev@credcheck.pro.
Subscription ID
This ID can be found on the subscription tab of your account page, following the # symbol. Example: #1234. It is a mandatory field. It is generated post subscription of our plans.
Company Name
This name is pre-configured during the client onboarding process.
Authentication
Basic Authentication
Basic authentication involves sending a verified api_key as username and api_secret as password with your request but only on requests that are sent using HTTPS. HTTP requests.
Modes of Operations:
There are 2 modes of operation – synchronous and asynchronous. Most tasks can be called using either APIs. Synchronous APIs return the response right away:
Asynchronous APIs return a “id” and use a webhook mechanism to return the response back to your servers.
You can then use this “id” and feed this into our GET API to consume the response.
Creating An Entry
POST METHOD
https://credcheck.pro/wp-json/gf/v2/forms/{form_id}/entries/HEADERS:
Content-Type: application/jsonBODY:
{ "form_id": {form_id}, "1": "{your_input}" }
cURL METHOD
curl --location --request POST 'https://credcheck.pro/wp-json/gf/v2/forms/{form_id}/entries/' \ --user '{api_key}:{api_secret}' \ --header 'Content-Type: application/json' \ --data $'{ "1": "{your_input}", "form_id": {form_id} }'
Getting An Entry
GET METHOD
https://credcheck.pro/wp-json/gf/v2/entries/{entry_id}HEADERS:
Content-Type: application/jsonBODY:
NONE
cURL METHOD
curl --location --request GET 'https://credcheck.pro/wp-json/gf/v2/entries/{field_id}' \ --user '{api_key}:{api_secret}' \ --header 'Content-Type: application/json'
Aadhaar Verification
POST & GET METHOD
Aadhaar Verification is completed in four steps in asynchronous mode.
- POST REQUEST is sent to our server, OTP is triggered to the customer and entry id “id” is sent back in response.
- GET REQUEST is sent to our server and Ref_id is sent back in response.
- POST REQUEST is sent to our server, with Ref_id & OTP and entry id “id” is sent back in response.
- GET REQUEST is sent to our server and verification data is sent back in response.
Step 1
POST METHOD
https://credcheck.pro/wp-json/gf/v2/forms/17/entries/HEADERS:
Content-Type: application/jsonBODY: (raw)
{ "form_id": "17", "3": "{Aadhaar_number}" }
Step 2
GET METHOD
https://credcheck.pro/wp-json/gf/v2/entries/{entry_id}HEADERS:
Content-Type: application/jsonBODY:
None
Step 3
POST METHOD
https://credcheck.pro/wp-json/gf/v2/forms/19/entries/HEADERS:
Content-Type: application/jsonBODY: (raw)
{ "form_id": "19", "1": "{OTP}", "3": "{ref_id}" }
Step 4
GET METHOD
https://credcheck.pro/wp-json/gf/v2/entries/{entry_id}HEADERS:
Content-Type: application/jsonBODY:
None
PAN Verification
POST & GET METHOD
PAN Verification is completed in two steps in asynchronous mode.
- POST REQUEST is sent to our server and entry id “id” is sent back in response.
- GET REQUEST is sent to our server and verification data is sent back in response.
Step 1
POST METHOD
https://credcheck.pro/wp-json/gf/v2/forms/2/entries/HEADERS:
Content-Type: application/jsonBODY: (raw)
{ "form_id": "2", "1": "{pan_number}" }
Step 2
GET METHOD
https://credcheck.pro/wp-json/gf/v2/entries/{entry_id}HEADERS:
Content-Type: application/jsonBODY:
None
Bank Account Number Verification
POST & GET METHOD
BAN Verification is completed in two steps in asynchronous mode.
- POST REQUEST is sent to our server and entry id “id” is sent back in response.
- GET REQUEST is sent to our server and verification data is sent back in response.
Step 1
POST METHOD
https://credcheck.pro/wp-json/gf/v2/forms/16/entries/HEADERS:
Content-Type: application/jsonBODY: (raw)
{ "form_id": "16", "11": "{bank_account_no}", "12": "{ifs_code}" }
Step 2
GET METHOD
https://credcheck.pro/wp-json/gf/v2/entries/{entry_id}HEADERS:
Content-Type: application/jsonBODY:
None
CredCheck Verification Suite (Starter)
POST & GET METHOD
CredCheck Verification is completed in two steps in asynchronous mode.
- POST REQUEST is sent to our server with subscription id mandatory and entry id “id” is sent back in response.
- GET REQUEST is sent to our server and verification data is sent back in response. You can also mail at admin@credcheck.pro to get web hook configured to your server.
Step 1
POST METHOD
https://credcheck.pro/wp-json/gf/v2/forms/25/entries/HEADERS:
Content-Type: application/jsonBODY: (raw)
{ "form_id": "25", "1": "{candidate_name}", "77": "{email}", "3": "{phone}", "64": "{subscription_id}" }
Step 2
GET METHOD
https://credcheck.pro/wp-json/gf/v2/entries/{entry_id}HEADERS:
Content-Type: application/jsonBODY:
None