Retrieve all configurations
Overview
Use the getPricingConfigurations method to extract information on the pricing configurations you set for a product.
Parameters
Parameters | Type/Description |
---|---|
sessionID |
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. |
ProductCode |
Required (string) |
|
The editable code that you control at product-level, not the unique, system-generated product ID. |
Response
Parameters | Type/Description |
---|---|
Array of objects |
Request
<?php
require ('PATH_TO_AUTH');
$productCode = 'YOUR_PRODUCT_CODE';
try {
$ProductPricingConfigurations = $client->getPricingConfigurations($sessionID, $productCode);
}
catch (SoapFault $e) {
echo "Pricing Configurations: " . $e->getMessage();
exit;
}
var_dump("Pricing Configurations", $ProductPricingConfigurations);
?>