Hi there, I was trying to update customer account menu with menuUpdate mutation, and the result is different than what the API doc suggests.
I am working with item type CUSTOMER_ACCOUNT_PAGE, which result in the following user error.
{ message: `Couldn't update link "Order", customer_account_page not found`, field: null, code: null }
I verified the issue by:
- Query the existing menu items
- Passing the exact same queried items, back into the menuUpdate
{
"query": "\n mutation UpdateMenu($id: ID!, $title: String!, $items: [MenuItemUpdateInput!]!) {\n menuUpdate(id: $id, title: $title, items: $items) {\n menu {\n id\n handle\n title\n items {\n id\n title\n type\n url\n }\n }\n userErrors {\n field\n code\n message\n }\n }\n }\n ",
"variables": {
"id": "gid://shopify/Menu/xxxxxxxx",
"title": "Customer account main menu",
"items": [
{
"id": "gid://shopify/MenuItem/xxxxxxxx",
"title": "Shop",
"type": "FRONTPAGE",
"url": "/"
},
{
"id": "gid://shopify/MenuItem/xxxxxxxx",
"title": "Order",
"type": "CUSTOMER_ACCOUNT_PAGE",
"url": "https://shopify.com/xxxxx/account/orders"
}
]
}
}
Tried different item types in the query, and only CUSTOMER_ACCOUNT_PAGE is returning error, for not being recognized.
Also tried different API version, from 2024-10 to 2025-07, all resulting in the same error. Doc suggests that the operation should be supported in all API version.
Also the errror message having a null
error code and field is quite concerning.
So may I know if CUSTOMER_ACCOUNT_PAGE is actually not a supported type, except being listed in API doc?