Payment
● LiveCreate a payment intent and check payment status for an order.
POST
● Live/v1/payments/intentsCreate a payment intent
Create a payment intent (Razorpay-backed) for an order.
Required scope: payments.write
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| Authorization | header | Yes | Bearer <api-key> (e.g. sk_test_... in sandbox, sk_live_... in production). The x-api-key header is also accepted. |
| Idempotency-Key | header | No | Optional idempotency key. |
GET
● Live/v1/payments/intents/:idGet a payment intent
Fetch the current state of a payment intent.
Required scope: payments.read
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| Authorization | header | Yes | Bearer <api-key> (e.g. sk_test_... in sandbox, sk_live_... in production). The x-api-key header is also accepted. |
GET
● Live/v1/orders/:id/paymentGet an order's payment
Fetch the payment associated with a given order.
Required scope: orders.read
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| Authorization | header | Yes | Bearer <api-key> (e.g. sk_test_... in sandbox, sk_live_... in production). The x-api-key header is also accepted. |