> ## 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.

# Order event

> Push a created/updated order. Routed into the standard ecommerce order pipeline for the resolved installation.

Push a created or updated order. Vambe resolves the installation from `appId`
(and `external_store_id` for multi-store apps) and routes the order into the
standard ecommerce pipeline.

<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/order
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/order:
    post:
      tags:
        - Custom Ecommerce Apps · Webhooks
      summary: Order event
      description: >-
        Push a created/updated order. Routed into the standard ecommerce order
        pipeline for the resolved installation.
      operationId: EcommerceAppWebhookController_order
      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/CanonicalOrderEnvelopeDto'
      responses:
        '201':
          description: ''
components:
  schemas:
    CanonicalOrderEnvelopeDto:
      type: object
      properties:
        external_store_id:
          type: string
        event_id:
          type: string
        order:
          type: object
          properties:
            external_id:
              type: string
              minLength: 1
            external_name:
              type: string
              minLength: 1
            currency:
              type: string
              minLength: 1
            total_price:
              type: number
              minimum: 0
            status_url:
              type: string
              format: uri
              nullable: true
            details_url:
              type: string
              format: uri
              nullable: true
            customer:
              type: object
              properties:
                name:
                  type: string
                  nullable: true
                phone:
                  type: string
                  nullable: true
                email:
                  type: string
                  nullable: true
            line_items:
              minItems: 1
              type: array
              items:
                type: object
                properties:
                  external_product_id:
                    type: string
                    minLength: 1
                  quantity:
                    type: integer
                    exclusiveMinimum: true
                    maximum: 9007199254740991
                    minimum: 0
                required:
                  - external_product_id
                  - quantity
            metadata:
              type: object
              additionalProperties: true
      required:
        - order

````