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

# Invoice

> This webhook is sent to the configured partner URL when an invoice is created or the status is changed. Invoice status can be DRAFT, APPROVED, DUE, OVERDUE, PAID, UNPAID, CANCELLED, VOID



## OpenAPI

````yaml /api-reference/webhooks/webhooks.json post /invoice/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:
  /invoice/merchant_defined_callbackurl:
    post:
      tags:
        - Webhook
      summary: Invoice
      description: >-
        This webhook is sent to the configured partner URL when an invoice is
        created or the status is changed. Invoice status can be DRAFT, APPROVED,
        DUE, OVERDUE, PAID, UNPAID, CANCELLED, VOID
      operationId: invoiceWebhook
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                callbackType:
                  type: string
                  example: INVOICE
                status:
                  type: string
                  example: PAID
                tbId:
                  type: string
                  example: 65ce09e93e6577476e6dd00a
                quoteAmount:
                  type: string
                  example: '199'
                timestamp:
                  type: string
                  format: date-time
                  example: '2024-02-15T12:56:09.801Z'
                issueDate:
                  type: string
                  format: date-time
                  example: '2024-02-15T12:55:15.616Z'
                dueDate:
                  type: string
                  format: date-time
                  example: '2024-02-15T12:56:09.734Z'
                serviceStart:
                  type: string
                  format: date-time
                  example: '2024-02-15T12:55:15.616Z'
                serviceEnd:
                  type: string
                  format: date-time
                  example: '2024-02-15T12:55:15.616Z'
                totalTax:
                  type: string
                  example: '35.81'
                billingSessionId:
                  type: string
                  example: 65ce09b363f60144efcfbed1
            example:
              callbackType: INVOICE
              status: PAID
              tbId: 65ce09e93e6577476e6dd00a
              quoteAmount: '199'
              timestamp: '2024-02-15T12:56:09.801Z'
              issueDate: '2024-02-15T12:55:15.616Z'
              dueDate: '2024-02-15T12:56:09.734Z'
              serviceStart: '2024-02-15T12:55:15.616Z'
              serviceEnd: '2024-02-15T12:55:15.616Z'
              totalTax: '35.81'
              billingSessionId: 65ce09b363f60144efcfbed1
      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.