Inventory management after order created via rest API in Magento 2.x version ( without cart)Magento - Create order using REST APILocalization for Cart/Quote APIs doesn't work properly in magento 2Magento 1.9 - Create order using REST APIPLacing Order Magento 2.1 REST APIREST API accessible without authorizationMagento 2.2 Inventory not getting decreased when orders are created using REST APIWhat is the usage of itemId inside Update inventory REST API?Get category meta tags via REST APIGet cart info REST APIAdding a grouped product to cart via the rest api

Is "remove commented out code" correct English?

Do scales need to be in alphabetical order?

How did the Super Star Destroyer Executor get destroyed exactly?

Why do bosons tend to occupy the same state?

Examples of smooth manifolds admitting inbetween one and a continuum of complex structures

Is it possible to create a QR code using text?

Is it acceptable for a professor to tell male students to not think that they are smarter than female students?

How can saying a song's name be a copyright violation?

What are some good books on Machine Learning and AI like Krugman, Wells and Graddy's "Essentials of Economics"

Ambiguity in the definition of entropy

How much of data wrangling is a data scientist's job?

Unlock My Phone! February 2018

How seriously should I take size and weight limits of hand luggage?

Should I cover my bicycle overnight while bikepacking?

How do I gain back my faith in my PhD degree?

Bullying boss launched a smear campaign and made me unemployable

Reverse dictionary where values are lists

How can I deal with my CEO asking me to hire someone with a higher salary than me, a co-founder?

Little known, relatively unlikely, but scientifically plausible, apocalyptic (or near apocalyptic) events

A category-like structure without composition?

Forgetting the musical notes while performing in concert

What method can I use to design a dungeon difficult enough that the PCs can't make it through without killing them?

Is it logically or scientifically possible to artificially send energy to the body?

Why is it a bad idea to hire a hitman to eliminate most corrupt politicians?



Inventory management after order created via rest API in Magento 2.x version ( without cart)


Magento - Create order using REST APILocalization for Cart/Quote APIs doesn't work properly in magento 2Magento 1.9 - Create order using REST APIPLacing Order Magento 2.1 REST APIREST API accessible without authorizationMagento 2.2 Inventory not getting decreased when orders are created using REST APIWhat is the usage of itemId inside Update inventory REST API?Get category meta tags via REST APIGet cart info REST APIAdding a grouped product to cart via the rest api













0















I have created Magento rest API for the third party integrations and I have used a couple of API's for listing products, fetching product detail and created order.



I used [PUT] - /V1/orders/create - this API to create order and order was successfully created in Magento admin panel.



My question is whenever we create order it's not affected in product quantity(inventory management).




API - [PUT] - /V1/orders/create




Payload:


"entity":
"base_currency_code": "USD",
"base_discount_amount": 0,
"base_grand_total": 64,
"base_shipping_amount": 5,
"base_shipping_incl_tax": 5,
"base_shipping_tax_amount": 0,
"base_shipping_discount_amount": 0,
"base_subtotal": 59,
"base_subtotal_incl_tax": 59,
"base_total_due": 0,
"base_total_paid" : 64,
"base_to_global_rate": 0,
"base_to_order_rate": 0,
"discount_tax_compensation_amount": 0,
"base_discount_tax_compensation_amount": 0,
"shipping_discount_tax_compensation_amount": 0,
"customer_is_guest": 1,
"customer_email": "deeban@vuedata.com",
"customer_firstname": "Deeban",
"customer_lastname": "Babu",
"customer_note_notify": 1,
"discount_amount": 0,
"email_sent": 1,
"global_currency_code": "USD",
"grand_total": 64,
"order_currency_code": "USD",
"shipping_amount": 5,
"shipping_tax_amount": 0,
"shipping_description": "Flat Rate - Fixed",
"shipping_discount_amount": 0,
"shipping_incl_tax": 5,
"state": "complete",
"status": "complete",
"store_currency_code": "USD",
"store_to_base_rate": 0,
"store_to_order_rate": 0,
"store_id": 1,
"subtotal": 59,
"subtotal_incl_tax": 59,
"total_due": 0,
"total_paid" : 64,
"total_item_count": 1,
"total_qty_ordered": 1,
"tax_amount": 0,
"weight": 1,
"items": [
"base_original_price": 59,
"base_price": 59,
"base_price_incl_tax": 59,
"base_row_total": 59,
"base_row_total_incl_tax": 59,
"name": "Fusion Backpack",
"original_price": 59,
"price": 59,
"price_incl_tax": 59,
"product_id": 6,
"product_type": "simple",
"qty_ordered": 1,
"row_total": 59,
"row_total_incl_tax": 59,
"sku": "24-MB02",
"store_id": 1,
"weight": 1
],
"billing_address":
"address_type": "billing",
"city": "Chennai ",
"company": "",
"country_id": "IN",
"customer_address_id": 0,
"email": "deeban@vuedata.com",
"firstname": "deeban",
"lastname": "babu",
"postcode": "600041",
"region": "TN",
"street": ["chennai"],
"telephone": "9043202246"
,
"payment":
"amount_ordered": 64,
"amount_paid":64,
"base_amount_ordered": 64,
"base_amount_paid" : 64,
"base_shipping_amount": 5,
"method": "checkmo",
"shipping_amount": 5
,
"status_histories": [
"comment" : "new order",
"status": "complete"
],
"extension_attributes":
"shipping_assignments": [
"shipping":
"address":
"address_type": "shipping",
"city": "Chennai",
"company": "",
"country_id": "IN",
"customer_address_id": 0,
"email": "deeban@vuedata.com",
"firstname": "deeban",
"lastname": "babu",
"postcode": "600041",
"region": "TN",
"street": ["chennai"],
"telephone": "9043202246"
,
"method": "flatrate_flatrate",
"total":
"base_shipping_amount": 5,
"base_shipping_incl_tax": 5,
"shipping_amount": 5,
"shipping_incl_tax": 5
,
"extension_attributes": []
,

"extension_attributes": []
],
"applied_taxes": [],
"item_applied_taxes": [],
"converting_from_quote": false




Response:


"base_currency_code": "USD",
"base_discount_amount": 0,
"base_grand_total": 64,
"base_discount_tax_compensation_amount": 0,
"base_shipping_amount": 5,
"base_shipping_discount_amount": 0,
"base_shipping_incl_tax": 5,
"base_shipping_tax_amount": 0,
"base_subtotal": 59,
"base_subtotal_incl_tax": 59,
"base_total_due": 0,
"base_total_paid": 64,
"base_to_global_rate": 0,
"base_to_order_rate": 0,
"billing_address_id": 34,
"created_at": "2019-04-01 09:23:38",
"customer_email": "deeban@vuedata.com",
"customer_firstname": "Deeban",
"customer_is_guest": 1,
"customer_lastname": "Babu",
"customer_note_notify": 1,
"discount_amount": 0,
"email_sent": 1,
"entity_id": 22,
"global_currency_code": "USD",
"grand_total": 64,
"discount_tax_compensation_amount": 0,
"increment_id": "000000030",
"order_currency_code": "USD",
"protect_code": "855f88ee22e98a9441df11594c801f7d",
"shipping_amount": 5,
"shipping_description": "Flat Rate - Fixed",
"shipping_discount_amount": 0,
"shipping_discount_tax_compensation_amount": 0,
"shipping_incl_tax": 5,
"shipping_tax_amount": 0,
"state": "complete",
"status": "complete",
"store_currency_code": "USD",
"store_id": 1,
"store_name": "Main WebsitenMain Website StorenDefault Store View",
"store_to_base_rate": 0,
"store_to_order_rate": 0,
"subtotal": 59,
"subtotal_incl_tax": 59,
"tax_amount": 0,
"total_due": 0,
"total_item_count": 1,
"total_paid": 64,
"total_qty_ordered": 1,
"updated_at": "2019-04-01 09:23:38",
"weight": 1,
"items": [

"base_original_price": 59,
"base_price": 59,
"base_price_incl_tax": 59,
"base_row_total": 59,
"base_row_total_incl_tax": 59,
"created_at": "2019-04-01 09:23:38",
"item_id": 20,
"name": "Fusion Backpack",
"order_id": 22,
"original_price": 59,
"price": 59,
"price_incl_tax": 59,
"product_id": 6,
"product_type": "simple",
"qty_ordered": 1,
"row_total": 59,
"row_total_incl_tax": 59,
"sku": "24-MB02",
"store_id": 1,
"updated_at": "2019-04-01 09:23:38",
"weight": 1

],
"billing_address":
"address_type": "billing",
"city": "Chennai ",
"company": "",
"country_id": "IN",
"customer_address_id": 0,
"email": "deeban@vuedata.com",
"entity_id": 34,
"firstname": "deeban",
"lastname": "babu",
"parent_id": 22,
"postcode": "600041",
"region": "TN",
"region_code": "TN",
"street": [
"chennai"
],
"telephone": "9043202246"
,
"payment":
"account_status": null,
"additional_information": [],
"amount_ordered": 64,
"amount_paid": 64,
"base_amount_ordered": 64,
"base_amount_paid": 64,
"base_shipping_amount": 5,
"cc_last4": null,
"entity_id": 20,
"method": "checkmo",
"parent_id": 22,
"shipping_amount": 5
,
"status_histories": [

"comment": "new order",
"entity_id": 5,
"is_customer_notified": null,
"is_visible_on_front": null,
"parent_id": 22,
"status": "complete"

],
"extension_attributes":
"shipping_assignments": [

"shipping":
"address":
"address_type": "shipping",
"city": "Chennai",
"company": "",
"country_id": "IN",
"customer_address_id": 0,
"email": "deeban@vuedata.com",
"entity_id": 35,
"firstname": "deeban",
"lastname": "babu",
"parent_id": 22,
"postcode": "600041",
"region": "TN",
"region_code": "TN",
"street": [
"chennai"
],
"telephone": "9043202246"
,
"method": "flatrate_flatrate",
"total":
"base_shipping_amount": 5,
"base_shipping_incl_tax": 5,
"shipping_amount": 5,
"shipping_incl_tax": 5

,
"items": null

],
"applied_taxes": [],
"item_applied_taxes": [],
"converting_from_quote": false











share|improve this question




























    0















    I have created Magento rest API for the third party integrations and I have used a couple of API's for listing products, fetching product detail and created order.



    I used [PUT] - /V1/orders/create - this API to create order and order was successfully created in Magento admin panel.



    My question is whenever we create order it's not affected in product quantity(inventory management).




    API - [PUT] - /V1/orders/create




    Payload:


    "entity":
    "base_currency_code": "USD",
    "base_discount_amount": 0,
    "base_grand_total": 64,
    "base_shipping_amount": 5,
    "base_shipping_incl_tax": 5,
    "base_shipping_tax_amount": 0,
    "base_shipping_discount_amount": 0,
    "base_subtotal": 59,
    "base_subtotal_incl_tax": 59,
    "base_total_due": 0,
    "base_total_paid" : 64,
    "base_to_global_rate": 0,
    "base_to_order_rate": 0,
    "discount_tax_compensation_amount": 0,
    "base_discount_tax_compensation_amount": 0,
    "shipping_discount_tax_compensation_amount": 0,
    "customer_is_guest": 1,
    "customer_email": "deeban@vuedata.com",
    "customer_firstname": "Deeban",
    "customer_lastname": "Babu",
    "customer_note_notify": 1,
    "discount_amount": 0,
    "email_sent": 1,
    "global_currency_code": "USD",
    "grand_total": 64,
    "order_currency_code": "USD",
    "shipping_amount": 5,
    "shipping_tax_amount": 0,
    "shipping_description": "Flat Rate - Fixed",
    "shipping_discount_amount": 0,
    "shipping_incl_tax": 5,
    "state": "complete",
    "status": "complete",
    "store_currency_code": "USD",
    "store_to_base_rate": 0,
    "store_to_order_rate": 0,
    "store_id": 1,
    "subtotal": 59,
    "subtotal_incl_tax": 59,
    "total_due": 0,
    "total_paid" : 64,
    "total_item_count": 1,
    "total_qty_ordered": 1,
    "tax_amount": 0,
    "weight": 1,
    "items": [
    "base_original_price": 59,
    "base_price": 59,
    "base_price_incl_tax": 59,
    "base_row_total": 59,
    "base_row_total_incl_tax": 59,
    "name": "Fusion Backpack",
    "original_price": 59,
    "price": 59,
    "price_incl_tax": 59,
    "product_id": 6,
    "product_type": "simple",
    "qty_ordered": 1,
    "row_total": 59,
    "row_total_incl_tax": 59,
    "sku": "24-MB02",
    "store_id": 1,
    "weight": 1
    ],
    "billing_address":
    "address_type": "billing",
    "city": "Chennai ",
    "company": "",
    "country_id": "IN",
    "customer_address_id": 0,
    "email": "deeban@vuedata.com",
    "firstname": "deeban",
    "lastname": "babu",
    "postcode": "600041",
    "region": "TN",
    "street": ["chennai"],
    "telephone": "9043202246"
    ,
    "payment":
    "amount_ordered": 64,
    "amount_paid":64,
    "base_amount_ordered": 64,
    "base_amount_paid" : 64,
    "base_shipping_amount": 5,
    "method": "checkmo",
    "shipping_amount": 5
    ,
    "status_histories": [
    "comment" : "new order",
    "status": "complete"
    ],
    "extension_attributes":
    "shipping_assignments": [
    "shipping":
    "address":
    "address_type": "shipping",
    "city": "Chennai",
    "company": "",
    "country_id": "IN",
    "customer_address_id": 0,
    "email": "deeban@vuedata.com",
    "firstname": "deeban",
    "lastname": "babu",
    "postcode": "600041",
    "region": "TN",
    "street": ["chennai"],
    "telephone": "9043202246"
    ,
    "method": "flatrate_flatrate",
    "total":
    "base_shipping_amount": 5,
    "base_shipping_incl_tax": 5,
    "shipping_amount": 5,
    "shipping_incl_tax": 5
    ,
    "extension_attributes": []
    ,

    "extension_attributes": []
    ],
    "applied_taxes": [],
    "item_applied_taxes": [],
    "converting_from_quote": false




    Response:


    "base_currency_code": "USD",
    "base_discount_amount": 0,
    "base_grand_total": 64,
    "base_discount_tax_compensation_amount": 0,
    "base_shipping_amount": 5,
    "base_shipping_discount_amount": 0,
    "base_shipping_incl_tax": 5,
    "base_shipping_tax_amount": 0,
    "base_subtotal": 59,
    "base_subtotal_incl_tax": 59,
    "base_total_due": 0,
    "base_total_paid": 64,
    "base_to_global_rate": 0,
    "base_to_order_rate": 0,
    "billing_address_id": 34,
    "created_at": "2019-04-01 09:23:38",
    "customer_email": "deeban@vuedata.com",
    "customer_firstname": "Deeban",
    "customer_is_guest": 1,
    "customer_lastname": "Babu",
    "customer_note_notify": 1,
    "discount_amount": 0,
    "email_sent": 1,
    "entity_id": 22,
    "global_currency_code": "USD",
    "grand_total": 64,
    "discount_tax_compensation_amount": 0,
    "increment_id": "000000030",
    "order_currency_code": "USD",
    "protect_code": "855f88ee22e98a9441df11594c801f7d",
    "shipping_amount": 5,
    "shipping_description": "Flat Rate - Fixed",
    "shipping_discount_amount": 0,
    "shipping_discount_tax_compensation_amount": 0,
    "shipping_incl_tax": 5,
    "shipping_tax_amount": 0,
    "state": "complete",
    "status": "complete",
    "store_currency_code": "USD",
    "store_id": 1,
    "store_name": "Main WebsitenMain Website StorenDefault Store View",
    "store_to_base_rate": 0,
    "store_to_order_rate": 0,
    "subtotal": 59,
    "subtotal_incl_tax": 59,
    "tax_amount": 0,
    "total_due": 0,
    "total_item_count": 1,
    "total_paid": 64,
    "total_qty_ordered": 1,
    "updated_at": "2019-04-01 09:23:38",
    "weight": 1,
    "items": [

    "base_original_price": 59,
    "base_price": 59,
    "base_price_incl_tax": 59,
    "base_row_total": 59,
    "base_row_total_incl_tax": 59,
    "created_at": "2019-04-01 09:23:38",
    "item_id": 20,
    "name": "Fusion Backpack",
    "order_id": 22,
    "original_price": 59,
    "price": 59,
    "price_incl_tax": 59,
    "product_id": 6,
    "product_type": "simple",
    "qty_ordered": 1,
    "row_total": 59,
    "row_total_incl_tax": 59,
    "sku": "24-MB02",
    "store_id": 1,
    "updated_at": "2019-04-01 09:23:38",
    "weight": 1

    ],
    "billing_address":
    "address_type": "billing",
    "city": "Chennai ",
    "company": "",
    "country_id": "IN",
    "customer_address_id": 0,
    "email": "deeban@vuedata.com",
    "entity_id": 34,
    "firstname": "deeban",
    "lastname": "babu",
    "parent_id": 22,
    "postcode": "600041",
    "region": "TN",
    "region_code": "TN",
    "street": [
    "chennai"
    ],
    "telephone": "9043202246"
    ,
    "payment":
    "account_status": null,
    "additional_information": [],
    "amount_ordered": 64,
    "amount_paid": 64,
    "base_amount_ordered": 64,
    "base_amount_paid": 64,
    "base_shipping_amount": 5,
    "cc_last4": null,
    "entity_id": 20,
    "method": "checkmo",
    "parent_id": 22,
    "shipping_amount": 5
    ,
    "status_histories": [

    "comment": "new order",
    "entity_id": 5,
    "is_customer_notified": null,
    "is_visible_on_front": null,
    "parent_id": 22,
    "status": "complete"

    ],
    "extension_attributes":
    "shipping_assignments": [

    "shipping":
    "address":
    "address_type": "shipping",
    "city": "Chennai",
    "company": "",
    "country_id": "IN",
    "customer_address_id": 0,
    "email": "deeban@vuedata.com",
    "entity_id": 35,
    "firstname": "deeban",
    "lastname": "babu",
    "parent_id": 22,
    "postcode": "600041",
    "region": "TN",
    "region_code": "TN",
    "street": [
    "chennai"
    ],
    "telephone": "9043202246"
    ,
    "method": "flatrate_flatrate",
    "total":
    "base_shipping_amount": 5,
    "base_shipping_incl_tax": 5,
    "shipping_amount": 5,
    "shipping_incl_tax": 5

    ,
    "items": null

    ],
    "applied_taxes": [],
    "item_applied_taxes": [],
    "converting_from_quote": false











    share|improve this question


























      0












      0








      0








      I have created Magento rest API for the third party integrations and I have used a couple of API's for listing products, fetching product detail and created order.



      I used [PUT] - /V1/orders/create - this API to create order and order was successfully created in Magento admin panel.



      My question is whenever we create order it's not affected in product quantity(inventory management).




      API - [PUT] - /V1/orders/create




      Payload:


      "entity":
      "base_currency_code": "USD",
      "base_discount_amount": 0,
      "base_grand_total": 64,
      "base_shipping_amount": 5,
      "base_shipping_incl_tax": 5,
      "base_shipping_tax_amount": 0,
      "base_shipping_discount_amount": 0,
      "base_subtotal": 59,
      "base_subtotal_incl_tax": 59,
      "base_total_due": 0,
      "base_total_paid" : 64,
      "base_to_global_rate": 0,
      "base_to_order_rate": 0,
      "discount_tax_compensation_amount": 0,
      "base_discount_tax_compensation_amount": 0,
      "shipping_discount_tax_compensation_amount": 0,
      "customer_is_guest": 1,
      "customer_email": "deeban@vuedata.com",
      "customer_firstname": "Deeban",
      "customer_lastname": "Babu",
      "customer_note_notify": 1,
      "discount_amount": 0,
      "email_sent": 1,
      "global_currency_code": "USD",
      "grand_total": 64,
      "order_currency_code": "USD",
      "shipping_amount": 5,
      "shipping_tax_amount": 0,
      "shipping_description": "Flat Rate - Fixed",
      "shipping_discount_amount": 0,
      "shipping_incl_tax": 5,
      "state": "complete",
      "status": "complete",
      "store_currency_code": "USD",
      "store_to_base_rate": 0,
      "store_to_order_rate": 0,
      "store_id": 1,
      "subtotal": 59,
      "subtotal_incl_tax": 59,
      "total_due": 0,
      "total_paid" : 64,
      "total_item_count": 1,
      "total_qty_ordered": 1,
      "tax_amount": 0,
      "weight": 1,
      "items": [
      "base_original_price": 59,
      "base_price": 59,
      "base_price_incl_tax": 59,
      "base_row_total": 59,
      "base_row_total_incl_tax": 59,
      "name": "Fusion Backpack",
      "original_price": 59,
      "price": 59,
      "price_incl_tax": 59,
      "product_id": 6,
      "product_type": "simple",
      "qty_ordered": 1,
      "row_total": 59,
      "row_total_incl_tax": 59,
      "sku": "24-MB02",
      "store_id": 1,
      "weight": 1
      ],
      "billing_address":
      "address_type": "billing",
      "city": "Chennai ",
      "company": "",
      "country_id": "IN",
      "customer_address_id": 0,
      "email": "deeban@vuedata.com",
      "firstname": "deeban",
      "lastname": "babu",
      "postcode": "600041",
      "region": "TN",
      "street": ["chennai"],
      "telephone": "9043202246"
      ,
      "payment":
      "amount_ordered": 64,
      "amount_paid":64,
      "base_amount_ordered": 64,
      "base_amount_paid" : 64,
      "base_shipping_amount": 5,
      "method": "checkmo",
      "shipping_amount": 5
      ,
      "status_histories": [
      "comment" : "new order",
      "status": "complete"
      ],
      "extension_attributes":
      "shipping_assignments": [
      "shipping":
      "address":
      "address_type": "shipping",
      "city": "Chennai",
      "company": "",
      "country_id": "IN",
      "customer_address_id": 0,
      "email": "deeban@vuedata.com",
      "firstname": "deeban",
      "lastname": "babu",
      "postcode": "600041",
      "region": "TN",
      "street": ["chennai"],
      "telephone": "9043202246"
      ,
      "method": "flatrate_flatrate",
      "total":
      "base_shipping_amount": 5,
      "base_shipping_incl_tax": 5,
      "shipping_amount": 5,
      "shipping_incl_tax": 5
      ,
      "extension_attributes": []
      ,

      "extension_attributes": []
      ],
      "applied_taxes": [],
      "item_applied_taxes": [],
      "converting_from_quote": false




      Response:


      "base_currency_code": "USD",
      "base_discount_amount": 0,
      "base_grand_total": 64,
      "base_discount_tax_compensation_amount": 0,
      "base_shipping_amount": 5,
      "base_shipping_discount_amount": 0,
      "base_shipping_incl_tax": 5,
      "base_shipping_tax_amount": 0,
      "base_subtotal": 59,
      "base_subtotal_incl_tax": 59,
      "base_total_due": 0,
      "base_total_paid": 64,
      "base_to_global_rate": 0,
      "base_to_order_rate": 0,
      "billing_address_id": 34,
      "created_at": "2019-04-01 09:23:38",
      "customer_email": "deeban@vuedata.com",
      "customer_firstname": "Deeban",
      "customer_is_guest": 1,
      "customer_lastname": "Babu",
      "customer_note_notify": 1,
      "discount_amount": 0,
      "email_sent": 1,
      "entity_id": 22,
      "global_currency_code": "USD",
      "grand_total": 64,
      "discount_tax_compensation_amount": 0,
      "increment_id": "000000030",
      "order_currency_code": "USD",
      "protect_code": "855f88ee22e98a9441df11594c801f7d",
      "shipping_amount": 5,
      "shipping_description": "Flat Rate - Fixed",
      "shipping_discount_amount": 0,
      "shipping_discount_tax_compensation_amount": 0,
      "shipping_incl_tax": 5,
      "shipping_tax_amount": 0,
      "state": "complete",
      "status": "complete",
      "store_currency_code": "USD",
      "store_id": 1,
      "store_name": "Main WebsitenMain Website StorenDefault Store View",
      "store_to_base_rate": 0,
      "store_to_order_rate": 0,
      "subtotal": 59,
      "subtotal_incl_tax": 59,
      "tax_amount": 0,
      "total_due": 0,
      "total_item_count": 1,
      "total_paid": 64,
      "total_qty_ordered": 1,
      "updated_at": "2019-04-01 09:23:38",
      "weight": 1,
      "items": [

      "base_original_price": 59,
      "base_price": 59,
      "base_price_incl_tax": 59,
      "base_row_total": 59,
      "base_row_total_incl_tax": 59,
      "created_at": "2019-04-01 09:23:38",
      "item_id": 20,
      "name": "Fusion Backpack",
      "order_id": 22,
      "original_price": 59,
      "price": 59,
      "price_incl_tax": 59,
      "product_id": 6,
      "product_type": "simple",
      "qty_ordered": 1,
      "row_total": 59,
      "row_total_incl_tax": 59,
      "sku": "24-MB02",
      "store_id": 1,
      "updated_at": "2019-04-01 09:23:38",
      "weight": 1

      ],
      "billing_address":
      "address_type": "billing",
      "city": "Chennai ",
      "company": "",
      "country_id": "IN",
      "customer_address_id": 0,
      "email": "deeban@vuedata.com",
      "entity_id": 34,
      "firstname": "deeban",
      "lastname": "babu",
      "parent_id": 22,
      "postcode": "600041",
      "region": "TN",
      "region_code": "TN",
      "street": [
      "chennai"
      ],
      "telephone": "9043202246"
      ,
      "payment":
      "account_status": null,
      "additional_information": [],
      "amount_ordered": 64,
      "amount_paid": 64,
      "base_amount_ordered": 64,
      "base_amount_paid": 64,
      "base_shipping_amount": 5,
      "cc_last4": null,
      "entity_id": 20,
      "method": "checkmo",
      "parent_id": 22,
      "shipping_amount": 5
      ,
      "status_histories": [

      "comment": "new order",
      "entity_id": 5,
      "is_customer_notified": null,
      "is_visible_on_front": null,
      "parent_id": 22,
      "status": "complete"

      ],
      "extension_attributes":
      "shipping_assignments": [

      "shipping":
      "address":
      "address_type": "shipping",
      "city": "Chennai",
      "company": "",
      "country_id": "IN",
      "customer_address_id": 0,
      "email": "deeban@vuedata.com",
      "entity_id": 35,
      "firstname": "deeban",
      "lastname": "babu",
      "parent_id": 22,
      "postcode": "600041",
      "region": "TN",
      "region_code": "TN",
      "street": [
      "chennai"
      ],
      "telephone": "9043202246"
      ,
      "method": "flatrate_flatrate",
      "total":
      "base_shipping_amount": 5,
      "base_shipping_incl_tax": 5,
      "shipping_amount": 5,
      "shipping_incl_tax": 5

      ,
      "items": null

      ],
      "applied_taxes": [],
      "item_applied_taxes": [],
      "converting_from_quote": false











      share|improve this question
















      I have created Magento rest API for the third party integrations and I have used a couple of API's for listing products, fetching product detail and created order.



      I used [PUT] - /V1/orders/create - this API to create order and order was successfully created in Magento admin panel.



      My question is whenever we create order it's not affected in product quantity(inventory management).




      API - [PUT] - /V1/orders/create




      Payload:


      "entity":
      "base_currency_code": "USD",
      "base_discount_amount": 0,
      "base_grand_total": 64,
      "base_shipping_amount": 5,
      "base_shipping_incl_tax": 5,
      "base_shipping_tax_amount": 0,
      "base_shipping_discount_amount": 0,
      "base_subtotal": 59,
      "base_subtotal_incl_tax": 59,
      "base_total_due": 0,
      "base_total_paid" : 64,
      "base_to_global_rate": 0,
      "base_to_order_rate": 0,
      "discount_tax_compensation_amount": 0,
      "base_discount_tax_compensation_amount": 0,
      "shipping_discount_tax_compensation_amount": 0,
      "customer_is_guest": 1,
      "customer_email": "deeban@vuedata.com",
      "customer_firstname": "Deeban",
      "customer_lastname": "Babu",
      "customer_note_notify": 1,
      "discount_amount": 0,
      "email_sent": 1,
      "global_currency_code": "USD",
      "grand_total": 64,
      "order_currency_code": "USD",
      "shipping_amount": 5,
      "shipping_tax_amount": 0,
      "shipping_description": "Flat Rate - Fixed",
      "shipping_discount_amount": 0,
      "shipping_incl_tax": 5,
      "state": "complete",
      "status": "complete",
      "store_currency_code": "USD",
      "store_to_base_rate": 0,
      "store_to_order_rate": 0,
      "store_id": 1,
      "subtotal": 59,
      "subtotal_incl_tax": 59,
      "total_due": 0,
      "total_paid" : 64,
      "total_item_count": 1,
      "total_qty_ordered": 1,
      "tax_amount": 0,
      "weight": 1,
      "items": [
      "base_original_price": 59,
      "base_price": 59,
      "base_price_incl_tax": 59,
      "base_row_total": 59,
      "base_row_total_incl_tax": 59,
      "name": "Fusion Backpack",
      "original_price": 59,
      "price": 59,
      "price_incl_tax": 59,
      "product_id": 6,
      "product_type": "simple",
      "qty_ordered": 1,
      "row_total": 59,
      "row_total_incl_tax": 59,
      "sku": "24-MB02",
      "store_id": 1,
      "weight": 1
      ],
      "billing_address":
      "address_type": "billing",
      "city": "Chennai ",
      "company": "",
      "country_id": "IN",
      "customer_address_id": 0,
      "email": "deeban@vuedata.com",
      "firstname": "deeban",
      "lastname": "babu",
      "postcode": "600041",
      "region": "TN",
      "street": ["chennai"],
      "telephone": "9043202246"
      ,
      "payment":
      "amount_ordered": 64,
      "amount_paid":64,
      "base_amount_ordered": 64,
      "base_amount_paid" : 64,
      "base_shipping_amount": 5,
      "method": "checkmo",
      "shipping_amount": 5
      ,
      "status_histories": [
      "comment" : "new order",
      "status": "complete"
      ],
      "extension_attributes":
      "shipping_assignments": [
      "shipping":
      "address":
      "address_type": "shipping",
      "city": "Chennai",
      "company": "",
      "country_id": "IN",
      "customer_address_id": 0,
      "email": "deeban@vuedata.com",
      "firstname": "deeban",
      "lastname": "babu",
      "postcode": "600041",
      "region": "TN",
      "street": ["chennai"],
      "telephone": "9043202246"
      ,
      "method": "flatrate_flatrate",
      "total":
      "base_shipping_amount": 5,
      "base_shipping_incl_tax": 5,
      "shipping_amount": 5,
      "shipping_incl_tax": 5
      ,
      "extension_attributes": []
      ,

      "extension_attributes": []
      ],
      "applied_taxes": [],
      "item_applied_taxes": [],
      "converting_from_quote": false




      Response:


      "base_currency_code": "USD",
      "base_discount_amount": 0,
      "base_grand_total": 64,
      "base_discount_tax_compensation_amount": 0,
      "base_shipping_amount": 5,
      "base_shipping_discount_amount": 0,
      "base_shipping_incl_tax": 5,
      "base_shipping_tax_amount": 0,
      "base_subtotal": 59,
      "base_subtotal_incl_tax": 59,
      "base_total_due": 0,
      "base_total_paid": 64,
      "base_to_global_rate": 0,
      "base_to_order_rate": 0,
      "billing_address_id": 34,
      "created_at": "2019-04-01 09:23:38",
      "customer_email": "deeban@vuedata.com",
      "customer_firstname": "Deeban",
      "customer_is_guest": 1,
      "customer_lastname": "Babu",
      "customer_note_notify": 1,
      "discount_amount": 0,
      "email_sent": 1,
      "entity_id": 22,
      "global_currency_code": "USD",
      "grand_total": 64,
      "discount_tax_compensation_amount": 0,
      "increment_id": "000000030",
      "order_currency_code": "USD",
      "protect_code": "855f88ee22e98a9441df11594c801f7d",
      "shipping_amount": 5,
      "shipping_description": "Flat Rate - Fixed",
      "shipping_discount_amount": 0,
      "shipping_discount_tax_compensation_amount": 0,
      "shipping_incl_tax": 5,
      "shipping_tax_amount": 0,
      "state": "complete",
      "status": "complete",
      "store_currency_code": "USD",
      "store_id": 1,
      "store_name": "Main WebsitenMain Website StorenDefault Store View",
      "store_to_base_rate": 0,
      "store_to_order_rate": 0,
      "subtotal": 59,
      "subtotal_incl_tax": 59,
      "tax_amount": 0,
      "total_due": 0,
      "total_item_count": 1,
      "total_paid": 64,
      "total_qty_ordered": 1,
      "updated_at": "2019-04-01 09:23:38",
      "weight": 1,
      "items": [

      "base_original_price": 59,
      "base_price": 59,
      "base_price_incl_tax": 59,
      "base_row_total": 59,
      "base_row_total_incl_tax": 59,
      "created_at": "2019-04-01 09:23:38",
      "item_id": 20,
      "name": "Fusion Backpack",
      "order_id": 22,
      "original_price": 59,
      "price": 59,
      "price_incl_tax": 59,
      "product_id": 6,
      "product_type": "simple",
      "qty_ordered": 1,
      "row_total": 59,
      "row_total_incl_tax": 59,
      "sku": "24-MB02",
      "store_id": 1,
      "updated_at": "2019-04-01 09:23:38",
      "weight": 1

      ],
      "billing_address":
      "address_type": "billing",
      "city": "Chennai ",
      "company": "",
      "country_id": "IN",
      "customer_address_id": 0,
      "email": "deeban@vuedata.com",
      "entity_id": 34,
      "firstname": "deeban",
      "lastname": "babu",
      "parent_id": 22,
      "postcode": "600041",
      "region": "TN",
      "region_code": "TN",
      "street": [
      "chennai"
      ],
      "telephone": "9043202246"
      ,
      "payment":
      "account_status": null,
      "additional_information": [],
      "amount_ordered": 64,
      "amount_paid": 64,
      "base_amount_ordered": 64,
      "base_amount_paid": 64,
      "base_shipping_amount": 5,
      "cc_last4": null,
      "entity_id": 20,
      "method": "checkmo",
      "parent_id": 22,
      "shipping_amount": 5
      ,
      "status_histories": [

      "comment": "new order",
      "entity_id": 5,
      "is_customer_notified": null,
      "is_visible_on_front": null,
      "parent_id": 22,
      "status": "complete"

      ],
      "extension_attributes":
      "shipping_assignments": [

      "shipping":
      "address":
      "address_type": "shipping",
      "city": "Chennai",
      "company": "",
      "country_id": "IN",
      "customer_address_id": 0,
      "email": "deeban@vuedata.com",
      "entity_id": 35,
      "firstname": "deeban",
      "lastname": "babu",
      "parent_id": 22,
      "postcode": "600041",
      "region": "TN",
      "region_code": "TN",
      "street": [
      "chennai"
      ],
      "telephone": "9043202246"
      ,
      "method": "flatrate_flatrate",
      "total":
      "base_shipping_amount": 5,
      "base_shipping_incl_tax": 5,
      "shipping_amount": 5,
      "shipping_incl_tax": 5

      ,
      "items": null

      ],
      "applied_taxes": [],
      "item_applied_taxes": [],
      "converting_from_quote": false








      magento2.3 rest-api cataloginventory create-order






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited 2 days ago









      Ronak Rathod

      1,018212




      1,018212










      asked 2 days ago









      Deeban BabuDeeban Babu

      290418




      290418




















          0






          active

          oldest

          votes












          Your Answer








          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "479"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: false,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













          draft saved

          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f268196%2finventory-management-after-order-created-via-rest-api-in-magento-2-x-version-w%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes















          draft saved

          draft discarded
















































          Thanks for contributing an answer to Magento Stack Exchange!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid


          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.

          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f268196%2finventory-management-after-order-created-via-rest-api-in-magento-2-x-version-w%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Sum ergo cogito? 1 nng

          三茅街道4182Guuntc Dn precexpngmageondP