Solved

Shopify Admin API. How to get all payment gateways? How to get info about partial payments?

Dzonotonas
Shopify Partner
15 1 7

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?

Accepted Solution (1)
ShopifyDevSup
Shopify Staff
1421 232 487

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

View solution in original post

Replies 3 (3)

ShopifyDevSup
Shopify Staff
1421 232 487

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

Dzonotonas
Shopify Partner
15 1 7

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?

ShopifyDevSup
Shopify Staff
1421 232 487

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