ProductService is used to manage products. You can add, update and find products in addition to managing follow up sequences, tags and action sets.
Returns a product inventory provided the Id
Parameter Name | Type | Definition |
---|---|---|
Key | string | Your Infusionsoft API key |
productId | int | id of the product |
<?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>
<?xml version='1.0' encoding='UTF-8'?> <methodResponse> <params> <param> <value><i4>0</i4></value> </param> </params> </methodResponse>
$app->getInventory(1);
Increments the inventory by one product, provided you pass the productId to increment withy
Parameter Name | Type | Definition |
---|---|---|
Key | string | Your Infusionsoft API key |
productId | int | id of the product |
<?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>
<?xml version='1.0' encoding='UTF-8'?> <methodResponse> <params> <param> <value><boolean>1</boolean></value> </param> </params> </methodResponse>
$app->incrementInventory(1);
Decrements the inventory by one product, provided you pass the productId to decrement with
Parameter Name | Type | Definition |
---|---|---|
Key | string | Your Infusionsoft API key |
productId | int | id of the product |
<?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>
<?xml version='1.0' encoding='UTF-8'?> <methodResponse> <params> <param> <value><boolean>1</boolean></value> </param> </params> </methodResponse>
$app->decrementInventory(1);
Increases the inventory with a particular product by the quantity you specify
Parameter Name | Type | Definition |
---|---|---|
Key | string | Your Infusionsoft API key |
productId | int | id of the product |
quantity | int | quantity to increase |
<?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>
<?xml version='1.0' encoding='UTF-8'?> <methodResponse> <params> <param> <value><boolean>1</boolean></value> </param> </params> </methodResponse>
$app->increaseInventory(1, 3);
Decreases the inventory with a particular product by the quantity you specify
Parameter Name | Type | Definition |
---|---|---|
Key | string | Your Infusionsoft API key |
productId | int | id of the product |
quantity | int | quantity to decrease |
<?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>
<?xml version='1.0' encoding='UTF-8'?> <methodResponse> <params> <param> <value><boolean>1</boolean></value> </param> </params> </methodResponse>
$app->decreaseInventory(1, 3);
Deactivates the specified Credit Card
Parameter Name | Type | Definition |
---|---|---|
Key | string | Your Infusionsoft API key |
creditCardId | int | id of the credit card |
<?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>
<?xml version='1.0' encoding='UTF-8'?> <methodResponse> <params> <param> <value><boolean>1</boolean></value> </param> </params> </methodResponse>
$app->deactivateCreditCard(1);