GET
/
customer
/
{id}
/
portfolio
curl --request GET \
  --url https://api.decentri.org/customer/{id}/portfolio
[
  {
    "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"
  }
]

Path Parameters

id
string
required

Response

200
application/json
The customer portfolio has been successfully retrieved
id
string
required

Unique identifier for the customer object.

Example:

"customer_c7a968e665d9"

object
string
required

A string that specifies the type of the object. All objects of the same type share this value.

Example:

"customer"

verificationStatus
enum<string>
required

The verification status of the customer

Available options:
INCOMPLETE,
IN_PROGRESS,
COMPLETED
wallets
object[]
required

The wallet associated with the customer

type
enum<string>
required

This is the type of the customer

Available options:
INDIVIDUAL,
ORGANIZATION
Example:

"INDIVIDUAL"

countryCode
object
required

The country code of the address, following the ISO 3166-1 alpha-2 standard

Example:

"US"

name
string

The name of the customer

Example:

"John Doe"

email
string

The email of the customer

Example:

"john.doe@example.com"

phone
string

The phone number of the customer

Example:

"+1234567890"

metadata
object

The metadata of the customer

Example:
{
  "userId": "2b634b51-7f4a-470b-9bd6-c7a968e665d9"
}
address
object

The address of the customer

Example:
{
  "line1": "1234 Main St",
  "line2": "Suite 200",
  "city": "Anytown",
  "state": "CA",
  "postalCode": "12345",
  "countryCode": "US"
}