/admin/api/2022-04/customer_saved_searches.json 返回出错

Solved

/admin/api/2022-04/customer_saved_searches.json 返回出错

JackHuang
Shopify Partner
8 1 0

使用 2022-04 版本 返回  

{"errors":"Not found"}

使用2020-07版本有数据返回 

 

/admin/api/2searches.json?fielder_2_%2Cname%2Cquery&=50
但是与商店后台的数据返回的数据 
列表有12个筛选
API返回的数据列表有12个

 

Accepted Solution (1)

JackHuang
Shopify Partner
8 1 0

This is an accepted solution.

customer_saved_searches  2022-04 已经取消而且之前的已经不维护了
具体通知 
https://shopify.dev/changelog/segmentation-api-available-in-2022-04-release

最新获取方式
graphql
https://shopify.dev/api/admin-graphql/2022-04/queries/segments

{
			  segments (first:50) {
				edges {
				  node {
					id
					name
					creationDate
					query
				  }
				}
			  }
			}



View solution in original post

Replies 2 (2)

JackHuang
Shopify Partner
8 1 0

使用 2022-04 API版本 返回  

{"errors":"Not found"}

使用2020-07 API版本有数据返回 

/admin/api/2020-07/customer_saved_searches.json?fields=id%2Cname%2Cquery&limit=50
但是与商店后台的返回数据有差别
商店后台列表有12个筛选
API返回的列表只有9个

JackHuang
Shopify Partner
8 1 0

This is an accepted solution.

customer_saved_searches  2022-04 已经取消而且之前的已经不维护了
具体通知 
https://shopify.dev/changelog/segmentation-api-available-in-2022-04-release

最新获取方式
graphql
https://shopify.dev/api/admin-graphql/2022-04/queries/segments

{
			  segments (first:50) {
				edges {
				  node {
					id
					name
					creationDate
					query
				  }
				}
			  }
			}