Skip to content

Shipping Address email field is being replaced with the billing address email #34614

Open
@rahimimo

Description

@rahimimo

Preconditions (*)

  1. Reproducable on Magento CE 2.4.3-p1
  2. Using REST API of magento

Steps to reproduce (*)

When creating an order out of guest cart is being done, the shipping email is being replaced by the billing email.

  1. Create a guest Cart using a POST request to this endpoint https://magento.test/rest/default/V1/guest-carts
  2. Add an item to creared the guest cart using this endpoint
    https://magento.test/rest/default/V1/guest-carts/{created-guest-cart-step-1}/items? example body { "cartItem":{ "sku": "sample-sku", "qty": "1" } }
  3. Add shipping info using this endpoint a POST request to:
    https://magento.test/rest/default/V1/guest-carts/{created-guest-cart-step-1}/shipping-information
    example body
{
  "addressInformation": {
    "billingAddress": {
      "country_id": "FI",
      "street": [ "Testikatu 1 C 44" ],
      "company": "",
      "telephone": "0",
      "postcode": "02230",
      "city": "Espoo",
      "firstname": "Siamak Rahimi Motem",
      "lastname": "Siamak Rahimi Motem",
      "email":"billing@address.co"
  },
  "shippingAddress": {
    "country_id": "FI",
    "street": [ "Testikat" ],
    "company": "",
    "telephone": "0",
    "postcode": "15877",
    "city": "gisha",
    "firstname": "Mona",
    "lastname": "Pourdeljoo",
    "email": "shipping@adress.co",
    "same_as_billing": 0
  },
  "shipping_method_code": "flatrate",
  "shipping_carrier_code": "flatrate",
  "extension_attributes": {}
}}

Up to this point if you use GET Cart endpoint you can see this shipping@adress.co email. BUT, if you create an order, that email is no longer can be retrieved.
4. Make a PUT request to create order endooint
https://magento.test/rest/default/V1/guest-carts/{created-guest-cart-step-1}/order
5. Get Order using a GET request to
https://magento.test/rest/default/V1/orders/{created-order-number-step5}

Expected result (*)

It is expected that the billing address does not leak to the shipping address.

  1. [Screenshots, logs or description]

Actual result (*)

  1. Screenshot 2021-11-11 at 18 52 27

You see on fetching the order instead of shipping email, the billing email is being replicated.
2. Before creating the order that email can be seen from get guest cart end point
Screenshot 2021-11-11 at 18 51 58


Please provide Severity assessment for the Issue as Reporter. This information will help during Confirmation and Issue triage processes.

  • 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

Labels

Area: OrderComponent: CheckoutIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedPriority: P3May be fixed according to the position in the backlog.Progress: PR in progressReported on 2.4.3-p1Indicates original Magento version for the Issue report.Reproduced on 2.4.xThe issue has been reproduced on latest 2.4-develop branch

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions