Sync Not work with ATUM multi-Inventory products
-
ATUM’s Muti-Inventory items are not able to preform “stock_quantity” update request with RESP API requests.
ATUM’s Muti-Inventory items are being able to lookup by SKU, each of them can be sign with a unique SKU. AND Looks like ATUM is not assigning a unique product id to each Multi-Inventory products, thus there’s the update request won’t complete.(?)
Please kindly guide us how to edit the PHP code to have “stock_quantity” updated by this type of request.
log attached below.
Thanks.
Details: Date: 2021-07-03 23:15:08 Source: WP REST API Method: POST Status: 200 Elapsed Time: 710ms Response Length: 7,735 User: adwasd IP Address: 213.190.6.175 ======================================= Request Headers { "accept": "application\/json", "content_type": "application\/json;charset=utf-8", "content_length": "215", "host": "happy-distro.com", "user_agent": "WooCommerce API Client-PHP\/2.0.1" } ======================================== Query Parameters { "consumer_key": "ck_bf556627fc71cdc32f2d7c07c4dc3b739202f2d7", "consumer_secret": "cs_cebc509587b4cb994f689ddfffae5cbce0bfc2a8" } ========================================= Body Parameters [] ========================================= Body content {"stock_quantity":5,"source_desc":null,"source_url":null,"woo_stock_sync":"1","woo_stock_sync_source":"https://geekbarwholesale.com","woo_stock_sync_source_role":"primary","context":"edit","sku_param":"HS33-BBRZ"} ========================================= Response Headers { "X-Powered-By": "PHP\/7.2.34", "Content-Type": "application\/json; charset=UTF-8", "X-Robots-Tag": "noindex", "Link": "<https\/\/happy-distro.com\/index.php\/wp-json\/>; rel="https\/\/api.w.org\/"", "X-Content-Type-Options": "nosniff", "Access-Control-Expose-Headers": "X-WP-Total, X-WP-TotalPages, Link", "Access-Control-Allow-Headers": "Authorization, X-WP-Nonce, Content-Disposition, Content-MD5, Content-Type", "Expires": "Wed, 11 Jan 1984 050000 GMT", "Cache-Control": "no-cache, must-revalidate, max-age=0", "Allow": "GET, POST, PUT, PATCH" } ========================================== Response Body { "data": { "id": 3003, "name": "Honest Sticks 3300p (10 bars / box) - Blue Razz", "slug": "honest-sticks-3300p-10-bars-box-blue-razz", "permalink": "https://happy-distro.com/index.php/product/honest-sticks-3300p-10-bars-box/?attribute_flavors=Blue+Razz", "date_created": "2021-07-03T13:17:21", "date_created_gmt": "2021-07-03T20:17:21", "date_modified": "2021-07-03T23:15:08", "date_modified_gmt": "2021-07-04T06:15:08", "type": "variation", "status": "publish", "featured": false, "catalog_visibility": "visible", "description": "", "short_description": "", "sku": "HS33-BBRZ", "price": "78", "regular_price": "78", "sale_price": "", "date_on_sale_from": null, "date_on_sale_from_gmt": null, "date_on_sale_to": null, "date_on_sale_to_gmt": null, "on_sale": false, "purchasable": true, "total_sales": "0", "virtual": false, "downloadable": false, "downloads": [], "download_limit": 0, "download_expiry": 0, "external_url": "", "button_text": "", "tax_status": "taxable", "tax_class": "parent", "manage_stock": true, "stock_quantity": 3, "in_stock": true, "backorders": "no", "backorders_allowed": false, "backordered": false, "sold_individually": false, "weight": "", "dimensions": { "length": "", "width": "", "height": "" }, "shipping_required": true, "shipping_taxable": true, "shipping_class": "", "shipping_class_id": 0, "reviews_allowed": false, "average_rating": 0, "rating_count": 0, "upsell_ids": [], "cross_sell_ids": [], "parent_id": 3002, "purchase_note": "", "categories": [ { "id": 15, "name": "Uncategorized", "slug": "uncategorized" } ], "tags": [], "images": [ { "id": 3046, "date_created": "2021-07-03T06:19:42", "date_created_gmt": "2021-07-03T20:19:42", "date_modified": "2021-07-03T06:19:42", "date_modified_gmt": "2021-07-03T20:19:42", "src": "https://happy-distro.com/wp-content/uploads/2021/07/IMG_7893-0_03.jpg", "name": "IMG_7893-0_03.jpg", "alt": "", "position": 0 } ], "attributes": [ { "id": 0, "name": "Flavors", "option": "Blue Razz" } ], "default_attributes": [], "variations": [], "grouped_products": [], "menu_order": 1, "low_stock_amount": "", "price_html": "<span class="woocommerce-Price-amount amount"><bdi><span class="woocommerce-Price-currencySymbol">$</span>78.00</bdi></span>", "related_ids": [ 3063, 3069 ], "meta_data": [ { "id": 41556, "key": "_wssvsc_excludeenalls", "value": "" }, { "id": 41557, "key": "gmwsvs_parent", "value": "" }, { "id": 41558, "key": "_wpuf_form_id", "value": "" }, { "id": 41559, "key": "_wpuf_lock_editing_post", "value": "" }, { "id": 41560, "key": "_wwsvsc_exclude_product_single", "value": "" }, { "id": 41561, "key": "_wwsvsc_exclude_product_parent", "value": "" }, { "id": 41562, "key": "_aioseo_title", "value": "" }, { "id": 41563, "key": "_aioseo_description", "value": "" }, { "id": 41564, "key": "_aioseo_keywords", "value": "" }, { "id": 41565, "key": "_aioseo_og_article_section", "value": "" }, { "id": 41566, "key": "_aioseo_og_article_tags", "value": "" }, { "id": 41567, "key": "_wpbo_deactive", "value": "" }, { "id": 41568, "key": "_wpbo_override", "value": "" }, { "id": 41569, "key": "_wpbo_step", "value": "" }, { "id": 41570, "key": "_wpbo_minimum", "value": "" }, { "id": 41571, "key": "_wpbo_maximum", "value": "" }, { "id": 41572, "key": "_wpbo_minimum_oos", "value": "" }, { "id": 41573, "key": "_wpbo_maximum_oos", "value": "" }, { "id": 41574, "key": "om_disable_all_campaigns", "value": "" }, { "id": 41575, "key": "gmwsvs_child", "value": "yes" }, { "id": 41576, "key": "_wssvsc_custom_name", "value": "" }, { "id": 41577, "key": "_wp_old_date", "value": "" }, { "id": 41578, "key": "woo_gallery_slider", "value": "" } ], "purchase_price": null, "supplier_id": null, "supplier_sku": "HS33-BBRZ", "atum_controlled": false, "out_stock_date": null, "out_stock_threshold": null, "inheritable": false, "inbound_stock": 0, "stock_on_hold": 130, "sold_today": 130, "sales_last_days": 130, "reserved_stock": 0, "customer_returns": 0, "warehouse_damage": 0, "lost_in_post": 0, "other_logs": 0, "out_stock_days": 0, "lost_sales": 0, "has_location": false, "update_date": "2021-07-04T11:09:55", "atum_locations": [], "atum_stock_status": "instock", "low_stock": true, "linked_bom": [], "sync_purchase_price": false, "bom_sellable": null, "minimum_threshold": null, "available_to_purchase": null, "selling_priority": null, "calculated_stock": null, "is_bom": false, "mi_inventories": [ 1, 2, 3 ], "multi_inventory": "yes", "inventory_sorting_mode": "global", "inventory_iteration": "global", "expirable_inventories": "global", "price_per_inventory": "global", "show_write_off_inventories": "global", "selectable_inventories": "global", "selectable_inventories_mode": "global" }, "headers": { "Allow": "GET, POST, PUT, PATCH" }, "status": 200 }
- The topic ‘Sync Not work with ATUM multi-Inventory products’ is closed to new replies.