Identities
The following endpoints are used to insert and retrieve entries representing identities
from the database.
The identity
object
identity
objectThe identity
object represents the identity of an individual (or company) in the database.
Identity entity model
Name | Type | Description | Constraints |
---|---|---|---|
address |
| Address information. |
|
appId |
| Application ID. Format: |
|
birthday |
| Identity birthday. Format: |
|
blocked |
| Identity blocked status. |
|
createdAt |
| Identity created at date. |
|
| Identity email. Format: |
| |
gender |
| Identity gender. |
|
id |
| Identity identifier. Format: |
|
identityConfirmed |
| Identity with info confirmed. |
|
identityOwner |
| Identity company owner. Format: |
|
name |
| Identity name. |
|
phone |
| Identity phone information. |
|
tax |
| Identity tax information. |
|
type |
| Identity type. |
|
kycStatus |
| Identity kyc information. | |
updatedAt |
| Identity updated at date. |
|
Address information
Name | Type | Description | Constraints |
---|---|---|---|
city |
| Address city. |
|
country |
| Address country code. |
|
postalCode |
| Address postalCode. |
|
state |
| Address state. |
|
street |
| Address street. |
|
Phone information
Name | Type | Description | Constraints |
---|---|---|---|
number |
| Phone number. |
|
sms |
| Available for sms. |
|
Tax information
Name | Type | Description | Constraints |
---|---|---|---|
country |
| Tax country code. |
|
idNumber |
| Tax id number. |
|
state |
| Tax state. |
|
formationRegion |
| Company formation region. |
|
Create an identity
POST /identities
POST
[ENVIRONMENT HOSTNAME]/identities
This endpoint allows you to create a new identity
.
Request Parameters
None
Body parameters
Name | Type | Description | Constraints | Required |
---|---|---|---|---|
address |
| Address information. |
|
|
birthday |
| Identity birthday. Format: |
|
|
documents |
| Identity documents. |
| |
faceImages |
| Identity face images. Format: |
| |
| Identity email. Format: |
|
| |
gender |
| Identity gender |
|
|
identityOwner |
| Identity company owner. Format: |
| |
name |
| Identity name. |
|
|
phone |
| Identity phone information. |
|
|
tax |
| Identity tax information. |
|
|
type |
| Identity type. |
|
|
Body address parameters
Name | Type | Description | Constraints | Required |
---|---|---|---|---|
city |
| Address city. |
|
|
country |
| Address country. |
|
|
postalCode |
| Address postal code |
|
|
state |
| Address state |
|
|
street |
| Address street. |
|
|
Body documents parameters
Name | Type | Description | Constraints | Required |
---|---|---|---|---|
description |
| Document description. | ||
label |
| Document label. | ||
side |
| Document side. |
|
|
type |
| Document type |
|
|
url |
| DocumentUrl. Format: |
|
|
Body phone parameters
Name | Type | Description | Constraints | Required |
---|---|---|---|---|
number |
| Phone number. |
| |
sms |
| Available for sms. |
Body tax parameters
Name | Type | Description | Constraints | Required |
---|---|---|---|---|
country |
| Tax country code. |
|
|
idNumber |
| Tax id number. |
|
|
state |
| Tax state. |
|
|
formationRegion |
| Company formation region. |
|
|
Response Options
400 Bad Request
validation_failed
If the required parameters are not provided.
If additional parameters are provided.
If some of the parameters type is invalid.
If some of the parameters constraints is not respected.
email_already_in_use
404 Not Found
identity_owner_not_found
If a non existent identity owner
id
is provided.
422 Unprocessable entity
identity_owner_must_be_of_type_person
If identity owner is not of type person.
200 OK
Example Call
On the Sandbox environment, you can use the approve KYC endpoint to simulate and approve or reject the identity you created.
Get an identity
GET /identities/:id
GET
[ENVIRONMENT HOSTNAME]/identities/:id
This endpoint retrieves and returns an identity
owned by you from the database.
Request Parameters
Path parameters
Name | Type | Description | Constraints | Required |
---|---|---|---|---|
id |
| Identity identifier. Format: |
|
Example Call
Get identities
GET /identities
GET
[ENVIRONMENT HOSTNAME]/identities
This endpoint returns a paginated list of all identities
owned by you.
Available filters
Name | Type | Example |
---|---|---|
appId |
|
|
blocked |
|
|
|
| |
id |
|
|
identityOwner |
|
|
name |
|
|
riskRating |
|
|
type |
|
|
Available sorts
Name | Example |
---|---|
createdAt |
|
updatedAt |
|
Paginate options
Name | Description | Example |
---|---|---|
size | Defines the number of results per page. Default = 30. |
|
number | Defines the number of the page to retrieve. Default = 1 |
|
all | Return all identities without pagination |
|
Response Options
200 OK
Example Call
Get identity document presign url
Returns a presign url to view a specific identity document.
GET /identities/:identityId/documents/:id/presign-url
GET
[ENVIRONMENT HOSTNAME]identities/:identityId/documents/:id/presign-url
This endpoint returns a paginated list of all identities
owned by you.Available filtersAvailable sorts
Path parameters
Name | Type | Description | Constraints | Required |
---|---|---|---|---|
identityId |
| Identity identifier. Format: |
| |
id |
| Document identifier.Format: |
|
Response Options
200 OK
Example Call
Update an identity
PATCH /identities/:id
PATCH
[ENVIRONMENT_HOSTNAME]/identities/:id
Updates the identity information.
Path parameters
Name | Type | Description | Constraints | Required |
---|---|---|---|---|
id |
| Identity identifier. Format: |
|
Request Parameters
Body parameters
Name | Type | Description | Constraints | Required |
---|---|---|---|---|
address |
| Address information. |
| |
birthday |
| Identity birthday. Format: |
| |
documents |
| Identity documents. |
| |
| Identity email. Format: |
| ||
faceImages |
| Identity face images. Format: |
| |
gender |
| Identity gender |
| |
identityOwner |
| Identity company owner. Format: | ||
name |
| Identity name. |
| |
phone |
| Identity phone information. |
| |
tax |
| Identity tax information. |
| |
type |
| Identity type. |
|
Note: Fields name, birthday, gender, tax.country and tax.idNumber can't be updated if identity is already confirmed (identityConfirmed = true)
Body address parameters
Name | Type | Description | Constraints | Required |
---|---|---|---|---|
city |
| Address city. |
|
|
country |
| Address country. |
|
|
postalCode |
| Address postal code |
|
|
state |
| Address state |
|
|
street |
| Address street. |
|
|
Body documents parameters
Name | Type | Description | Constraints | Required |
---|---|---|---|---|
description |
| Document description. | ||
label |
| Document label. | ||
side |
| Document side. |
|
|
type |
| Document type |
|
|
url |
| DocumentUrl. Format: |
|
|
Body phone parameters
Name | Type | Description | Constraints | Required |
---|---|---|---|---|
number |
| Phone number. |
| |
sms |
| Available for sms. |
Body tax parameters
Name | Type | Description | Constraints | Required |
---|---|---|---|---|
country |
| Tax country code. |
|
|
idNumber |
| Tax id number. |
|
|
state |
| Tax state. |
|
|
formationRegion |
| Company formation region. |
|
|
Response Options
400 Bad Request
validation_failed
If the required parameters are not provided.
If additional parameters are provided.
If some of the parameters type is invalid.
If some of the parameters constraints is not respected.
email_already_in_use
404 Not Found
identity_owner_not_found
If a non existent identity owner
id
is provided.
422 Unprocessable entity
identity_owner_must_be_of_type_person
If identity owner is not of type person.
200 OK
Example Call
Get operations
GET /identities/:id/operations
GET /identities/:id/operations
Returns a list of all enabled operations for the active KYC providers and the current status of each one, depending on the KYC status of the identity.
Request Parameters
Path parameters
Name | Type | Description | Constraints | Required |
---|---|---|---|---|
id |
| Identity identifier. Format: |
|
Response Options
200 OK
Request example:
Response example:
Delete an identity
DELETE /identities/:id
DELETE
[ENVIRONMENT_HOSTNAME]/identities/:id
Deletes the identity with the given Id
.
Path parameters
Name | Type | Description | Constraints | Required |
---|---|---|---|---|
id |
| Identity identifier. Format: |
|
Response Options
400 Bad Request
validation_failed
If an invalid identity
id
is provided.
404 Not Found
identity_not_found
If a non existent identity
id
is provided.
204 OK
Example Call
Last updated