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

# Receive Wix Payments event

> <Info>This API is in beta. Endpoints, fields, and behavior may still change, so avoid depending on it in production.</Info>

<Note>Base44 registers this endpoint with the payment provider for you, and the provider is its only caller. You can't invoke it for your own app or repoint it. It's documented so you can recognize the traffic and read the acknowledgements it returns.</Note>

Receives Wix Payments and Payments by Wix transaction and refund events for a connected app.

Base44 verifies the `Digest` header as an HMAC-SHA256 of the raw body before reading it, and rejects the request when the header is missing, the signature doesn't match, or the body isn't valid JSON.

Verified events record revenue and refunds for payment analytics. Base44 routes the event by the `base44AppId` the provider echoes back, so an event without one comes back as `ignored`. Only a transaction that becomes `APPROVED` for the first time, for a non-zero amount, is recorded; anything else is acknowledged without being tracked. A verified event Base44 can't process returns an error instead of an acknowledgement, and the provider retries the delivery.

<Warning>The response includes fields beyond the ones documented here. Don't rely on undocumented response fields, as they can change at any time.</Warning>



## OpenAPI

````yaml /developers/references/app-management/app-management-openapi.json post /api/payment-webhooks/wix-payments
openapi: 3.1.0
info:
  title: Base44 App Management API
  version: 1.0.0
servers:
  - url: https://app.base44.com
security:
  - ApiKeyAuth: []
paths:
  /api/payment-webhooks/wix-payments:
    post:
      summary: Receive Wix Payments event
      description: >-
        <Info>This API is in beta. Endpoints, fields, and behavior may still
        change, so avoid depending on it in production.</Info>


        <Note>Base44 registers this endpoint with the payment provider for you,
        and the provider is its only caller. You can't invoke it for your own
        app or repoint it. It's documented so you can recognize the traffic and
        read the acknowledgements it returns.</Note>


        Receives Wix Payments and Payments by Wix transaction and refund events
        for a connected app.


        Base44 verifies the `Digest` header as an HMAC-SHA256 of the raw body
        before reading it, and rejects the request when the header is missing,
        the signature doesn't match, or the body isn't valid JSON.


        Verified events record revenue and refunds for payment analytics. Base44
        routes the event by the `base44AppId` the provider echoes back, so an
        event without one comes back as `ignored`. Only a transaction that
        becomes `APPROVED` for the first time, for a non-zero amount, is
        recorded; anything else is acknowledged without being tracked. A
        verified event Base44 can't process returns an error instead of an
        acknowledgement, and the provider retries the delivery.


        <Warning>The response includes fields beyond the ones documented here.
        Don't rely on undocumented response fields, as they can change at any
        time.</Warning>
      operationId: wix_payments_webhook_api_payment_webhooks_wix_payments_post
      parameters:
        - name: Digest
          in: header
          required: false
          schema:
            type: string
            description: >-
              Required on every request. HMAC-SHA256 of the raw request body,
              hex-encoded. A request that omits it is rejected with a 400, as is
              one whose signature doesn't verify.
            title: Digest
          description: >-
            Required on every request. HMAC-SHA256 of the raw request body,
            hex-encoded. A request that omits it is rejected with a 400, as is
            one whose signature doesn't verify.
          example: 9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08
      responses:
        '200':
          description: How Base44 handled the event.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PaymentWebhookAck'
        '400':
          description: >-
            The `Digest` header is missing, the signature doesn't match, or the
            body isn't valid JSON.
      security: []
components:
  schemas:
    PaymentWebhookAck:
      properties:
        status:
          type: string
          title: Status
          description: >-
            How Base44 handled the event. `processed` means it updated app state
            or recorded revenue, `acknowledged` means the event was valid but
            needed no action, and `ignored` means it was skipped. The Stripe
            endpoints also return `logged`, for an event recorded for reporting
            only.
          example: processed
        reason:
          anyOf:
            - type: string
            - type: 'null'
          title: Reason
          description: >-
            Why the event needed no action. Present when `status` is `ignored`,
            and on the `acknowledged` responses that skip an event, such as a
            transaction that was already approved or one for a zero amount.
          example: unknown_event_type
        action:
          anyOf:
            - type: string
            - type: 'null'
          title: Action
          description: What Base44 recorded. Present on most `processed` responses.
          example: payment_tracked
      type: object
      required:
        - status
      title: PaymentWebhookAck
      description: What Base44 did with an inbound payment webhook event.
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: api_key
      description: Personal API key.

````