WooCommerce-REST-API-Client-Library icon indicating copy to clipboard operation
WooCommerce-REST-API-Client-Library copied to clipboard

Get only specified fields for an order

Open tmblog opened this issue 8 years ago • 1 comments

Hello thank you for the amazing api, I just wondered everytime I make a call for orders:

$client->orders->get();

I am getting the entire response, is there a way to just get the fields that i want for example:

$client->orders->get(array[total, first_name, last_name]);

I think I saw it available on the official one but can't find it. Any help would be much appreciated.

tmblog avatar Mar 11 '18 19:03 tmblog

@tmblog Did you manage to get the specific fields from the API? I am in real need . The unnecessary response is making an app laggy.

silent-saw avatar Apr 09 '19 11:04 silent-saw