> ## Documentation Index
> Fetch the complete documentation index at: https://doc-test-my.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Payments

> Capture and fetch Payments using Razorpay APIs.

Payments APIs are used to capture and fetch payments. You can also fetch payments based on orders and card details of payment.

<Info>
  **Handy Tips**

  You can use Payments API only to retrieve payment details or change the status from `authorized` to `captured` and **not** to collect payments. You can use our [products](/docs/payments) to accept payments.
</Info>

<CardGroup cols={2}>
  <Card title="Capture a Payment" href="/docs/api/payments/capture">
    `POST` `/v1/payments/:id/capture`

    Captures a payment.
  </Card>

  <Card title="Fetch a Payment With ID" href="/docs/api/payments/fetch-with-id">
    `GET` `/v1/payments/:id`

    Retrieves details of a specific payment using id.
  </Card>

  <Card title="Fetch a Payment With ID (Example 1)" href="/docs/api/payments/fetch-payment-expanded-card">
    `GET` `/v1/payments/:id/?expand[]=card`

    Retrieves details of all the payments that is created, with the `card` parameter.
  </Card>

  <Card title="Fetch All Payments" href="/docs/api/payments/fetch-all-payments">
    `GET` `/v1/payments`

    Retrieves details of all payments.
  </Card>

  <Card title="Fetch All Payments (Example 1)" href="/docs/api/payments/fetch-all-payments-with-expanded-card-details">
    `GET` `/v1/payments?expand[]=card`

    Retrieves expanded card details of a payment.
  </Card>

  <Card title="Fetch Payments Based on Orders" href="/docs/api/payments/fetch-payments-orders">
    `GET` `/v1/orders/:id/payments`

    Retrieves payments linked to an Order.
  </Card>

  <Card title="Fetch Card Details of a Payment" href="/docs/api/payments/fetch-card-details-payment">
    `GET` `/v1/payments/:id/card`

    Retrieves card details of a payment.
  </Card>

  <Card title="Update a Payment" href="/docs/api/payments/update">
    `PATCH` `/v1/payments/:id/`

    Edits an existing payment.
  </Card>
</CardGroup>

## Related Guides

* [About Payments](/docs/payments)
* [Set Up Webhooks](/docs/webhooks/setup-edit-payments)
* [Sample Payloads](/docs/webhooks/payments)
