> ## Documentation Index
> Fetch the complete documentation index at: https://docs.zeroclick.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Seller buyers

> Who bought from one seller in the window: each buyer (registered agent, else paying wallet) with first payment, transactions, revenue, active days and whether it read the storefront first; new vs returning counts and their weekly split; repeat buyers. Trial-only agents list with no payments.



## OpenAPI

````yaml https://api.zeroclick.io/openapi.json get /v1/analytics/sellers/{sellerId}/buyers
openapi: 3.0.0
info:
  title: ZeroClick API
  description: >-
    REST API for managing ZeroClick sellers, services, pricing, usage, and
    analytics. Authenticate with an API key from the ZeroClick dashboard.
  version: 1.0.0
servers:
  - url: https://api.zeroclick.io
security:
  - bearerAuth: []
tags:
  - name: API keys
  - name: Sellers
  - name: Services
  - name: Meters
  - name: Plans
  - name: Plan meter prices
  - name: Usage
  - name: Analytics
  - name: Agentify
  - name: Stripe Connect
  - name: Sandbox
  - name: Organizations
  - name: Users
paths:
  /v1/analytics/sellers/{sellerId}/buyers:
    get:
      tags:
        - Analytics
      summary: Seller buyers
      description: >-
        Who bought from one seller in the window: each buyer (registered agent,
        else paying wallet) with first payment, transactions, revenue, active
        days and whether it read the storefront first; new vs returning counts
        and their weekly split; repeat buyers. Trial-only agents list with no
        payments.
      parameters:
        - schema:
            default: 30
            anyOf:
              - type: string
                enum:
                  - all
              - type: integer
                minimum: 1
                maximum: 365
          in: query
          name: days
          required: false
        - schema:
            type: string
            minLength: 1
          in: query
          name: serviceId
          required: false
        - schema:
            type: string
            minLength: 1
          in: path
          name: sellerId
          required: true
      responses:
        '200':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  buyers:
                    type: object
                    properties:
                      days:
                        type: number
                      buyers:
                        type: object
                        properties:
                          total:
                            type: number
                          previousTotal:
                            type: number
                          new:
                            type: number
                          returning:
                            type: number
                          repeat:
                            type: number
                          singleDay:
                            type: number
                          previousNew:
                            type: number
                          previousReturning:
                            type: number
                          previousRepeat:
                            type: number
                        required:
                          - total
                          - previousTotal
                          - new
                          - returning
                          - repeat
                          - singleDay
                          - previousNew
                          - previousReturning
                          - previousRepeat
                        additionalProperties: false
                      weekly:
                        type: array
                        items:
                          type: object
                          properties:
                            from:
                              type: string
                            to:
                              type: string
                            new:
                              type: number
                            returning:
                              type: number
                          required:
                            - from
                            - to
                            - new
                            - returning
                          additionalProperties: false
                      agents:
                        type: array
                        items:
                          type: object
                          properties:
                            agentId:
                              nullable: true
                              type: string
                            walletAddress:
                              nullable: true
                              type: string
                            isNew:
                              type: boolean
                            firstPaidAt:
                              nullable: true
                              type: string
                            transactions:
                              type: number
                            revenueUsd:
                              type: string
                            activeDays:
                              type: number
                            readDocsFirst:
                              type: boolean
                            trialOnly:
                              type: boolean
                          required:
                            - agentId
                            - walletAddress
                            - isNew
                            - firstPaidAt
                            - transactions
                            - revenueUsd
                            - activeDays
                            - readDocsFirst
                            - trialOnly
                          additionalProperties: false
                      previousWindowAvailable:
                        type: boolean
                    required:
                      - days
                      - buyers
                      - weekly
                      - agents
                      - previousWindowAvailable
                    additionalProperties: false
                required:
                  - buyers
                additionalProperties: false
        '403':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    enum:
                      - organization_required
                      - organization_permission_required
                      - seller_not_found
                      - service_not_found
                      - meter_not_found
                      - plan_not_found
                      - plan_meter_price_not_found
                      - duplicate_slug
                      - duplicate_key
                      - duplicate_plan_meter_price
                      - duplicate_free_trial
                      - signing_secret_not_found
                      - insufficient_scope
                      - payg_price_not_whole_cents
                      - custom_domain_skip_unavailable
                      - active_stateful_accounts_exist
                      - free_trial_price_not_zero
                      - free_trial_interval_not_none
                      - included_credit_units_incomplete
                      - included_credit_units_without_credit
                      - claim_cap_requires_free_trial
                      - maximum_purchase_below_minimum
                      - buy_with_ai_not_available
                required:
                  - error
                additionalProperties: false
        '404':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    enum:
                      - organization_required
                      - organization_permission_required
                      - seller_not_found
                      - service_not_found
                      - meter_not_found
                      - plan_not_found
                      - plan_meter_price_not_found
                      - duplicate_slug
                      - duplicate_key
                      - duplicate_plan_meter_price
                      - duplicate_free_trial
                      - signing_secret_not_found
                      - insufficient_scope
                      - payg_price_not_whole_cents
                      - custom_domain_skip_unavailable
                      - active_stateful_accounts_exist
                      - free_trial_price_not_zero
                      - free_trial_interval_not_none
                      - included_credit_units_incomplete
                      - included_credit_units_without_credit
                      - claim_cap_requires_free_trial
                      - maximum_purchase_below_minimum
                      - buy_with_ai_not_available
                required:
                  - error
                additionalProperties: false
        '409':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    enum:
                      - organization_required
                      - organization_permission_required
                      - seller_not_found
                      - service_not_found
                      - meter_not_found
                      - plan_not_found
                      - plan_meter_price_not_found
                      - duplicate_slug
                      - duplicate_key
                      - duplicate_plan_meter_price
                      - duplicate_free_trial
                      - signing_secret_not_found
                      - insufficient_scope
                      - payg_price_not_whole_cents
                      - custom_domain_skip_unavailable
                      - active_stateful_accounts_exist
                      - free_trial_price_not_zero
                      - free_trial_interval_not_none
                      - included_credit_units_incomplete
                      - included_credit_units_without_credit
                      - claim_cap_requires_free_trial
                      - maximum_purchase_below_minimum
                      - buy_with_ai_not_available
                required:
                  - error
                additionalProperties: false
        '422':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    enum:
                      - organization_required
                      - organization_permission_required
                      - seller_not_found
                      - service_not_found
                      - meter_not_found
                      - plan_not_found
                      - plan_meter_price_not_found
                      - duplicate_slug
                      - duplicate_key
                      - duplicate_plan_meter_price
                      - duplicate_free_trial
                      - signing_secret_not_found
                      - insufficient_scope
                      - payg_price_not_whole_cents
                      - custom_domain_skip_unavailable
                      - active_stateful_accounts_exist
                      - free_trial_price_not_zero
                      - free_trial_interval_not_none
                      - included_credit_units_incomplete
                      - included_credit_units_without_credit
                      - claim_cap_requires_free_trial
                      - maximum_purchase_below_minimum
                      - buy_with_ai_not_available
                required:
                  - error
                additionalProperties: false
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        API key created in the ZeroClick dashboard under Settings → API keys.
        Keys start with `zc_`. Send them as `Authorization: Bearer zc_...`.

````