Description
Preconditions (*)
- Reproducable on Magento CE 2.4.3-p1
- 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.
- Create a guest Cart using a POST request to this endpoint
https://magento.test/rest/default/V1/guest-carts
- 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" } }
- 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.
- [Screenshots, logs or description]
Actual result (*)
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
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”.