> For the complete documentation index, see [llms.txt](https://kb.logicerp.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://kb.logicerp.com/logic-erp-learning-hub-tutorials-and-best-practices/billing/sale-bill/credit-note-redemption-using-otp-in-sale-bill.md).

# Credit Note Redemption Using OTP in Sale Bill

**YouTube:** [How to Configure Credit Note Redemption Using OTP in Sale Bill?](https://www.youtube.com/watch?v=VAgjauo8Yd0\&t=2s)

## How to Configure Credit Note Redemption Using OTP in Sale Bill?

In this tutorial, we will learn how to **configure and use OTP verification for credit note redemption in Logic ERP**. This feature helps ensure secure and authorized adjustment of credit notes during billing.

***

### Configure the OTP Message Template

* From the **Main Menu**, go to the **Setup** module.
* Under **Configurations**, open **Setup OTP Message Templates**.
* Select **Template Type** as **Retail Sale**.
* Define the following:
  * **Template Name**
  * **Template Short Name**
* Enter the **SMS URL** as provided by your SMS service provider.

<figure><img src="https://4031188996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXMVkjt8zqHBQX1c9QvFS%2Fuploads%2FR4HuTRN9G8dno4bo4pKL%2FDefining%20Template-1.png?alt=media&amp;token=00b811c7-19e4-4105-90cd-c2487ae37c92" alt=""><figcaption></figcaption></figure>

* In the **Message** column, press the **Space key** and compose the OTP message that will be sent to the customer.

<figure><img src="https://4031188996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXMVkjt8zqHBQX1c9QvFS%2Fuploads%2FPkdZ4pEAO0u9r1Gdanis%2Fmessage%20settings-2.png?alt=media&amp;token=9d28d992-9ee8-47fc-95f1-fd0129ebdf58" alt=""><figcaption></figcaption></figure>

* In the **Implement On** column, press the **Space key** and select **Credit Note**.

<figure><img src="https://4031188996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXMVkjt8zqHBQX1c9QvFS%2Fuploads%2FO9BFGTUoBxhvvM2QG0Ui%2FImplement%20on-3.png?alt=media&amp;token=312e806f-b19b-462a-86c6-9fd38e3637d6" alt=""><figcaption></figcaption></figure>

* Save the configuration to activate the OTP template.

***

### Generate a Credit Note Through Sales Return

* Open the **Sales Bill** window and complete a normal sale transaction.
* Later, if the customer wants to exchange or return an item and the required item is not available in stock:
  * Open the **Sales Return** window from the **Billing Menu**.
  * Create a **Sales Return entry** against the original bill.

<figure><img src="https://4031188996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXMVkjt8zqHBQX1c9QvFS%2Fuploads%2FuOuFRC3Ep19ml2dHKElL%2Fsale%20return.png?alt=media&amp;token=5b0e53ff-2c37-4558-8507-085eecbf5e25" alt=""><figcaption></figcaption></figure>

* A **Credit Note** is generated for the returned amount.

This credit note is handed over to the customer and can be redeemed during a future visit.

***

### Redeem the Credit Note with OTP Verification

* When the customer revisits the store, initiate a **new sales bill**.
* After billing the items, press **F3**.
* Click on the **Link SR** option to link the sales return.

<figure><img src="https://4031188996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXMVkjt8zqHBQX1c9QvFS%2Fuploads%2FnLFGJ1KjxyhZAcliW9Ge%2FF3.png?alt=media&amp;token=30fecbca-dd72-422f-868e-3cfbb4be3aea" alt=""><figcaption></figcaption></figure>

* Before proceeding:
  * Click on the **Configuration** button.
  * Select the appropriate **OTP template** from the dropdown.
  * Enable the option **Send OTP to SR Customer**.

<figure><img src="https://4031188996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXMVkjt8zqHBQX1c9QvFS%2Fuploads%2FLUjWD8WSdpc52RqRwRKE%2Flink%20sr-4.png?alt=media&amp;token=4b4fe658-d2d0-4143-b2cb-bae203279f45" alt=""><figcaption></figcaption></figure>

* Enter the **Credit Note Number**.
* Select the relevant **Credit Note (CN)**.
* Click on **Send OTP**.

***

### OTP Validation and Settlement

* An **OTP is sent** to the customer’s registered mobile number.
* The operator must **enter the OTP** on the screen.

<figure><img src="https://4031188996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXMVkjt8zqHBQX1c9QvFS%2Fuploads%2FvAxWic5fzvtyuX5Qw2h0%2Fotp-5.png?alt=media&amp;token=2ffe4145-8b34-4433-92d7-9849b9dd954d" alt=""><figcaption></figcaption></figure>

* Only after **successful OTP verification**, the credit note amount is adjusted against the bill.

In this example:

* ₹1,200 is adjusted using the credit note
* The remaining balance of ₹99 is paid by the customer

<figure><img src="https://4031188996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXMVkjt8zqHBQX1c9QvFS%2Fuploads%2Fh16SMwhkhqjaNTp43yBt%2FOTP%20Validation%20and%20Settlement-6.png?alt=media&amp;token=ee7545e2-f2a0-493e-9472-0ad21c8464ec" alt=""><figcaption></figcaption></figure>

***

### Summary

* OTP-based verification ensures **secure credit note redemption**
* Prevents unauthorized use of credit notes
* Seamlessly integrates with **Sales Return and Billing**
* Enhances customer trust and transaction security


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://kb.logicerp.com/logic-erp-learning-hub-tutorials-and-best-practices/billing/sale-bill/credit-note-redemption-using-otp-in-sale-bill.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
