Liquid、JavaScript、主题、销售渠道。
Can someone help me? I use GQL API to create a return, but I always got error: "invalid id", the following is my code:
my query:
mutation returnCreate($returnInput: ReturnInput!) { returnCreate(returnInput: $returnInput) { return { name status totalQuantity } userErrors { field message } } }
and my variables:
{ "returnInput": { "notifyCustomer": true, "orderId": "gid://shopify/Order/xxxxx", "returnLineItems": [ { "fulfillmentLineItemId": "gid://shopify/LineItem/xxxxx", "quantity": 1, "returnReason": "SIZE_TOO_SMALL", "returnReasonNote": "" } ] } }
and the return of api:
{ "data": { "returnCreate": null }, "errors": [ { "message": "invalid id", "locations": [ { "line": 2, "column": 3 } ], "path": [ "returnCreate" ] } ], "extensions": { "cost": { "requestedQueryCost": 10, "actualQueryCost": 1, "throttleStatus": { "maximumAvailable": 10000, "currentlyAvailable": 9999, "restoreRate": 500 } } } }
了解如何借助 Shopify Academy 的学习路径和验证技能徽章在全球市场拓展 Shopify 业务拓展全球业务。此学习路径经过精心策划,提供免费课程,目的是帮助您探...
By Shopify Feb 7, 2025利用 Shopify Academy 的学习路径 B2B on Shopify:启动和自定义扩大业务范围,开展批发销售业务。以下三组免费课程专门帮助您在 Shopify 商店...
By Shopify Jan 31, 2025在当今竞争激烈的电商市场中,视觉效果是吸引和留住客户的关键因素之一。高质量的图片不仅能提升店铺的专业形象,还能显著提高转化率和用户体验。研究表明,优质的产品图片可以增...
By Vikki Sep 15, 2024