Product Service

ProductService is used to manage products. You can add, update and find products in addition to managing follow up sequences, tags and action sets.


ProductService.getInventory

Returns a product inventory provided the Id

Required Parameters

Parameter Name Type Definition
Key string Your Infusionsoft API key
productId int id of the product

Sample Request

<?xml version='1.0' encoding='UTF-8'?>
<methodCall>
  <methodName>ProductService.getInventory</methodName>
  <params>
    <param>
      <value><string>privateKey</string></value>
    </param>
    <param>
      <value><int>productId</int></value>
    </param>
  </params>
</methodCall>

Sample Response

<?xml version='1.0' encoding='UTF-8'?>
<methodResponse>
  <params>
    <param>
      <value><i4>0</i4></value>
    </param>
  </params>
</methodResponse>

PHP iSDK Sample

$app->getInventory(1);

ProductService.incrementInventory

Increments the inventory by one product, provided you pass the productId to increment withy

Required Parameters

Parameter Name Type Definition
Key string Your Infusionsoft API key
productId int id of the product

Sample Request

<?xml version='1.0' encoding='UTF-8'?>
<methodCall>
  <methodName>ProductService.incrementInventory</methodName>
  <params>
    <param>
      <value><string>privateKey</string></value>
    </param>
    <param>
      <value><int>productId</int></value>
    </param>
  </params>
</methodCall>

Sample Response

<?xml version='1.0' encoding='UTF-8'?>
<methodResponse>
  <params>
    <param>
      <value><boolean>1</boolean></value>
    </param>
  </params>
</methodResponse>

PHP iSDK Sample

$app->incrementInventory(1);

ProductService.decrementInventory

Decrements the inventory by one product, provided you pass the productId to decrement with

Required Parameters

Parameter Name Type Definition
Key string Your Infusionsoft API key
productId int id of the product

Sample Request

<?xml version='1.0' encoding='UTF-8'?>
<methodCall>
  <methodName>ProductService.decrementInventory</methodName>
  <params>
    <param>
      <value><string>privateKey</string></value>
    </param>
    <param>
      <value><int>productId</int></value>
    </param>
  </params>
</methodCall>

Sample Response

<?xml version='1.0' encoding='UTF-8'?>
<methodResponse>
  <params>
    <param>
      <value><boolean>1</boolean></value>
    </param>
  </params>
</methodResponse>

PHP iSDK Sample

$app->decrementInventory(1);

ProductService.increaseInventory

Increases the inventory with a particular product by the quantity you specify

Required Parameters

Parameter Name Type Definition
Key string Your Infusionsoft API key
productId int id of the product
quantity int quantity to increase

Sample Request

<?xml version='1.0' encoding='UTF-8'?>
<methodCall>
  <methodName>ProductService.increaseInventory</methodName>
  <params>
    <param>
      <value><string>privateKey</string></value>
    </param>
    <param>
      <value><int>productId</int></value>
    </param>
    <param>
      <value><int>quantity</int></value>
    </param>
  </params>
</methodCall>

Sample Response

<?xml version='1.0' encoding='UTF-8'?>
<methodResponse>
  <params>
    <param>
      <value><boolean>1</boolean></value>
    </param>
  </params>
</methodResponse>

PHP iSDK Sample

$app->increaseInventory(1, 3);

ProductService.decreaseInventory

Decreases the inventory with a particular product by the quantity you specify

Required Parameters

Parameter Name Type Definition
Key string Your Infusionsoft API key
productId int id of the product
quantity int quantity to decrease

Sample Request

<?xml version='1.0' encoding='UTF-8'?>
<methodCall>
  <methodName>ProductService.decreaseInventory</methodName>
  <params>
    <param>
      <value><string>privateKey</string></value>
    </param>
    <param>
      <value><int>productId</int></value>
    </param>
    <param>
      <value><int>quantity</int></value>
    </param>
  </params>
</methodCall>

Sample Response

<?xml version='1.0' encoding='UTF-8'?>
<methodResponse>
  <params>
    <param>
      <value><boolean>1</boolean></value>
    </param>
  </params>
</methodResponse>

PHP iSDK Sample

$app->decreaseInventory(1, 3);

ProductService.deactivateCreditCard

Deactivates the specified Credit Card

Required Parameters

Parameter Name Type Definition
Key string Your Infusionsoft API key
creditCardId int id of the credit card

Sample Request

<?xml version='1.0' encoding='UTF-8'?>
<methodCall>
  <methodName>ProductService.deactivateCreditCard</methodName>
  <params>
    <param>
      <value><string>privateKey</string></value>
    </param>
    <param>
      <value><int>creditCardId</int></value>
    </param>
  </params>
</methodCall>

Sample Response

<?xml version='1.0' encoding='UTF-8'?>
<methodResponse>
  <params>
    <param>
      <value><boolean>1</boolean></value>
    </param>
  </params>
</methodResponse>

PHP iSDK Sample

$app->deactivateCreditCard(1);