Retrieving User Charge Attempt Details from Shopify Payment Gateway API

Retrieving User Charge Attempt Details from Shopify Payment Gateway API

ruslan287
Shopify Partner
1 0 0

I am using the Shopify Payment gateway to process payments for my users. Our business operates on a subscription model, and we utilize subscription orders. We want to analyze credit card decline error codes, such as "incorrect_cvc" and "incorrect_number".

Is it possible to retrieve a list of all user charge attempts, including both failed and successful ones, via the API?

Thanks

Reply 1 (1)

lizk
Shopify Staff
246 58 79

Hi there 👋

You can query the billing attempts with the subscriptionBillingAttempts query.
Are you using an App to create subscriptions on your Shopify store, or did you build out the subscription functionality yourself. Currently billing attempts can only be queried by the App that created them. 

To learn more visit the Shopify Help Center or the Community Blog.