Customers
Use this API to create a customer, update their details, and get their details.
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.
Authorizations
Body
Request payload for creating a new customer account
customerTypeany ofRequired
The type of customer - either individual or business
string · enumOptionalPossible values:
string · enumOptionalPossible values:
firstNamestringOptionalExample:
First name of the customer
John
lastNamestringOptionalExample:
Last name of the customer
Doe
businessNamestringOptionalExample:
Name of the business
John Doe Inc.
Responses
201
Response schema for a customer retrieval request
application/json
400
Bad Request
application/json
401
Unauthorized
application/json
403
Forbidden
application/json
404
Not Found
application/json
500
Internal Server Error
application/json
post
POST /customers HTTP/1.1
Host: api.fernhq.com
Authorization: Bearer API Key
Content-Type: application/json
Accept: */*
Content-Length: 127
{
"customerType": "INDIVIDUAL",
"firstName": "John",
"lastName": "Doe",
"businessName": "John Doe Inc.",
"email": "[email protected]"
}
{
"customerId": "03b7030f-6da1-4d76-9352-cdebd82112c8",
"customerStatus": "ACTIVE",
"customerType": "INDIVIDUAL",
"name": "John Doe",
"email": "[email protected]",
"kycLink": "https://kyb.example.com/verify/abc123",
"updatedAt": "2023-10-01T12:00:00Z",
"organizationId": "8469411c-48c1-4e26-a032-44688be9cb4b"
}
Get details about a customer
Authorizations
Path parameters
customerIdstring · uuidRequiredExample:
Unique identifier of the customer
03b7030f-6da1-4d76-9352-cdebd82112c8
Responses
200
Response schema for a customer retrieval request
application/json
400
Bad Request
application/json
401
Unauthorized
application/json
403
Forbidden
application/json
404
Not Found
application/json
500
Internal Server Error
application/json
get
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://kyb.example.com/verify/abc123",
"updatedAt": "2023-10-01T12:00:00Z",
"organizationId": "8469411c-48c1-4e26-a032-44688be9cb4b"
}
List all customers with cursor-based pagination
Authorizations
Query parameters
pageTokenstringOptionalExample:
Token for forward pagination
ZDE4YmViMjYtYjRkMS00N2VlLThlNWQtMGQzOTA1ZjIwMGM3
pageSizeinteger · min: 1OptionalDefault:
Number of items per page (default: 10, max: 100)
10
Example: 10
organizationIdstring · uuidOptionalExample:
Organization ID to filter customers
77863f21-a92a-4919-bd83-bded799d938b
Responses
200
Default Response
application/json
400
Bad Request
application/json
401
Unauthorized
application/json
403
Forbidden
application/json
404
Not Found
application/json
500
Internal Server Error
application/json
get
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://kyb.example.com/verify/abc123",
"updatedAt": "2023-10-01T12:00:00Z",
"organizationId": "8469411c-48c1-4e26-a032-44688be9cb4b"
}
],
"nextPageToken": "xyz"
}
Last updated