Skip to content

Salable quantity not being updated when order is created via V1/orders/create API endpoint #40313

@isinkler

Description

@isinkler

Preconditions and environment

Preconditons

Magento version: 2.4.x

Problem

When creating an order via the V1/orders/create API endpoint, the salable quantity of the products are not being updated. Shipping and invoicing does not help either.
I know that I can create orders via the guest cart API, but that has some limitations, and I have to use the Admin API for my integration.

Am I missing something or this is an issue and the salable quantity does not update when using the Admin API to create orders?

Steps to reproduce

  1. Create an order via the API endpoint V1/orders/create
  2. Check the salable quantity of the ordered products
  3. (Optional) Ship and/or invoice the order

Expected result

Salable quantity should update the same way as it does when the order is created via the guest cart API.

Actual result

No error message, but the salable quantity of the products are not being updated. Interesting thing is that the source quantity updates.

Additional information

No response

Release note

No response

Triage and priority

  • Severity: S0 - Affects critical data or functionality and leaves users without workaround.
  • Severity: S1 - Affects critical data or functionality and forces users to employ a workaround.
  • Severity: S2 - Affects non-critical data or functionality and forces users to employ a workaround.
  • Severity: S3 - Affects non-critical data or functionality and does not force users to employ a workaround.
  • Severity: S4 - Affects aesthetics, professional look and feel, “quality” or “usability”.

Metadata

Metadata

Type

No type

Projects

Status

Ready for Confirmation

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions