-
Notifications
You must be signed in to change notification settings - Fork 1.7k
magento/devdocs#: Add mergeCarts query API errors #6628
magento/devdocs#: Add mergeCarts query API errors #6628
Conversation
An admin must run tests on this PR before it can be merged. |
715bb0c
to
7e166f8
Compare
`Current user does not have an active cart.` | `mergeCarts` mutation deactivates provided in the `source_cart_id` attribute guest's cart after merge, thus guest will be not able to make any further operations with it. | ||
`Required parameter "destination_cart_id" is missing` | The `destination_cart_id` attribute contains an empty value. | ||
`Required parameter "source_cart_id" is missing` | The `source_cart_id` attribute contains an empty value. | ||
`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, or you tried to merge guests carts. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you tried to merge guests carts
Thats a very good point 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@atwixfirster The description of the first error wasn't clear to me, so I'm just leaving suggested edits, instead of editing the PR directly.
|
||
Error | Description | ||
--- | --- | ||
`Current user does not have an active cart.` | `mergeCarts` mutation deactivates provided in the `source_cart_id` attribute guest's cart after merge, thus guest will be not able to make any further operations with it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
`Current user does not have an active cart.` | `mergeCarts` mutation deactivates provided in the `source_cart_id` attribute guest's cart after merge, thus guest will be not able to make any further operations with it. | |
`Current user does not have an active cart.` | The `mergeCarts` mutation deactivates the guest cart specified in the `source_cart_id` after merging. The guest cannot make any further operations with it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
implemented
`Current user does not have an active cart.` | `mergeCarts` mutation deactivates provided in the `source_cart_id` attribute guest's cart after merge, thus guest will be not able to make any further operations with it. | ||
`Required parameter "destination_cart_id" is missing` | The `destination_cart_id` attribute contains an empty value. | ||
`Required parameter "source_cart_id" is missing` | The `source_cart_id` attribute contains an empty value. | ||
`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, or you tried to merge guests carts. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
`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, or you tried to merge guests carts. | |
`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, or you tried to merge two guest carts. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
`Required parameter "destination_cart_id" is missing` | The `destination_cart_id` attribute contains an empty value. | ||
`Required parameter "source_cart_id" is missing` | The `source_cart_id` attribute contains an empty value. | ||
`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, or you tried to merge guests carts. | ||
`The current user cannot perform operations on cart` | Authorized customer tries to merge a guest cart into a cart of another customer. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
`The current user cannot perform operations on cart` | Authorized customer tries to merge a guest cart into a cart of another customer. | |
`The current user cannot perform operations on cart` | The authorized customer tried to merge a guest cart into the cart of another customer. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
7e166f8
to
160358c
Compare
@keharper all your suggestions have been implemented. Could you please review? Thank you! |
160358c
to
1995224
Compare
Hi @atwixfirster, thank you for your contribution! |
Purpose of this pull request
This pull request (PR) adds information about the API errors of
mergeCarts
mutation.Affected DevDocs pages
Links to Magento source code