{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/rubin-trade/json-schema/rubin-trade-get-v4-sbp-customer-response-schema.json",
  "title": "GetV4SbpCustomerResponse",
  "x-generated": "2026-11-24",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_ae-authored/rubin-trade-openapi-generated.yml#/components/schemas/GetV4SbpCustomerResponse",
  "type": "object",
  "properties": {
    "flow": {
      "type": "object",
      "description": "Steps this customer needs — see Integration flow"
    },
    "exists": {
      "type": "boolean",
      "description": "Verification not started yet (verificationLevel is 0)"
    },
    "verificationLevel": {
      "type": "number",
      "description": "See levels ; orders need 3"
    },
    "identified": {
      "type": "boolean",
      "description": "Identity confirmed"
    },
    "phoneSet": {
      "type": "boolean",
      "description": "A phone number is attached (only when exists is true)"
    },
    "phoneMasked": {
      "type": "string",
      "description": "Masked phone, e.g. +7***1234"
    },
    "identifyStatus": {
      "type": "string",
      "description": "none , pending , success , failed"
    },
    "activeOrderId": {
      "type": "string",
      "description": "Latest open order (initiated, processing or awaiting_payment)"
    },
    "kycStatus": {
      "type": "string",
      "description": "Hosted flow (and form flow when reported): none , pending , approved , rejected , expired"
    },
    "contactsStatus": {
      "type": "string",
      "description": "Hosted flow: none , pending , ready , action_required , failed , review_required"
    },
    "contactsActionUrl": {
      "type": "string",
      "description": "Hosted flow: page to open when contactsStatus is action_required"
    }
  }
}