Billing Attempts are not happening

Solved
kirillyar
Shopify Partner
2 0 3

Hi,

I have SubscriptionContract:

kirillyar_0-1667453348270.png

and Billing Cycle

kirillyar_1-1667453472369.png

 

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?

Accepted Solution (1)
Brian_S
Shopify Partner
127 18 36

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

Brian Singer
CTO & Cofounder of Subscription Service - Awtomic

View solution in original post

Replies 3 (3)
Brian_S
Shopify Partner
127 18 36

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

Brian Singer
CTO & Cofounder of Subscription Service - Awtomic
RckMartijn
Shopify Partner
5 1 0

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.

Brian_S
Shopify Partner
127 18 36

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.

Brian Singer
CTO & Cofounder of Subscription Service - Awtomic