rest - Stock Quantity of ProductVariant not decreased in shopify shop when placing order via API -


i posting following order shopify api order endpoint. order shows in shop , works should, except stock quantity of variants in orders placed via api not decreased automatically shopify. when place order within admin console, decreased automatically. shopify inventory tracking turned on products. ideas appreciated.

  {   "order": {     "email": "somename@yahoo.com",     "financial_status": "paid",     "fulfillment_status": null,     "send_receipt": true,     "send_fulfillment_receipt": true,     "note": "created somename",     "line_items": [       {         "variant_id": 21718275463,         "quantity": 1,         "price": 99,         "requires_shipping": true,         "product_id": 6820646151       },       {         "variant_id": 21717700871,         "quantity": 1,         "price": 1000,         "requires_shipping": true,         "product_id": 6820646151       },       {         "variant_id": 21717690055,         "quantity": 1,         "price": 555,         "requires_shipping": true,         "product_id": 6821668807       }     ],     "processing_method": "offsite",     "shipping_address": {       "first_name": "chris",       "address1": "111 love road",       "phone": "9999999999",       "city": "st. louis",       "zip": "63123",       "province": "mo",       "country": "united states",       "last_name": "becker",       "name": "chris becker",       "country_code": "us",       "province_code": "mo"     },     "source_name": "somename",     "taxes_included": false,     "shipping_lines": [       {         "title": "standard",         "price": 0.00,         "code": null,         "source": "brand owner on shopify",         "carrier_identifier": null,         "tax_lines": null       }     ],     "tags": "somename"   } }       {   "variant": {     "id": 21718275463,     "product_id": 6820646151,     "title": "m / red",     "price": "99.00",     "sku": "",     "position": 2,     "grams": 0,     "inventory_policy": "deny",     "compare_at_price": "900.00",     "fulfillment_service": "manual",     "inventory_management": "shopify",     "option1": "m",     "option2": "red",     "option3": null,     "created_at": "2016-05-27t13:16:26-04:00",     "updated_at": "2016-05-28t13:28:20-04:00",     "taxable": false,     "barcode": "",     "image_id": 13217378823,     "inventory_quantity": 1,     "weight": 0,     "weight_unit": "lb",     "old_inventory_quantity": 1,     "requires_shipping": true   } }   {   "variant": {     "id": 21717700871,     "product_id": 6820646151,     "title": "s / green",     "price": "1000.00",     "sku": "",     "position": 1,     "grams": 0,     "inventory_policy": "deny",     "compare_at_price": "1111.00",     "fulfillment_service": "manual",     "inventory_management": "shopify",     "option1": "s",     "option2": "green",     "option3": null,     "created_at": "2016-05-27t13:05:56-04:00",     "updated_at": "2016-05-28t12:17:22-04:00",     "taxable": true,     "barcode": "",     "image_id": 13160712135,     "inventory_quantity": 2,     "weight": 0,     "weight_unit": "lb",     "old_inventory_quantity": 2,     "requires_shipping": true   } }       {   "variant": {     "id": 21717690055,     "product_id": 6821668807,     "title": "default title",     "price": "555.00",     "sku": "",     "position": 1,     "grams": 0,     "inventory_policy": "deny",     "compare_at_price": "666.00",     "fulfillment_service": "manual",     "inventory_management": "shopify",     "option1": "default title",     "option2": null,     "option3": null,     "created_at": "2016-05-27t13:05:39-04:00",     "updated_at": "2016-05-28t12:17:22-04:00",     "taxable": true,     "barcode": "",     "image_id": null,     "inventory_quantity": 2,     "weight": 0,     "weight_unit": "lb",     "old_inventory_quantity": 2,     "requires_shipping": true   } } 

you created fake order using api. fake orders don't transact money or trigger usual internal checks , balances without effort. maybe if tried adding fulfillment order, shopify might ding inventory levels? seems try anyway.


Comments

Popular posts from this blog

ios - RestKit 0.20 — CoreData: error: Failed to call designated initializer on NSManagedObject class (again) -

java - Digest auth with Spring Security using javaconfig -

laravel - PDOException in Connector.php line 55: SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: YES) -