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

# Product upsert event

> Create or update a product (matched by external id) for the resolved installation.

Create or update a product, matched by its external id, for the resolved
installation.

<Note>Every webhook must be signed: send `x-vambe-signature` (hex HMAC-SHA256 of `${x-vambe-timestamp}.${rawBody}` using the app signing secret) and `x-vambe-timestamp` (unix epoch seconds). Requests older than 5 minutes are rejected.</Note>


## OpenAPI

````yaml post /api/public/apps/{appId}/events/product
openapi: 3.0.0
info:
  title: Vambe AI API
  description: Vambe AI documentation
  version: '1.0'
  contact: {}
servers:
  - url: https://api.vambe.me
    description: Production Server
security: []
tags:
  - name: Vambe AI
    description: ''
paths:
  /api/public/apps/{appId}/events/product:
    post:
      tags:
        - Custom Ecommerce Apps · Webhooks
      summary: Product upsert event
      description: >-
        Create or update a product (matched by external id) for the resolved
        installation.
      operationId: EcommerceAppWebhookController_product
      parameters:
        - name: x-vambe-timestamp
          in: header
          description: >-
            Unix epoch seconds when the request was signed. Requests older than
            5 minutes are rejected.
          required: true
          schema:
            type: string
        - name: x-vambe-signature
          in: header
          description: >-
            Hex HMAC-SHA256 of `${x-vambe-timestamp}.${rawBody}` using the app
            signing secret.
          required: true
          schema:
            type: string
        - name: appId
          required: true
          in: path
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CanonicalProductEnvelopeDto'
      responses:
        '201':
          description: ''
components:
  schemas:
    CanonicalProductEnvelopeDto:
      type: object
      properties:
        external_store_id:
          type: string
        event_id:
          type: string
        product:
          type: object
          properties:
            external_id:
              type: string
              minLength: 1
            name:
              type: string
              minLength: 1
            description:
              default: ''
              type: string
            price:
              type: number
              minimum: 0
            currency:
              type: string
              minLength: 1
            sku:
              type: string
              nullable: true
            file_url:
              type: string
              format: uri
              nullable: true
            image_urls:
              type: array
              items:
                type: string
                format: uri
            metadata:
              type: array
              items:
                type: object
                properties:
                  key:
                    type: string
                  value:
                    type: string
                required:
                  - key
                  - value
      required:
        - product

````