Defines the object schema located at components.schemas.refund in the specification.
`Refund` objects allow you to refund a charge that has previously been created but not yet refunded. Funds will be refunded to the credit or debit card that was originally charged.
Related guide: Refunds.
Constructors
RefundrefundAmount :: Intamount: Amount, in %s.
refundBalanceTransaction :: Maybe (Nullable RefundBalanceTransaction'NonNullableVariants)balance_transaction: Balance transaction that describes the impact on your account balance.
refundCharge :: Maybe (Nullable RefundCharge'NonNullableVariants)charge: ID of the charge that was refunded.
refundCreated :: Intcreated: Time at which the object was created. Measured in seconds since the Unix epoch.
refundCurrency :: Textcurrency: Three-letter ISO currency code, in lowercase. Must be a supported currency.
refundDescription :: Maybe Textdescription: An arbitrary string attached to the object. Often useful for displaying to users. (Available on non-card refunds only)
Constraints:
Maximum length of 5000
refundFailureBalanceTransaction :: Maybe RefundFailureBalanceTransaction'Variantsfailure_balance_transaction: If the refund failed, this balance transaction describes the adjustment made on your account balance that reverses the initial balance transaction.
refundFailureReason :: Maybe Textfailure_reason: If the refund failed, the reason for refund failure if known. Possible values are `lost_or_stolen_card`, `expired_or_canceled_card`, or `unknown`.
Constraints:
Maximum length of 5000
refundId :: Textid: Unique identifier for the object.
Constraints:
Maximum length of 5000
refundInstructionsEmail :: Maybe Textinstructions_email: Email to which refund instructions, if required, are sent to.
Constraints:
Maximum length of 5000
refundMetadata :: Maybe (Nullable Object)metadata: Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
refundNextAction :: Maybe RefundNextActionnext_action:
refundPaymentIntent :: Maybe (Nullable RefundPaymentIntent'NonNullableVariants)payment_intent: ID of the PaymentIntent that was refunded.
refundReason :: Maybe (Nullable RefundReason'NonNullable)reason: Reason for the refund, either user-provided (`duplicate`, `fraudulent`, or `requested_by_customer`) or generated by Stripe internally (`expired_uncaptured_charge`).
refundReceiptNumber :: Maybe (Nullable Text)receipt_number: This is the transaction number that appears on email receipts sent for this refund.
Constraints:
Maximum length of 5000
refundSourceTransferReversal :: Maybe (Nullable RefundSourceTransferReversal'NonNullableVariants)source_transfer_reversal: The transfer reversal that is associated with the refund. Only present if the charge came from another Stripe account. See the Connect documentation for details.
refundStatus :: Maybe (Nullable Text)status: Status of the refund. For credit card refunds, this can be `pending`, `succeeded`, or `failed`. For other types of refunds, it can be `pending`, `requires_action`, `succeeded`, `failed`, or `canceled`. Refer to our refunds documentation for more details.
Constraints:
Maximum length of 5000
refundTransferReversal :: Maybe (Nullable RefundTransferReversal'NonNullableVariants)transfer_reversal: If the accompanying transfer was reversed, the transfer reversal object. Only applicable if the charge was created using the destination parameter.