{
  "id": "re_3MjTCxEhuqCR3lNz1NgprEoI",
  "object": "refund",
  "amount": 100,
  "created_at": "2021-10-15T15:23:11.474Z",
  "updated_at": "2021-11-15T12:23:11.474Z",
  "currency": "clp",
    "resource_type": "payment_intent"/"charge",
    "resource_id": "ch_3MjTCxEhuqCR3lNz1FLrtTeH",
  "reason": null,
  "status": "succeeded",
  "mode": "live",
  "metadata": {}
}
AttributeTypeDescription
idstringUnique identifier for the Refund Object
objectstringString representing the object’s type. Its value for refund's will always correspond to refund.
amountintegerAmount 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.
currencystringCurrency ISO code. For now, we only support CLP
created_atstringRefund's creation date, using ISO 8601 format.
updated_atstringRefund's object last updated date, using ISO 8601 format.
currencystringCurrency ISO code. For now, we only support CLP
reasonstringString indicating the reason for the refund. If set, possible values are duplicated and requested_by_customer.
statusstringRefund status. Can be createdpending, succeeded or failed.
modestringIndicates 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 test Refund for a live PaymentIntent or viceversa).
metadatahashSet 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_typestringCan take two possible values, either PaymentIntent or Charge.
resource_idstringReferences the PaymentIntent/Charge ID to be refunded.

Refund statuses

Refund's can take 5 statuses:

StatusDescription
createdRefund has been created recently and it’s ready to start execution until next banking day at 18:00.
pendingThe refund order has been executed and status result will be available next banking day at 2 PM.
succeededRefund has been transferred to the destination account.
failedAn error ocurred while processing the refund request.
canceledMerchant requested to cancel created refund.