← Artifacts & connectors

razorpay

Razorpay

Official CLI · razorpay

Reads
payments, captured amount, failed amount, recovered amount, invoice status, subscription status.
Locators
Payment id, invoice id, subscription id, payment-link URL, or a serialized list query.
Evidence for a linked target
Razorpay CLI / API result for the connected account.
Official docs
https://razorpay.com/docs/api/install-cli/

Usage

Agent command: superdense reward docs connectors --connector razorpay

# razorpay — usage

Use the official Razorpay CLI or API to read payments, invoices, subscriptions, and
webhook-backed payment lifecycle events.

```bash
# Fetch payment, invoice, or subscription data with the official API/CLI
# Use payment.failed, payment.captured, invoice.paid, and subscription status
# fields to measure failed-payment recovery.
```

**Reward dimensions:** failed payments, captured payments, failed amount, recovered amount, invoice status, subscription status.
**Locators:** payment id, invoice id, subscription id, payment-link URL, serialized query.

Install

Agent command: superdense reward docs connectors --connector razorpay --section install

Install the official **Razorpay CLI** CLI and authenticate it for the account that owns the artifact.

Use the vendor's official installation guide rather than a copy here, so steps stay current:

- https://razorpay.com/docs/api/install-cli/

Once installed and authenticated, the `usage` section shows how to read metrics.

Troubleshoot

Agent command: superdense reward docs connectors --connector razorpay --section troubleshoot

Razorpay API failures are almost always credential, scope, or quota issues.

Check, in order:

1. **Token validity** — refresh/rotate the access token.
2. **Scopes** — confirm the token grants the metric you are reading.
3. **Quota** — confirm you are within the daily/per-minute limits.

Reference the official docs for error codes and limits:

- https://razorpay.com/docs/errors/