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

# Track Campaign Click

> Public: count one visit from a campaign link ``?cmp=<code>``.

Idempotent per visitor: the same IP and code count once every 30 minutes.
An unknown code answers ``counted: false`` (200), so a stale link never
shows an error to a shopper.



## OpenAPI

````yaml https://api.vellaro.io/openapi.json post /api/v1/marketing/track
openapi: 3.1.0
info:
  title: Vellaro API
  description: Vellaro 2026 — E-commerce API
  version: 0.1.0
servers:
  - url: https://api.vellaro.io
    description: Produzione
security: []
tags: []
paths:
  /api/v1/marketing/track:
    post:
      tags:
        - marketing
      summary: Track Campaign Click
      description: >-
        Public: count one visit from a campaign link ``?cmp=<code>``.


        Idempotent per visitor: the same IP and code count once every 30
        minutes.

        An unknown code answers ``counted: false`` (200), so a stale link never

        shows an error to a shopper.
      operationId: track_campaign_click_api_v1_marketing_track_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/TrackClick'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiResponse_TrackClickOut_'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    TrackClick:
      properties:
        code:
          type: string
          maxLength: 64
          minLength: 1
          title: Code
      type: object
      required:
        - code
      title: TrackClick
      description: Public body of POST /marketing/track (sent by the storefront).
    ApiResponse_TrackClickOut_:
      properties:
        data:
          anyOf:
            - $ref: '#/components/schemas/TrackClickOut'
            - type: 'null'
        meta:
          anyOf:
            - $ref: '#/components/schemas/PaginationMeta'
            - type: 'null'
        error:
          anyOf:
            - type: string
            - type: 'null'
          title: Error
        error_code:
          anyOf:
            - type: string
            - type: 'null'
          title: Error Code
      type: object
      title: ApiResponse[TrackClickOut]
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    TrackClickOut:
      properties:
        counted:
          type: boolean
          title: Counted
      type: object
      required:
        - counted
      title: TrackClickOut
    PaginationMeta:
      properties:
        page:
          type: integer
          title: Page
        page_size:
          type: integer
          title: Page Size
        total:
          type: integer
          title: Total
        total_pages:
          type: integer
          title: Total Pages
      type: object
      required:
        - page
        - page_size
        - total
        - total_pages
      title: PaginationMeta
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.