Capture an authorization

Captures a manual-capture authorization, optionally for a partial amount_to_capture (cents). Pass an Idempotency-Key header to make the capture safe to retry.

Authentication

x-api-keystring

A scoped MvsPayApiKey, e.g. mvspay_live_…. Mint and scope keys from the dashboard (Settings → API Keys).

Path parameters

idstringRequired

The authorization (payment) id.

Headers

Idempotency-KeystringOptional

Client-supplied idempotency key; a deterministic one is derived if omitted.

Request

This endpoint expects an object.
amount_to_captureintegerOptional

Positive integer (cents). Omit to capture the full authorized amount.

Response

The captured payment.
paymentobject

Hyperswitch payment_intent response. Loosely typed; extra Hyperswitch fields pass through.

Errors

400
Bad Request Error
401
Unauthorized Error
500
Internal Server Error