Skip to content
This repository was archived by the owner on Nov 19, 2024. It is now read-only.

magento/devdocs#: Add createCustomer mutation API errors #5961

Merged
merged 3 commits into from
Nov 11, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions guides/v2.3/graphql/mutations/create-customer.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,16 @@ The `createCustomer` mutation returns the `CustomerOutput` object.

{% include graphql/customer-output.md %}

## Errors

Error | Description
--- | ---
`A customer with the same email address already exists in an associated website.` | The email provided in the `input`.`email` attribute belongs to an existing customer.
`"Email" is not a valid email address.` | The value provided in the `input`.`email` attribute has an invalid format.
`Field CustomerInput.email of required type String! was not provided` | The `input`.`email` attribute was omitted.
`Field "xxx" is not defined by type CustomerInput.` | The `input`.`xxx` attribute is undefined.
`Required parameters are missing: First Name` | The `input`.`firstname` attribute was omitted or contains an empty value.

## Related topics

* [customer query]({{page.baseurl}}/graphql/queries/customer.html)
Expand Down