Skip to main content

Update pricing configuration

Last updated: 05-Jul-2018
Rate this article:


Use the updatePricingConfiguration method to update/edit an existing pricing configuration.


You cannot modify:

  • The pricing configuration CODE.
  • The PricingSchema from DYNAMIC to FLAT or vice versa.
  • The intervals of an existing pricing configuration (MinQuantity and MaxQuantity). 


Parameters Type/Description


Required (string)


Session identifier, the output of the Login method. Include sessionID into all your requests. 2Checkout throws an exception if the values are incorrect.  The sessionID expires in 10 minutes.


Required (object)


Use this object to update/edit an existing pricing configuration for your account.


Required (string)


The unique product code that you control not the system-generated product identifier.





    require ('PATH_TO_AUTH');
    $ProductCode = 'YOUR_PRODUCT_CODE';
    $jsonRpcRequest = array (
    'jsonrpc' => '2.0',
    'id' => $i++,
    'method' => 'getPricingConfigurations',
    'params' => array($sessionID, $ProductCode)
    $existingPricingConfig = callRPC((Object)$jsonRpcRequest, $host);
    var_dump ($existingPricingConfig );
    $existingPricingConfig[1]->Prices->Regular[0]->Currency = 'USD';
    $existingPricingConfig[1]->Prices->Regular[0]->Amount = 99;
    $newPriceConfig = $existingPricingConfig[1];
    $jsonRpcRequest = array (
    'jsonrpc' => '2.0',
    'id' => $i++,
    'method' => 'updatePricingConfiguration',
    'params' => array($sessionID, $newPriceConfig, $ProductCode) //Use product ID and not product code for API versions smaller than 2.5
    var_dump (callRPC((Object)$jsonRpcRequest, $host));
    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