For discussing the development and integration of subscription-enabled shops using Shopify's Subscription APIs.
Hi,
I have SubscriptionContract:
and Billing Cycle
But when billingAttemptExpectedDate
comes, nothing happens. The billing attempts list is empty, no new orders are created.
Shopify Payments is running on test mode.
What could have gone wrong?
Solved! Go to the solution
This is an accepted solution.
@kirillyar - Shopify doesn't automatically create billing attempts. That responsibility is on the app.
This section of the help docs breaks out responsibilities: https://shopify.dev/apps/subscriptions/modeling#division-of-responsibilities-between-shopify-and-app...
Here's the mutation for creating billing attempts: https://shopify.dev/api/admin-graphql/2022-10/mutations/subscriptionBillingAttemptCreate
This is an accepted solution.
@kirillyar - Shopify doesn't automatically create billing attempts. That responsibility is on the app.
This section of the help docs breaks out responsibilities: https://shopify.dev/apps/subscriptions/modeling#division-of-responsibilities-between-shopify-and-app...
Here's the mutation for creating billing attempts: https://shopify.dev/api/admin-graphql/2022-10/mutations/subscriptionBillingAttemptCreate
Hi @Brian_S, do you know if this is also true on initial order? The documentation claims they create an attempt for the initial order, but I don't see that happening in my testing.
The initial order is created via the customer going through checkout. That's actually what triggers Shopify to create the Subscription Contract.
If you're asking if Shopify creates a BillingAttempt object after the customer goes through the initial checkout, no. Billing Attempts are only created when an app triggers a billing attempt creation.