Title: API not returning attribute/id/terms
Last modified: May 30, 2019

---

# API not returning attribute/id/terms

 *  Resolved [bblaas](https://wordpress.org/support/users/bblaas/)
 * (@bblaas)
 * [7 years ago](https://wordpress.org/support/topic/api-not-returning-attribute-id-terms/)
 * We have;
    Wordpress 5.2.1 multisite theme: Twenty Nineteen Woocommerce 3.6.4 
   No other plugins
 * the call to:
    [https://oursite.com//wc-api/v3/products/attributes/8?consumer_key=ck_9d7e&#8230](https://oursite.com//wc-api/v3/products/attributes/8?consumer_key=ck_9d7e&#8230);.
   returns; {“product_attribute”:{“id”:8,”name”:”Kleur”,”slug”:”pa_kleur”,”type”:”
   select”,”order_by”:”menu_order”,”has_archives”:true}}
 * But if we then call:
    [https://oursite.com//wc-api/v3/products/attributes/8/terms?consumer_key=ck_9d7e&#8230](https://oursite.com//wc-api/v3/products/attributes/8/terms?consumer_key=ck_9d7e&#8230);.
   the return is; {“errors”:[{“code”:”woocommerce_api_invalid_product_attribute_id”,”
   message”:”A product attribute with the provided ID could not be found”}]}
 * All other endpoints seem to work so far.
    Could you please give us a hint as 
   to where we make a mistake in the calling? thanks!

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

 *  Thread Starter [bblaas](https://wordpress.org/support/users/bblaas/)
 * (@bblaas)
 * [7 years ago](https://wordpress.org/support/topic/api-not-returning-attribute-id-terms/#post-11587107)
 * Just tested this with a local installation with the same results.
    -  This reply was modified 7 years ago by [bblaas](https://wordpress.org/support/users/bblaas/).
      Reason: typo
 *  Thread Starter [bblaas](https://wordpress.org/support/users/bblaas/)
 * (@bblaas)
 * [7 years ago](https://wordpress.org/support/topic/api-not-returning-attribute-id-terms/#post-11587301)
 * Yes, I noticed the double slashes in my question above,
    but repairing that gives
   still the same results.
 *  Thread Starter [bblaas](https://wordpress.org/support/users/bblaas/)
 * (@bblaas)
 * [7 years ago](https://wordpress.org/support/topic/api-not-returning-attribute-id-terms/#post-11615739)
 * As it turns out I mixed up the API documentations and used the wrong endpoints.
   
   Case closed.
    -  This reply was modified 7 years ago by [bblaas](https://wordpress.org/support/users/bblaas/).
      Reason: typo
 *  [con](https://wordpress.org/support/users/conschneider/)
 * (@conschneider)
 * Engineer
 * [7 years ago](https://wordpress.org/support/topic/api-not-returning-attribute-id-terms/#post-11616062)
 * Hi [@bblaas](https://wordpress.org/support/users/bblaas/),
 * What you describe sounds correct. I just tested this on my local system and have
   no trouble listing attribute terms by attribute ID. My cURL:
 *     ```
       curl "https://mysite.local/wp-json/wc/v3/products/attributes/2/terms" \
            -u 'ck_488ETC:cs_f1c9635ETC'
       ```
   
 * Result: [https://cld.wthms.co/kycYlQ](https://cld.wthms.co/kycYlQ)
 * Since it fails the moment you introduce an ID, I am guessing it might be the 
   multsite setup(?). Your cURL reflects mine above and WooCommerce is locally activated(
   not network activated).
    How do you route your TLD?
 * Kind regards,
 *  [con](https://wordpress.org/support/users/conschneider/)
 * (@conschneider)
 * Engineer
 * [7 years ago](https://wordpress.org/support/topic/api-not-returning-attribute-id-terms/#post-11616069)
 * > As it turns out I mixed up the API documentations and used the wrong endpoints.
   > 
   > Case closed.
 * Thanks for letting us know ;).

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

The topic ‘API not returning attribute/id/terms’ 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/)

 * 5 replies
 * 2 participants
 * Last reply from: [con](https://wordpress.org/support/users/conschneider/)
 * Last activity: [7 years ago](https://wordpress.org/support/topic/api-not-returning-attribute-id-terms/#post-11616069)
 * Status: resolved