> ## Documentation Index
> Fetch the complete documentation index at: https://docs.antei.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Setup

> Step-by-step guide to connecting your Razorpay account to Antei securely and reliably.

<Icon icon="sign-post" size={22} color="#4B5563" />

# Razorpay – Integration Setup

This guide outlines how to connect your Razorpay account to Antei. The integration enables real-time sync of payment activity and supports tax-compliant invoice generation and jurisdiction-specific payment links.

***

<Icon icon="lock" size={22} color="#4B5563" />

## Authentication Method

Antei connects to Razorpay using a **custom key-based integration** with scoped API access.

* **Type:** API Key (Key ID & Secret)
* **Permissions Required:**
  * Read access to invoices, customers, payments, and refunds
  * Write access to create payment links and issue invoices
* **Token Management:** Keys are stored encrypted and isolated per workspace
* **Security:** All API calls are signed and audited. You can revoke API access from your Razorpay dashboard.

> 🔐 Antei is SOC 2 compliant. API activity is logged in your organization’s audit trail.

***

<Icon icon="link" size={22} color="#4B5563" />

## Step-by-Step Setup

### 1. Navigate to Integrations → Razorpay

From the Antei dashboard, go to **Integrations** and click **Connect Razorpay**.

![Connect Razorpay Button](https://via.placeholder.com/800x200?text=Connect+Razorpay+Button)

***

### 2. Enter API Key & Secret

Paste your Razorpay **Key ID** and **Key Secret**. These can be found under **Settings → API Keys** in your Razorpay dashboard.

![Razorpay API Key Screen](https://via.placeholder.com/800x400?text=Razorpay+API+Key+Entry)

***

### 3. Configure Sync Settings

After connecting, choose:

* **Jurisdiction assignment** — map the Razorpay account to a country
* **Data window** — choose how far back to sync invoices and payments
* **Webhook Setup** — Antei automatically registers a webhook for real-time updates

![Razorpay Sync Settings](https://via.placeholder.com/800x300?text=Razorpay+Sync+Settings)

> ✅ Antei only pulls and sends data needed for tax workflows. Sensitive billing data and payment method tokens are never accessed.

***

## Verification & Testing

Once configured, Antei will run a full validation and sync test:

* **Invoice fetch test**
* **Customer and payment mapping preview**
* **Webhook event test** for real-time payment capture

You can monitor connection health and sync logs under **Settings → Integrations → Razorpay**.

***

## FAQs

<Icon icon="help-circle" size={18} color="#4B5563" />

**Where do I find my API credentials in Razorpay?**\
Navigate to Razorpay → Settings → API Keys. You must have admin permissions to view or regenerate them.

**Does Antei store payment methods or card tokens?**\
No. We only access summary payment data (amounts, timestamps, refund status) — not full card or UPI info.

**Can I disable outbound actions?**\
Yes — you can turn off invoice generation and payment link creation from the Razorpay integration settings.

**How often is data synced?**\
Every 1 hour, with real-time updates captured via webhook events.

***

## Need Help?

For setup assistance, contact [tech@antei.com](mailto:tech@antei.com).\
→ Visit the [Razorpay Integration Scope](/integrations/Razorpay/RazorpayData) page for detailed sync and action information.
