更新应用订阅行单元-appSubscriptionLineItemUpdate mutation

更新附加到应用程序订阅中的应用程序计划的定价详细信息。


在本页面


互动范例

这是一个示例变异查询。使用下面的嵌入式交互式工具来编辑查询。

mutation appSubscriptionLineItemUpdate($id: ID!, $cappedAmount: MoneyInput!) { appSubscriptionLineItemUpdate(id: $id, cappedAmount: $cappedAmount) {
  1. <font style="color:#1F61A0;">appSubscription</font> <font style="color:#555555;">{</font>
  2. <font style="color:#1F61A0;">id</font>
  3. <font style="color:#555555;">}</font>
  4. <font style="color:#1F61A0;">confirmationUrl</font>
  5. <font style="color:#1F61A0;">userErrors</font> <font style="color:#555555;">{</font>
  6. <font style="color:#1F61A0;">field</font>
  7. <font style="color:#1F61A0;">message</font>
  8. <font style="color:#555555;">}</font>
} }

变量:

{ “id”: “Z2lkOi8vU2hvcGlmeS9FeGFtcGxlLzE=”, “cappedAmount”: {
  1. <font style="color:#8B2BB9;">"amount"</font><font style="color:#555555;">:</font> <font style="color:#D64292;">"placeholder"</font><font style="color:#555555;">,</font>
  2. <font style="color:#8B2BB9;">"currencyCode"</font><font style="color:#555555;">:</font> <font style="color:#D64292;">"placeholder"</font>
} }

参数

参数 描述
cappedAmount
() [MoneyInput!](https://shopify.dev/docs/admin-api/graphql/reference/common-objects/moneyinput)

必需的
可以向商店收取使用费用的更新上限金额。
id
() [ID!](https://shopify.dev/docs/admin-api/graphql/reference/scalar#id-2021-01)

必需的
要更新的应用订阅订单项的ID。

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)
    执行突变时发生的错误列表。