> ## Documentation Index
> Fetch the complete documentation index at: https://docs.paymend.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Manage payments

> Understand how to manage payments via Paymend

Here we'll look at how to manage payment states using the Paymend API:

* **Capturing** authorized funds
* **Refunding** captured payments
* **Voiding** pending or authorized payments

## Captures

Capture a payment by submitting a `POST` request to [`/v1/payments/{paymentId}/capture`](/api-reference/endpoint/capture).

The `paymentId` received in the response to payment creation is passed as a path parameter.

<Info>
  Partial captures are not yet supported. No body should be sent in the request.
</Info>

## Refunds

Refund a payment by submitting a `POST` request to [`/v1/payments/{paymentId}/refund`](/api-reference/endpoint/refund).

The `paymentId` received in the response to payment creation is passed as a path parameter.

If you wish to make a partial refund, the `refundAmount` should be passed in the request body.

## Voids

Void a payment by submitting a `POST` request to [`/v1/payments/{paymentId}/void`](/api-reference/endpoint/void).

The `paymentId` received in the response to payment creation is passed as a path parameter.

## Query

Get payment details including the payment status by submitting a `GET` request to [`/v1/payments/{paymentId}`](/api-reference/endpoint/payment-details).

The `paymentId` received in the response to payment creation is passed as a path parameter.
