Skip to content

PosCustomerSearchHit ​

Type: schema

TypeScript Definition ​

typescript
PosCustomerSearchHit: {{
            /** @description Customer ID, or user ID when no customer record is linked. */
            id?: $Read<string | null>;
            first_name?: string | null;
            last_name?: string | null;
            full_name?: $Read<string | null>;
            profile_image_url?: $Read<string | null>;
            country_code?: string | null;
            phone?: string | null;
            email?: string | null;
            is_phone_verified?: $Read<boolean>;
            is_email_verified?: $Read<boolean>;
            is_whatsapp_verified?: $Read<boolean>;
            status?: string;
            /** Format: date-time */
            created_at?: $Read<string>;
            /** Format: date-time */
            modified_at?: $Read<string>;
            last_seen?: string;
            /**
             * @description KYC progress for a customer. `document_pending` means required documents have not been uploaded; `submitted` and `submitted_for_approval` mean they are awaiting review.
             * @enum {unknown}
             */
            kyc_status?: "pending" | "document_pending" | "submitted" | "submitted_for_approval" | "approved" | "rejected";
            is_verified?: $Read<boolean>;
            /** @description The Customer Group the customer belongs to. Drives group-specific pricing and promotions. */
            customer_group_id?: string | null;
            tags?: string[] | null;
            business?: {
                name?: string | null;
                business_type?: string | null;
                pan_number?: string | null;
                gstin?: string | null;
                is_registered_under_gst?: boolean;
            } | null;
            segments?: {
                id?: string;
                name?: string;
            }[];
            attributes?: {
                [key: string]: unknown;
            };
            kyc_document_numbers?: string[];
            address?: components["schemas"]["PosCustomerSearchAddress"] | null;
        };
        /** PosDevice */
}

Component References ​

ReferenceResolves To
components["schemas"]["PosCustomerSearchAddress"]PosCustomerSearchAddress

OpenAPI Schema ​

json
{
  "type": "object",
  "properties": {
    "id": {
      "description": "Customer ID, or user ID when no customer record is linked.",
      "type": [
        "string",
        "null"
      ],
      "readOnly": true
    },
    "first_name": {
      "type": [
        "string",
        "null"
      ]
    },
    "last_name": {
      "type": [
        "string",
        "null"
      ]
    },
    "full_name": {
      "type": [
        "string",
        "null"
      ],
      "readOnly": true
    },
    "profile_image_url": {
      "type": [
        "string",
        "null"
      ],
      "readOnly": true
    },
    "country_code": {
      "type": [
        "string",
        "null"
      ]
    },
    "phone": {
      "type": [
        "string",
        "null"
      ]
    },
    "email": {
      "type": [
        "string",
        "null"
      ]
    },
    "is_phone_verified": {
      "type": "boolean",
      "readOnly": true
    },
    "is_email_verified": {
      "type": "boolean",
      "readOnly": true
    },
    "is_whatsapp_verified": {
      "type": "boolean",
      "readOnly": true
    },
    "status": {
      "type": "string"
    },
    "created_at": {
      "type": "string",
      "format": "date-time",
      "readOnly": true
    },
    "modified_at": {
      "type": "string",
      "format": "date-time",
      "readOnly": true
    },
    "last_seen": {
      "type": "string"
    },
    "kyc_status": {
      "description": "KYC progress for a customer. `document_pending` means required documents have not been uploaded; `submitted` and `submitted_for_approval` mean they are awaiting review.",
      "enum": [
        "pending",
        "document_pending",
        "submitted",
        "submitted_for_approval",
        "approved",
        "rejected"
      ]
    },
    "is_verified": {
      "type": "boolean",
      "readOnly": true
    },
    "customer_group_id": {
      "description": "The Customer Group the customer belongs to. Drives group-specific pricing and promotions.",
      "type": [
        "string",
        "null"
      ]
    },
    "tags": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": "string"
      }
    },
    "business": {
      "type": [
        "object",
        "null"
      ],
      "properties": {
        "name": {
          "type": [
            "string",
            "null"
          ]
        },
        "business_type": {
          "type": [
            "string",
            "null"
          ]
        },
        "pan_number": {
          "type": [
            "string",
            "null"
          ]
        },
        "gstin": {
          "type": [
            "string",
            "null"
          ]
        },
        "is_registered_under_gst": {
          "type": "boolean"
        }
      }
    },
    "segments": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          }
        },
        "title": "CustomerSegment",
        "x-tags": [
          "Customers"
        ]
      }
    },
    "attributes": {
      "type": "object",
      "additionalProperties": true
    },
    "kyc_document_numbers": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "address": {
      "anyOf": [
        {
          "$ref": "#/components/schemas/PosCustomerSearchAddress"
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "externalDocs": {
    "url": "https://llm-docs.commercengine.io/admin-pos/schemas/PosCustomerSearchHit"
  },
  "title": "PosCustomerSearchHit",
  "x-tags": [
    "Customers"
  ]
}

Auto-generated from OpenAPI spec and TypeScript definitions

Last updated: