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

# Get webhook delivery

> Inspect one webhook delivery and your server's response.



## OpenAPI

````yaml GET /api/b2b/webhook/{id}
openapi: 3.1.0
info:
  title: Tanda API
  version: 1.0.0
  description: >-
    Collect and send KES payments in Kenya through M-PESA, Airtel Money and bank
    transfer.
servers:
  - url: https://api.tandapay.io
    description: Sandbox and production (your keys decide which)
security:
  - bearerAuth: []
tags:
  - name: Authentication
  - name: Account
  - name: Checkout
  - name: Collections
  - name: Payouts
  - name: Beneficiaries
  - name: Transactions
  - name: Reference data
  - name: Webhooks
paths:
  /api/b2b/webhook/{id}:
    get:
      tags:
        - Webhooks
      summary: Get webhook delivery
      description: Returns one webhook delivery, including your server's response.
      operationId: get-webhook
      parameters:
        - name: id
          in: path
          required: true
          description: The delivery ID.
          schema:
            type: string
          example: wh_7Tn2Qx
      responses:
        '200':
          description: Delivery.
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                  data:
                    $ref: '#/components/schemas/WebhookDelivery'
              example:
                success: true
                data:
                  id: wh_7Tn2Qx
                  event: transaction_updated
                  status: SUCCESS
                  webhookUrl: https://merchant.co.ke/webhooks/tanda
                  createdAt: '2026-10-28T09:14:23.000Z'
                  data:
                    transactionId: aB3dE5fG7hJ9kL1mN2pQ
                    status: successful
                    type: deposit
                    externalReference: order_10045
                  response:
                    status: '200'
        '401':
          description: Missing, invalid or expired bearer token.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                success: false
                message: Unauthorized
components:
  schemas:
    WebhookDelivery:
      type: object
      properties:
        id:
          type: string
        event:
          type: string
        status:
          type: string
          enum:
            - CREATED
            - FAILED
            - SUCCESS
        webhookUrl:
          type: string
        createdAt:
          type: string
          format: date-time
        data:
          type: object
          properties:
            transactionId:
              type: string
            status:
              type: string
            type:
              type: string
            externalReference:
              type: string
        response:
          type: object
          properties:
            status:
              type: string
              description: HTTP status your server returned.
    Error:
      type: object
      properties:
        success:
          type: boolean
          example: false
        message:
          type: string
          description: Human-readable; may change.
        errorCode:
          type: string
          description: Stable code to branch on.
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: Token from Generate bearer token.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.