Title: API doesn&#8217;t work
Last modified: May 15, 2024

---

# API doesn’t work

 *  [melbournesocialtango](https://wordpress.org/support/users/melbournesocialtango/)
 * (@melbournesocialtango)
 * [2 years ago](https://wordpress.org/support/topic/api-doesnt-work-4/)
 * Hello,
 * I am trying to access the subscriptions via an API: [https://***/wp-json/wc/v3/subscriptions](https://***/wp-json/wc/v3/subscriptions),
   but I’m getting an error:
 * { “code”: “rest_no_route”, “message”: “No route was found matching the URL and
   request method.”, “data”: { “status”: 404 } }
 * Any help with that please?
 * Below is our system status:
 *     ```wp-block-code
       ` WordPress Environment
   
       WordPress address (URL): https://melbournesocialtango.com
       Site address (URL): https://melbournesocialtango.com
       WC Version: 8.8.3
       REST API Version: ✔ 8.8.3
       Action Scheduler Version: ✔ 3.7.4
       Log Directory Writable: ✔
       WP Version: 6.5.3
       WP Multisite: –
       WP Memory Limit: 768 MB
       WP Debug Mode: –
       WP Cron: ✔
       Language: en_US
       External object cache: – Server Environment
   
       Server Info: Apache
       PHP Version: 7.4.33
       PHP Post Max Size: 256 MB
       PHP Time Limit: 120
       PHP Max Input Vars: 3000
       cURL Version: 8.2.1
       OpenSSL/3.1.1
   
       SUHOSIN Installed: –
       MySQL Version: 8.0.34-26
       Max Upload Size: 256 MB
       Default Timezone is UTC: ✔
       fsockopen/cURL: ✔
       SoapClient: ✔
       DOMDocument: ✔
       GZip: ✔
       Multibyte String: ✔
       Remote Post: ✔
       Remote Get: ✔ Database
   
       WC Database Version: 8.8.3
       WC Database Prefix: npv_
       Total Database Size: 109.10MB
       Database Data Size: 87.81MB
       Database Index Size: 21.29MB
       npv_woocommerce_sessions: Data: 0.06MB + Index: 0.02MB + Engine InnoDB
       npv_woocommerce_api_keys: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
       npv_woocommerce_attribute_taxonomies: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
       npv_woocommerce_downloadable_product_permissions: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
       npv_woocommerce_order_items: Data: 0.09MB + Index: 0.02MB + Engine InnoDB
       npv_woocommerce_order_itemmeta: Data: 1.52MB + Index: 0.53MB + Engine InnoDB
       npv_woocommerce_tax_rates: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
       npv_woocommerce_tax_rate_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
       npv_woocommerce_shipping_zones: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
       npv_woocommerce_shipping_zone_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
       npv_woocommerce_shipping_zone_methods: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
       npv_woocommerce_payment_tokens: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
       npv_woocommerce_payment_tokenmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
       npv_woocommerce_log: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
       npv_actionscheduler_actions: Data: 0.27MB + Index: 0.25MB + Engine InnoDB
       npv_actionscheduler_claims: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
       npv_actionscheduler_groups: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
       npv_actionscheduler_logs: Data: 0.08MB + Index: 0.03MB + Engine InnoDB
       npv_commentmeta: Data: 0.06MB + Index: 0.03MB + Engine InnoDB
       npv_comments: Data: 1.52MB + Index: 0.72MB + Engine InnoDB
       npv_ditty_itemmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
       npv_ditty_items: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
       npv_e_events: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
       npv_e_notes: Data: 0.02MB + Index: 0.17MB + Engine InnoDB
       npv_e_notes_users_relations: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
       npv_e_submissions: Data: 0.09MB + Index: 0.27MB + Engine InnoDB
       npv_e_submissions_actions_log: Data: 0.02MB + Index: 0.11MB + Engine InnoDB
       npv_e_submissions_values: Data: 0.08MB + Index: 0.03MB + Engine InnoDB
       npv_give_commentmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
       npv_give_comments: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
       npv_give_donationmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
       npv_give_donormeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
       npv_give_donors: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
       npv_give_formmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
       npv_give_logmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
       npv_give_logs: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
       npv_give_sequential_ordering: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
       npv_give_sessions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
       npv_jetpack_sync_queue: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
       npv_links: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
       npv_mailchimp_carts: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
       npv_mailchimp_jobs: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
       npv_mp_timetable_data: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
       npv_options: Data: 8.08MB + Index: 0.22MB + Engine InnoDB
       npv_pmxe_exports: Data: 0.05MB + Index: 0.00MB + Engine InnoDB
       npv_pmxe_google_cats: Data: 0.39MB + Index: 0.00MB + Engine InnoDB
       npv_pmxe_posts: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
       npv_pmxe_templates: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
       npv_pmxi_files: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
       npv_pmxi_hash: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
       npv_pmxi_history: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
       npv_pmxi_images: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
       npv_pmxi_imports: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
       npv_pmxi_posts: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
       npv_pmxi_templates: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
       npv_postmeta: Data: 39.55MB + Index: 9.03MB + Engine InnoDB
       npv_posts: Data: 29.52MB + Index: 0.83MB + Engine InnoDB
       npv_prflxtrflds_fields_meta: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
       npv_redirects: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
       npv_revslider_css: Data: 0.13MB + Index: 0.02MB + Engine InnoDB
       npv_revslider_css_bkp: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
       npv_revslider_layer_animations: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
       npv_revslider_layer_animations_bkp: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
       npv_revslider_navigations: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
       npv_revslider_navigations_bkp: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
       npv_revslider_sliders: Data: 0.05MB + Index: 0.02MB + Engine InnoDB
       npv_revslider_sliders_bkp: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
       npv_revslider_slides: Data: 0.17MB + Index: 0.02MB + Engine InnoDB
       npv_revslider_slides_bkp: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
       npv_revslider_static_slides: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
       npv_revslider_static_slides_bkp: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
       npv_sgs_log_events: Data: 2.02MB + Index: 4.02MB + Engine InnoDB
       npv_sgs_log_visitors: Data: 0.09MB + Index: 0.09MB + Engine InnoDB
       npv_smush_dir_images: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
       npv_tec_events: Data: 0.05MB + Index: 0.02MB + Engine InnoDB
       npv_tec_occurrences: Data: 0.13MB + Index: 0.06MB + Engine InnoDB
       npv_tec_posts_and_ticket_groups: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
       npv_tec_series_relationships: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
       npv_tec_ticket_groups: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
       npv_term_relationships: Data: 0.06MB + Index: 0.05MB + Engine InnoDB
       npv_term_taxonomy: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
       npv_termmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
       npv_terms: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
       npv_usermeta: Data: 1.52MB + Index: 3.03MB + Engine InnoDB
       npv_users: Data: 0.11MB + Index: 0.05MB + Engine InnoDB
       npv_wc_admin_note_actions: Data: 0.09MB + Index: 0.02MB + Engine InnoDB
       npv_wc_admin_notes: Data: 0.11MB + Index: 0.00MB + Engine InnoDB
       npv_wc_category_lookup: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
       npv_wc_customer_lookup: Data: 0.08MB + Index: 0.03MB + Engine InnoDB
       npv_wc_download_log: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
       npv_wc_order_addresses: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
       npv_wc_order_coupon_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
       npv_wc_order_operational_data: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
       npv_wc_order_product_lookup: Data: 0.11MB + Index: 0.06MB + Engine InnoDB
       npv_wc_order_stats: Data: 0.11MB + Index: 0.08MB + Engine InnoDB
       npv_wc_order_tax_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
       npv_wc_orders: Data: 0.02MB + Index: 0.11MB + Engine InnoDB
       npv_wc_orders_meta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
       npv_wc_product_attributes_lookup: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
       npv_wc_product_download_directories: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
       npv_wc_product_meta_lookup: Data: 0.02MB + Index: 0.09MB + Engine InnoDB
       npv_wc_rate_limits: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
       npv_wc_reserved_stock: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
       npv_wc_tax_rate_classes: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
       npv_wc_webhooks: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
       npv_woocommerce_square_customers: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
       npv_wt_iew_action_history: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
       npv_wt_iew_cron: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
       npv_wt_iew_ftp: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
       npv_wt_iew_mapping_template: Data: 0.02MB + Index: 0.00MB + Engine InnoDB Post Type Counts
   
       acf-field: 2
       acf-field-group: 1
       attachment: 1242
       cpt_courses: 6
       cpt_layouts: 4
       cpt_services: 12
       cpt_team: 8
       cpt_testimonials: 3
       custom_css: 1
       ditty: 2
       ditty_display: 4
       ditty_layout: 3
       ditty_news_ticker: 2
       elementor_font: 1
       elementor_library: 14
       give_forms: 1
       give_payment: 7
       mc4wp-form: 1
       mp-column: 7
       nav_menu_item: 57
       oembed_cache: 22
       page: 29
       points_image: 2
       post: 9
       product: 58
       revision: 3515
       shop_coupon: 6
       shop_order: 1104
       shop_order_refund: 15
       tec_tc_ticket: 2
       tribe_event_series: 10
       tribe_events: 149
       tribe_organizer: 12
       tribe_venue: 31
       wc_membership_plan: 2
       wc_user_membership: 315
       wpcf7_contact_form: 3
       wpsl_stores: 21
       ywsbs_subscription: 240 Security
   
       Secure connection (HTTPS): ✔
       Hide errors from visitors: ✔ Active Plugins (39)
   
       Advanced Custom Fields: by WP Engine – 6.2.9
       Advanced Post Manager: by The Events Calendar – 4.5.4
       Autocomplete WooCommerce Orders: by QuadLayers – 3.3.0
       Classic Editor: by WordPress Contributors – 1.6.3
       Contact Form 7: by Takayuki Miyoshi – 5.9.4
       Disable Comments: by WPDeveloper – 2.4.6
       Ditty: by Metaphor Creations – 3.1.40
       Yoast Duplicate Post: by Enrico Battocchi & Team Yoast – 4.5
       Elementor Pro: by Elementor.com – 3.17.1
       Elementor: by Elementor.com – 3.21.4
       301 Redirects: by WebFactory Ltd – 2.75
       Event Tickets: by The Events Calendar – 5.9.1.1
       The Events Calendar Pro: by The Events Calendar – 6.4.0.1
       Flexible Checkout Fields: by WP Desk – 4.1.5
       ICS Calendar: by Room 34 Creative Services
       LLC – 11.0.1.1
   
       Import and export users and customers: by codection – 1.26.6.1
       Jetpack: by Automattic – 13.4
       Loco Translate: by Tim Whitlock – 2.6.7
       Mailchimp for WooCommerce: by Mailchimp – 4.0.1
       MC4WP: Mailchimp for WordPress: by ibericode – 4.9.13
       Maintenance: by WebFactory Ltd – 4.08
       Media Library Assistant: by David Lingren – 3.15
       Post Types Order: by Nsp Code – 2.2.1
       Slider Revolution: by ThemePunch – 6.5.11
       Speed Optimizer: by SiteGround – 7.5.0
       Security Optimizer: by SiteGround – 1.4.13
       The Events Calendar: by The Events Calendar – 6.4.0.1
       ThemeREX Addons: by ThemeREX – 1.6.61.5
       ThemeREX Updater: by ThemeREX – 1.9.6
       Update Theme and Plugins from Zip File: by Jeff Sherk – 2.0.0
       UpdraftPlus - Backup/Restore: by UpdraftPlus.Com
       DavidAnderson – 1.24.3
   
       Product Customer List for WooCommerce: by Kokomo – 3.1.6
       WC Search Orders By Product: by WPHEKA – 2.0
       Advanced Order Export For WooCommerce: by AlgolPlus – 3.5.1
       WooCommerce Stripe Gateway: by WooCommerce – 8.2.0
       WooCommerce Memberships: by SkyVerge – 1.9.8
       WooCommerce: by Automattic – 8.8.3 (update to version 8.9.0 is available)
       WP Store Locator: by Tijmen Smit – 2.2.241
       YITH WooCommerce Subscription: by YITH – 3.5.0 Inactive Plugins (3)
   
       Checkout Field Editor for WooCommerce: by ThemeHigh – 2.0.1
       Essential Addons for Elementor: by WPDeveloper – 5.9.20
       WooCommerce Square: by WooCommerce – 4.6.1 Must Use Plugins (1)
   
       installatron_hide_status_test.php: by – Settings
   
       API Enabled: ✔
       Force SSL: –
       Currency: AUD ($)
       Currency Position: left
       Thousand Separator: ,
       Decimal Separator: .
       Number of Decimals: 2
       Taxonomies: Product Types: 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 screen enabled: –
       HPOS feature enabled: –
       Order datastore: WC_Order_Data_Store_CPT
       HPOS data sync enabled: – Logging
   
       Enabled: ✔
       Handler: Automattic\WooCommerce\Internal\Admin\Logging\LogHandlerFileV2
       Retention period: 30 days
       Level threshold: –
       Log directory size: 168 KB WC Pages
   
       Shop base: #83 - /shop/
       Cart: #1842 - /cart/
       Checkout: #1844 - /checkout/
       My account: #4820 - /my-account/
       Terms and conditions: #5338 - /terms/ Theme
   
       Name: RareRadio Child
       Version: 1.0
       Author URL: http://ancorathemes.com/
       Child Theme: ✔
       Parent Theme Name: RareRadio
       Parent Theme Version: 1.0.5
       Parent Theme Author URL: https://ancorathemes.com/
       WooCommerce Support: ✔ Templates
   
       Overrides: – Admin
   
       Enabled Features: activity-panels
       analytics
       product-block-editor
       coupons
       core-profiler
       customize-store
       customer-effort-score-tracks
       import-products-task
       experimental-fashion-sample-products
       shipping-smart-defaults
       shipping-setting-tour
       homescreen
       marketing
       mobile-app-banner
       navigation
       onboarding
       onboarding-tasks
       product-variation-management
       product-virtual-downloadable
       product-external-affiliate
       product-grouped
       product-linked
       product-pre-publish-modal
       remote-inbox-notifications
       remote-free-extensions
       payment-gateway-suggestions
       shipping-label-banner
       subscriptions
       store-alerts
       transient-notices
       woo-mobile-welcome
       wc-pay-promotion
       wc-pay-welcome-page
   
       Disabled Features: minified-js
       new-product-management-experience
       product-custom-fields
       settings
       async-product-editor-category-field
       launch-your-store
   
       Daily Cron: ✔ Next scheduled: 2024-05-16 02:07:49 +10:00
       Options: ✔
       Notes: 211
       Onboarding: completed Action Scheduler
   
       Complete: 468
       Oldest: 2024-04-14 19:55:13 +1000
       Newest: 2024-05-15 13:28:18 +1000
   
       Failed: 5
       Oldest: 2022-05-02 08:04:00 +1000
       Newest: 2023-06-05 10:33:55 +1000
   
       Pending: 340
       Oldest: 2024-05-15 18:15:53 +1000
       Newest: 2099-12-31 00:00:00 +1100 Status report information
   
       Generated at: 2024-05-15 14:50:06 +10:00
       `
       ```
   

Viewing 1 replies (of 1 total)

 *  [Afzal (woo-hc)](https://wordpress.org/support/users/afzalpansuvi/)
 * (@afzalpansuvi)
 * [2 years ago](https://wordpress.org/support/topic/api-doesnt-work-4/#post-17759796)
 * Hi [@melbournesocialtango](https://wordpress.org/support/users/melbournesocialtango/),
 * Thank you for reaching out. The error message you’re seeing typically indicates
   that the URL you’re trying to access is not available or the request method is
   not supported. Since you’re trying to access the subscriptions endpoint, let’s
   ensure that everything is set up correctly.
 * Firstly, could you please confirm if the WooCommerce Subscriptions plugin is 
   active on your site? The endpoint `/wp-json/wc/v3/subscriptions` is specific 
   to the WooCommerce Subscriptions extension, and if it’s not installed or activated,
   this could be the reason for the error. If the plugin is active, we should check
   if the REST API is properly configured. Here are a few steps you can follow:
    1. Ensure that pretty permalinks are enabled in your WordPress settings. You can
       find this under Settings > Permalinks.
    2. Verify that the WooCommerce Subscriptions plugin is up to date. If an update
       is available, please proceed with updating it.
    3. Check if any security plugin or server configuration might be blocking REST 
       API requests.
 * If you continue to face difficulties, I would recommend checking the WooCommerce
   [REST API documentation](https://woocommerce.com/document/woocommerce-rest-api/)
   for more insights on using and troubleshooting the API.
 * Let us know if there’s anything else we can help you with.

Viewing 1 replies (of 1 total)

The topic ‘API doesn’t work’ 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/)

 * 1 reply
 * 2 participants
 * Last reply from: [Afzal (woo-hc)](https://wordpress.org/support/users/afzalpansuvi/)
 * Last activity: [2 years ago](https://wordpress.org/support/topic/api-doesnt-work-4/#post-17759796)
 * Status: not resolved