Delete SKU codes
Use the deleteSku method to remove product SKU codes through an API call using the below parameters.
Request parameters
Parameters
Type / Description
ProductCode
Required (string)
The product code that you can define for each of your offerings. Needs to be unique.
PriceConfigurations
Required (string)
PriceConfigurationCode
Required (string)
Unique identifier of the pricing configuration.
SkuCode
Required (string)
Unique identifier of the SKU schema.
Request sample
<?php
require ('PATH_TO_AUTH');
$product = new \stdClass();
$product->ProductCode= '6B3CB17DDA_COPY1';
$pricingConfiguration = new \stdClass();
$pricingConfiguration->PriceConfigurationCode = 'E684EC99B0';
$pricingConfiguration->SKUs = ['Product_Test_SKU_001050', 'Product_Test_SKU_001053'];
$product->PriceConfigurations = [$pricingConfiguration];
$jsonRpcRequest = array (
'method' => 'deleteSku',
'params' => array($sessionID, [$product]),
'id' => $i++,
'jsonrpc' => '2.0'
);
var_dump (callRPC((Object)$jsonRpcRequest, $host, true));Response parameters
Parameters
Type
ProductCode
String
PriceConfigurations
String
PriceConfigurationCode
String
Response sample
Last updated
Was this helpful?