What's your biggest current challenge? Have your say in Community Polls along the right column.
Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

Billing Attempts are not happening

Solved

Billing Attempts are not happening

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
171 21 44

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
171 21 44

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
171 21 44

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