Skip to main content

Retrieve product price

Last updated: 04-May-2017
Rate this article:


Get the price for a product in a new purchase scenario, based on the product ID, the pricing list it's assigned to and specific pricing options.



Parameter Type/Description
sessionID Required (string)
  Session identifier, which is the output of the Login method. An exception will be thrown if the values are incorrect.
productId Required (string)
  The unique identifier of the product from your system.
pricingListCode Required (string)
  The unique identifier of the pricing list.
priceOptions Optional (StringArray)
  Array of pricing option codes. These identifiers mark the individual options inside pricing options configuration groups. Can be NULL.


Parameter Type/Description
UnitPrice Object
  UnitPrice object.



require('PATH_TO_AUTH'); // Authentication example:
require('PATH_TO_setPartner'); // setPartner example:

$productId = 'YOUR_PRODUCT_ID';
$pricingListCode = 'YOUR_PRICING_LIST_CODE';
$priceOptions = array(

try {
    $ProdPrice= $client->getProductPrice($sessionID, $productId, $pricingListCode, $priceOptions);
} catch (SoapFault $e) {
    echo "ProductUnitPrice: " . $e->getMessage();


Error Description


No partner is set.


Invalid product ID.


There are no pricing lists with the provided code.


There is no active product with the provided ID in the given pricing list.


Rate this article:

Need help?

Do you have a question? If you didn’t find the answer you are looking for in our documentation, you can contact our Support teams for more information. If you have a technical issue or question, please contact us. We are happy to help.

Not yet a Verifone customer?

We’ll help you choose the right payment solution for your business, wherever you want to sell, in-person or online. Our team of experts will happily discuss your needs.

Verifone logo