CreateRefundRequest

data class CreateRefundRequest(val chargeIntent: String, val amount: Int? = null, val reason: String? = null)

Request body for creating a new refund.

Constructors

Link copied to clipboard
constructor(chargeIntent: String, amount: Int? = null, reason: String? = null)

Properties

Link copied to clipboard
val amount: Int? = null

Amount to refund in the smallest currency unit (e.g., cents). Defaults to the full captured amount when null.

Link copied to clipboard
@SerializedName(value = "charge_intent")
val chargeIntent: String

The ID of the charge intent to refund. Required.

Link copied to clipboard
val reason: String? = null

Optional reason for the refund (e.g., "duplicate", "fraudulent", "customer_request").