From 91e5381262de248a5879c3309c05639e72a879b9 Mon Sep 17 00:00:00 2001 From: Claudio Sanches Date: Fri, 11 Dec 2015 01:58:24 -0200 Subject: [PATCH] [API] Added order_key in orders response, closes #9823 --- includes/api/class-wc-api-orders.php | 1 + 1 file changed, 1 insertion(+) diff --git a/includes/api/class-wc-api-orders.php b/includes/api/class-wc-api-orders.php index 3650f982ca6..b7c81165252 100644 --- a/includes/api/class-wc-api-orders.php +++ b/includes/api/class-wc-api-orders.php @@ -161,6 +161,7 @@ class WC_API_Orders extends WC_API_Resource { $order_data = array( 'id' => $order->id, 'order_number' => $order->get_order_number(), + 'order_key' => $order->order_key, 'created_at' => $this->server->format_datetime( $order_post->post_date_gmt ), 'updated_at' => $this->server->format_datetime( $order_post->post_modified_gmt ), 'completed_at' => $this->server->format_datetime( $order->completed_date, true ),