String representing the object’s type. Its value for refund's will always correspond to refund.
amount
integer
Amount to refund, represented as an integer. This value must always be greater than 0, and less than or equal to the corresponding PaymentIntent/Charge amount. Default is entire PaymentIntent/Charge amount.
Refund's object last updated date, using ISO 8601 format.
currency
string
Currency ISO code. For now, we only support CLP
reason
string
String indicating the reason for the refund. If set, possible values are duplicated and requested_by_customer.
status
string
Refund status. Can be created, pending, succeeded or failed.
mode
string
Indicates whether the Refund is in live mode or in test mode (for the sandbox). This is strictly dependent on the original object mode (i.e. you can’t create a testRefund for a live PaymentIntent or viceversa).
metadata
hash
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.
resource_type
string
Can take two possible values, either PaymentIntent or Charge.
resource_id
string
References the PaymentIntent/Charge ID to be refunded.
Refund statuses
Refund's can take 5 statuses:
Status
Description
created
Refund has been created recently and it’s ready to start execution until next banking day at 18:00.
pending
The refund order has been executed and status result will be available next banking day at 2 PM.
succeeded
Refund has been transferred to the destination account.
failed
An error ocurred while processing the refund request.