Description
Preconditions and environment
- Magento 2.4.7
- PHP 8.2
Steps to reproduce
- Send request for update customer to rest API
URL: <https://shop.com/rest/V1/customers/3420]
Body:
{
"customer":
Unknown macro: { "firstname"}
}
or
{
"customer": {
"firstname": "Company Name AB",
"lastname": "Location",
"addresses": [
{ "defaultshipping": "false", "defaultbilling": "false", "firstname": "Company Name AB", "lastname": "-", "postcode": "XXXXX", "street": [ "Street Address" ], "city": "CITY", "telephone": "XX XXX XXX XXX", "countryId": "XX" }
,
{ "defaultshipping": "true", "defaultbilling": "true", "firstname": "Company Name AB", "lastname": "-", "postcode": "XXXXX", "street": [ "Street Address" ], "city": "CITY", "telephone": "XX XXX XXX XXX", "countryId": "XX" }
]
}
}
Expected result
Updated customer
Actual result
{
"message": "The %fieldName value is invalid. Set the correct value and try again.",
"parameters":
{ "fieldName": "default_billing" }
}
Additional information
It was working before upgrade on version 2.4.3 but now is not working on version 2.4.7
Release note
No response
Triage and priority
- 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”.