POST
/
customer
curl --request POST \
  --url https://api.decentri.org/customer \
  --header 'Content-Type: application/json' \
  --data '{
  "wallets": [
    {
      "address": "0x1234567890123456789012345678901234567890"
    }
  ],
  "type": "INDIVIDUAL",
  "name": "John Doe",
  "email": "john.doe@example.com",
  "phone": "+1234567890",
  "metadata": {
    "userId": "2b634b51-7f4a-470b-9bd6-c7a968e665d9"
  },
  "address": {
    "line1": "1234 Main St",
    "line2": "Suite 200",
    "city": "Anytown",
    "state": "CA",
    "postalCode": "12345"
  },
  "countryCode": "US"
}'
{
  "id": "customer_c7a968e665d9",
  "object": "customer",
  "name": "John Doe",
  "email": "john.doe@example.com",
  "phone": "+1234567890",
  "metadata": {
    "userId": "2b634b51-7f4a-470b-9bd6-c7a968e665d9"
  },
  "address": {
    "line1": "1234 Main St",
    "line2": "Suite 200",
    "city": "Anytown",
    "state": "CA",
    "postalCode": "12345",
    "countryCode": "US"
  },
  "verificationStatus": "IN_PROGRESS",
  "wallets": [
    {
      "address": "0x1234567890123456789012345678901234567890",
      "object": "wallet",
      "balances": {
        "token": "0x4dad19801eff64eaaa7c78e466ce3678d0b1fd94",
        "total": "1000",
        "available": {
          "amount": "0"
        },
        "frozen": {
          "amount": "1000"
        }
      }
    }
  ],
  "type": "INDIVIDUAL",
  "countryCode": "US"
}

Body

application/json

Response

200
application/json

The customer has been successfully onboarded

The response is of type object.