Customers
Use this API to create, update, retrieve, and verify customers.
Fern supports two ways to verify your customers:
Hosted KYC/KYB link (default): Share a link for your customer to complete verification in Fern's UI.
API-based KYC submission: Submit all required KYC data directly via API using the
kycData
field. This enables a fully branded onboarding experience in your own UI.
Upon successful customer creation, a hosted KYC link requesting the required information to fill in will be generated. This may be distributed to your end-user for completion, or it can be completed on the customer's behalf by your team.
Request payload for creating a new customer account with optional KYC data
The type of customer - either individual or business
First name of the customer
John
Last name of the customer
Doe
Name of the business
John Doe Inc.
POST /customers HTTP/1.1
Host: api.fernhq.com
Authorization: Bearer API Key
Content-Type: application/json
Accept: */*
Content-Length: 1020
{
"customerType": "INDIVIDUAL",
"firstName": "John",
"lastName": "Doe",
"businessName": "John Doe Inc.",
"email": "[email protected]",
"kycData": {
"legalFirstName": "John",
"legalLastName": "Doe",
"phoneNumber": "+12223334444",
"dateOfBirth": "1990-01-15",
"address": {
"streetLine1": "123 Main St",
"streetLine2": "Apt 4B",
"city": "New York",
"stateRegionProvince": "NY",
"postalCode": "10001",
"countryCode": "US",
"locale": "en-US"
},
"taxIdNumber": "123-45-6789",
"documents": [
{
"type": "GOVERNMENT_ID",
"subtype": "NATIONAL_ID",
"countryCode": "US",
"documentIdNumber": "123456789",
"issuanceDate": "2020-01-15",
"expirationDate": "2030-01-15",
"frontIdImage": "text",
"backIdImage": "text",
"proofOfAddressImage": "text",
"description": "Electric bill from January 2024"
}
],
"employmentStatus": "EMPLOYED",
"mostRecentOccupation": "Software Engineer",
"sourceOfFunds": "SALARY",
"accountPurpose": "PERSONAL_EXPENSES",
"accountPurposeOther": "Real estate transactions",
"expectedMonthlyPaymentsUsd": "BETWEEN_10000_49999",
"isIntermediary": false,
"middleName": "Michael",
"title": "Mr."
}
}
{
"customerId": "03b7030f-6da1-4d76-9352-cdebd82112c8",
"customerStatus": "ACTIVE",
"customerType": "INDIVIDUAL",
"name": "John Doe",
"email": "[email protected]",
"kycLink": "https://app.fernhq.com/verify-customer/03b7030f-6da1-4d76-9352-cdebd82112c8",
"updatedAt": "2023-10-01T12:00:00Z",
"organizationId": "8469411c-48c1-4e26-a032-44688be9cb4b"
}
Get details about a customer
Unique identifier of the customer
03b7030f-6da1-4d76-9352-cdebd82112c8
GET /customers/{customerId} HTTP/1.1
Host: api.fernhq.com
Authorization: Bearer API Key
Accept: */*
{
"customerId": "03b7030f-6da1-4d76-9352-cdebd82112c8",
"customerStatus": "ACTIVE",
"customerType": "INDIVIDUAL",
"name": "John Doe",
"email": "[email protected]",
"kycLink": "https://app.fernhq.com/verify-customer/03b7030f-6da1-4d76-9352-cdebd82112c8",
"updatedAt": "2023-10-01T12:00:00Z",
"organizationId": "8469411c-48c1-4e26-a032-44688be9cb4b"
}
List all customers with cursor-based pagination
Token for forward pagination
ZDE4YmViMjYtYjRkMS00N2VlLThlNWQtMGQzOTA1ZjIwMGM3
Number of items per page (default: 10, max: 100)
10
Example: 10
Organization ID to filter customers
77863f21-a92a-4919-bd83-bded799d938b
GET /customers HTTP/1.1
Host: api.fernhq.com
Authorization: Bearer API Key
Accept: */*
{
"customers": [
{
"customerId": "03b7030f-6da1-4d76-9352-cdebd82112c8",
"customerStatus": "ACTIVE",
"customerType": "INDIVIDUAL",
"name": "John Doe",
"email": "[email protected]",
"kycLink": "https://app.fernhq.com/verify-customer/03b7030f-6da1-4d76-9352-cdebd82112c8",
"updatedAt": "2023-10-01T12:00:00Z",
"organizationId": "8469411c-48c1-4e26-a032-44688be9cb4b"
}
],
"nextPageToken": "xyz"
}
Last updated