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

# File Download

> This webhook is send when the Invoice is generated and invoice pdf is ready to download.



## OpenAPI

````yaml /api-reference/webhooks/webhooks.json post /file_download/merchant_defined_callbackurl
openapi: 3.0.3
info:
  title: Webhooks
  description: API's to add and get webhook information.
  version: 1.0.0
servers:
  - url: https://webhook.site
    description: Merchant defined callback URL for testing purposes
security:
  - ApiKeyAuth: []
    SignatureAuth: []
paths:
  /file_download/merchant_defined_callbackurl:
    post:
      tags:
        - Webhook
      summary: File Download
      description: >-
        This webhook is send when the Invoice is generated and invoice pdf is
        ready to download.
      operationId: fileDownloadWebhook
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                callbackType:
                  type: string
                  example: FILE
                type:
                  type: string
                  example: INVOICE
                tbId:
                  type: string
                  example: 65ce09e93e6577476e6dd00a
                billingSessionId:
                  type: string
                  example: 65ce09b363f60144efcfbed1
                timestamp:
                  type: string
                  format: date-time
                  example: '2024-02-15T12:56:10.737Z'
                downloadLink:
                  type: string
                  format: uri
                  example: >-
                    https://sandbox-api.transactbridge.com/download/v1.0/invoiceDownload?U2FsdGVkX1+ZIEKXZhctSgYSD6cXGjbh+3BUr2B2nQ00SrHvthhvl4jGC7fZ39Uc66xNXR/+G3eD0/wUaB8aoQ==
      responses:
        '200':
          description: Webhook received successfully.
          content:
            application/json:
              schema:
                type: object
                properties:
                  ack:
                    type: boolean
                    example: true
              example:
                ack: true
components:
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key
      description: Merchant API Key
    SignatureAuth:
      type: apiKey
      in: header
      name: x-signature
      description: Generated request signature

````

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