2014-03-11

The Infusionsoft API makes it possible to place orders and charge credit cards without your customer ever visiting a single Infusionsoft page. To do this, you’ll need to know your merchant account ID. Infusionsoft doesn’t provide a way to get this via the API. You can get it through your Infusionsoft app, but this involves clicking through to the right screen and then dissecting a page’s URL.

An easier solution, especially if you are building software for clients, is to try to find this information by looking at recent transactions. By looking at recent transactions in the CCharge table, you can find the merchant account ID with a fairly high level of confidence. It is still a good idea to confirm your merchant account ID by looking in Infusionsoft but this helps you know you are looking in the right place.

This code assumes you are using the free Novak Solutions Infusionsoft PHP SDK and you have a config.php with your app name and API key.

We use this code in the free Infusionsoft One-click Upsell plugin for WordPress to make it easier to find your merchant account ID. We hope you find it useful in your own projects!

Show more