From cd88ac0d7262ae7eada16e1470b2bda3bf575305 Mon Sep 17 00:00:00 2001 From: Claudio Sanches Date: Mon, 26 Jan 2015 19:24:54 -0200 Subject: [PATCH] [API] Fixed the refunds returned data --- includes/api/class-wc-api-orders.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/api/class-wc-api-orders.php b/includes/api/class-wc-api-orders.php index 728d921745b..878b8fcf25b 100644 --- a/includes/api/class-wc-api-orders.php +++ b/includes/api/class-wc-api-orders.php @@ -1449,7 +1449,7 @@ class WC_API_Orders extends WC_API_Resource { $order_refund = array( 'id' => $refund->id, - 'date' => $this->server->format_datetime( $refund->date ), + 'created_at' => $this->server->format_datetime( $refund->date ), 'amount' => wc_format_decimal( $refund->get_refund_amount(), 2 ), 'reason' => $refund->get_refund_reason(), 'line_items' => $line_items