v1

latestOpenAPI 3.1.02026-07-2478315484.9 KB
Customer

Create Customer

Create a customer object on Lean given the app_user_id which is the identifier (or a hash of the identifier) you use to refer to a user in your own database. The customer object in Lean should map one to one with the user object in your database.

post/customers/v1/

Request body

app_user_idstring required

A unique value from your database, can be the corresponding User ID in your system, or any other string.

Example request

{
  "app_user_id": "my_first_customer",
  "government_identifier": [
    {
      "type": "EMIRATES_ID",
      "value": "784-1232-1232-1232"
    }
  ]
}

Response

customer_idstring uuid required

Customer ID

app_user_idstring required