﻿<head><script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-4357510538660394"
     crossorigin="anonymous"></script></head>> ## Documentation Index
> Fetch the complete documentation index at: https://razorpay.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# API Reference Guide

> Get started with Razorpay APIs and test them on Postman. Generate API Keys in Test and Live Modes.

Available in
🇮🇳 India
🇲🇾 Malaysia
🇸🇬 Singapore
🇺🇸 United States

Razorpay APIs are completely RESTful, and all our responses are returned in JSON.

> [!NOTE]
>
> **Integrations**
>
> * Looking to integrate your website, ecommerce store or mobile app with Razorpay Payment Gateway? Find the [right integration method](https://razorpay.com/docs/payments/payment-gateway#integrate-payment-gateway-web-mobile-ecommerce-plugins).
> * Accept payments [**without** a website or app](https://razorpay.com/docs/payments.md#accept-payments) using other Razorpay products, such as Payment Links, Payment Pages, Subscription Links, Invoices and Smart Collect.
> * For S2S integration, contact the [Support team](https://razorpay.com/support/#request) with your requirements.

[Razorpay Postman Public Workspace](https://www.youtube.com/embed/0k5NpkMgUWQ?si=qZcBE8alhTN7b4_-)

[Razorpay Postman Public Workspace](https://www.postman.com/razorpaydev/workspace/razorpay-public-workspace/collection/12492020-952c7295-118c-400f-8f2c-5266ef6f689a)

Our APIs are present on the Razorpay [Postman Public Workspace](https://www.postman.com/razorpaydev/workspace/razorpay-public-workspace/collection/12492020-952c7295-118c-400f-8f2c-5266ef6f689a). Watch the video to know how to fork APIs and save them to your private workspace for testing.

[Try Razorpay APIs on Postman](https://www.youtube.com/embed/TExjOlOCxTw?si=cS9MlY6_cm4tPGWq)

Try Razorpay APIs on Postman

Test Razorpay APIs using Postman. Watch the video to know how to get started.

All Razorpay APIs are authenticated using Basic Authentication. You must [generate test API keys](https://razorpay.com/docs/api/authentication.md) on the Dashboard before trying the APIs.

## API Gateway URL

For most of the Razorpay APIs, the Gateway URL is `https://api.razorpay.com/v1`. You need to include this before each API endpoint to make API calls. However, certain APIs are on V2. Hence, the gateway URL may differ for certain APIs.

> [accordion] Example
>
> * Use the URL `https://api.razorpay.com/v1/payments` to access payment resources.
>
> * Use the URL `https://api.razorpay.com/v2/accounts` to access Route (Linked Account)-related resources.

### Related Information

* [Understand Razorpay APIs](https://razorpay.com/docs/api/understand.md)
* [API Authentication](https://razorpay.com/docs/api/authentication.md)
* [Sandbox Setup](https://razorpay.com/docs/api/sandbox-setup.md)
* [Errors](https://razorpay.com/docs/errors)
* [API Best Practices](https://razorpay.com/docs/api/best-practices.md)
* [API Glossary](https://razorpay.com/docs/api/glossary.md)
