How to Get List of Configured Payment Gateways via Admin API?

Hey @Bhanuvardhanreddy,

There’s currently no Admin API endpoint to retrieve configured payment gateways directly. This has come up before in this thread and this one.

That said, querying historical orders for the gateway field is a solid foundation. Merchants rarely change their payment gateway configuration, so you could build a pattern like:

  1. Initial setup: Query historical orders to populate existing gateways
  2. Ongoing: Subscribe to orders/create webhook
  3. New gateway detected: Alert the merchant to complete the mapping for that gateway

This way the system is self-maintaining. New stores would just need to complete their first order before that gateway appears for mapping, but after that it handles itself.

I’ve submitted this as a feature request internally on your behalf. The request captures the need for an API endpoint to query configured/enabled payment gateways, the use case for accounting integrations needing upfront payment method mapping, and the current workaround limitations for new stores. If this is added to the API, it would be versioned and tied to an API release. You can track all updates in the developers changelog.

1 Like