Skip to content

[Backport for 2.4.7-p4] Magento 2 REST API / UPDATE CUSTOMER (The %fieldName value is invalid. Set the correct value and try again. / fieldName": "default_billing") #38878

Open
@dariovranjkovic

Description

Preconditions and environment

  • Magento 2.4.7
  • PHP 8.2

Steps to reproduce

  1. 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”.

Metadata

Assignees

Labels

Area: ContentComponent: ApiUse with concrete module component label E.g. "Component: Api" + "Catalog"Issue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedPriority: P1Once P0 defects have been fixed, a defect having this priority is the next candidate for fixing.Progress: PR CreatedIndicates that Pull Request has been created to fix issueProgress: doneReported on 2.4.7Indicates 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