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

Commit dcc1e59

Browse files
committed
magento/devdocs#: Add createCustomer mutation API errors
https://devdocs.magento.com/guides/v2.3/graphql/mutations/create-customer.html
1 parent b0215ae commit dcc1e59

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

guides/v2.3/graphql/mutations/create-customer.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,16 @@ The `createCustomer` mutation returns the `CustomerOutput` object.
6969

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

72+
## Errors
73+
74+
Error | Description
75+
--- | ---
76+
`A customer with the same email address already exists in an associated website.` | Customer with a provided email in the `input`.`email` already exists.
77+
`"Email" is not a valid email address.` | Value provided in the `input`.`email` has invalid email format.
78+
`Field CustomerInput.email of required type String! was not provided` | The `input`.`email` attribute was omitted.
79+
`Field "xxx" is not defined by type CustomerInput.` | The `input`.`xxx` is undefined attribute.
80+
`Required parameters are missing: First Name` | The `input`.`firstname` attribute was omitted or contains an empty value.
81+
7282
## Related topics
7383

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

0 commit comments

Comments
 (0)