From f0a0fc0bf9b6452a8c168b7b26a6331eb239ced6 Mon Sep 17 00:00:00 2001 From: Alex Taranovsky Date: Wed, 13 Nov 2019 15:55:44 +0200 Subject: [PATCH 1/2] magento/devdocs#: Add updateCustomerAddress mutation API errors - https://devdocs.magento.com/guides/v2.3/graphql/mutations/update-customer-address.html --- .../graphql/mutations/update-customer-address.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/guides/v2.3/graphql/mutations/update-customer-address.md b/guides/v2.3/graphql/mutations/update-customer-address.md index 5c7f146dd5b..64e28812d81 100644 --- a/guides/v2.3/graphql/mutations/update-customer-address.md +++ b/guides/v2.3/graphql/mutations/update-customer-address.md @@ -61,6 +61,19 @@ The `updateCustomerAddress` mutation returns the `CustomerAddress` object. {% include graphql/customer-address-output.md %} +## Errors + +Error | Description +--- | --- +`Address "id" value should be specified` | The `id` attribute equals to a zero. +`Could not find a address with ID "XXX"` | Customer's address with specified entity ID in the `id` attribute does not exist. +`Current customer does not have permission to address with ID "XXX"` | Customer tries to update address of another customer. +`Field "updateCustomerAddress" argument "id" of type "Int!" is required but not provided.` | The `id` attribute was omitted. +`Field "updateCustomerAddress" argument "id" requires type Int!, found "XXX".` | The specified `id` attribute value has a wrong type. +`"input" value must be specified` | The `input` attribute is omitted or specified but is empty. +`Syntax Error: Expected Name, found )` | The `id` and `input` attributes are omitted. +`The current customer isn't authorized.` | The current customer is not currently logged in, or the customer's token does not exist in the `oauth_token` table. + ## Related topics * [customer query]({{page.baseurl}}/graphql/queries/customer.html) From 7e30a3400450a08181b3ba1b64a8f1f1fd204f7b Mon Sep 17 00:00:00 2001 From: Kevin Harper Date: Wed, 13 Nov 2019 09:48:25 -0600 Subject: [PATCH 2/2] Editing for grammar --- .../v2.3/graphql/mutations/update-customer-address.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/guides/v2.3/graphql/mutations/update-customer-address.md b/guides/v2.3/graphql/mutations/update-customer-address.md index 64e28812d81..e70ab440219 100644 --- a/guides/v2.3/graphql/mutations/update-customer-address.md +++ b/guides/v2.3/graphql/mutations/update-customer-address.md @@ -65,12 +65,12 @@ The `updateCustomerAddress` mutation returns the `CustomerAddress` object. Error | Description --- | --- -`Address "id" value should be specified` | The `id` attribute equals to a zero. -`Could not find a address with ID "XXX"` | Customer's address with specified entity ID in the `id` attribute does not exist. -`Current customer does not have permission to address with ID "XXX"` | Customer tries to update address of another customer. +`Address "id" value should be specified` | The `id` attribute is zero. +`Could not find a address with ID "XXX"` | The customer address specified in the `id` attribute does not exist. +`Current customer does not have permission to address with ID "XXX"` | The customer tries to update the address of another customer. `Field "updateCustomerAddress" argument "id" of type "Int!" is required but not provided.` | The `id` attribute was omitted. -`Field "updateCustomerAddress" argument "id" requires type Int!, found "XXX".` | The specified `id` attribute value has a wrong type. -`"input" value must be specified` | The `input` attribute is omitted or specified but is empty. +`Field "updateCustomerAddress" argument "id" requires type Int!, found "XXX".` | The specified `id` attribute value has the wrong type. +`"input" value must be specified` | The `input` attribute was omitted or was specified but is empty. `Syntax Error: Expected Name, found )` | The `id` and `input` attributes are omitted. `The current customer isn't authorized.` | The current customer is not currently logged in, or the customer's token does not exist in the `oauth_token` table.