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

# Session

> This webhook event is sent to the configured partner URL when the session has a status change. Session status can be `CREATED` , `STARTED`, `CLOSED`, `EXPIRED`, `FAILED`.



## OpenAPI

````yaml /api-reference/webhooks/webhooks.json post /sessions/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:
  /sessions/merchant_defined_callbackurl:
    post:
      tags:
        - Webhook
      summary: Session
      description: >-
        This webhook event is sent to the configured partner URL when the
        session has a status change. Session status can be `CREATED` ,
        `STARTED`, `CLOSED`, `EXPIRED`, `FAILED`.
      operationId: SessionWebhook
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                callbackType:
                  type: string
                  example: BILLINGSESSION
                status:
                  type: string
                  enum:
                    - CREATED
                    - STARTED
                    - CLOSED
                    - EXPIRED
                    - FAILED
                  example: STARTED
                referenceId:
                  type: string
                  example: ORDER12345
                tbId:
                  type: string
                  example: TB123456789
                quoteAmount:
                  type: string
                  example: '220'
                timestamp:
                  type: string
                  example: '2026-11-04T10:30:00.000Z'
                param1:
                  type: string
                  example: ''
                param2:
                  type: string
                  example: ''
                param3:
                  type: string
                  example: ''
            example:
              callbackType: BILLINGSESSION
              status: STARTED
              referenceId: ORDER12345
              tbId: TB123456789
              quoteAmount: '220'
              timestamp: '2026-11-04T10:30:00.000Z'
              attempt: 1
              param1: ''
              param2: ''
              param3: ''
      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.