The Refund object represents a refund you create against a PaymentIntent. Fintoc returns the Refund object in Refunds API responses and in refund webhook events. The status field tracks the disbursal, from created to in_progress, and then to succeeded, failed, or canceled.
Amount refunded, in the smallest currency unit. Greater than 0 and at most the original PaymentIntent amount. Defaults to the full PaymentIntent amount.
created_at
string
ISO 8601 datetime in UTC when the refund was created.
currency
string
Three-letter ISO 4217 currency code, in uppercase. One of CLP or MXN. Matches the currency of the original PaymentIntent.
failure_code
string or null
Reason the refund failed. One of fraud_risk (blocked by Fintoc's fraud checks) or insufficient_funds (your organization has insufficient funds to cover the refund). null unless the refund failed.
metadata
object
Set of key-value pairs you can attach to the refund, useful for storing additional structured information.
mode
string
One of live or test. Always matches the original PaymentIntent; you cannot create a test refund for a livePaymentIntent, or the reverse.
recipient_account
object or null
Bank account that receives the refunded funds. null for refunds not disbursed by bank transfer, such as card refunds. See The Recipient Account object below.
resource_id
string
ID of the PaymentIntent being refunded.
resource_type
string
Type of the refunded resource. Always payment_intent.
status
string
Current status of the refund. One of created, in_progress, succeeded, failed, or canceled.
updated_at
string
ISO 8601 datetime in UTC when the refund was last updated.
The Recipient Account object (within the Refund object)
Attribute
Type
Description
holder_id
string
Tax ID of the account holder, without dots or hyphens. In Chile, a Chilean tax ID (RUT); in Mexico, a Mexican tax ID (RFC).