POST/Submission/Step 2

Request URL

curl -X POST "https://rest-api.argosidentity.com/v3/submission/step2"
-H "x-api-key: {yourAPIKey}"
-form ...
  • At Step 2, data should be transmitted based on the Step 1 response.

  • Step 2 is where we compare face, compare OCR data and user-confirmed data and get address information or address image.

  • For Step 2 process, data should be submitted in 'form-data' format.

  • For Step 2, you can send the selfies 3 times maximum(1st try + 2 retries). If 1st try of Step 2 is processed, KYC submission should be done in 24 hours from Step 1 start time. (Because 'Step 2 processed but no KYC result yet' submission will be rejected after 24 hours.)

  • You can check the submitted data at Dashboard or get it by Get/Submission API.

  • When collect-address option is on, globalCode, compoundCode, formatted_address, address_input, addressdetail are required. Get these information through Post/Address_code API.

  • Any of globalCode, compoundCode, formatted_address must be submitted.

  • 'address_input' is the user-typed address, 'address_detail' is detailed address. Both are optional.

  • Submission ID created at Step 1 process must be included.

  • SubmissionId, faceimage, name, date_of_birth are required parameters.

  • Refer to Retry & Error Codes page for retry codes and error codes.

  • The recommended standard for 'faceImage' is 960 x 720 pixels.

Input Data

* means required parameters.

Authentication Input Data

Required parameters for authentication differs to issuing country of the ID and type of ID.

Sample Request 1

curl --location --request POST 'https://rest-api.argosidentity.com/v3/submission/step2' \
--header 'x-api-key: {yourAPIKey}' \
--form 'faceImage=@"/C:/Users/face.jpg"' \
--form 'name="Jhon Smith"' \
--form 'nationality="USA"' \
--form 'date_of_birth="1998-11-11"' \
--form 'date_of_issue="2016-11-11"' \
--form 'submissionId="d76h19l46m****"' \
--form 'identity_number="981112-1******"' \
--form 'gender="male"'

Sample Request 2

var myHeaders = new Headers();
myHeaders.append("x-api-key", "{YOUR_API_KEY}");

var formdata = new FormData();
formdata.append("faceImage", fileInput.files[0], "/C:/Users/face.jpg");
formdata.append("name", "Jhon Smith");
formdata.append("nationality", "USA");
formdata.append("date_of_birth", "1998-11-11");
formdata.append("date_of_issue", "2016-11-11");
formdata.append("submissionId", "d76h19l46m****");
formdata.append("identity_number", "981112-1******");
formdata.append("gender", "male");

var requestOptions = {
  method: 'POST',
  headers: myHeaders,
  body: formdata,
  redirect: 'follow'
};

fetch("https://rest-api.argosidentity.com/v3/submission/step2", requestOptions)
  .then(response => response.text())
  .then(result => console.log(result))
  .catch(error => console.log('error', error));

Output Data

Sample Response - Approved

{
    "faceSimilarityScore": 99,
    "livenessScore": 74,
    "kycStatus": "approved",
    "retryCount": 0
}

Sample Response - Rejected

{
    "livenessScore": 74,
    "kycStatus": "rejected",
    "retryCount": 3
}

Sample Response - Pending

{
    "faceSimilarityScore": 99,
    "livenessScore": 74,
    "kycStatus": "pending",
    "retryCount": 0
}

Sample Response - Incomplete

{
    "retry": [
        {
            "retryCode": "face_compare_fail",
            "retryMsg": "Face compare failed: no matching face"
        }
    ],
    "kycStatus": "incomplete",
    "retryCount": 1
}

Retry & Error Codes

Caution

To compare the faces fluently the ratio of a face should be appropriate in the image. When it's too large or small, face comparison might fail. Below image is the guideline for ARGOS ID check Liveform and examples of selfie images.

Last updated