Create recurring charges based on time
You can use the appSubscriptionCreate
mutation to create a recurring charge. You can specify the details of the plan by using the appRecurringPricingDetails
field on the line item's plan.
You can use only the USD
value as the currencyCode
. After the merchant accepts the charge, the merchant is then redirected to the URL that's returned from the returnUrl
.
Create an app subscription based on time
Anchor link to section titled "Create an app subscription based on time"Provide the name
, returnUrl
, price
, and interval
. The interval
field accepts two values: ANNUAL
or EVERY_30_DAYS
. If the interval
field is not provided, then the interval defaults to EVERY_30_DAYS
.
To create an app subscription based on time, use the appSubscriptionCreate
mutation:
Create an app usage record
Anchor link to section titled "Create an app usage record"After you've created the usage pricing plan and the merchant has accepted the plan, you can create a usage record. The usage record needs to include the
AppSubscriptionLineItem.id
of the AppSubscription
object that is returned by the appSubscriptionCreate
mutation.
To create an app usage record, use the appUsageRecordCreate
mutation: