Skip to content

Creating a customer via rest api: /V1/customers/me does not work #3887

@Bbbrinks

Description

@Bbbrinks

Steps to reproduce

  1. Install Magento from develop branch.
  2. Call /V1/customers/me rest api with (valid auth token) and body:
    {
    "email": "[email protected]",
    "firstname": "dsfsdf",
    "lastname": "sdsdf",
    "addresses": [
    {
    "firstname": "string",
    "lastname": "string"
    }
    ]
    }

Expected result

  1. The customer gets created and 200 is returned

Actual result

  1. 400 bad request
    {
    "message": "One or more input exceptions have occurred.",
    "errors": [
    {
    "message": "%fieldName is a required field.",
    "parameters": {
    "fieldName": "firstname"
    }
    },
    {
    "message": "%fieldName is a required field.",
    "parameters": {
    "fieldName": "lastname"
    }
    },
    {
    "message": "Invalid value of "%value" provided for the %fieldName field.",
    "parameters": {
    "fieldName": "email",
    "value": null
    }
    }
    ]
    }

Metadata

Metadata

Assignees

Labels

Component: Framework/WebapiUSE ONLY for FRAMEWORK RELATED BUG! E.g If bug related to Catalog WEB API use just Catalog

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions