Endpoint / Authorization Mismatch

Viewing 3 reply threads
  • Author
    • #60725


      If I run the API against Canada Post test servers all seems to be OK.

      If I run API Live, I get no reply.

      Debug tells me:
      Canada Post RESPONSE:
      <?xml version=”1.0″ encoding=”UTF-8″?> <messages xmlns=”http://www.canadapost.ca/ws/messages”&gt; <message> AA002 <description>There is a mismatch between the endpoints and the authorization. Please ensure production keys are used with production endpoints and development keys are used with development endpoints.</description></message></messages>

      Resulting in my Cart telling me:

      There are no shipping methods available. Please ensure that your address has been entered correctly, or contact us if you need any help.

      I’m clueless where to go from here. Help please….

      WordPress environment
      Home URL: http://tandtarms.com
      Site URL: http://tandtarms.com
      WC version: 3.2.6
      Log directory writable: /home/content/a2pewpnas01_data03/16/4013616/html/wp-content/uploads/wc-logs/
      WP version: 4.9.1
      WP multisite: –
      WP memory limit: 256 MB
      WP debug mode: –
      WP cron:
      Language: en_CA
      Server environment
      Server info: Apache
      PHP version: 5.6.30
      PHP post max size: 65 MB
      PHP time limit: 30
      PHP max input vars: 1000
      cURL version: 7.45.0, OpenSSL/1.0.1e
      SUHOSIN installed: –
      MySQL version: 5.6.32
      Max upload size: 64 MB
      Default timezone is UTC:
      Multibyte string:
      Remote post:
      Remote get:
      WC database version: 3.2.6
      Database prefix wp_s39s081nfh_
      Total Database Size 11.85MB
      Database Data Size 10.08MB
      Database Index Size 1.77MB
      wp_s39s081nfh_woocommerce_sessions Data: 0.00MB + Index: 0.00MB
      wp_s39s081nfh_woocommerce_api_keys Data: 0.00MB + Index: 0.00MB
      wp_s39s081nfh_woocommerce_attribute_taxonomies Data: 0.00MB + Index: 0.00MB
      wp_s39s081nfh_woocommerce_downloadable_product_permissions Data: 0.00MB + Index: 0.00MB
      wp_s39s081nfh_woocommerce_order_items Data: 0.00MB + Index: 0.00MB
      wp_s39s081nfh_woocommerce_order_itemmeta Data: 0.00MB + Index: 0.00MB
      wp_s39s081nfh_woocommerce_tax_rates Data: 0.00MB + Index: 0.01MB
      wp_s39s081nfh_woocommerce_tax_rate_locations Data: 0.00MB + Index: 0.00MB
      wp_s39s081nfh_woocommerce_shipping_zones Data: 0.00MB + Index: 0.00MB
      wp_s39s081nfh_woocommerce_shipping_zone_locations Data: 0.00MB + Index: 0.00MB
      wp_s39s081nfh_woocommerce_shipping_zone_methods Data: 0.00MB + Index: 0.00MB
      wp_s39s081nfh_woocommerce_payment_tokens Data: 0.00MB + Index: 0.00MB
      wp_s39s081nfh_woocommerce_payment_tokenmeta Data: 0.00MB + Index: 0.00MB
      wp_s39s081nfh_woocommerce_log Data: 0.00MB + Index: 0.00MB
      wp_s39s081nfh_blc_filters Data: 0.00MB + Index: 0.00MB
      wp_s39s081nfh_blc_instances Data: 0.28MB + Index: 0.05MB
      wp_s39s081nfh_blc_links Data: 1.42MB + Index: 0.20MB
      wp_s39s081nfh_blc_synch Data: 0.01MB + Index: 0.01MB
      wp_s39s081nfh_commentmeta Data: 0.00MB + Index: 0.00MB
      wp_s39s081nfh_comments Data: 0.00MB + Index: 0.00MB
      wp_s39s081nfh_links Data: 0.00MB + Index: 0.00MB
      wp_s39s081nfh_options Data: 1.64MB + Index: 0.15MB
      wp_s39s081nfh_postmeta Data: 3.39MB + Index: 0.30MB
      wp_s39s081nfh_posts Data: 1.99MB + Index: 0.17MB
      wp_s39s081nfh_termmeta Data: 0.01MB + Index: 0.02MB
      wp_s39s081nfh_terms Data: 0.00MB + Index: 0.01MB
      wp_s39s081nfh_term_relationships Data: 0.02MB + Index: 0.04MB
      wp_s39s081nfh_term_taxonomy Data: 0.01MB + Index: 0.01MB
      wp_s39s081nfh_usermeta Data: 0.02MB + Index: 0.02MB
      wp_s39s081nfh_users Data: 0.00MB + Index: 0.01MB
      wp_s39s081nfh_wplnst_scans Data: 0.01MB + Index: 0.02MB
      wp_s39s081nfh_wplnst_scans_objects Data: 0.00MB + Index: 0.00MB
      wp_s39s081nfh_wplnst_urls Data: 0.27MB + Index: 0.33MB
      wp_s39s081nfh_wplnst_urls_locations Data: 0.45MB + Index: 0.26MB
      wp_s39s081nfh_wplnst_urls_locations_att Data: 0.00MB + Index: 0.00MB
      wp_s39s081nfh_wplnst_urls_status Data: 0.51MB + Index: 0.14MB
      wp_s39s081nfh_yoast_seo_links Data: 0.04MB + Index: 0.01MB
      wp_s39s081nfh_yoast_seo_meta Data: 0.01MB + Index: 0.01MB
      Post Type Counts
      attachment 975
      custom_css 1
      et_pb_layout 32
      et_pb_layout_stashed 8
      feedback 386
      jp_img_sitemap 2
      jp_sitemap 2
      jp_sitemap_master 2
      layout 2
      nav_menu_item 77
      offer 2
      page 20
      post 167
      product 2
      revision 4
      shop_webhook 1
      Secure connection (HTTPS): Your store is not using HTTPS. Learn more about HTTPS and SSL Certificates.
      Hide errors from visitors
      Active plugins (15)
      Canada Post WooCommerce Shipping with Print Label by Xadapter – 2.0.15 – Not tested with the active version of WooCommerce
      Disable Comments by Samir Shah – 1.7.1
      Duplicate Post by Enrico Battocchi – 3.2.1
      Jetpack by WordPress.com by Automattic – 5.7
      Limit Login Attempts by Johan Eenfeldt – 1.7.1
      Official StatCounter Plugin by Aodhan Cullen – 2.0.2
      UpdraftPlus – Backup/Restore by UpdraftPlus.com, DavidAnderson – 1.14.2
      WooCommerce PayPal Express Checkout Gateway by WooCommerce – 1.5.0
      WooCommerce Services by Automattic – 1.9.1 – Not tested with the active version of WooCommerce
      WooCommerce by Automattic – 3.2.6
      Yoast SEO by Team Yoast – 6.0
      WP-DBManager by Lester ‘GaMerZ’ Chan – 2.79.1
      WP Broken Link Status Checker by Pau Iglesias, SeedPlugins – 1.0.4
      WP Meta and Date Remover by Prasad Kirpekar – 1.7.2
      WP-Optimize by David Anderson, Ruhani Rabin, Team Updraft – 2.1.1
      API enabled:
      Force SSL: –
      Currency CAD ($)
      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)
      WC pages
      Shop base: #7054 – /shop/
      Cart: #7055 – /cart/
      Checkout: #7056 – /checkout/
      My account: #7057 – /my-account/
      Terms and conditions: #51 – /terms/
      Name: StyleShop
      Version: 2.2.12
      Author URL: http://www.elegantthemes.com
      Child theme: – If you are modifying WooCommerce on a parent theme that you did not build personally we recommend using a child theme. See: How to create a child theme
      WooCommerce support:

    • #61608

      Hi Thomas,

      Your Test credentials will not work in the Live mode. In order to have the “Live Credentials” from Canada Post and also make sure that the Production key option is enabled on your plugin settings page.

      Let us know if you have any query.

    • #68583

      how do I make sure the production key option is enabled on my plugin settings?

    • #68587

      Hi Jessie,

      In the plugin settings page, you will see an option “API Mode”. just select “Live” in it and put in the live credentials and you are ready to go live.
      I have attached the option for your convenience.

Viewing 3 reply threads
  • You must be logged in to reply to this topic.