Need help with your APIs? I offer API discovery, governance & evangelism services. Explore services →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

Razorpay Orders API

The Orders API from Razorpay — 3 operation(s) for orders.

Razorpay Orders API is one of 6 APIs that Razorpay publishes on the APIs.io network, described by a machine-readable OpenAPI specification.

Tagged areas include Orders. The published artifact set on APIs.io includes an OpenAPI specification.

This API exposes 5 operations across 3 paths, and defines 5 schemas. It is described by OpenAPI 3.1.0, at version 1.0.0.

Requests are made against a single base URL, https://api.razorpay.com/v1.

5 operations 3 paths 5 schemas 3 GET1 PATCH1 POST

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.1.0
API Version
1.0.0
Base URL
https://api.razorpay.com/v1
Authentication
HTTP Basic
Contact
Resource Areas
1

Authentication & Security 1

Razorpay Orders API declares 1 security scheme for authenticating requests. It accepts HTTP basic authentication (basicAuth). By default, every request must be authenticated.

  • basicAuth — HTTP Basic auth — username is Razorpay keyid, password is keysecret.

Paths & Operations 5

Across 3 paths, the API surfaces 5 operations — 3 GET, 1 PATCH, 1 POST. Each is listed below with its method, path, parameters, and response codes.

Orders 5
POST
/orders
Create an order
createOrder body → 200
GET
/orders
List orders
listOrders 7 params → 200
GET
/orders/{id}
Get an order
getOrder 1 param → 200
PATCH
/orders/{id}
Update an order
updateOrder 1 param body → 200
GET
/orders/{id}/payments
Get payments for an order
getOrderPayments 1 param → 200

Schemas 5

The contract defines 5 schemas that model the data the API accepts and returns. The most detailed are Payment (20 properties), Order (11 properties), OrderRequest (6 properties), OrderList (3 properties). Each schema is shown below with its type and property counts.

OrderRequest
object
6 properties 2 required
PaymentList
object
3 properties
Order
object
11 properties
OrderList
object
3 properties
Payment
object
20 properties

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

razorpay-orders-api-openapi.yml Raw ↑

Other APIs Razorpay publishes across the network.

Razorpay Core REST API
Razorpay Payments API
Razorpay Webhooks
Razorpay Payments API
Razorpay Refunds API