Skip to main content
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. The paymentId received in the response to payment creation is passed as a path parameter.
Partial captures are not yet supported. No body should be sent in the request.

Refunds

Refund a payment by submitting a POST request to /v1/payments/{paymentId}/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. 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}. The paymentId received in the response to payment creation is passed as a path parameter.