Retrieve assigned additional fields
Use the getAssignedAdditionalFields method to extract information about the additional fields assigned to a specific product.
Request parameters
Parameter
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.
Request sample
<?php
require ('PATH_TO_AUTH');
$productCode = 'YOUR_PRODUCT_CODE';
$jsonRpcRequest = array (
'jsonrpc' => '2.0',
'id' => $i++,
'method' => 'getAssignedAdditionalFields',
'params' => array($sessionID, $productCode)
);
var_dump (callRPC((Object)$jsonRpcRequest, $host));Response parameters
Parameter
Type
Array of objects
Last updated
Was this helpful?