For discussing the development and integration of subscription-enabled shops using Shopify's Subscription APIs.
I have installed the Bold Subscriptions app and have been using it to created subscriptions. Now I am interested in programmatically creating subscriptions (bypassing the regular checkout flow entering card information, etc.).
According to the bold v2 API, this is possible and requires `gateway_name`, `gateway_customer_id` and `gateway_payment_id`. Reading this article I am lead to believe that I need to retrieve the `customer_id` and `payment_id` from stripe but there is no stripe account linked to the shopify store and I could not find ids in the described format anywhere.
Attempting to retrieve the customer payment method using the graphql admin api gives a scope error. According to the graphql documentation, it requires the `read_customer_payment_methods` scope, but attempting to grant this scope gives the error "Oauth error missing_shopify_permission: read_customer_payment_methods".
Any ideas how to retrieve the needed (stripe?) ids for customer and payment? Or any ideas how to resolve the scope issue to access the payment methods of the customer using graphql?
Hello there!
You can request permissions via the partner's dashboard when building apps.
About Stripe payment information: we do not expose those, to avoid bypassing checkout for payments.
Please refer to https://shopify.dev/apps/subscriptions and https://www.shopify.com/legal/api-terms
To learn more visit the Shopify Help Center or the Community Blog.
Hi Agri, How did you fix this issue ? Looks like Shopify didnt help much.