Title: Error connecting via API
Last modified: October 29, 2021

---

# Error connecting via API

 *  Resolved [sirsimsom](https://wordpress.org/support/users/sirsimsom/)
 * (@sirsimsom)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/error-connecting-via-api/)
 * Hi,
 * trying to connect WC to a shipment provider via API, i can connect only when 
   the payments plugin is disabled. Otherwise i ran into this error:
 * There was an error deserializing the object of type System.Collections.Generic.
   List`1[[WooCommerceNET.WooCommerce.v3.PaymentGateway, WooCommerce.NET, Version
   =0.8.2.0, Culture=neutral, PublicKeyToken=ff41d0b6c93*****]]. End element ‘value’
   from namespace ” expected. Found element ‘item’ from namespace ”.

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

 *  [Nagesh Pai](https://wordpress.org/support/users/nagpai/)
 * (@nagpai)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/error-connecting-via-api/#post-15027797)
 * [@sirsimsom](https://wordpress.org/support/users/sirsimsom/)
 * Thanks for your post.
 * It will be great if you could share your current System Status Report. You can
   get it by navigating to the `WooCommerce / Status` section of your site. Once
   there, click on the `Get system report` button and then copy it by clicking on
   the `Copy for support` button. Then paste it here in a comment.
 * Are you saying your API connection works only if specifically WooCommerce Payments
   Plugin is disabled?
 * The error you have shared seems to be related to the WooCommerce.NET API wrapper
   
   [https://github.com/XiaoFaye/WooCommerce.NET](https://github.com/XiaoFaye/WooCommerce.NET)
 *  Thread Starter [sirsimsom](https://wordpress.org/support/users/sirsimsom/)
 * (@sirsimsom)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/error-connecting-via-api/#post-15027815)
 * Hi,
 * yes, API connection works only when Payments Plugin is disabled.
 *     ```
       ### WordPress Environment ###
   
       WordPress address (URL): https://****.**
       Site address (URL): https://****.**
       WC Version: 5.8.0
       REST API Version: ✔ 5.8.0
       WC Blocks Version: ✔ 5.9.1
       Action Scheduler Version: ✔ 3.3.0
       WC Admin Version: ✔ 2.7.2
       Log Directory Writable: ✔
       WP Version: 5.8.1
       WP Multisite: –
       WP Memory Limit: 256 MB
       WP Debug Mode: –
       WP Cron: ✔
       Language: it_IT
       External object cache: –
   
       ### Server Environment ###
   
       Server Info: Apache
       PHP Version: 8.0.12
       PHP Post Max Size: 80 MB
       PHP Time Limit: 120
       PHP Max Input Vars: 1000
       cURL Version: 7.61.1
       OpenSSL/1.1.1g
   
       SUHOSIN Installed: –
       MySQL Version: 5.5.5-10.3.28-MariaDB
       Max Upload Size: 20 MB
       Default Timezone is UTC: ✔
       fsockopen/cURL: ✔
       SoapClient: ✔
       DOMDocument: ✔
       GZip: ✔
       Multibyte String: ✔
       Remote Post: ✔
       Remote Get: ✔
   
       ### Database ###
   
       WC Database Version: 5.8.0
       WC Database Prefix: 63EpLFU_
       Dimensione totale database: 19.45MB
       Dimensione dati database: 17.26MB
       Dimensione indice database: 2.19MB
       63EpLFU_woocommerce_sessions: Dati: 0.02MB + indice: 0.02MB + motore InnoDB
       63EpLFU_woocommerce_api_keys: Dati: 0.02MB + indice: 0.03MB + motore InnoDB
       63EpLFU_woocommerce_attribute_taxonomies: Dati: 0.02MB + indice: 0.02MB + motore InnoDB
       63EpLFU_woocommerce_downloadable_product_permissions: Dati: 0.02MB + indice: 0.06MB + motore InnoDB
       63EpLFU_woocommerce_order_items: Dati: 0.02MB + indice: 0.02MB + motore InnoDB
       63EpLFU_woocommerce_order_itemmeta: Dati: 0.02MB + indice: 0.03MB + motore InnoDB
       63EpLFU_woocommerce_tax_rates: Dati: 0.05MB + indice: 0.06MB + motore InnoDB
       63EpLFU_woocommerce_tax_rate_locations: Dati: 0.02MB + indice: 0.03MB + motore InnoDB
       63EpLFU_woocommerce_shipping_zones: Dati: 0.02MB + indice: 0.00MB + motore InnoDB
       63EpLFU_woocommerce_shipping_zone_locations: Dati: 0.02MB + indice: 0.03MB + motore InnoDB
       63EpLFU_woocommerce_shipping_zone_methods: Dati: 0.02MB + indice: 0.00MB + motore InnoDB
       63EpLFU_woocommerce_payment_tokens: Dati: 0.02MB + indice: 0.02MB + motore InnoDB
       63EpLFU_woocommerce_payment_tokenmeta: Dati: 0.02MB + indice: 0.03MB + motore InnoDB
       63EpLFU_woocommerce_log: Dati: 0.02MB + indice: 0.02MB + motore InnoDB
       63EpLFU_actionscheduler_actions: Dati: 0.08MB + indice: 0.13MB + motore InnoDB
       63EpLFU_actionscheduler_claims: Dati: 0.02MB + indice: 0.02MB + motore InnoDB
       63EpLFU_actionscheduler_groups: Dati: 0.02MB + indice: 0.02MB + motore InnoDB
       63EpLFU_actionscheduler_logs: Dati: 0.06MB + indice: 0.03MB + motore InnoDB
       63EpLFU_commentmeta: Dati: 0.02MB + indice: 0.03MB + motore InnoDB
       63EpLFU_comments: Dati: 0.02MB + indice: 0.09MB + motore InnoDB
       63EpLFU_links: Dati: 0.02MB + indice: 0.02MB + motore InnoDB
       63EpLFU_options: Dati: 8.14MB + indice: 0.09MB + motore InnoDB
       63EpLFU_postmeta: Dati: 6.27MB + indice: 0.17MB + motore InnoDB
       63EpLFU_posts: Dati: 1.48MB + indice: 0.06MB + motore InnoDB
       63EpLFU_storeabill_documentmeta: Dati: 0.02MB + indice: 0.03MB + motore InnoDB
       63EpLFU_storeabill_documents: Dati: 0.02MB + indice: 0.06MB + motore InnoDB
       63EpLFU_storeabill_document_itemmeta: Dati: 0.02MB + indice: 0.03MB + motore InnoDB
       63EpLFU_storeabill_document_items: Dati: 0.02MB + indice: 0.05MB + motore InnoDB
       63EpLFU_storeabill_document_noticemeta: Dati: 0.02MB + indice: 0.03MB + motore InnoDB
       63EpLFU_storeabill_document_notices: Dati: 0.02MB + indice: 0.02MB + motore InnoDB
       63EpLFU_storeabill_journals: Dati: 0.02MB + indice: 0.02MB + motore InnoDB
       63EpLFU_termmeta: Dati: 0.02MB + indice: 0.03MB + motore InnoDB
       63EpLFU_terms: Dati: 0.02MB + indice: 0.03MB + motore InnoDB
       63EpLFU_term_relationships: Dati: 0.02MB + indice: 0.02MB + motore InnoDB
       63EpLFU_term_taxonomy: Dati: 0.02MB + indice: 0.03MB + motore InnoDB
       63EpLFU_usermeta: Dati: 0.02MB + indice: 0.03MB + motore InnoDB
       63EpLFU_users: Dati: 0.02MB + indice: 0.05MB + motore InnoDB
       63EpLFU_wc_admin_notes: Dati: 0.06MB + indice: 0.00MB + motore InnoDB
       63EpLFU_wc_admin_note_actions: Dati: 0.02MB + indice: 0.02MB + motore InnoDB
       63EpLFU_wc_category_lookup: Dati: 0.02MB + indice: 0.00MB + motore InnoDB
       63EpLFU_wc_customer_lookup: Dati: 0.02MB + indice: 0.03MB + motore InnoDB
       63EpLFU_wc_download_log: Dati: 0.02MB + indice: 0.03MB + motore InnoDB
       63EpLFU_wc_order_coupon_lookup: Dati: 0.02MB + indice: 0.03MB + motore InnoDB
       63EpLFU_wc_order_product_lookup: Dati: 0.02MB + indice: 0.06MB + motore InnoDB
       63EpLFU_wc_order_stats: Dati: 0.02MB + indice: 0.05MB + motore InnoDB
       63EpLFU_wc_order_tax_lookup: Dati: 0.02MB + indice: 0.03MB + motore InnoDB
       63EpLFU_wc_product_meta_lookup: Dati: 0.02MB + indice: 0.09MB + motore InnoDB
       63EpLFU_wc_reserved_stock: Dati: 0.02MB + indice: 0.00MB + motore InnoDB
       63EpLFU_wc_tax_rate_classes: Dati: 0.02MB + indice: 0.02MB + motore InnoDB
       63EpLFU_wc_webhooks: Dati: 0.02MB + indice: 0.02MB + motore InnoDB
       63EpLFU_woocommerce_gzd_dhl_im_products: Dati: 0.02MB + indice: 0.03MB + motore InnoDB
       63EpLFU_woocommerce_gzd_dhl_im_product_services: Dati: 0.02MB + indice: 0.03MB + motore InnoDB
       63EpLFU_woocommerce_gzd_packaging: Dati: 0.02MB + indice: 0.00MB + motore InnoDB
       63EpLFU_woocommerce_gzd_packagingmeta: Dati: 0.02MB + indice: 0.03MB + motore InnoDB
       63EpLFU_woocommerce_gzd_shipmentmeta: Dati: 0.02MB + indice: 0.03MB + motore InnoDB
       63EpLFU_woocommerce_gzd_shipments: Dati: 0.02MB + indice: 0.05MB + motore InnoDB
       63EpLFU_woocommerce_gzd_shipment_itemmeta: Dati: 0.02MB + indice: 0.03MB + motore InnoDB
       63EpLFU_woocommerce_gzd_shipment_items: Dati: 0.02MB + indice: 0.06MB + motore InnoDB
       63EpLFU_woocommerce_gzd_shipment_labelmeta: Dati: 0.02MB + indice: 0.03MB + motore InnoDB
       63EpLFU_woocommerce_gzd_shipment_labels: Dati: 0.02MB + indice: 0.03MB + motore InnoDB
       63EpLFU_woocommerce_gzd_shipping_provider: Dati: 0.02MB + indice: 0.00MB + motore InnoDB
       63EpLFU_woocommerce_gzd_shipping_providermeta: Dati: 0.02MB + indice: 0.03MB + motore InnoDB
       63EpLFU_wpforms_tasks_meta: Dati: 0.02MB + indice: 0.00MB + motore InnoDB
   
       ### Post Type Counts ###
   
       attachment: 55
       custom_css: 1
       customize_changeset: 13
       document_template: 4
       elementor_library: 1
       elementor-hf: 1
       nav_menu_item: 4
       page: 23
       post: 1
       product: 26
       revision: 87
       wpforms: 1
   
       ### Security ###
   
       Secure connection (HTTPS): ✔
       Hide errors from visitors: ✔
   
       ### Active Plugins (10) ###
   
       Astra Pro: by Brainstorm Force – 3.6.2
       Premium Starter Templates: by Brainstorm Force – 2.7.5
       Elementor: by Elementor.com – 3.4.7
       Elementor Header & Footer Builder: by Brainstorm Force
       Nikhil Chavan – 1.6.4
   
       Germanized for WooCommerce Pro: by vendidero – 3.3.5
       Germanized for WooCommerce: by vendidero – 3.6.3
       WooCommerce Payments: by Automattic – 3.2.3
       WooCommerce: by Automattic – 5.8.0
       Schema Pro: by Brainstorm Force – 2.7.1
       WPForms Lite: by WPForms – 1.7.0
   
       ### Inactive Plugins (0) ###
   
       ### Settings ###
   
       API Enabled: –
       Force SSL: –
       Currency: EUR (€)
       Currency Position: right_space
       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: –
   
       ### WC Pages ###
   
       Shop base: #977 - /shop/
       Carrello: #978 - /cart/
       Pagamento: #979 - /checkout/
       Il mio account: #980 - /my-account/
       Termini e condizioni: #14 - /terms/
   
       ### Theme ###
   
       Name: Astra
       Version: 3.7.4
       Author URL: https://wpastra.com/about/?utm_source=theme_preview&utm_medium=author_link&utm_campaign=astra_theme
       Child Theme: ❌ – Se stai modificando WooCommerce o un tema genitore che non hai costruito personalmente
       ti consigliamo di utilizzare un tema child. Vedi: Come creare un tema child
   
       WooCommerce Support: ✔
   
       ### Templates ###
   
       Overrides: –
   
       ### Action Scheduler ###
   
       Completato: 124
       Oldest: 2021-10-22 12:02:49 +0000
       Newest: 2021-11-02 07:14:29 +0000
   
       In attesa: 9
       Oldest: 2021-11-02 08:51:22 +0000
       Newest: 2021-11-04 13:08:07 +0000
   
       ### Status report information ###
   
       Generated at: 2021-11-02 07:15:00 +00:00
       ```
   
 *  [3 Sons Development](https://wordpress.org/support/users/3sonsdevelopment/)
 * (@3sonsdevelopment)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/error-connecting-via-api/#post-15073959)
 * Hi [@sirsimsom](https://wordpress.org/support/users/sirsimsom/),
 * Does this still happen with only WooCommerce, WooCommerce Payments, and the Twenty
   Twenty theme active? I didn’t see any plugins that appeared to be shipping related
   in the system report. Does the connection happen with webhooks or something else?
 * Let us know and we’ll go from there.
 * Thanks!
 *  [Joey – a11n](https://wordpress.org/support/users/jricketts4/)
 * (@jricketts4)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/error-connecting-via-api/#post-15122031)
 * We haven’t heard back from you in a while, so I’m going to mark this as resolved–
   we’ll be here if and/or when you are ready to continue.

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

The topic ‘Error connecting via API’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce-payments/assets/icon-256x256.png?rev=3234740)
 * [WooPayments: Integrated WooCommerce Payments](https://wordpress.org/plugins/woocommerce-payments/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce-payments/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce-payments/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce-payments/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce-payments/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce-payments/reviews/)

## Tags

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

 * 4 replies
 * 4 participants
 * Last reply from: [Joey – a11n](https://wordpress.org/support/users/jricketts4/)
 * Last activity: [4 years, 6 months ago](https://wordpress.org/support/topic/error-connecting-via-api/#post-15122031)
 * Status: resolved