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

# Apply Discount

Transact Bridge **does not provide an inbuilt discount management system**. The merchant owns and manages the discount system.

Merchants can use their existing discount infrastructure while using Transact Bridge for subscription checkout and billing.

Discounts allow merchants to offer reduced pricing for one-time payments. A fixed-amount discount can be applied while creating a one-time payment using the `discount` object in the payment request.

***

## Steps for Integration

* Merchant creates and validates the discount in their own system.
* Merchant passes the discount details in the `discount` object while creating the one-time payment using [**Create Session API**](https://docs.transactbridge.com/#d4607171-457b-4d24-8277-6d9a79a997dd).
* The `discount` object defines how the discount should be applied to the payment.
* For a fixed discount, the merchant specifies the discount amount using `discountQuoteAmount`.
* Transact Bridge receives the discount information along with the payment request.
* Transact Bridge applies the discount to the applicable payment amount.
* Merchant renders the Checkout page using the redirect URL received in the response.
* The customer completes the payment using the discounted amount.

***

## Supported Discount Type

For one-time payments, merchants can configure a **fixed-amount discount**.

| Type    | Description                                              |
| ------- | -------------------------------------------------------- |
| **FIX** | Applies a fixed discount amount to the one-time payment. |

***

## Integration Flow

```mermaid theme={null}
flowchart TB

A["Create<br/>Discount"]
B["Create<br/>One-Time Payment using create session API"]
C["Attach<br/>Discount"]
D["Customer<br/>Checkout"]
E["Discounted<br/>Amount"]
F["Payment<br/>Completed"]

A --> B --> C --> D --> E --> F
```

***

## Request Example

The following example demonstrates a fixed-amount discount of **₹100** applied to a one-time payment. This `discount` object needs to be passed in the [`Create Session API`](https://docs.transactbridge.com/#d4607171-457b-4d24-8277-6d9a79a997dd).

```json theme={null}
{
  "discount": {
        "name" : "Test",
        "quoteAmountOff" : 100

    },
}
```

***

## Example

If the original payment amount is **₹2,000** and the configured fixed discount is **₹100**:

```text theme={null}
Original Amount    = ₹2,000
Fixed Discount     = ₹100
Final Amount       = ₹1,900
```

The customer is redirected to the Checkout page with the applicable discount reflected in the payment amount.

<Note>
  The merchant is responsible for creating and validating the coupon or discount in their own system. Transact Bridge receives the discount details provided by the merchant in the API request and applies the configured discount to the one-time payment.
</Note>
