diff --git a/includes/api/v2/class-wc-rest-order-refunds-v2-controller.php b/includes/api/v2/class-wc-rest-order-refunds-v2-controller.php index 202ed5e718d..3ce6e7fbf82 100644 --- a/includes/api/v2/class-wc-rest-order-refunds-v2-controller.php +++ b/includes/api/v2/class-wc-rest-order-refunds-v2-controller.php @@ -388,6 +388,7 @@ class WC_REST_Order_Refunds_V2_Controller extends WC_REST_Orders_V2_Controller { 'description' => __( 'If the payment was refunded via the API.', 'woocommerce' ), 'type' => 'boolean', 'context' => array( 'view' ), + 'readonly' => true, ), 'meta_data' => array( 'description' => __( 'Meta data.', 'woocommerce' ),