> ## 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/sg/payments) to accept payments.
</Info>

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

    Captures a payment.
  </Card>

  <Card title="Fetch a Payment With ID" href="/docs/sg/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/sg/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/sg/api/payments/fetch-all-payments">
    `GET` `/v1/payments`

    Retrieves details of all payments.
  </Card>

  <Card title="Fetch All Payments (Example 1)" href="/docs/sg/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/sg/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/sg/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/sg/api/payments/update">
    `PATCH` `/v1/payments/:id/`

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

## Related Guides

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