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,
    "enable": 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
}

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