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

# Checkout event

> Push an abandoned/created checkout to enable recovery for the resolved installation.

Push an abandoned or created checkout so Vambe can drive checkout recovery 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/checkout
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/checkout:
    post:
      tags:
        - Custom Ecommerce Apps · Webhooks
      summary: Checkout event
      description: >-
        Push an abandoned/created checkout to enable recovery for the resolved
        installation.
      operationId: EcommerceAppWebhookController_checkout
      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/CanonicalCheckoutEnvelopeDto'
      responses:
        '201':
          description: ''
components:
  schemas:
    CanonicalCheckoutEnvelopeDto:
      type: object
      properties:
        external_store_id:
          type: string
        event_id:
          type: string
        checkout:
          type: object
          properties:
            external_id:
              type: string
              minLength: 1
            external_name:
              type: string
              nullable: true
            currency:
              type: string
              minLength: 1
            total_price:
              type: number
              minimum: 0
            recover_url:
              type: string
              format: uri
            details_url:
              type: string
              format: uri
              nullable: true
            customer:
              type: object
              properties:
                name:
                  type: string
                  nullable: true
                phone:
                  type: string
                  minLength: 1
                email:
                  type: string
                  nullable: true
              required:
                - phone
            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
      required:
        - checkout

````