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

# Retrieve the webhook payload for an event

> Returns the exact body Duro POSTs to your webhook endpoints for this event, with related resources (customer, plan, subscription, invoice) expanded inline. Use it to re-fetch or reconcile a delivery — the response equals the webhook body byte for byte.



## OpenAPI

````yaml /openapi.json get /v1/events/{id}/payload
openapi: 3.1.0
info:
  title: Duro API
  version: 1.0.0
  description: >-
    Recovery-first subscription billing. Authenticate with a secret key
    (sk_test_ / sk_live_) as a bearer token. Amounts are in integer minor units
    (kobo).
servers:
  - url: https://api.useduro.com
    description: Production (live)
  - url: https://sandbox.useduro.com
    description: Sandbox (test)
security:
  - bearerAuth: []
tags:
  - name: Plans
  - name: Promo Codes
  - name: Payment Links
  - name: Customers
  - name: Transactions
  - name: Subscriptions
  - name: Invoices
  - name: Recovery
  - name: Settings
  - name: Analytics
  - name: Checkout
  - name: Events
  - name: OAuth
  - name: Customer Checkout
  - name: Customer Identity
  - name: Customer Portal
paths:
  /v1/events/{id}/payload:
    parameters:
      - $ref: '#/components/parameters/id'
    get:
      tags:
        - Events
      summary: Retrieve the webhook payload for an event
      description: >-
        Returns the exact body Duro POSTs to your webhook endpoints for this
        event, with related resources (customer, plan, subscription, invoice)
        expanded inline. Use it to re-fetch or reconcile a delivery — the
        response equals the webhook body byte for byte.
      operationId: getEventPayload
      responses:
        '200':
          description: The delivered webhook payload
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EventPayload'
components:
  parameters:
    id:
      name: id
      in: path
      required: true
      schema:
        type: string
  schemas:
    EventPayload:
      type: object
      description: >-
        The exact payload delivered to webhook endpoints — identical to the POST
        body.
      properties:
        id:
          type: string
          example: evt_01HKBZ4PQ9Z3K7T8V9X2Y1B5C6
        type:
          type: string
          example: checkout_completed
        createdAt:
          type: string
        data:
          type: object
          description: >-
            Event data with related resources expanded inline. Which objects are
            present depends on the event type; flat *Id fields are omitted when
            the object is embedded.
          properties:
            customer:
              $ref: '#/components/schemas/Customer'
            plan:
              $ref: '#/components/schemas/Plan'
            subscription:
              $ref: '#/components/schemas/Subscription'
            invoice:
              $ref: '#/components/schemas/Invoice'
          additionalProperties: true
    Customer:
      type: object
      properties:
        id:
          type: string
        email:
          type: string
          nullable: true
        phone:
          type: string
          nullable: true
        name:
          type: string
          nullable: true
        merchantRef:
          type: string
          nullable: true
        blacklisted:
          type: boolean
        blacklistReason:
          type: string
          nullable: true
        createdAt:
          type: string
    Plan:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
        amount:
          type: integer
        currency:
          type: string
        interval:
          $ref: '#/components/schemas/Interval'
        intervalCount:
          type: integer
        trialDays:
          type: integer
        maxCycles:
          type: integer
          nullable: true
        createdAt:
          type: string
          format: date-time
    Subscription:
      type: object
      properties:
        id:
          type: string
        status:
          type: string
          enum:
            - incomplete
            - trialing
            - active
            - past_due
            - paused
            - unpaid
            - canceled
            - expired
        planId:
          type: string
        currentPeriodStart:
          type: string
          nullable: true
        currentPeriodEnd:
          type: string
          nullable: true
        cyclesCompleted:
          type: integer
        createdAt:
          type: string
    Invoice:
      type: object
      properties:
        id:
          type: string
        subscriptionId:
          type: string
        amount:
          type: integer
        currency:
          type: string
        status:
          type: string
          enum:
            - draft
            - open
            - paid
            - uncollectible
            - void
        periodStart:
          type: string
        periodEnd:
          type: string
        paidAt:
          type: string
          nullable: true
        createdAt:
          type: string
    Interval:
      type: string
      enum:
        - hour
        - day
        - week
        - month
        - quarter
        - biannual
        - year
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: A secret key (sk_test_… / sk_live_…), OAuth token, or identity token.

````