Skip to content

Graphql createCustomerAddress mutation region mandatory #28253

@leroynas

Description

@leroynas

I would expect region to not be mandatory on the createCustomerAddress mutation. When submitting this mutation without region, there is no issue. When you try to run the setShippingAddressesOnCart mutation, with the just created customerAddress (keep in mind to use the customer_address_id param and submit the Authorization header) it should work. The result is actually an error message stating: "regionId is required. Enter and try again.".

Preconditions (*)

  1. Magento 2.3.5-p1

Steps to reproduce (*)

  1. Run createCustomer mutation
  2. Run createCustomerAddress mutation (leave region out)
  3. Run createEmptyCart mutation (with auth header)
  4. Run addSimpleProductsToCart mutation (with auth header)
  5. Run setShippingAddressesOnCart mutation (with auth header)

Expected result (*)

  1. Since the customer address is exists I would expect the customer address to be added to the cart (same result as with region).

Actual result (*)

  1. Error message stating: "regionId is required. Enter and try again."

Metadata

Metadata

Labels

Issue: Format is validGate 1 Passed. Automatic verification of issue format passedPAPPartners acceleration programProject: GraphQL

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions