Customer Verification
Customer verification is crucial for ensuring the authenticity and reliability of your customers. On this page, we’ll dive into the different customer verification endpoints you can use to manage customer verifications programmatically. We'll look at how to query, create, update, and delete customer verification records.
The customer verification model
The customer verification model contains all the information related to the verification of a customer, including their identity, documents, and verification status.
Properties
- Name
id- Type
- string
- Description
Unique identifier for the customer verification record.
- Name
customer_id- Type
- string
- Description
Unique identifier for the customer.
- Name
verification_status- Type
- string
- Description
Current status of the verification (e.g., pending, verified, failed).
- Name
document_type- Type
- string
- Description
Type of document used for verification (e.g., passport, driver’s license).
- Name
document_number- Type
- string
- Description
Document number of the verification document.
- Name
created_at- Type
- timestamp
- Description
Timestamp of when the verification record was created.
- Name
updated_at- Type
- timestamp
- Description
Timestamp of when the verification record was last updated.
List all customer verifications
This endpoint allows you to retrieve a paginated list of all your customer verification records. By default, a maximum of ten records are shown per page.
Optional attributes
- Name
limit- Type
- integer
- Description
Limit the number of customer verification records returned.
- Name
customer_id- Type
- string
- Description
Only show records for the specified customer.
- Name
verification_status- Type
- string
- Description
Only show records with the specified verification status.
Request
curl -G https://api.finx.ai/v1/customer-verifications \
-H "Authorization: Bearer {token}" \
-d limit=10
Response
{
"has_more": false,
"data": [
{
"id": "xgQQXg3hrtjh7AvZ",
"customer_id": "WAz8eIbvDR60rouK",
"verification_status": "verified",
"document_type": "passport",
"document_number": "123456789",
"created_at": 705103200,
"updated_at": 705103200
},
{
"id": "hSIhXBhNe8X1d8Et"
// ...
}
]
}
Create a customer verification
This endpoint allows you to add a new customer verification record. You need to provide the customer ID, verification status, document type, and document number to create a customer verification record.
Required attributes
- Name
customer_id- Type
- string
- Description
Unique identifier for the customer.
- Name
verification_status- Type
- string
- Description
Current status of the verification (e.g., pending, verified, failed).
- Name
document_type- Type
- string
- Description
Type of document used for verification (e.g., passport, driver’s license).
- Name
document_number- Type
- string
- Description
Document number of the verification document.
Request
curl https://api.finx.ai/v1/customer-verifications \
-H "Authorization: Bearer {token}" \
-d 'customer_id'="WAz8eIbvDR60rouK" \
-d 'verification_status'="pending" \
-d 'document_type'="passport" \
-d 'document_number'="123456789"
Response
{
"id": "xgQQXg3hrtjh7AvZ",
"customer_id": "WAz8eIbvDR60rouK",
"verification_status": "pending",
"document_type": "passport",
"document_number": "123456789",
"created_at": 705103200,
"updated_at": 705103200
}
Retrieve a customer verification
This endpoint allows you to retrieve a customer verification record by providing the record id. Refer to the list at the top of this page to see which properties are included with customer verification objects.
Request
curl https://api.finx.ai/v1/customer-verifications/xgQQXg3hrtjh7AvZ \
-H "Authorization: Bearer {token}"
Response
{
"id": "xgQQXg3hrtjh7AvZ",
"customer_id": "WAz8eIbvDR60rouK",
"verification_status": "verified",
"document_type": "passport",
"document_number": "123456789",
"created_at": 705103200,
"updated_at": 705103200
}
Update a customer verification
This endpoint allows you to perform an update on a customer verification record. Examples of updates are changing the verification status, updating the document type, or modifying the document number.
Optional attributes
- Name
verification_status- Type
- string
- Description
Updated status of the verification (e.g., pending, verified, failed).
- Name
document_type- Type
- string
- Description
Updated type of document used for verification.
- Name
document_number- Type
- string
- Description
Updated document number of the verification document.
Request
curl -X PUT https://api.finx.ai/v1/customer-verifications/xgQQXg3hrtjh7AvZ \
-H "Authorization: Bearer {token}" \
-d 'verification_status'="verified"
Response
{
"id": "xgQQXg3hrtjh7AvZ",
"customer_id": "WAz8eIbvDR60rouK",
"verification_status": "verified",
"document_type": "passport",
"document_number": "123456789",
"created_at": 705103200,
"updated_at": 705103200
}
Delete a customer verification
This endpoint allows you to delete your customer verification records in Fin X. Note: This will permanently delete the record and all its data — ensure this is the desired action before proceeding.
Request
curl -X DELETE https://api.finx.ai/v1/customer-verifications/xgQQXg3hrtjh7AvZ \
-H "Authorization: Bearer {token}"