magento / magento2

Prior to making any Submission(s), you must sign an Adobe Contributor License Agreement, available here at: https://opensource.adobe.com/cla.html. All Submissions you make to Adobe Inc. and its affiliates, assigns and subsidiaries (collectively “Adobe”) are subject to the terms of the Adobe Contributor License Agreement.
http://www.magento.com
Open Software License 3.0
11.5k stars 9.3k forks source link

salesShipOrderV1 - Ship Date element? #12313

Closed JakeOB25 closed 6 years ago

JakeOB25 commented 6 years ago

Hello. I am using the salesShipOrderV1 method to post shipping information to Magento2 from our fulfillment software. I'm able to successfully create the shipment (along with carrier information and tracking numbers), however I can't find a way to indicate a shipment DATE in the post. When the post is made, it uses the current date/time as the shipment date, which will not work in this situation. Has anyone found success in doing this? Thanks!

Preconditions

  1. Magento 2.1.9
  2. post /V1/order/{orderId}/ship

Steps to reproduce

  1. Post the following request to: http://_magento2host_/index.php/rest/V1/order/99999/ship

{ "items": [ { "orderItemId": 417, "qty": 1 } ], "notify": true, "tracks": [ { "trackNumber": "1z9999999999999999", "title": "UPS", "carrierCode": "UPS" } ] }

Expected result

I would like to be able to pass a shipment date ("createdAt", for example) that would record the shipment for a specific date/time.

Actual result

The shipment date is recorded as the current date/time

Screenshot: ui_result

magento-engcom-team commented 6 years ago

@JakeOB25 Thank you for your submission. according to Swagger its not possible to add creation date to shipping track information via API post call We recently made some changes to the way we process GitHub submissions to more quickly identify and respond to core code issues. Feature Requests and Improvements should now be submitted to the new Magento 2 Feature Requests and Improvements forum (see details here).