更新应用订阅行单元-appSubscriptionLineItemUpdate mutation
更新附加到应用程序订阅中的应用程序计划的定价详细信息。
在本页面
互动范例
这是一个示例变异查询。使用下面的嵌入式交互式工具来编辑查询。
mutation appSubscriptionLineItemUpdate($id: ID!, $cappedAmount: MoneyInput!) { appSubscriptionLineItemUpdate(id: $id, cappedAmount: $cappedAmount) {} }
<font style="color:#1F61A0;">appSubscription</font> <font style="color:#555555;">{</font>
<font style="color:#1F61A0;">id</font>
<font style="color:#555555;">}</font>
<font style="color:#1F61A0;">confirmationUrl</font>
<font style="color:#1F61A0;">userErrors</font> <font style="color:#555555;">{</font>
<font style="color:#1F61A0;">field</font>
<font style="color:#1F61A0;">message</font>
<font style="color:#555555;">}</font>
变量:
{ “id”: “Z2lkOi8vU2hvcGlmeS9FeGFtcGxlLzE=”, “cappedAmount”: {} }
<font style="color:#8B2BB9;">"amount"</font><font style="color:#555555;">:</font> <font style="color:#D64292;">"placeholder"</font><font style="color:#555555;">,</font>
<font style="color:#8B2BB9;">"currencyCode"</font><font style="color:#555555;">:</font> <font style="color:#D64292;">"placeholder"</font>
参数
MoneyInput字段
- amount (
[Decimal!](https://shopify.dev/docs/admin-api/graphql/reference/scalar#decimal-2021-01)
) 必需的
小数金额。 - currencyCode(
[CurrencyCode!](https://shopify.dev/docs/admin-api/graphql/reference/common-objects/currencycode)
) 必需的
货币货币。
返回字段
- appSubscription(
[AppSubscription](https://shopify.dev/docs/admin-api/graphql/reference/billing/appsubscription)
)
更新的应用程序订阅。 - ConfirmationUrl(
[URL](https://shopify.dev/docs/admin-api/graphql/reference/scalar#url-2021-01)
)
商家批准或拒绝更新的应用程序订阅订单项的网址。 - userErrors(
[[UserError!]!](https://shopify.dev/docs/admin-api/graphql/reference/usererror)
)
执行突变时发生的错误列表。