Products Not Syncing from WooCommerce to Square
-
Hello,
I created a sandbox account and app on square and I am trying to sync products to Square but its not happening. I followed this guide here https://woocommerce.com/document/woocommerce-square/sync-settings/ and here are the settings, I used in Square Settings in WooCommerce.
Enable to set the plugin in sandbox mode = checked
Sandbox Application ID = App ID from Sandbox
Sandbox Access Token = Access Token from Sandbox
Business location = Default Test Account
Sync settings = WooCommerce
Sync Inventory = (Checked) Enable to push inventory changes to Square
Enable Logging = Checked
Store is connected to Square as I can see ‘Disconnect from Square’ Button.Here is the log from status page in WooCommerce Status.
2024-05-29T19:41:17+00:00 Notice Starting step cycle: update_inventory_tracking Additional context { "_legacy": true } 2024-05-29T19:41:17+00:00 Notice Request Request method: uri: searchCatalogObjects user-agent: WooCommerce-Square/4.6.2 (WooCommerce/8.9.1; WordPress/6.5.3) headers: Array ( ) body: duration: 0.41202s CONTEXT: {"_legacy":true} 2024-05-29T19:41:17+00:00 Notice Response Response code: 200 message: headers: Array ( [0] => HTTP/2 200 [date] => Wed, 29 May 2024 19:41:17 GMT [content-type] => application/json [content-length] => 66 [cf-ray] => 88b8f607fd8802b8-ORD [cf-cache-status] => DYNAMIC [content-encoding] => gzip [strict-transport-security] => max-age=631152000; includeSubDomains; preload [vary] => Origin, Accept-Encoding [square-version] => 2023-07-20 [x-content-type-options] => nosniff [x-download-options] => noopen [x-envoy-decorator-operation] => /v2/catalog/** [x-frame-options] => SAMEORIGIN [x-permitted-cross-domain-policies] => none [x-speleo-traceid] => CDN-13389a4b-b521-46d1-874e-168025dd6c2d [x-sq-dc] => aws [x-sq-region] => us-west-2 [x-xss-protection] => 1; mode=block [set-cookie] => __cf_bm=NOzeqhAAAKqMt4kUHs3AkqWrXUhKehn777.pmnBk0Uc-1717011677-1.0.1.1-cYjmfhp.PBzFtsbBTNcLE0HWmeUGfZJv24Uw5arXiG.ST6CJcqAGshnY.scOp6iUnon2Opj9bcYsbqsvwOkiSQ; path=/; expires=Wed, 29-May-24 20:11:17 GMT; domain=.squareupsandbox.com; HttpOnly; Secure; SameSite=None [server] => cloudflare ) body: { "latest_time": "2024-05-29T19:28:37.841Z" } CONTEXT: {"_legacy":true} 2024-05-29T19:41:17+00:00 Notice Completed job step: update_inventory_tracking Additional context { "_legacy": true } 2024-05-29T19:41:17+00:00 Notice Completed step cycle: update_inventory_tracking (0.45s) Additional context { "_legacy": true } 2024-05-29T19:41:17+00:00 Notice Starting step cycle: update_inventory_counts Additional context { "_legacy": true } 2024-05-29T19:41:18+00:00 Notice Request Request method: uri: batchRetrieveInventoryCounts user-agent: WooCommerce-Square/4.6.2 (WooCommerce/8.9.1; WordPress/6.5.3) headers: Array ( ) body: duration: 0.73679s CONTEXT: {"_legacy":true} 2024-05-29T19:41:18+00:00 Notice Response Response code: 200 message: headers: Array ( [0] => HTTP/2 200 [date] => Wed, 29 May 2024 19:41:18 GMT [content-type] => application/json [content-length] => 26 [cf-ray] => 88b8f60adc421cf4-ORD [cf-cache-status] => DYNAMIC [content-encoding] => gzip [strict-transport-security] => max-age=631152000; includeSubDomains; preload [vary] => Origin, Accept-Encoding [square-version] => 2023-07-20 [x-content-type-options] => nosniff [x-download-options] => noopen [x-envoy-decorator-operation] => /v2/inventory/** [x-frame-options] => SAMEORIGIN [x-permitted-cross-domain-policies] => none [x-speleo-traceid] => CDN-1c32255d-5152-4b58-af12-c31c4a5746bd [x-sq-dc] => aws [x-sq-region] => us-west-2 [x-xss-protection] => 1; mode=block [set-cookie] => __cf_bm=0prcYjJLPYtbN4NK7j68orvuxqjTIH9NTggVhQYPFWQ-1717011678-1.0.1.1-xJcLZGrmSQZrHHg3OngyekaYh0XoFDaLxsoVGbVZ7.MIbpwYPo07aqU4X.2EzZJFUeaPnp3Ci8jVoMT6IwNCKg; path=/; expires=Wed, 29-May-24 20:11:18 GMT; domain=.squareupsandbox.com; HttpOnly; Secure; SameSite=None [server] => cloudflare ) body: {} CONTEXT: {"_legacy":true} 2024-05-29T19:41:18+00:00 Notice Completed job step: update_inventory_counts (Synced products: 0) Additional context { "_legacy": true } 2024-05-29T19:41:18+00:00 Notice Completed step cycle: update_inventory_counts (0.78s) Additional context { "_legacy": true } 2024-05-29T19:42:17+00:00 Notice Starting step cycle: validate_products Additional context { "_legacy": true } 2024-05-29T19:42:17+00:00 Notice Completed job step: validate_products (Validated products: 17) Additional context { "_legacy": true } 2024-05-29T19:42:17+00:00 Notice Completed step cycle: validate_products (0.03s) Additional context { "_legacy": true } 2024-05-29T19:42:17+00:00 Notice Starting step cycle: extract_category_ids Additional context { "_legacy": true } 2024-05-29T19:42:17+00:00 Notice Completed job step: extract_category_ids (Extracted categories: 7) Additional context { "_legacy": true } 2024-05-29T19:42:17+00:00 Notice Completed step cycle: extract_category_ids (0.02s) Additional context { "_legacy": true } 2024-05-29T19:42:17+00:00 Notice Starting step cycle: refresh_category_mappings Additional context { "_legacy": true } 2024-05-29T19:42:18+00:00 Notice Request Request method: uri: batchRetrieveCatalogObjects user-agent: WooCommerce-Square/4.6.2 (WooCommerce/8.9.1; WordPress/6.5.3) headers: Array ( ) body: duration: 0.37128s CONTEXT: {"_legacy":true} 2024-05-29T19:42:18+00:00 Notice Response Response code: 200 message: headers: Array ( [0] => HTTP/2 200 [date] => Wed, 29 May 2024 19:42:18 GMT [content-type] => application/json [content-length] => 501 [cf-ray] => 88b8f780f8dc1048-ORD [cf-cache-status] => DYNAMIC [content-encoding] => gzip [strict-transport-security] => max-age=631152000; includeSubDomains; preload [vary] => Origin, Accept-Encoding [square-version] => 2023-07-20 [x-content-type-options] => nosniff [x-download-options] => noopen [x-envoy-decorator-operation] => /v2/catalog/** [x-frame-options] => SAMEORIGIN [x-permitted-cross-domain-policies] => none [x-speleo-traceid] => CDN-f6c22f30-dcf6-4bc2-8bf9-da51033d918b [x-sq-dc] => aws [x-sq-region] => us-west-2 [x-xss-protection] => 1; mode=block [set-cookie] => __cf_bm=QkaqHCifupyhOpWudylfWgE6UF1GKUaeYvl74Q1WTx0-1717011738-1.0.1.1-OO90LPIz5gF8Kiv57edHuf9BBpS3KB8YiUE5Ys46YglU3ofZj7GBqoAaebAhOwO7BTlPQPiATtyrGTG3asaCMQ; path=/; expires=Wed, 29-May-24 20:12:18 GMT; domain=.squareupsandbox.com; HttpOnly; Secure; SameSite=None [server] => cloudflare ) body: { "objects": [ { "type": "CATEGORY", "id": "4QMK3K4ETOJI42KFHQHDBHH5", "updated_at": "2024-05-29T19:18:26.276Z", "version": 1717010306276, "is_deleted": false, "present_at_all_locations": true, "category_data": { "name": "Uncategorized" } }, { "type": "CATEGORY", "id": "T5VOVMJ64DB5VWJFDN7FL25W", "updated_at": "2024-03-22T17:43:42.82Z", "version": 1711129422820, "is_deleted": false, "present_at_all_locations": true, "category_data": { "name": "Breakfast" } }, { "type": "CATEGORY", "id": "FNP5ZTCAULHYNJ6CB7OT3GMZ", "updated_at": "2024-03-22T17:43:59.553Z", "version": 1711129439553, "is_deleted": false, "present_at_all_locations": true, "category_data": { "name": "Lunch" } }, { "type": "CATEGORY", "id": "723DO7O4LIX2QVHFYGDJVCMC", "updated_at": "2024-05-29T19:18:26.395Z", "version": 1717010306395, "is_deleted": false, "present_at_all_locations": true, "category_data": { "name": "Fresh Salads" } }, { "type": "CATEGORY", "id": "WRBUJEF2JWBF2KBBSZYBBPLU", "updated_at": "2024-05-29T19:18:26.526Z", "version": 1717010306526, "is_deleted": false, "present_at_all_locations": true, "category_data": { "name": "Garden plates" } }, { "type": "CATEGORY", "id": "2PQPJEBSGYASIFTSTHKDIP7N", "updated_at": "2024-05-29T19:18:26.651Z", "version": 1717010306651, "is_deleted": false, "present_at_all_locations": true, "category_data": { "name": "Signatures Dishes" } } ] } CONTEXT: {"_legacy":true} 2024-05-29T19:42:18+00:00 Notice Completed step cycle: refresh_category_mappings (0.39s) Additional context { "_legacy": true } 2024-05-29T19:42:18+00:00 Notice Starting step cycle: refresh_category_mappings Additional context { "_legacy": true } 2024-05-29T19:42:18+00:00 Notice Completed job step: refresh_category_mappings (Mapped categories: 7, Unmapped categories: 0) Additional context { "_legacy": true } 2024-05-29T19:42:18+00:00 Notice Completed step cycle: refresh_category_mappings (0.01s) Additional context { "_legacy": true } 2024-05-29T19:42:18+00:00 Notice Starting step cycle: query_unmapped_categories Additional context { "_legacy": true } 2024-05-29T19:42:18+00:00 Notice Completed job step: query_unmapped_categories (Total mapped categories: 7) Additional context { "_legacy": true } 2024-05-29T19:42:18+00:00 Notice Completed step cycle: query_unmapped_categories (0.01s) Additional context { "_legacy": true } 2024-05-29T19:42:18+00:00 Notice Starting step cycle: upsert_categories Additional context { "_legacy": true } 2024-05-29T19:42:19+00:00 Notice Request Request method: uri: batchUpsertCatalogObjects user-agent: WooCommerce-Square/4.6.2 (WooCommerce/8.9.1; WordPress/6.5.3) headers: Array ( ) body: duration: 0.93959s CONTEXT: {"_legacy":true} 2024-05-29T19:42:19+00:00 Notice Response Response code: 400 message: headers: Array ( [0] => HTTP/2 400 [date] => Wed, 29 May 2024 19:42:19 GMT [content-type] => application/json [content-length] => 159 [cf-ray] => 88b8f7862b1b616e-ORD [cf-cache-status] => DYNAMIC [content-encoding] => gzip [strict-transport-security] => max-age=631152000; includeSubDomains; preload [vary] => Origin, Accept-Encoding [square-version] => 2023-07-20 [x-content-type-options] => nosniff [x-download-options] => noopen [x-envoy-decorator-operation] => /v2/catalog/** [x-frame-options] => SAMEORIGIN [x-permitted-cross-domain-policies] => none [x-speleo-traceid] => CDN-3c3337d6-c62d-42d9-9d39-1e1b53248880 [x-sq-dc] => aws [x-sq-region] => us-west-2 [x-xss-protection] => 1; mode=block [set-cookie] => __cf_bm=1QEdDzprxQ2Meb05w2PUaNBkS9.l9fHtHzoDJJOyo3c-1717011739-1.0.1.1-QXfMINKoy2O53D_8ENzpFSYTxmUhmadFeyAmq8ZRzoqoOpl32xoXVHM9GzMEN2V2nArYCmE2qLixGP7jSTY.Ew; path=/; expires=Wed, 29-May-24 20:12:19 GMT; domain=.squareupsandbox.com; HttpOnly; Secure; SameSite=None [server] => cloudflare ) body: Array ( [0] => Square\Models\Error Object ( [category:Square\Models\Error:private] => INVALID_REQUEST_ERROR [code:Square\Models\Error:private] => VERSION_MISMATCH [detail:Square\Models\Error:private] => Object version does not match latest database version. [field:Square\Models\Error:private] => version ) ) CONTEXT: {"_legacy":true} 2024-05-29T19:42:19+00:00 Notice Failed step cycle: upsert_categories (0.95s) - [VERSION_MISMATCH] Object version does not match latest database version. Additional context { "_legacy": true } 2024-05-29T19:42:19+00:00 Notice [VERSION_MISMATCH] Object version does not match latest database version. Additional context { "_legacy": true }
Please help where I am doing wrong
Thanks
Sajid
- You must be logged in to reply to this topic.