Skip to content

GetCustomerSelf

Endpoint

GET /customer/me

Description

Returns the authenticated customer profile and linked trading accounts.

Authorization

Requires SESSION_CUSTOMER token.

Response

{
  "customer": {
    "customer_id": 1,
    "email": "[email protected]",
    "full_name": "John Smith",
    "status": 0,
    "lifecycle_flags": 5,
    "customer_kind": 1,
    "conversion_flags": 1,
    "enable": 1,
    "deposit_allowed": 1,
    "withdrawal_allowed": 1,
    "brand": "default"
  },
  "accounts": [
    {
      "login": 100001,
      "customer_id": 1,
      "enable": 1,
      "leverage": 100,
      "group": "standard",
      "name": "John Smith",
      "email": "[email protected]",
      "phone": "+35700000000"
    }
  ],
  "accounts_count": 1
}

Lifecycle Fields

Field Type Description
lifecycle_flags int64 Milestone bit mask. 1 Registered, 2 KYC pending, 4 KYC approved, 8 First deposit, 16 Active trader, 32 Dormant. Flags are independent and any combination is valid
customer_kind int 0 lead, 1 client
conversion_flags int64 Mask captured when the customer became a client. 0 for a lead

lifecycle_stage is no longer part of the customer object.

Customer Cashier Flags

Field Type Description
deposit_allowed int Global customer deposit gate. 0 means deposits are disabled for this customer before Cashier method eligibility is checked
withdrawal_allowed int Global customer withdrawal gate. 0 means withdrawals are disabled for this customer

Errors

HTTP Error Description
400 INVALID_DATA Invalid session payload
401 INVALID_CUSTOMER_SESSION Customer id is missing in session
404 NOT_FOUND Customer was not found