# Deposit Using UPI

<div class="w-full pt-2 md:pt-0 dark:border-white/20 md:border-transparent md:dark:border-transparent md:w-[calc(100%-.5rem)]" id="bkmrk-4.1-flow-this-is-an-"><div class="w-full pt-2 md:pt-0 dark:border-white/20 md:border-transparent md:dark:border-transparent md:w-[calc(100%-.5rem)]"><form class="stretch mx-2 flex flex-row gap-3 last:mb-2 md:mx-4 md:last:mb-6 lg:mx-auto lg:max-w-2xl xl:max-w-3xl"><p class="callout warning">This method applies ONLY to INR currency.</p>

<div class=""><div class="">- Initiate a UPI deposit transaction using the <span style="color: #3598db;">[/Transaction/UpiDeposit](https://books.xprizo.com/link/22#bkmrk-create-a-deposit-req)</span> endpoint.
- Redirect your end user to the URL specified in the response you receive.
- The end user will need to authorize the transaction.
- When the process is completed, the end user will be redirected to the URL you specified when you called the <span style="color: #3598db;">[/Transaction/UpiDeposit](https://books.xprizo.com/link/22#bkmrk-create-a-deposit-req)</span> endpoint.

</div></div>- Wait for callback.
- Check transaction status.

</form><form class="stretch mx-2 flex flex-row gap-3 last:mb-2 md:mx-4 md:last:mb-6 lg:mx-auto lg:max-w-2xl xl:max-w-3xl">Once you have called the <span style="color: #3598db;">[/Transaction/UpiDeposit](https://books.xprizo.com/link/22#bkmrk-create-a-deposit-req) </span>endpoint, a pending transaction is generated in the Xprizo system and sends a request to our acquirer network to provide a URL for the UPI payment. You will need to redirect the end-user to this URL, and the user will need to authorize the transaction.

- If authorization is received, the transaction will be marked as completed.
- If the transaction is canceled, it will be marked as rejected.

You can query the status of the transaction at any point by calling the <span style="color: #3598db;">[/Transaction/CheckStatus](https://books.xprizo.com/books/xprizo-manuals-api-manual/page/transaction-endpoints-apitransaction#bkmrk-transaction-status-c)</span> endpoint.

You can also receive transaction status updates via callbacks. To enable callbacks, you will need to configure this on the profile used to create the transaction. To do this:

- Log in at [wallet.xprizo.com.](https://wallet.xprizo.com)
- Click on your profile icon at the top right, then 'Settings'.
- Click on 'Preference' on the left menu.
- Set 'Approval Webhook' to a URL of your choice where you will receive the callbacks.

Alternatively, you can use the [/Preference/SetApprovalWebhook](https://books.xprizo.com/link/31#bkmrk-update-approval-webh) endpoint to achieve the same thing.

A callback will be sent when:

- The pending transaction is created.
- The pending transaction is approved.
- The pending transaction is cancelled.

It is not strictly necessary to use callbacks. You can instead check the status of the transaction periodically. However, this is not recommended, as it would require you to poll the server continuously to check the status.

<p class="callout warning">When using callbacks, it is still advisable to make a final status check to ensure that the transaction was completed successfully. You can use the [/Transaction/Status](https://books.xprizo.com/link/22#bkmrk-transaction-status-c) endpoint to check the status of the transaction.</p>

</form><form class="stretch mx-2 flex flex-row gap-3 last:mb-2 md:mx-4 md:last:mb-6 lg:mx-auto lg:max-w-2xl xl:max-w-3xl"></form></div></div>