[英]Shopify API Customer sort incorrectly unlike other resources(Product, Order, etc)
我认为您需要对参数进行编码。 Shopify文档为了清晰起见没有显示编码的参数,但是您需要:
'?fields='+encodeURIComponent('id,updated_at')+
'&updated_at_min='+encodeURIComponent('2015-11-25 20:01:00')+
'&order='+ encodeURIComponent('updated_at DESC');
您可以在客户上使用搜索端点。
/admin/customers/search.json
/admin/customers/search.json?order=updated_at DESC&fields=id
与客户在同一API页面上查看文档,再下一层
搜索时,请使用“ sorty_by”属性: https ://shopify.github.io/js-buy-sdk/api/classes/ShopClient.html#method-fetchQueryCollections
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.