Update the maximum amount of a charge
You can update the maximum amount that can be charged to a merchant for each purchase using the appSubscriptionLineItemUpdate
mutation. This mutation lets you update plans if you decide to change your business model.
If you try to create a usage record for a usage pricing plan with an amount less than the new usage record, then the request fails. You need to increase the cappedAmount
, and then obtain merchant approval before you can create more usage records.
Retrieve the id
, cappedAmount
, and balanceUsed
fields from an AppSubscription
object
Anchor link to section titled "Retrieve the id, cappedAmount, and balanceUsed fields from an AppSubscription object"You can query the AppSubscription
object to retrieve its id
, cappedAmount
, and balanceUsed
fields:
Update the cappedAmount
of an AppSubscription
object
Anchor link to section titled "Update the cappedAmount of an AppSubscription object"Use the AppSubscription
gid
you retrieved in the previous GraphQL query as an argument to the appSubscriptionLineItemUpdate
mutation to increase the cappedAmount
of an appSubscription
: