Merchant account api

Hello guys I was wondering if there is a api that can get me the id of the merchant account

Right now I have to hard code the id but is there a way that I can get the merchant account id using xmlrpc api

Hi @Rohan_Jalil,

Are you talking about getting the id of the configured default merchant account? That can be retrieved like this:

<?xml version='1.0' encoding='UTF-8'?>

can you share the php version or some reference to this api in xml rpc

I’m not too familiar with php but I believe this should do it.

$infusionsoft->data()->getAppSetting("Ecommerce", "defaultmerchant");

You can get the default merchant account ID only - $infusionsoft->data()->getAppSetting("Ecommerce", "defaultmerchant");

You cannot get a list of merchant accounts and IDs - this endpoint has been requested a few times as it would help most e-commerce integrations for Infusionsoft.

There’s actually a relatively new REST endpoint that can return the list of merchant accounts as well as the default merchant account id: Keap REST API

It is available in the PHP SDK as of version 1.4.5.

1 Like