A space to discuss GraphQL queries, mutations, troubleshooting, throttling, and best practices.
Hi 👋
https://help.shopify.com/en/manual/products/purchase-options/pre-orders
Preorders are currently only available to merchants using Shopify Payments or Paypal Express. How do I can get this information via Shopify admin API?
First I tried to get info about partial payment possibility on the store, but unsuccessfully. Example of what I tried to look:
{ partialPaymentsAvailable: true }
Second I tried to look for separate information about Shopify Payments and Paypal Express.
Shopify Payments
I found this API: https://shopify.dev/docs/api/admin-graphql/2024-01/queries/shopifyPaymentsAccount which can indicate whether a Shopify Payments is activated or not.
Paypal Express
How to get similar information as Shopify Payments about Paypal Express?
Solved! Go to the solution
This is an accepted solution.
Hi @Dzonotonas,
For the ShopFeatures object, the paypalExpressSubscriptionGatewayStatus field being ENABLED does indicate that your Paypal Express Gateway is eligible and fully configured to sell subscription on the Paypal Gateway.
For the shopifyPaymentsAccount query, the ShopifyPaymentsAccount.activated field doesn't actually have anything to do with subscriptions on your store, it only indicates if your Shopify Payments account is activated or not, meaning if you are able to sell anything using Shopify payments, it will return true, not just subscription products.
I hope this helps, and I hope you have a great day 🙂
Developer Support @ Shopify
- Was this reply helpful? Click Like to let us know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit Shopify.dev or the Shopify Web Design and Development Blog
Hey @Dzonotonas ,
That's a great question. We don't have a specific endpoint available to check the eligibility for pre-orders.
I'd suggest using the shop features object as what you need can be inferred from there. https://shopify.dev/docs/api/admin-graphql/2024-01/objects/ShopFeatures#top
For example, if the Shopify Payments or PaypalExpress are not eligible for subscriptions, then likely they won't work for other selling plans like pre-orders either.
Hope that helps!
- Kyle G.
Developer Support @ Shopify
- Was this reply helpful? Click Like to let us know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit Shopify.dev or the Shopify Web Design and Development Blog
https://shopify.dev/docs/api/admin-graphql/2024-01/objects/ShopFeatures#top If `paypalExpressSubscriptionGatewayStatus` value is `ENABLED`, is it means eligible for subscriptions?
https://shopify.dev/docs/api/admin-graphql/2024-01/queries/shopifyPaymentsAccount If `activated` value is `true`, is it means eligible for subscriptions?
This is an accepted solution.
Hi @Dzonotonas,
For the ShopFeatures object, the paypalExpressSubscriptionGatewayStatus field being ENABLED does indicate that your Paypal Express Gateway is eligible and fully configured to sell subscription on the Paypal Gateway.
For the shopifyPaymentsAccount query, the ShopifyPaymentsAccount.activated field doesn't actually have anything to do with subscriptions on your store, it only indicates if your Shopify Payments account is activated or not, meaning if you are able to sell anything using Shopify payments, it will return true, not just subscription products.
I hope this helps, and I hope you have a great day 🙂
Developer Support @ Shopify
- Was this reply helpful? Click Like to let us know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit Shopify.dev or the Shopify Web Design and Development Blog