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

# Payments

> Capture and fetch Payments using Razorpay APIs.

<div style={{display:"flex",flexWrap:"wrap",alignItems:"center",gap:"0.35rem 0.9rem",border:"1px solid rgba(128,128,128,0.28)",borderRadius:"0.5rem",padding:"0.45rem 0.75rem",margin:"0 0 1.25rem",fontSize:"0.875rem"}}>
  <span style={{fontWeight:600}}>Available in</span>
  <span>🇮🇳 India</span>
  <span>🇸🇬 Singapore</span>
</div>

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>

Fork the Razorpay Postman Public Workspace and try the Payments APIs using your [Test API Keys](/docs/payments/dashboard/account-settings/api-keys#generate-api-keys).

<a href="https://www.postman.com/razorpaydev/workspace/razorpay-public-workspace/folder/12492020-11b2db21-9019-4814-9669-c70305b8fd6e" target="_blank">![Run in Postman](https://run.pstmn.io/button.svg)</a>

<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 a Payment With ID (Example 2)" href="/docs/api/payments/fetch-payment-expanded-emi">
    `GET` `/v1/payments/:id/?expand[]=emi`

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

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

    Retrieves details of all the payments that is created, with the `offers` 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 All Payments (Example 2)" href="/docs/api/payments/fetch-all-payments-with-expanded-emi-details">
    `GET` `/v1/payments?expand[]=emi`

    Retrieves expanded EMI 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)
