Title: API returns non-empty table as empty
Last modified: July 3, 2024

---

# API returns non-empty table as empty

 *  Resolved [bytecareporty](https://wordpress.org/support/users/bytecareporty/)
 * (@bytecareporty)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/api-returns-non-empty-table-as-empty/)
 * Hello, I am trying to GET data from Woocommerce API. I have succesfully got Orders,
   Product and Coupon data. But when I try to get Customers data I get empty response
   even though in woocommerce I can see there are over 3k customers in database.
   
   How do I fix that to get correct output from the API? Somewhere on the forum 
   I saw that the problem might be with how the server is set up. But I don’t know
   anything about fixing that.Another bad feeling I have is that in Orders there
   is only about 10 unique IDs in reference to Customers. Here is the status info:
 *     ```wp-block-code
       ### WordPress Environment ###WordPress address (URL): https://talentkompas.czSite address (URL): https://talentkompas.czWC Version: 8.9.3REST API Version: ✔ 8.9.3Action Scheduler Version: ✔ 3.8.0Log Directory Writable: ✔WP Version: 6.5.5WP Multisite: –WP Memory Limit: 512 MBWP Debug Mode: –WP Cron: ✔Language: cs_CZExternal object cache: –### Server Environment ###Server Info: ApachePHP Version: 8.1.28PHP Post Max Size: 512 MBPHP Time Limit: 600PHP Max Input Vars: 10000cURL Version: 7.81.0OpenSSL/3.0.2SUHOSIN Installed: –MySQL Version: 10.5.9-MariaDB-1:10.5.9+maria~focal-logMax Upload Size: 256 MBDefault Timezone is UTC: ✔fsockopen/cURL: ✔SoapClient: ✔DOMDocument: ✔GZip: ✔Multibyte String: ✔Remote Post: ✔Remote Get: ✔### Database ###WC Database Version: 8.9.3WC Database Prefix: khaqli_Celková velikost databáze: 425.68MBVelikost dat databáze: 399.30MBVelikost indexu databáze: 26.38MBkhaqli_woocommerce_sessions: Data: 1.02MB + Index: 0.02MB + Engine InnoDBkhaqli_woocommerce_api_keys: Data: 0.02MB + Index: 0.03MB + Engine InnoDBkhaqli_woocommerce_attribute_taxonomies: Data: 0.02MB + Index: 0.02MB + Engine InnoDBkhaqli_woocommerce_downloadable_product_permissions: Data: 0.02MB + Index: 0.06MB + Engine InnoDBkhaqli_woocommerce_order_items: Data: 0.33MB + Index: 0.14MB + Engine InnoDBkhaqli_woocommerce_order_itemmeta: Data: 5.52MB + Index: 3.03MB + Engine InnoDBkhaqli_woocommerce_tax_rates: Data: 0.02MB + Index: 0.06MB + Engine InnoDBkhaqli_woocommerce_tax_rate_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDBkhaqli_woocommerce_shipping_zones: Data: 0.02MB + Index: 0.00MB + Engine InnoDBkhaqli_woocommerce_shipping_zone_locations: Data: 0.02MB + Index: 0.05MB + Engine InnoDBkhaqli_woocommerce_shipping_zone_methods: Data: 0.02MB + Index: 0.00MB + Engine InnoDBkhaqli_woocommerce_payment_tokens: Data: 0.02MB + Index: 0.02MB + Engine InnoDBkhaqli_woocommerce_payment_tokenmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDBkhaqli_woocommerce_log: Data: 0.02MB + Index: 0.02MB + Engine InnoDBkhaqli_actionscheduler_actions: Data: 0.33MB + Index: 0.36MB + Engine InnoDBkhaqli_actionscheduler_claims: Data: 0.02MB + Index: 0.02MB + Engine InnoDBkhaqli_actionscheduler_groups: Data: 0.02MB + Index: 0.02MB + Engine InnoDBkhaqli_actionscheduler_logs: Data: 0.23MB + Index: 0.17MB + Engine InnoDBkhaqli_aryo_activity_log: Data: 2.02MB + Index: 2.67MB + Engine InnoDBkhaqli_berocket_termmeta: Data: 0.02MB + Index: 0.00MB + Engine InnoDBkhaqli_cky_banners: Data: 0.02MB + Index: 0.00MB + Engine MyISAMkhaqli_cky_cookies: Data: 0.00MB + Index: 0.00MB + Engine MyISAMkhaqli_cky_cookie_categories: Data: 0.00MB + Index: 0.01MB + Engine MyISAMkhaqli_comgate_log: Data: 0.09MB + Index: 0.01MB + Engine MyISAMkhaqli_commentmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDBkhaqli_comments: Data: 1.52MB + Index: 0.83MB + Engine InnoDBkhaqli_e_events: Data: 0.02MB + Index: 0.02MB + Engine InnoDBkhaqli_e_notes: Data: 0.02MB + Index: 0.17MB + Engine InnoDBkhaqli_e_notes_users_relations: Data: 0.02MB + Index: 0.05MB + Engine InnoDBkhaqli_e_submissions: Data: 0.08MB + Index: 0.27MB + Engine InnoDBkhaqli_e_submissions_actions_log: Data: 0.02MB + Index: 0.11MB + Engine InnoDBkhaqli_e_submissions_values: Data: 0.06MB + Index: 0.03MB + Engine InnoDBkhaqli_links: Data: 0.02MB + Index: 0.02MB + Engine InnoDBkhaqli_mergado_news: Data: 0.03MB + Index: 0.00MB + Engine InnoDBkhaqli_options: Data: 8.05MB + Index: 1.09MB + Engine InnoDBkhaqli_pmxe_exports: Data: 0.02MB + Index: 0.00MB + Engine InnoDBkhaqli_pmxe_google_cats: Data: 0.39MB + Index: 0.00MB + Engine InnoDBkhaqli_pmxe_posts: Data: 0.16MB + Index: 0.00MB + Engine InnoDBkhaqli_pmxe_templates: Data: 0.02MB + Index: 0.00MB + Engine InnoDBkhaqli_postmeta: Data: 176.38MB + Index: 12.03MB + Engine InnoDBkhaqli_posts: Data: 172.39MB + Index: 2.52MB + Engine InnoDBkhaqli_rank_math_404_logs: Data: 0.02MB + Index: 0.02MB + Engine InnoDBkhaqli_rank_math_analytics_gsc: Data: 0.02MB + Index: 0.06MB + Engine InnoDBkhaqli_rank_math_analytics_objects: Data: 0.06MB + Index: 0.02MB + Engine InnoDBkhaqli_rank_math_internal_links: Data: 0.08MB + Index: 0.02MB + Engine InnoDBkhaqli_rank_math_internal_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDBkhaqli_rank_math_redirections: Data: 0.02MB + Index: 0.02MB + Engine InnoDBkhaqli_rank_math_redirections_cache: Data: 0.02MB + Index: 0.02MB + Engine InnoDBkhaqli_termmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDBkhaqli_terms: Data: 0.02MB + Index: 0.03MB + Engine InnoDBkhaqli_term_relationships: Data: 0.02MB + Index: 0.02MB + Engine InnoDBkhaqli_term_taxonomy: Data: 0.02MB + Index: 0.03MB + Engine InnoDBkhaqli_toret_ppl_log: Data: 0.02MB + Index: 0.00MB + Engine InnoDBkhaqli_tppl_package_numbers: Data: 0.02MB + Index: 0.00MB + Engine InnoDBkhaqli_usermeta: Data: 0.09MB + Index: 0.08MB + Engine InnoDBkhaqli_users: Data: 0.02MB + Index: 0.05MB + Engine InnoDBkhaqli_wc_admin_notes: Data: 0.05MB + Index: 0.00MB + Engine InnoDBkhaqli_wc_admin_note_actions: Data: 0.02MB + Index: 0.02MB + Engine InnoDBkhaqli_wc_category_lookup: Data: 0.02MB + Index: 0.00MB + Engine InnoDBkhaqli_wc_customer_lookup: Data: 0.19MB + Index: 0.22MB + Engine InnoDBkhaqli_wc_download_log: Data: 0.02MB + Index: 0.03MB + Engine InnoDBkhaqli_wc_order_addresses: Data: 0.00MB + Index: 0.00MB + Engine MyISAMkhaqli_wc_order_coupon_lookup: Data: 0.06MB + Index: 0.09MB + Engine InnoDBkhaqli_wc_order_operational_data: Data: 0.00MB + Index: 0.00MB + Engine MyISAMkhaqli_wc_order_product_lookup: Data: 0.31MB + Index: 0.39MB + Engine InnoDBkhaqli_wc_order_stats: Data: 0.30MB + Index: 0.30MB + Engine InnoDBkhaqli_wc_order_tax_lookup: Data: 0.16MB + Index: 0.16MB + Engine InnoDBkhaqli_wc_product_attributes_lookup: Data: 0.00MB + Index: 0.00MB + Engine MyISAMkhaqli_wc_product_download_directories: Data: 0.02MB + Index: 0.02MB + Engine InnoDBkhaqli_wc_product_meta_lookup: Data: 0.02MB + Index: 0.09MB + Engine InnoDBkhaqli_wc_rate_limits: Data: 0.02MB + Index: 0.02MB + Engine InnoDBkhaqli_wc_reserved_stock: Data: 0.02MB + Index: 0.00MB + Engine InnoDBkhaqli_wc_tax_rate_classes: Data: 0.02MB + Index: 0.02MB + Engine InnoDBkhaqli_wc_webhooks: Data: 0.02MB + Index: 0.02MB + Engine InnoDBkhaqli_wfblockediplog: Data: 0.02MB + Index: 0.00MB + Engine InnoDBkhaqli_wfblocks7: Data: 0.02MB + Index: 0.05MB + Engine InnoDBkhaqli_wfconfig: Data: 1.44MB + Index: 0.00MB + Engine InnoDBkhaqli_wfcrawlers: Data: 0.02MB + Index: 0.00MB + Engine InnoDBkhaqli_wffilechanges: Data: 0.02MB + Index: 0.00MB + Engine InnoDBkhaqli_wffilemods: Data: 16.55MB + Index: 0.00MB + Engine InnoDBkhaqli_wfhits: Data: 1.02MB + Index: 0.09MB + Engine InnoDBkhaqli_wfhoover: Data: 0.02MB + Index: 0.02MB + Engine InnoDBkhaqli_wfissues: Data: 0.02MB + Index: 0.06MB + Engine InnoDBkhaqli_wfknownfilelist: Data: 8.52MB + Index: 0.00MB + Engine InnoDBkhaqli_wflivetraffichuman: Data: 0.02MB + Index: 0.02MB + Engine InnoDBkhaqli_wflocs: Data: 0.02MB + Index: 0.00MB + Engine InnoDBkhaqli_wflogins: Data: 0.16MB + Index: 0.06MB + Engine InnoDBkhaqli_wfls_2fa_secrets: Data: 0.02MB + Index: 0.02MB + Engine InnoDBkhaqli_wfls_role_counts: Data: 0.00MB + Index: 0.00MB + Engine MEMORYkhaqli_wfls_settings: Data: 0.02MB + Index: 0.00MB + Engine InnoDBkhaqli_wfnotifications: Data: 0.02MB + Index: 0.00MB + Engine InnoDBkhaqli_wfpendingissues: Data: 0.02MB + Index: 0.06MB + Engine InnoDBkhaqli_wfreversecache: Data: 0.02MB + Index: 0.00MB + Engine InnoDBkhaqli_wfsecurityevents: Data: 0.00MB + Index: 0.00MB + Engine MyISAMkhaqli_wfsnipcache: Data: 0.02MB + Index: 0.05MB + Engine InnoDBkhaqli_wfstatus: Data: 0.13MB + Index: 0.09MB + Engine InnoDBkhaqli_wftrafficrates: Data: 0.02MB + Index: 0.00MB + Engine InnoDBkhaqli_wfwaffailures: Data: 0.00MB + Index: 0.00MB + Engine MyISAMkhaqli_wpfm_backup: Data: 0.00MB + Index: 0.00MB + Engine MyISAMkhaqli_wpify_woo_log: Data: 0.02MB + Index: 0.00MB + Engine InnoDBkhaqli_wpmailsmtp_debug_events: Data: 0.02MB + Index: 0.00MB + Engine InnoDBkhaqli_wpmailsmtp_tasks_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDBkhaqli_wpr_above_the_fold: Data: 0.14MB + Index: 0.06MB + Engine InnoDBkhaqli_wpr_rocket_cache: Data: 0.01MB + Index: 0.03MB + Engine MyISAMkhaqli_wpr_rucss_used_css: Data: 0.00MB + Index: 0.00MB + Engine MyISAMkhaqli_wt_iew_action_history: Data: 0.08MB + Index: 0.00MB + Engine InnoDBkhaqli_wt_iew_mapping_template: Data: 0.02MB + Index: 0.00MB + Engine InnoDBkhaqli_wt_sc_coupon_lookup: Data: 0.09MB + Index: 0.05MB + Engine MyISAM### Post Type Counts ###acf-field: 16acf-field-group: 4attachment: 579br_labels: 1custom_css: 1customize_changeset: 1elementor_font: 2elementor_library: 33nav_menu_item: 14oembed_cache: 3page: 24post: 32product: 14product_variation: 4pruvodce: 7revision: 4037seedprod: 2shop_coupon: 1564shop_order: 3825shop_order_refund: 1terminy_vycviku: 2wp_global_styles: 1wpcode: 2### Security ###Secure connection (HTTPS): ✔Hide errors from visitors: ✔### Active Plugins (33) ###Add coupon by link / URL coupons for Woocommerce: Autor: PI Websolution – 1.1.31Advanced Custom Fields PRO: Autor: WP Engine – 6.3.1WooCommerce Advanced Product Labels: Autor: BeRocket – 1.2.5.3Protokol změn: Autor: Activity Log Team – 2.10.1CookieYes | GDPR Cookie Consent: Autor: CookieYes – 3.2.4WooCommerce Generátor kupónů: Autor: Jeroen Sormani – 1.2.0Custom Post Type UI: Autor: WebDevStudios – 1.16.0Yoast Duplicate Post (Zkopírovat příspěvek): Autor: Enrico Battocchi & Team Yoast – 4.5Easy Product Bundles for WooCommerce: Autor: Product Bundles Team – 4.8.0Integrate Ecomail and Elementor Forms: Autor: Adam Kotala – 1.3.0Ecomail: Autor: ECOMAIL.CZ – 2.1.6Elementor Pro: Autor: Elementor.com – 3.21.3Elementor: Autor: Elementor.com – 3.21.8eSoul Pruvodci: Autor: Tomáš Vojík  – 1.0ISIC: Autor: Tomáš Vojík  – 1.0Loco Translate: Autor: Tim Whitlock – 2.6.9Popup Trigger URL for Elementor Pro: Autor: Suki WordPress Theme – 1.0.5Pořadí typů příspěvku: Autor: Nsp Code – 2.2.3Rank Math SEO with AI Best SEO Tools: Autor: Rank Math – 1.0.220The Plus Addons for Elementor: Autor: POSIMYTH – 5.5.6The Plus Addons for Elementor - Pro: Autor: POSIMYTH – 5.3.5Toret Custom Price: Autor: Vladislav Musílek – 1.2VueTalent: Autor: Webwings s.r.o. – 1.0.0Converter for Media: Autor: matt plugins – 5.12.5Webwings Affiliate: Autor: Martin Bargl  – 1.0Toret Comgate: Autor: toret.cz – 3.1.18Advanced Order Export For WooCommerce: Autor: AlgolPlus – 3.5.3WooCommerce Stripe Gateway: Autor: WooCommerce – 8.3.1Google Analytics for WooCommerce: Autor: WooCommerce – 2.1.0WooCommerce: Autor: Automattic – 8.9.3 (aktualizace na verzi 9.0.2 je dostupná)WP Mail SMTP: Autor: WP Mail SMTP – 4.0.1WP Rocket: Autor: WP Media – 3.16Smart Coupons For WooCommerce Coupons: Autor: WebToffee – 1.7.1### Inactive Plugins (0) ###### Dropin Plugins () ###advanced-cache.php: advanced-cache.php### Settings ###API Enabled: –Force SSL: –Currency: CZK (Kč)Currency Position: right_spaceThousand Separator: Decimal Separator: .Number of Decimals: 0Taxonomies: Product Types: easy_product_bundle (easy_product_bundle)external (external)grouped (grouped)simple (simple)variable (variable)Taxonomies: Product Visibility: exclude-from-catalog (exclude-from-catalog)exclude-from-search (exclude-from-search)featured (featured)outofstock (outofstock)rated-1 (rated-1)rated-2 (rated-2)rated-3 (rated-3)rated-4 (rated-4)rated-5 (rated-5)Connected to WooCommerce.com: –Enforce Approved Product Download Directories: ✔HPOS feature enabled: –Order datastore: WC_Order_Data_Store_CPTHPOS data sync enabled: –### Logging ###Enabled: ✔Handler: Automattic\WooCommerce\Internal\Admin\Logging\LogHandlerFileV2Retention period: 30 dnůLevel threshold: –Log directory size: 181 KB### WC Pages ###Obchod: #14 - /eshop/Košík: #15 - /kosik/Pokladna: #16 - /pokladna/Můj účet: ❌ Stránka neobsahuje [woocommerce_my_account] shortcode.Obchodní podmínky: #36 - /obchodni-podminky/### Theme ###Name: Hello Elementor ChildVersion: 2.6.1.1665316295Author URL: https://elementor.com/?utm_source=wp-themes&utm_campaign=author-uri&utm_medium=wp-dashChild Theme: ✔Parent Theme Name: Hello ElementorParent Theme Version: 3.0.2 – 3.1.0 je k dispoziciParent Theme Author URL: https://elementor.com/?utm_source=wp-themes&utm_campaign=author-uri&utm_medium=wp-dashWooCommerce Support: ✔### Templates ###Overrides: hello-elementor-child/woocommerce/archive-product.php verze 3.4.0 je neaktuální. Verze jádra je 8.6.0hello-elementor-child/woocommerce/cart/cart-totals.phphello-elementor-child/woocommerce/cart/cart.php verze 3.8.0 je neaktuální. Verze jádra je 7.9.0hello-elementor-child/woocommerce/cart/proceed-to-checkout-button.php verze 2.4.0 je neaktuální. Verze jádra je 7.0.1hello-elementor-child/woocommerce/checkout/form-billing.phphello-elementor-child/woocommerce/checkout/form-checkout.phphello-elementor-child/woocommerce/checkout/form-pay.php verze 5.2.0 je neaktuální. Verze jádra je 8.2.0hello-elementor-child/woocommerce/checkout/form-shipping.phphello-elementor-child/woocommerce/checkout/payment-method.phphello-elementor-child/woocommerce/checkout/payment.php verze 3.5.3 je neaktuální. Verze jádra je 8.1.0hello-elementor-child/woocommerce/checkout/review-order.phphello-elementor-child/woocommerce/checkout/terms.phphello-elementor-child/woocommerce/checkout/thankyou.php verze 3.7.0 je neaktuální. Verze jádra je 8.1.0hello-elementor-child/woocommerce/content-product.phphello-elementor-child/woocommerce/emails/admin-cancelled-order.phphello-elementor-child/woocommerce/emails/admin-failed-order.phphello-elementor-child/woocommerce/emails/admin-new-order.phphello-elementor-child/woocommerce/emails/customer-completed-order.phphello-elementor-child/woocommerce/emails/customer-invoice.phphello-elementor-child/woocommerce/emails/customer-on-hold-order.php verze 3.7.0 je neaktuální. Verze jádra je 7.3.0hello-elementor-child/woocommerce/emails/customer-processing-order.phphello-elementor-child/woocommerce/emails/email-footer.php verze 3.7.0 je neaktuální. Verze jádra je 7.4.0hello-elementor-child/woocommerce/emails/email-header.php verze 4.0.0 je neaktuální. Verze jádra je 7.4.0hello-elementor-child/woocommerce/emails/email-order-details.phphello-elementor-child/woocommerce/emails/email-styles.php verze 4.0.0 je neaktuální. Verze jádra je 8.6.0hello-elementor-child/woocommerce/global/quantity-input.php verze 4.0.0 je neaktuální. Verze jádra je 7.8.0hello-elementor-child/woocommerce/loop/orderby.phphello-elementor-child/woocommerce/loop/pagination.phphello-elementor-child/woocommerce/loop/sale-flash.phphello-elementor-child/woocommerce/myaccount/form-login.php verze 6.0.0 je neaktuální. Verze jádra je 7.0.1hello-elementor-child/woocommerce/myaccount/my-account.phpOutdated Templates: ❌																Zjistětejak aktualizovat### Admin ###Enabled Features: activity-panelsanalyticsproduct-block-editorcouponscore-profilercustomize-storecustomer-effort-score-tracksimport-products-taskexperimental-fashion-sample-productsshipping-smart-defaultsshipping-setting-tourhomescreenmarketingmobile-app-bannernavigationonboardingonboarding-tasksproduct-variation-managementproduct-virtual-downloadableproduct-external-affiliateproduct-groupedproduct-linkedproduct-pre-publish-modalproduct-custom-fieldsremote-inbox-notificationsremote-free-extensionspayment-gateway-suggestionsshipping-label-bannersubscriptionsstore-alertstransient-noticeswoo-mobile-welcomewc-pay-promotionwc-pay-welcome-pageDisabled Features: minified-jsnew-product-management-experiencesettingsasync-product-editor-category-fieldlaunch-your-storeDaily Cron: ✔ Next scheduled: 2024-07-03 12:05:58 +02:00Options: ✔Notes: 43Onboarding: completed### Action Scheduler ###Complete: 734Oldest: 2024-06-02 12:31:27 +0200Newest: 2024-07-03 08:36:34 +0200Failed: 17Oldest: 2022-11-30 11:40:34 +0100Newest: 2023-12-17 09:40:10 +0100Pending: 5Oldest: 2024-07-03 10:01:15 +0200Newest: 2024-07-08 21:03:43 +0200### Status report information ###Generated at: 2024-07-03 09:42:21 +02:00`
       ```
   
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fapi-returns-non-empty-table-as-empty%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Plugin Support [Shameem – a11n](https://wordpress.org/support/users/shameemreza/)
 * (@shameemreza)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/api-returns-non-empty-table-as-empty/#post-17867608)
 * Hi [@bytecareporty](https://wordpress.org/support/users/bytecareporty/)
 * I tried replicating the issue on my end but couldn’t. Everything seems to be 
   working fine. I followed the REST API docs that you shared here: [https://woocommerce.github.io/woocommerce-rest-api-docs/#retrieve-a-customer](https://woocommerce.github.io/woocommerce-rest-api-docs/#retrieve-a-customer)
 * ![](https://i0.wp.com/i.ibb.co/44M8Cjb/Clean-Shot-2024-07-04-at-09-07-41-2x.png?
   ssl=1)
 * However, an empty response usually suggests that the API request isn’t being 
   authenticated properly. Please ensure that your API keys have the correct read
   permissions for customer data. If unsure, you can create a new set of API keys
   with read permissions and try again.
 * Also, the WooCommerce API only returns data for customers who have made an order.
   So, if you have only 10 unique customer IDs, it means that only those 10 customers
   have made an order.
 * If you are still having problems, we recommend asking development questions on
   the #developers channel of the [WooCommerce Community Slack](https://woocommerce.com/community-slack/).
   Many of our developers hang out there and will be able to offer insights into
   your question. You can also seek help from the following:
    - A local web developer
    - [Codeable.io](https://woocommerce.com/codeable/)
    - [WooExperts](https://partners.woocommerce.com/English/marketplace/)
 * I wish I could help more, but hopefully, this gets you going in the right direction
   to get some further insight/information.
 *  Plugin Support [Shameem – a11n](https://wordpress.org/support/users/shameemreza/)
 * (@shameemreza)
 * [1 year, 10 months ago](https://wordpress.org/support/topic/api-returns-non-empty-table-as-empty/#post-17918420)
 * Hi [@bytecareporty](https://wordpress.org/support/users/bytecareporty/)
 * We’ve not heard back from you in a while, so I’m marking this thread as resolved.
   Hopefully, you were able to find a solution to your problem!
 * If you have further questions, please feel free to [open a new topic](https://wordpress.org/support/plugin/woocommerce/#new-topic-0).
 * Thanks!
 *  [neutrino86](https://wordpress.org/support/users/neutrino86/)
 * (@neutrino86)
 * [1 year, 7 months ago](https://wordpress.org/support/topic/api-returns-non-empty-table-as-empty/#post-18071000)
 * Hi,
 * Did youy find a solution ?
 * I have exactly the same problem, after update to WP 6.6.2 when i try to get user
   data by id i get no error but a table with empty value
 * customer_data={‘create_date’:1728896737,’last_update’:’2024-10-14 09:05:37′,’
   remote_id’:null,’name_alias’:null,’email_key’:null,’client’:1,’vatnumber’:null,’
   note_private’:’Site: ‘VEXI’ – ID: ‘,’address’:”,’zip’:null,’town’:null,’country_id’:”,’
   phone’:null,’default_lang’:’auto’,’remote_datas’:{‘meta_data’:[{‘id’:315800,’
   key’:’_yoast_wpseo_profile_updated’,’value’:’1728833346′},{‘id’:315817,’key’:’
   shipping_method’,’value’:[‘877’]},{‘id’:315818,’key’:’billing_phone2′,’value’:”},{‘
   id’:315819,’key’:’shipping_phone1′,’value’:”},{‘id’:315820,’key’:’shipping_phone2′,’
   value’:”},{‘id’:315821,’key’:’wc_last_active’,’value’:’1728777600′}],’_links’:{‘
   self’:[{‘href’:’https:\/\/www.test.fr\/wp-json\/wc\/v3\/customers\/8606′}],’collection’:[{‘
   href’:’https:\/\/www.test.fr\/wp-json\/wc\/v3\/customers’}]}},’extrafields’:{‘
   ecommerceng_wc_role_1_1′:’Client’},’type’:’user’,’name’:’Pas de nom\/pr\u00e9nom
   renseign\u00e9′,’email’:null}
 * Version de WooCommerce:3.7.3
 * Package WooCommerce REST API: 1.0.2 
 * Version de WordPress :6.6.2
 *  Thread Starter [bytecareporty](https://wordpress.org/support/users/bytecareporty/)
 * (@bytecareporty)
 * [1 year, 7 months ago](https://wordpress.org/support/topic/api-returns-non-empty-table-as-empty/#post-18071094)
 * Hello,
   I had to solve it through data from orders. In orders there are customer
   details that I extracted.
 *  [neutrino86](https://wordpress.org/support/users/neutrino86/)
 * (@neutrino86)
 * [1 year, 7 months ago](https://wordpress.org/support/topic/api-returns-non-empty-table-as-empty/#post-18075825)
 * Hello,
 * I finnaly found the solution, when i updated to WP 6.6.1 the file V3\class-wc-
   rest-customers-controller.php was updated to a new version and it doesn’t return
   the customer data array as before.
 * I didn’t know why and what is the solution so meanwhile i replace this file with
   the previous version.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘API returns non-empty table as empty’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce/assets/icon.svg?rev=3234504)
 * [WooCommerce](https://wordpress.org/plugins/woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce/reviews/)

## Tags

 * [api](https://wordpress.org/support/topic-tag/api/)
 * [empty response](https://wordpress.org/support/topic-tag/empty-response/)

 * 5 replies
 * 3 participants
 * Last reply from: [neutrino86](https://wordpress.org/support/users/neutrino86/)
 * Last activity: [1 year, 7 months ago](https://wordpress.org/support/topic/api-returns-non-empty-table-as-empty/#post-18075825)
 * Status: resolved