Get payment methods via graph api

Topic summary

Goal: obtain a list of enabled payment methods to map sales orders in another system.

  • Attempts: A suggested REST endpoint (admin/api/2023-04/payment_methods.json) returns “Not Found.” It’s not a GraphQL query and there’s no evident GraphQL equivalent.

  • Current status (most recent, authoritative update): Shopify staff confirm there is currently no GraphQL or REST API to query payment gateway settings or retrieve the list of enabled payment methods for a merchant.

  • Workarounds:

  • Outcome: No direct API-based solution exists; the practical approach is inference via transactions plus webhook monitoring. The limitation remains open with no announced resolution.

Summarized with AI on January 6. AI used: gpt-5.

In order to import sale orders into another system, I need to create payment methods, appropriate journals, etc in the destination so that when I retrieve a sales order, I can set the appropriate payment method for the order. However, I don’t seem to be able to find a way to get all available payment methods from the graph api.

Can anyone point me to a query that will give me payment methods?

Hello @Ethnique

To get all available payment methods from the Shopify Graph API, you can use the following request:

https://{SHOPIFY_STORE_URL}/admin/api/2023-04/payment_methods.json

Thanks for responding. The response is;

{"errors":"Not Found"}

Is there a way to get this via the graph API?

Hello Magecomp,

I get the same response.

{"errors":"Not Found"}

Your provided code looks like it is supposed to be used via REST-API, not graphQL. Is there a way to get this via the graph API?

Yes i’m also getting same issue

There is no graph API or REST-API provided to get list of enabled payment method names

Hey @Paddy3000 and @bavashiek ,

This is a great question. Currently there isn’t a way to query the Payment gateway settings to see which payment methods the merchant has enabled.

One workaround would be to query a subset of orders transactions to see which ones are most common or have been used recently, and then maybe use webhooks to detect when a new one is used so you can take necessary action.

One thing to keep in mind as well is some of the processing fields have been deprecated, so to get the specific information you need, it can be inferred from other resources. This changelog post has a great explanation of what’s been removed and what you can use instead: https://shopify.dev/changelog/payment-properties-deprecation-on-the-admin-api-order-resource

Hope that helps,

Kyle G.