ChargeRequest
Request payload for a one-step charge (immediate capture).Amount in the smallest currency unit (e.g. cents for USD).
ISO 4217 currency code (e.g. “USD”, “BRL”).
Payment method to charge. See PaymentMethodInput.
Customer details passed with the charge request.
Human-readable description of the charge.
Arbitrary key-value pairs forwarded to the provider.
Prevents duplicate charges when retrying the same request.
Per-request routing overrides.
Example
AuthorizeRequest
Request payload for a two-step authorization (hold funds without capture). Identical shape toChargeRequest; the client calls authorize instead of charge.
Example
CaptureRequest
Request payload to capture a previously authorized transaction.The transaction ID returned from a prior
authorize call.Partial capture amount. Omit to capture the full authorized amount.
Prevents duplicate captures when retrying the same request.
Example
RefundRequest
Request payload to refund a completed transaction (full or partial).The transaction ID of the original charge or capture.
Partial refund amount. Omit to refund the full amount.
Human-readable reason forwarded to the provider.
Prevents duplicate refunds when retrying the same request.
Example
VoidRequest
Request payload to void (cancel) an authorized transaction before capture.The transaction ID of the authorization to void.
Prevents duplicate void operations when retrying the same request.