User

User schema defines a user, personal or business, as well as its documents, address and KYC status. Users are also identified by its id (UUID).

KeyDescriptionExample
idUser UUID37fa27b6-a75b-4c02-b217-c1d337a6017c
externalIdUser ID on your side, if knownABC123456
typeUser typepersonal or business
emailUser email[email protected]
phonePhone number (verified) with country code5511987654321
statusUser statusSee remark #1
associatesBusiness type only: company associatesSee remark #2
nameUser full nameJohn Doe
documentUser main identity or driver license numberAA123456
cpfcnpj? 🇧🇷User's CPF (for personal) or CNPJ (for business)25082100050, 72046998000176
addressUser address in Address schemaSee Address schema
createdAtUser creation timestamp2020-05-04T12:03:54.000000Z
updatedAtUser last change timestamp2020-05-04T12:03:54.000000Z

Remarks

1. Possible user statuses
  • unverified: users whose KYC details and doucments haven't been provided yet
  • analyzing: users who have provided KYC details that are now being checked
  • verified: users whose KYC has been verified
  • failed: users who have provided the KYC details but such verification failed
  • denied: users who have been denied at the KYC process for fraud history or high risk score (these users cannot retry)
  • closed: users who have been requested to close their account on your side.

Note that it's possible to create orders for users under any statuses but only verified users will be able to complete their orders.

2. Regarding company associates

The associates key returns an array of other users's IDs (not externalIds), also in the same "id" property at the User schema.

For personal users, this key returns always an empty array ([]).