Skip to content

Cannot create shipment via the API #3150

@itmsenior

Description

@itmsenior

Preconditions (*)

  1. Magento 2.3.5-p2
  2. MSI 1.1.5

Steps to reproduce (*)

  1. Create simple product in admin with manage_stock = 1
  2. Order product
  3. Attempt to ship order via shipment API (salesShipOrderV1)

Expected result (*)

  1. Shipment is created

Actual result (*)

  1. Shipment is not created with the following error shown: Could not save a shipment, see error log for details
    Error log shows the following:
    main.CRITICAL: The shipment couldn't be saved. {"exception":"[object] (Magento\\Framework\\Exception\\CouldNotSaveException(code: 0): The shipment couldn't be saved. at http/vendor/magento/module-sales/Model/Order/ShipmentRepository.php:150, Magento\\Framework\\Exception\\NoSuchEntityException(code: 0): Source item not found by source code: string and sku: 101308. at http/vendor/magento/module-inventory-source-deduction-api/Model/GetSourceItemBySourceCodeAndSku.php:59)"} []

Note: Shipping the order in Magento admin works fine, only when shipping via the API does this error occur.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions