# Update RFI for Refund Endpoint: PATCH /refunds/{id}/update_rfi Version: 1.0.0 Security: JWT ## Path parameters: - `id` (string, required) The unique identifier for the refund. Example: "refu_E602dMzgjpDC" ## Request fields (application/json): - `documents` (array, required) - `documents.id` (string, required) The unique identifier for the Document. Example: "doc_nYUqLpuYQ0M8" - `documents.rfi_doc_id` (string,null, required) The unique identifier for the RFI Document. This will be null if the document is not an RFI Document. Example: "rfidoc_nYUqLpuYQ0M8" ## Response 200 fields (application/json): - `id` (string) The unique identifier for the refund. Example: "refund_6776d57dnbTWj" - `customer_id` (string) The unique identifier of customer linked to refund. Example: "cust_E602dMzgjpDC" - `payment_id` (string) The unique identifier of payment linked to refund. Example: "payt_E602dMzgjpDC" - `reason` (string) The reason for the refund. Example: "Requested by Customer" - `fx_fee` (object) The foreign exchange fee charged for the refund. - `fx_fee.amount` (number) A positive integer representing the smallest currency unit. For example, if the amount is $299.00, then pass 29900 in this field. In the case of three decimal currencies, such as KWD, BHD and OMR, to represent an amount of 295.991, pass the value as 295990. And in the case of zero decimal currencies such as JPY, for amount ¥295, pass the value as 295. Example: 1000 - `fx_fee.currency` (string) The currency code in [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) format. For example, USD. Example: "USD" - `txn_fee` (object) The transaction fee charged for the refund. - `documents` (array) - `status` (string) The status of the refund. Enum: "success", "failed", "action_required", "pending", "under_review" - `amount` (number) The amount you want to receive in cents. For example, 1000 cents is $10.00. The currency is determined by the currency field. Cents is a general term for the smallest unit of currency in any currency. It does not necessarily mean USD cents. Example: 1000 - `created_at` (string) Timestamp representing when the refund was created Example: "2021-06-01T12:00:00Z" - `updated_at` (string) Timestamp representing when the refund was last updated Example: "2021-06-01T12:00:00Z" ## Response 400 fields ## Response 401 fields