From e793ea561d0f6dbb0bfc6ccb27d6d80f357e9e4b Mon Sep 17 00:00:00 2001 From: Alex Taranovsky Date: Sun, 10 Nov 2019 17:39:47 +0200 Subject: [PATCH 1/2] magento/devdocs#: Add createCustomer mutation API errors https://devdocs.magento.com/guides/v2.3/graphql/mutations/create-customer.html --- guides/v2.3/graphql/mutations/create-customer.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/guides/v2.3/graphql/mutations/create-customer.md b/guides/v2.3/graphql/mutations/create-customer.md index 30cf64f4f1a..63babc71d3c 100644 --- a/guides/v2.3/graphql/mutations/create-customer.md +++ b/guides/v2.3/graphql/mutations/create-customer.md @@ -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` is an undefined attribute. +`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) From 92311d3433f5ca4e514d2cad73ad5aac6a013975 Mon Sep 17 00:00:00 2001 From: Kevin Harper Date: Mon, 11 Nov 2019 10:45:16 -0600 Subject: [PATCH 2/2] Update create-customer.md --- guides/v2.3/graphql/mutations/create-customer.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/guides/v2.3/graphql/mutations/create-customer.md b/guides/v2.3/graphql/mutations/create-customer.md index 63babc71d3c..ac962a528bf 100644 --- a/guides/v2.3/graphql/mutations/create-customer.md +++ b/guides/v2.3/graphql/mutations/create-customer.md @@ -76,7 +76,7 @@ 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` is an undefined attribute. +`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