razorpay.api.* operation is listed below with parameter shapes and return types from the plugin Zod schemas.
New to Corsair? See API access, authentication, and error handling.
Customers
create
customers.create
Create a Razorpay customer
Risk: write
| Name | Type | Required | Description |
|---|---|---|---|
name | string | Yes | — |
email | string | No | — |
contact | string | No | — |
gstin | string | No | — |
notes | object[] | No | — |
fail_existing | 0 | 1 | No | — |
notes full type
notes full type
| Name | Type | Required | Description |
|---|---|---|---|
id | string | Yes | — |
entity | customer | Yes | — |
name | string | No | — |
email | string | No | — |
contact | string | No | — |
gstin | string | No | — |
notes | object[] | No | — |
created_at | number | No | — |
notes full type
notes full type
get
customers.get
Fetch a Razorpay customer by ID
Risk: read
| Name | Type | Required | Description |
|---|---|---|---|
id | string | Yes | — |
| Name | Type | Required | Description |
|---|---|---|---|
id | string | Yes | — |
entity | customer | Yes | — |
name | string | No | — |
email | string | No | — |
contact | string | No | — |
gstin | string | No | — |
notes | object[] | No | — |
created_at | number | No | — |
notes full type
notes full type
list
customers.list
List Razorpay customers
Risk: read
| Name | Type | Required | Description |
|---|---|---|---|
count | number | No | — |
skip | number | No | — |
| Name | Type | Required | Description |
|---|---|---|---|
entity | collection | No | — |
count | number | Yes | — |
items | object[] | Yes | — |
items full type
items full type
update
customers.update
Update a Razorpay customer
Risk: write
| Name | Type | Required | Description |
|---|---|---|---|
id | string | Yes | — |
name | string | No | — |
email | string | No | — |
contact | string | No | — |
gstin | string | No | — |
notes | object[] | No | — |
notes full type
notes full type
| Name | Type | Required | Description |
|---|---|---|---|
id | string | Yes | — |
entity | customer | Yes | — |
name | string | No | — |
email | string | No | — |
contact | string | No | — |
gstin | string | No | — |
notes | object[] | No | — |
created_at | number | No | — |
notes full type
notes full type
Orders
create
orders.create
Create a Razorpay order
Risk: write
| Name | Type | Required | Description |
|---|---|---|---|
amount | number | Yes | — |
currency | string | Yes | — |
receipt | string | No | — |
notes | object[] | No | — |
notes full type
notes full type
| Name | Type | Required | Description |
|---|---|---|---|
id | string | Yes | — |
entity | order | Yes | — |
amount | number | Yes | — |
amount_paid | number | No | — |
amount_due | number | No | — |
currency | string | Yes | — |
receipt | string | No | — |
offer_id | string | No | — |
status | string | Yes | — |
attempts | number | No | — |
notes | object[] | No | — |
created_at | number | No | — |
notes full type
notes full type
get
orders.get
Fetch a Razorpay order by ID
Risk: read
| Name | Type | Required | Description |
|---|---|---|---|
id | string | Yes | — |
| Name | Type | Required | Description |
|---|---|---|---|
id | string | Yes | — |
entity | order | Yes | — |
amount | number | Yes | — |
amount_paid | number | No | — |
amount_due | number | No | — |
currency | string | Yes | — |
receipt | string | No | — |
offer_id | string | No | — |
status | string | Yes | — |
attempts | number | No | — |
notes | object[] | No | — |
created_at | number | No | — |
notes full type
notes full type
list
orders.list
List Razorpay orders
Risk: read
| Name | Type | Required | Description |
|---|---|---|---|
from | number | No | — |
to | number | No | — |
count | number | No | — |
skip | number | No | — |
authorized | 0 | 1 | No | — |
receipt | string | No | — |
| Name | Type | Required | Description |
|---|---|---|---|
entity | collection | No | — |
count | number | Yes | — |
items | object[] | Yes | — |
items full type
items full type
Payments
capture
payments.capture
Capture an authorized Razorpay payment
Risk: write
| Name | Type | Required | Description |
|---|---|---|---|
id | string | Yes | — |
amount | number | Yes | — |
currency | string | Yes | — |
| Name | Type | Required | Description |
|---|---|---|---|
id | string | Yes | — |
entity | payment | Yes | — |
amount | number | Yes | — |
currency | string | Yes | — |
status | string | Yes | — |
order_id | string | No | — |
invoice_id | string | No | — |
method | string | No | — |
captured | boolean | No | — |
description | string | No | — |
email | string | No | — |
contact | string | No | — |
notes | object[] | No | — |
created_at | number | No | — |
notes full type
notes full type
get
payments.get
Fetch a Razorpay payment by ID
Risk: read
| Name | Type | Required | Description |
|---|---|---|---|
id | string | Yes | — |
| Name | Type | Required | Description |
|---|---|---|---|
id | string | Yes | — |
entity | payment | Yes | — |
amount | number | Yes | — |
currency | string | Yes | — |
status | string | Yes | — |
order_id | string | No | — |
invoice_id | string | No | — |
method | string | No | — |
captured | boolean | No | — |
description | string | No | — |
email | string | No | — |
contact | string | No | — |
notes | object[] | No | — |
created_at | number | No | — |
notes full type
notes full type
list
payments.list
List Razorpay payments
Risk: read
| Name | Type | Required | Description |
|---|---|---|---|
from | number | No | — |
to | number | No | — |
count | number | No | — |
skip | number | No | — |
| Name | Type | Required | Description |
|---|---|---|---|
entity | collection | No | — |
count | number | Yes | — |
items | object[] | Yes | — |
items full type
items full type
Refunds
create
refunds.create
Create a refund for a Razorpay payment
Risk: write
| Name | Type | Required | Description |
|---|---|---|---|
paymentId | string | Yes | — |
amount | number | No | — |
speed | normal | optimum | No | — |
receipt | string | No | — |
notes | object[] | No | — |
notes full type
notes full type
| Name | Type | Required | Description |
|---|---|---|---|
id | string | Yes | — |
entity | refund | Yes | — |
payment_id | string | Yes | — |
amount | number | Yes | — |
currency | string | No | — |
notes | object[] | No | — |
receipt | string | No | — |
speed_processed | string | No | — |
speed_requested | string | No | — |
status | string | Yes | — |
created_at | number | No | — |
notes full type
notes full type
get
refunds.get
Fetch a specific refund for a Razorpay payment
Risk: read
| Name | Type | Required | Description |
|---|---|---|---|
paymentId | string | Yes | — |
refundId | string | Yes | — |
| Name | Type | Required | Description |
|---|---|---|---|
id | string | Yes | — |
entity | refund | Yes | — |
payment_id | string | Yes | — |
amount | number | Yes | — |
currency | string | No | — |
notes | object[] | No | — |
receipt | string | No | — |
speed_processed | string | No | — |
speed_requested | string | No | — |
status | string | Yes | — |
created_at | number | No | — |
notes full type
notes full type
list
refunds.list
List refunds for a Razorpay payment
Risk: read
| Name | Type | Required | Description |
|---|---|---|---|
paymentId | string | Yes | — |
from | number | No | — |
to | number | No | — |
count | number | No | — |
skip | number | No | — |
| Name | Type | Required | Description |
|---|---|---|---|
entity | collection | No | — |
count | number | Yes | — |
items | object[] | Yes | — |
items full type
items full type
Settlements
get
settlements.get
Fetch a Razorpay settlement by ID
Risk: read
| Name | Type | Required | Description |
|---|---|---|---|
id | string | Yes | — |
| Name | Type | Required | Description |
|---|---|---|---|
id | string | Yes | — |
entity | settlement | Yes | — |
amount | number | No | — |
status | created | processed | failed | Yes | — |
fees | number | No | — |
tax | number | No | — |
utr | string | No | — |
created_at | number | No | — |
list
settlements.list
List Razorpay settlements
Risk: read
| Name | Type | Required | Description |
|---|---|---|---|
from | number | No | — |
to | number | No | — |
count | number | No | — |
skip | number | No | — |
| Name | Type | Required | Description |
|---|---|---|---|
id | string | Yes | — |
entity | settlement | Yes | — |
amount | number | No | — |
status | created | processed | failed | Yes | — |
fees | number | No | — |
tax | number | No | — |
utr | string | No | — |
created_at | number | No | — |
Subscriptions
cancel
subscriptions.cancel
Cancel a Razorpay subscription [DESTRUCTIVE]
Risk: destructive · Irreversible
| Name | Type | Required | Description |
|---|---|---|---|
id | string | Yes | — |
cancel_at_cycle_end | boolean | No | — |
| Name | Type | Required | Description |
|---|---|---|---|
id | string | Yes | — |
entity | subscription | Yes | — |
plan_id | string | Yes | — |
customer_id | string | No | — |
status | string | Yes | — |
current_start | number | No | — |
current_end | number | No | — |
ended_at | number | No | — |
charge_at | number | No | — |
offer_id | string | No | — |
start_at | number | No | — |
end_at | number | No | — |
auth_attempts | number | No | — |
quantity | number | No | — |
total_count | number | No | — |
paid_count | number | No | — |
remaining_count | number | No | — |
customer_notify | boolean | No | — |
expire_by | number | No | — |
short_url | string | No | — |
has_scheduled_changes | boolean | No | — |
change_scheduled_at | number | No | — |
source | string | No | — |
notes | object[] | No | — |
created_at | number | No | — |
notes full type
notes full type
create
subscriptions.create
Create a Razorpay subscription
Risk: write
| Name | Type | Required | Description |
|---|---|---|---|
plan_id | string | Yes | — |
total_count | number | Yes | — |
quantity | number | No | — |
start_at | number | No | — |
expire_by | number | No | — |
customer_notify | 0 | 1 | No | — |
notes | object[] | No | — |
offer_id | string | No | — |
customer_id | string | No | — |
notes full type
notes full type
| Name | Type | Required | Description |
|---|---|---|---|
id | string | Yes | — |
entity | subscription | Yes | — |
plan_id | string | Yes | — |
customer_id | string | No | — |
status | string | Yes | — |
current_start | number | No | — |
current_end | number | No | — |
ended_at | number | No | — |
charge_at | number | No | — |
offer_id | string | No | — |
start_at | number | No | — |
end_at | number | No | — |
auth_attempts | number | No | — |
quantity | number | No | — |
total_count | number | No | — |
paid_count | number | No | — |
remaining_count | number | No | — |
customer_notify | boolean | No | — |
expire_by | number | No | — |
short_url | string | No | — |
has_scheduled_changes | boolean | No | — |
change_scheduled_at | number | No | — |
source | string | No | — |
notes | object[] | No | — |
created_at | number | No | — |
notes full type
notes full type
get
subscriptions.get
Fetch a Razorpay subscription by ID
Risk: read
| Name | Type | Required | Description |
|---|---|---|---|
id | string | Yes | — |
| Name | Type | Required | Description |
|---|---|---|---|
id | string | Yes | — |
entity | subscription | Yes | — |
plan_id | string | Yes | — |
customer_id | string | No | — |
status | string | Yes | — |
current_start | number | No | — |
current_end | number | No | — |
ended_at | number | No | — |
charge_at | number | No | — |
offer_id | string | No | — |
start_at | number | No | — |
end_at | number | No | — |
auth_attempts | number | No | — |
quantity | number | No | — |
total_count | number | No | — |
paid_count | number | No | — |
remaining_count | number | No | — |
customer_notify | boolean | No | — |
expire_by | number | No | — |
short_url | string | No | — |
has_scheduled_changes | boolean | No | — |
change_scheduled_at | number | No | — |
source | string | No | — |
notes | object[] | No | — |
created_at | number | No | — |
notes full type
notes full type
list
subscriptions.list
List Razorpay subscriptions
Risk: read
| Name | Type | Required | Description |
|---|---|---|---|
from | number | No | — |
to | number | No | — |
count | number | No | — |
skip | number | No | — |
plan_id | string | No | — |
| Name | Type | Required | Description |
|---|---|---|---|
entity | collection | No | — |
count | number | Yes | — |
items | object[] | Yes | — |
items full type
items full type
pause
subscriptions.pause
Pause a Razorpay subscription
Risk: write
| Name | Type | Required | Description |
|---|---|---|---|
id | string | Yes | — |
pause_initiated_by | customer | bank | No | — |
| Name | Type | Required | Description |
|---|---|---|---|
id | string | Yes | — |
entity | subscription | Yes | — |
plan_id | string | Yes | — |
customer_id | string | No | — |
status | string | Yes | — |
current_start | number | No | — |
current_end | number | No | — |
ended_at | number | No | — |
charge_at | number | No | — |
offer_id | string | No | — |
start_at | number | No | — |
end_at | number | No | — |
auth_attempts | number | No | — |
quantity | number | No | — |
total_count | number | No | — |
paid_count | number | No | — |
remaining_count | number | No | — |
customer_notify | boolean | No | — |
expire_by | number | No | — |
short_url | string | No | — |
has_scheduled_changes | boolean | No | — |
change_scheduled_at | number | No | — |
source | string | No | — |
notes | object[] | No | — |
created_at | number | No | — |
notes full type
notes full type
resume
subscriptions.resume
Resume a paused Razorpay subscription
Risk: write
| Name | Type | Required | Description |
|---|---|---|---|
id | string | Yes | — |
resume_at | now | No | — |
| Name | Type | Required | Description |
|---|---|---|---|
id | string | Yes | — |
entity | subscription | Yes | — |
plan_id | string | Yes | — |
customer_id | string | No | — |
status | string | Yes | — |
current_start | number | No | — |
current_end | number | No | — |
ended_at | number | No | — |
charge_at | number | No | — |
offer_id | string | No | — |
start_at | number | No | — |
end_at | number | No | — |
auth_attempts | number | No | — |
quantity | number | No | — |
total_count | number | No | — |
paid_count | number | No | — |
remaining_count | number | No | — |
customer_notify | boolean | No | — |
expire_by | number | No | — |
short_url | string | No | — |
has_scheduled_changes | boolean | No | — |
change_scheduled_at | number | No | — |
source | string | No | — |
notes | object[] | No | — |
created_at | number | No | — |
notes full type
notes full type
update
subscriptions.update
Update a Razorpay subscription
Risk: write
| Name | Type | Required | Description |
|---|---|---|---|
id | string | Yes | — |
plan_id | string | No | — |
quantity | number | No | — |
remaining_count | number | No | — |
offer_id | string | No | — |
schedule_change_at | now | cycle_end | No | — |
customer_notify | 0 | 1 | No | — |
| Name | Type | Required | Description |
|---|---|---|---|
id | string | Yes | — |
entity | subscription | Yes | — |
plan_id | string | Yes | — |
customer_id | string | No | — |
status | string | Yes | — |
current_start | number | No | — |
current_end | number | No | — |
ended_at | number | No | — |
charge_at | number | No | — |
offer_id | string | No | — |
start_at | number | No | — |
end_at | number | No | — |
auth_attempts | number | No | — |
quantity | number | No | — |
total_count | number | No | — |
paid_count | number | No | — |
remaining_count | number | No | — |
customer_notify | boolean | No | — |
expire_by | number | No | — |
short_url | string | No | — |
has_scheduled_changes | boolean | No | — |
change_scheduled_at | number | No | — |
source | string | No | — |
notes | object[] | No | — |
created_at | number | No | — |
notes full type
notes full type