Razorpay

Usage Instructions

Use Razorpay to send Payment Links that customers pay by UPI, card, netbanking, or wallet, with SMS and email notifications and reminders, then check, cancel, or list them. Create orders for Checkout, fetch and capture payments, issue full or partial refunds, create customers, and generate UPI QR codes. Enter amounts in rupees (the major unit); they are converted to paise for Razorpay. The Razorpay webhook trigger runs workflows when a link is paid or expires, a payment is captured or fails, an order is paid, or a refund is processed.

Actions

Cancel an unpaid Razorpay Payment Link so the customer can no longer pay it. Paid, partially paid, and expired links cannot be cancelled.

Input

ParameterTypeRequiredDescription
keyIdstringYesRazorpay Key ID (Dashboard → Account & Settings → API Keys), e.g. rzp_test_...
keySecretstringYesRazorpay Key Secret shown once when the key is generated
paymentLinkIdstringYesPayment Link ID to cancel, e.g. plink_ExjpAUN3gVHrPJ

Output

ParameterTypeDescription
idstringPayment Link ID (plink_...)
shortUrlstringShort URL to send to the customer
statusstringcreated, partially_paid, paid, expired, or cancelled
amountnumberAmount in the major unit (rupees for INR)
amountPaisenumberAmount in the smallest unit (paise for INR)
amountPaidnumberAmount paid so far in the major unit
amountPaidPaisenumberAmount paid so far in the smallest unit
currencystringCurrency code, e.g. INR
descriptionstringDescription shown to the customer
referenceIdstringYour reference ID for the link
customerNamestringCustomer name
customerEmailstringCustomer email
customerContactstringCustomer phone number
notifySmsbooleanWhether Razorpay sends the link by SMS
notifyEmailbooleanWhether Razorpay sends the link by email
reminderEnablebooleanWhether Razorpay sends payment reminders
acceptPartialbooleanWhether partial payments are allowed
upiLinkbooleanWhether this is a UPI Payment Link
callbackUrlstringWhere the customer is redirected after paying
orderIdstringOrder ID created for the link
expireBynumberWhen the link expires (Unix seconds, 0 if not set)
expiredAtnumberWhen the link expired (Unix seconds, 0 if not expired)
cancelledAtnumberWhen the link was cancelled (Unix seconds, 0 if not cancelled)
createdAtnumberWhen it was created (Unix seconds)
updatedAtnumberWhen it was last updated (Unix seconds)
notesjsonKey-value notes stored on the entity
paymentsarrayCaptured payments against the link
↳ paymentIdstringPayment ID (pay_...)
↳ amountnumberAmount in the major unit
↳ amountPaisenumberAmount in the smallest unit
↳ methodstringPayment method, e.g. upi or card
↳ statusstringPayment status
↳ createdAtnumberWhen it was created (Unix seconds)

Razorpay Capture Payment

Capture an authorized Razorpay Payment so the money is settled to you. Only payments in the authorized state can be captured, and the amount must equal the authorized amount. Give the amount in the major currency unit (rupees for INR, e.g. 499.50); it is converted to the smallest unit (paise) that Razorpay expects.

Input

ParameterTypeRequiredDescription
keyIdstringYesRazorpay Key ID (Dashboard → Account & Settings → API Keys), e.g. rzp_test_...
keySecretstringYesRazorpay Key Secret shown once when the key is generated
paymentIdstringYesAuthorized payment ID, e.g. pay_G8VQzjPLoAvm6D
amountnumberYesAuthorized amount in the major unit, e.g. 499.50. Give the amount in the major currency unit (rupees for INR, e.g. 499.50); it is converted to the smallest unit (paise) that Razorpay expects.
currencystringNoCurrency of the payment. Defaults to INR

Output

ParameterTypeDescription
idstringPayment ID (pay_...)
statusstringcreated, authorized, captured, refunded, or failed
amountnumberAmount in the major unit (rupees for INR)
amountPaisenumberAmount in the smallest unit (paise for INR)
currencystringCurrency code, e.g. INR
methodstringcard, netbanking, wallet, emi, upi, or paylater
orderIdstringOrder ID the payment belongs to
invoiceIdstringInvoice ID, if any
customerIdstringCustomer ID, if any
descriptionstringPayment description
capturedbooleanWhether the payment is captured
internationalbooleanWhether the payment used an international card
amountRefundednumberAmount refunded in the major unit
amountRefundedPaisenumberAmount refunded in the smallest unit
refundStatusstringnull, partial, or full
emailstringCustomer email
contactstringCustomer phone number
bankstringBank code for netbanking payments
walletstringWallet name for wallet payments
vpastringCustomer UPI ID for UPI payments
feenumberRazorpay fee including GST, in the major unit
feePaisenumberRazorpay fee including GST, in the smallest unit
taxnumberGST on the fee, in the major unit
taxPaisenumberGST on the fee, in the smallest unit
errorCodestringError code for failed payments
errorDescriptionstringError description for failed payments
errorReasonstringError reason for failed payments
createdAtnumberWhen it was created (Unix seconds)
notesjsonKey-value notes stored on the entity

Razorpay Create Customer

Create a Razorpay Customer with name, email, and phone number. Turn off failExisting to get the existing customer back instead of an error when one with the same details exists.

Input

ParameterTypeRequiredDescription
keyIdstringYesRazorpay Key ID (Dashboard → Account & Settings → API Keys), e.g. rzp_test_...
keySecretstringYesRazorpay Key Secret shown once when the key is generated
namestringNoCustomer name, 3 to 50 characters
emailstringNoCustomer email (max 64 characters)
contactstringNoCustomer phone number with country code, e.g. +919876543210 (max 15 characters)
failExistingbooleanNotrue (default) fails when the customer already exists; false returns the existing customer
gstinstringNoCustomer GST number, e.g. 29XAbbA4369J1PA
notesjsonNoUp to 15 key-value notes, e.g. {"lead_id": "L-1042"}

Output

ParameterTypeDescription
idstringCustomer ID (cust_...)
namestringCustomer name
emailstringCustomer email
contactstringCustomer phone number
gstinstringCustomer GSTIN
createdAtnumberWhen it was created (Unix seconds)
notesjsonKey-value notes stored on the entity

Razorpay Create Order

Create a Razorpay Order to pass to Razorpay Checkout. Create a new order for every payment attempt. Give the amount in the major currency unit (rupees for INR, e.g. 499.50); it is converted to the smallest unit (paise) that Razorpay expects.

Input

ParameterTypeRequiredDescription
keyIdstringYesRazorpay Key ID (Dashboard → Account & Settings → API Keys), e.g. rzp_test_...
keySecretstringYesRazorpay Key Secret shown once when the key is generated
amountnumberYesOrder amount in the major unit, e.g. 499.50 for ₹499.50; at least ₹1. Give the amount in the major currency unit (rupees for INR, e.g. 499.50); it is converted to the smallest unit (paise) that Razorpay expects.
currencystringNo3-letter currency code. Defaults to INR
receiptstringNoYour unique receipt number (max 40 characters). A repeated receipt is rejected as a duplicate
notesjsonNoUp to 15 key-value notes, e.g. {"lead_id": "L-1042"}

Output

ParameterTypeDescription
idstringOrder ID (order_...)
statusstringcreated, attempted, or paid
amountnumberAmount in the major unit (rupees for INR)
amountPaisenumberAmount in the smallest unit (paise for INR)
amountPaidnumberAmount paid in the major unit
amountPaidPaisenumberAmount paid in the smallest unit
amountDuenumberAmount still due in the major unit
amountDuePaisenumberAmount still due in the smallest unit
currencystringCurrency code, e.g. INR
receiptstringYour receipt number
attemptsnumberNumber of payment attempts
createdAtnumberWhen it was created (Unix seconds)
notesjsonKey-value notes stored on the entity

Create a Razorpay Payment Link and get a short URL the customer can pay by UPI, card, netbanking, or wallet. Razorpay can send it by SMS and email and remind the customer. Give the amount in the major currency unit (rupees for INR, e.g. 499.50); it is converted to the smallest unit (paise) that Razorpay expects.

Input

ParameterTypeRequiredDescription
keyIdstringYesRazorpay Key ID (Dashboard → Account & Settings → API Keys), e.g. rzp_test_...
keySecretstringYesRazorpay Key Secret shown once when the key is generated
amountnumberYesAmount to collect in the major unit, e.g. 499.50 for ₹499.50. Converted to paise; at least ₹1. Give the amount in the major currency unit (rupees for INR, e.g. 499.50); it is converted to the smallest unit (paise) that Razorpay expects.
currencystringNo3-letter currency code. Defaults to INR
descriptionstringNoWhat the payment is for, shown to the customer (max 2048 characters)
customerNamestringNoCustomer name
customerEmailstringNoCustomer email; needed to notify by email
customerContactstringNoCustomer phone number with country code, e.g. +919876543210; needed for SMS
notifySmsbooleanNoLet Razorpay send the link to the customer by SMS
notifyEmailbooleanNoLet Razorpay send the link to the customer by email
reminderEnablebooleanNoLet Razorpay send payment reminders until the link is paid
expireBystringNoWhen the link expires, as Unix seconds or an ISO 8601 date. At least 15 minutes and at most 6 months from now
callbackUrlstringNoURL the customer is redirected to after paying
referenceIdstringNoYour own unique reference, e.g. the lead or invoice ID (max 40 characters). A repeated reference ID is rejected
acceptPartialbooleanNoAllow the customer to pay in parts
firstMinPartialAmountnumberNoMinimum first partial payment in the major unit (e.g. 100 for ₹100). Needs acceptPartial
upiLinkbooleanNoCreate a UPI Payment Link (INR only, no partial payments). Not available with test keys
notesjsonNoUp to 15 key-value notes stored on the link and returned in webhooks, e.g. {"lead_id": "L-1042"}

Output

ParameterTypeDescription
idstringPayment Link ID (plink_...)
shortUrlstringShort URL to send to the customer
statusstringcreated, partially_paid, paid, expired, or cancelled
amountnumberAmount in the major unit (rupees for INR)
amountPaisenumberAmount in the smallest unit (paise for INR)
amountPaidnumberAmount paid so far in the major unit
amountPaidPaisenumberAmount paid so far in the smallest unit
currencystringCurrency code, e.g. INR
descriptionstringDescription shown to the customer
referenceIdstringYour reference ID for the link
customerNamestringCustomer name
customerEmailstringCustomer email
customerContactstringCustomer phone number
notifySmsbooleanWhether Razorpay sends the link by SMS
notifyEmailbooleanWhether Razorpay sends the link by email
reminderEnablebooleanWhether Razorpay sends payment reminders
acceptPartialbooleanWhether partial payments are allowed
upiLinkbooleanWhether this is a UPI Payment Link
callbackUrlstringWhere the customer is redirected after paying
orderIdstringOrder ID created for the link
expireBynumberWhen the link expires (Unix seconds, 0 if not set)
expiredAtnumberWhen the link expired (Unix seconds, 0 if not expired)
cancelledAtnumberWhen the link was cancelled (Unix seconds, 0 if not cancelled)
createdAtnumberWhen it was created (Unix seconds)
updatedAtnumberWhen it was last updated (Unix seconds)
notesjsonKey-value notes stored on the entity
paymentsarrayCaptured payments against the link
↳ paymentIdstringPayment ID (pay_...)
↳ amountnumberAmount in the major unit
↳ amountPaisenumberAmount in the smallest unit
↳ methodstringPayment method, e.g. upi or card
↳ statusstringPayment status
↳ createdAtnumberWhen it was created (Unix seconds)

Razorpay Create UPI QR Code

Create a Razorpay UPI QR code and get its image URL to show or send. Single-use codes collect one fixed amount; multiple-use codes can take many payments. Amounts are in rupees and converted to paise. QR Codes must be enabled on the Razorpay account.

Input

ParameterTypeRequiredDescription
keyIdstringYesRazorpay Key ID (Dashboard → Account & Settings → API Keys), e.g. rzp_test_...
keySecretstringYesRazorpay Key Secret shown once when the key is generated
usagestringYessingle_use (one payment, then closes) or multiple_use
namestringNoLabel for the QR code, e.g. Store Front Display
fixedAmountbooleanNoAccept only paymentAmount. Required (true) for single-use codes; defaults to true when paymentAmount is set
paymentAmountnumberNoFixed amount in rupees, e.g. 300 for ₹300; converted to paise. Required for fixed-amount codes
descriptionstringNoDescription of the QR code
customerIdstringNoRazorpay Customer ID to link, e.g. cust_HKsR5se84c5LTO
closeBystringNoSingle-use codes only: when the code closes, as Unix seconds or an ISO 8601 date, 2 minutes to 2 hours from now
notesjsonNoUp to 15 key-value notes, e.g. {"lead_id": "L-1042"}

Output

ParameterTypeDescription
idstringQR Code ID (qr_...)
imageUrlstringURL of the QR code image to show or send
statusstringactive or closed
namestringLabel of the QR code
usagestringsingle_use or multiple_use
typestringupi_qr
fixedAmountbooleanWhether the QR code accepts only a fixed amount
paymentAmountnumberFixed amount in rupees
paymentAmountPaisenumberFixed amount in paise
paymentsAmountReceivednumberTotal received in rupees
paymentsCountReceivednumberNumber of payments received
descriptionstringQR code description
customerIdstringCustomer ID, if linked
closeBynumberWhen the QR code closes (Unix seconds)
closedAtnumberWhen the QR code closed (Unix seconds)
closeReasonstringon_demand or paid
createdAtnumberWhen it was created (Unix seconds)
notesjsonKey-value notes stored on the entity

Razorpay Create Refund

Refund a captured Razorpay Payment, fully or in part. Leave the amount empty for a full refund. Normal refunds take 5-7 working days; optimum tries an instant refund first. Give the amount in the major currency unit (rupees for INR, e.g. 499.50); it is converted to the smallest unit (paise) that Razorpay expects.

Input

ParameterTypeRequiredDescription
keyIdstringYesRazorpay Key ID (Dashboard → Account & Settings → API Keys), e.g. rzp_test_...
keySecretstringYesRazorpay Key Secret shown once when the key is generated
paymentIdstringYesCaptured payment ID to refund, e.g. pay_29QQoUBi66xm2f
amountnumberNoAmount to refund in the major unit, e.g. 250 for ₹250. Leave empty for a full refund. Give the amount in the major currency unit (rupees for INR, e.g. 499.50); it is converted to the smallest unit (paise) that Razorpay expects.
currencystringNoCurrency of the payment, used only to convert the amount to the smallest unit. Defaults to INR
speedstringNonormal (default, 5-7 working days) or optimum (instant when possible)
receiptstringNoYour unique receipt number for the refund; a repeated receipt is rejected
notesjsonNoUp to 15 key-value notes, e.g. {"reason": "Duplicate order"}

Output

ParameterTypeDescription
idstringRefund ID (rfnd_...)
paymentIdstringPayment ID that was refunded
statusstringpending, processed, or failed
amountnumberRefund amount in the major unit (rupees for INR)
amountPaisenumberRefund amount in the smallest unit (paise for INR)
currencystringCurrency code, e.g. INR
receiptstringYour receipt number for the refund
speedRequestedstringnormal or optimum
speedProcessedstringinstant or normal
createdAtnumberWhen it was created (Unix seconds)
notesjsonKey-value notes stored on the entity

Razorpay Get Customer

Get a Razorpay Customer by ID with their name, email, phone number, and GSTIN.

Input

ParameterTypeRequiredDescription
keyIdstringYesRazorpay Key ID (Dashboard → Account & Settings → API Keys), e.g. rzp_test_...
keySecretstringYesRazorpay Key Secret shown once when the key is generated
customerIdstringYesCustomer ID, e.g. cust_1Aa00000000004

Output

ParameterTypeDescription
idstringCustomer ID (cust_...)
namestringCustomer name
emailstringCustomer email
contactstringCustomer phone number
gstinstringCustomer GSTIN
createdAtnumberWhen it was created (Unix seconds)
notesjsonKey-value notes stored on the entity

Razorpay Get Order

Get a Razorpay Order by ID with its status (created, attempted, paid), amount paid, and amount due.

Input

ParameterTypeRequiredDescription
keyIdstringYesRazorpay Key ID (Dashboard → Account & Settings → API Keys), e.g. rzp_test_...
keySecretstringYesRazorpay Key Secret shown once when the key is generated
orderIdstringYesOrder ID, e.g. order_DBJOWzybf0sJbb

Output

ParameterTypeDescription
idstringOrder ID (order_...)
statusstringcreated, attempted, or paid
amountnumberAmount in the major unit (rupees for INR)
amountPaisenumberAmount in the smallest unit (paise for INR)
amountPaidnumberAmount paid in the major unit
amountPaidPaisenumberAmount paid in the smallest unit
amountDuenumberAmount still due in the major unit
amountDuePaisenumberAmount still due in the smallest unit
currencystringCurrency code, e.g. INR
receiptstringYour receipt number
attemptsnumberNumber of payment attempts
createdAtnumberWhen it was created (Unix seconds)
notesjsonKey-value notes stored on the entity

Razorpay Get Payment

Get a Razorpay Payment by ID with its status (authorized, captured, refunded, failed), method, amount, refunds, fee, and failure reason. Card details are not returned.

Input

ParameterTypeRequiredDescription
keyIdstringYesRazorpay Key ID (Dashboard → Account & Settings → API Keys), e.g. rzp_test_...
keySecretstringYesRazorpay Key Secret shown once when the key is generated
paymentIdstringYesPayment ID, e.g. pay_DG4ZdRK8ZnXC3k

Output

ParameterTypeDescription
idstringPayment ID (pay_...)
statusstringcreated, authorized, captured, refunded, or failed
amountnumberAmount in the major unit (rupees for INR)
amountPaisenumberAmount in the smallest unit (paise for INR)
currencystringCurrency code, e.g. INR
methodstringcard, netbanking, wallet, emi, upi, or paylater
orderIdstringOrder ID the payment belongs to
invoiceIdstringInvoice ID, if any
customerIdstringCustomer ID, if any
descriptionstringPayment description
capturedbooleanWhether the payment is captured
internationalbooleanWhether the payment used an international card
amountRefundednumberAmount refunded in the major unit
amountRefundedPaisenumberAmount refunded in the smallest unit
refundStatusstringnull, partial, or full
emailstringCustomer email
contactstringCustomer phone number
bankstringBank code for netbanking payments
walletstringWallet name for wallet payments
vpastringCustomer UPI ID for UPI payments
feenumberRazorpay fee including GST, in the major unit
feePaisenumberRazorpay fee including GST, in the smallest unit
taxnumberGST on the fee, in the major unit
taxPaisenumberGST on the fee, in the smallest unit
errorCodestringError code for failed payments
errorDescriptionstringError description for failed payments
errorReasonstringError reason for failed payments
createdAtnumberWhen it was created (Unix seconds)
notesjsonKey-value notes stored on the entity

Get a Razorpay Payment Link by ID, with its status (created, partially_paid, paid, expired, cancelled), amount paid, and captured payments.

Input

ParameterTypeRequiredDescription
keyIdstringYesRazorpay Key ID (Dashboard → Account & Settings → API Keys), e.g. rzp_test_...
keySecretstringYesRazorpay Key Secret shown once when the key is generated
paymentLinkIdstringYesPayment Link ID, e.g. plink_ExjpAUN3gVHrPJ

Output

ParameterTypeDescription
idstringPayment Link ID (plink_...)
shortUrlstringShort URL to send to the customer
statusstringcreated, partially_paid, paid, expired, or cancelled
amountnumberAmount in the major unit (rupees for INR)
amountPaisenumberAmount in the smallest unit (paise for INR)
amountPaidnumberAmount paid so far in the major unit
amountPaidPaisenumberAmount paid so far in the smallest unit
currencystringCurrency code, e.g. INR
descriptionstringDescription shown to the customer
referenceIdstringYour reference ID for the link
customerNamestringCustomer name
customerEmailstringCustomer email
customerContactstringCustomer phone number
notifySmsbooleanWhether Razorpay sends the link by SMS
notifyEmailbooleanWhether Razorpay sends the link by email
reminderEnablebooleanWhether Razorpay sends payment reminders
acceptPartialbooleanWhether partial payments are allowed
upiLinkbooleanWhether this is a UPI Payment Link
callbackUrlstringWhere the customer is redirected after paying
orderIdstringOrder ID created for the link
expireBynumberWhen the link expires (Unix seconds, 0 if not set)
expiredAtnumberWhen the link expired (Unix seconds, 0 if not expired)
cancelledAtnumberWhen the link was cancelled (Unix seconds, 0 if not cancelled)
createdAtnumberWhen it was created (Unix seconds)
updatedAtnumberWhen it was last updated (Unix seconds)
notesjsonKey-value notes stored on the entity
paymentsarrayCaptured payments against the link
↳ paymentIdstringPayment ID (pay_...)
↳ amountnumberAmount in the major unit
↳ amountPaisenumberAmount in the smallest unit
↳ methodstringPayment method, e.g. upi or card
↳ statusstringPayment status
↳ createdAtnumberWhen it was created (Unix seconds)

Razorpay Get Refund

Get a Razorpay Refund by ID with its status (pending, processed, failed), amount, and whether it was processed instantly.

Input

ParameterTypeRequiredDescription
keyIdstringYesRazorpay Key ID (Dashboard → Account & Settings → API Keys), e.g. rzp_test_...
keySecretstringYesRazorpay Key Secret shown once when the key is generated
refundIdstringYesRefund ID, e.g. rfnd_FP8QHiV938haTz

Output

ParameterTypeDescription
idstringRefund ID (rfnd_...)
paymentIdstringPayment ID that was refunded
statusstringpending, processed, or failed
amountnumberRefund amount in the major unit (rupees for INR)
amountPaisenumberRefund amount in the smallest unit (paise for INR)
currencystringCurrency code, e.g. INR
receiptstringYour receipt number for the refund
speedRequestedstringnormal or optimum
speedProcessedstringinstant or normal
createdAtnumberWhen it was created (Unix seconds)
notesjsonKey-value notes stored on the entity

List Razorpay Payment Links, optionally only the link with a given reference ID or the link a payment was made on. Use the reference ID to find the link you created for a lead or invoice.

Input

ParameterTypeRequiredDescription
keyIdstringYesRazorpay Key ID (Dashboard → Account & Settings → API Keys), e.g. rzp_test_...
keySecretstringYesRazorpay Key Secret shown once when the key is generated
paymentIdstringNoOnly the link this payment was made on, e.g. pay_FHfAzEJ51k8NLj
referenceIdstringNoOnly the link with this reference ID

Output

ParameterTypeDescription
paymentLinksarrayPayment Links
↳ idstringPayment Link ID (plink_...)
↳ shortUrlstringShort URL to send to the customer
↳ statusstringcreated, partially_paid, paid, expired, or cancelled
↳ amountnumberAmount in the major unit (rupees for INR)
↳ amountPaisenumberAmount in the smallest unit (paise for INR)
↳ amountPaidnumberAmount paid so far in the major unit
↳ amountPaidPaisenumberAmount paid so far in the smallest unit
↳ currencystringCurrency code, e.g. INR
↳ descriptionstringDescription shown to the customer
↳ referenceIdstringYour reference ID for the link
↳ customerNamestringCustomer name
↳ customerEmailstringCustomer email
↳ customerContactstringCustomer phone number
↳ notifySmsbooleanWhether Razorpay sends the link by SMS
↳ notifyEmailbooleanWhether Razorpay sends the link by email
↳ reminderEnablebooleanWhether Razorpay sends payment reminders
↳ acceptPartialbooleanWhether partial payments are allowed
↳ upiLinkbooleanWhether this is a UPI Payment Link
↳ callbackUrlstringWhere the customer is redirected after paying
↳ orderIdstringOrder ID created for the link
↳ expireBynumberWhen the link expires (Unix seconds, 0 if not set)
↳ expiredAtnumberWhen the link expired (Unix seconds, 0 if not expired)
↳ cancelledAtnumberWhen the link was cancelled (Unix seconds, 0 if not cancelled)
↳ createdAtnumberWhen it was created (Unix seconds)
↳ updatedAtnumberWhen it was last updated (Unix seconds)
↳ notesjsonKey-value notes stored on the entity
↳ paymentsarrayCaptured payments against the link
↳ paymentIdstringPayment ID (pay_...)
↳ amountnumberAmount in the major unit
↳ amountPaisenumberAmount in the smallest unit
↳ methodstringPayment method, e.g. upi or card
↳ statusstringPayment status
↳ createdAtnumberWhen it was created (Unix seconds)
countnumberNumber of Payment Links returned

Razorpay List Payments

List Razorpay Payments, optionally between two times. Returns up to 100 per call; use skip to page.

Input

ParameterTypeRequiredDescription
keyIdstringYesRazorpay Key ID (Dashboard → Account & Settings → API Keys), e.g. rzp_test_...
keySecretstringYesRazorpay Key Secret shown once when the key is generated
fromstringNoOnly payments created at or after this time (Unix seconds or ISO 8601 date)
tostringNoOnly payments created at or before this time (Unix seconds or ISO 8601 date)
countnumberNoNumber of payments to return, 1 to 100. Defaults to 10
skipnumberNoNumber of payments to skip, for paging

Output

ParameterTypeDescription
paymentsarrayPayments
↳ idstringPayment ID (pay_...)
↳ statusstringcreated, authorized, captured, refunded, or failed
↳ amountnumberAmount in the major unit (rupees for INR)
↳ amountPaisenumberAmount in the smallest unit (paise for INR)
↳ currencystringCurrency code, e.g. INR
↳ methodstringcard, netbanking, wallet, emi, upi, or paylater
↳ orderIdstringOrder ID the payment belongs to
↳ invoiceIdstringInvoice ID, if any
↳ customerIdstringCustomer ID, if any
↳ descriptionstringPayment description
↳ capturedbooleanWhether the payment is captured
↳ internationalbooleanWhether the payment used an international card
↳ amountRefundednumberAmount refunded in the major unit
↳ amountRefundedPaisenumberAmount refunded in the smallest unit
↳ refundStatusstringnull, partial, or full
↳ emailstringCustomer email
↳ contactstringCustomer phone number
↳ bankstringBank code for netbanking payments
↳ walletstringWallet name for wallet payments
↳ vpastringCustomer UPI ID for UPI payments
↳ feenumberRazorpay fee including GST, in the major unit
↳ feePaisenumberRazorpay fee including GST, in the smallest unit
↳ taxnumberGST on the fee, in the major unit
↳ taxPaisenumberGST on the fee, in the smallest unit
↳ errorCodestringError code for failed payments
↳ errorDescriptionstringError description for failed payments
↳ errorReasonstringError reason for failed payments
↳ createdAtnumberWhen it was created (Unix seconds)
↳ notesjsonKey-value notes stored on the entity
countnumberNumber of payments returned