All URIs are relative to http://ce22.vg/index.php/rest/default
Method | HTTP request | Description |
---|---|---|
bundleProductLinkManagementV1AddChildByProductSkuPost | POST /V1/bundle-products/{sku}/links/{optionId} | |
bundleProductLinkManagementV1GetChildrenGet | GET /V1/bundle-products/{productSku}/children | |
bundleProductLinkManagementV1RemoveChildDelete | DELETE /V1/bundle-products/{sku}/options/{optionId}/children/{childSku} | |
bundleProductLinkManagementV1SaveChildPut | PUT /V1/bundle-products/{sku}/links/{id} |
int bundleProductLinkManagementV1AddChildByProductSkuPost($sku, $optionId, $bundleProductLinkManagementV1AddChildByProductSkuPostBody)
Add child product to specified Bundle option by product sku
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure OAuth2 access token for authorization: OAuth2
$config = Krak\MagentoApiClient\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new Krak\MagentoApiClient\Api\BundleProductLinkManagementV1Api(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$sku = "sku_example"; // string |
$optionId = 56; // int |
$bundleProductLinkManagementV1AddChildByProductSkuPostBody = new \Krak\MagentoApiClient\Model\BundleProductLinkManagementV1AddChildByProductSkuPostBody(); // \Krak\MagentoApiClient\Model\BundleProductLinkManagementV1AddChildByProductSkuPostBody |
try {
$result = $apiInstance->bundleProductLinkManagementV1AddChildByProductSkuPost($sku, $optionId, $bundleProductLinkManagementV1AddChildByProductSkuPostBody);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling BundleProductLinkManagementV1Api->bundleProductLinkManagementV1AddChildByProductSkuPost: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
sku | string | ||
optionId | int | ||
bundleProductLinkManagementV1AddChildByProductSkuPostBody | \Krak\MagentoApiClient\Model\BundleProductLinkManagementV1AddChildByProductSkuPostBody | [optional] |
int
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Krak\MagentoApiClient\Model\BundleDataLinkInterface[] bundleProductLinkManagementV1GetChildrenGet($productSku, $optionId)
Get all children for Bundle product
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure OAuth2 access token for authorization: OAuth2
$config = Krak\MagentoApiClient\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new Krak\MagentoApiClient\Api\BundleProductLinkManagementV1Api(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$productSku = "productSku_example"; // string |
$optionId = 56; // int |
try {
$result = $apiInstance->bundleProductLinkManagementV1GetChildrenGet($productSku, $optionId);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling BundleProductLinkManagementV1Api->bundleProductLinkManagementV1GetChildrenGet: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
productSku | string | ||
optionId | int | [optional] |
\Krak\MagentoApiClient\Model\BundleDataLinkInterface[]
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
bool bundleProductLinkManagementV1RemoveChildDelete($sku, $optionId, $childSku)
Remove product from Bundle product option
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure OAuth2 access token for authorization: OAuth2
$config = Krak\MagentoApiClient\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new Krak\MagentoApiClient\Api\BundleProductLinkManagementV1Api(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$sku = "sku_example"; // string |
$optionId = 56; // int |
$childSku = "childSku_example"; // string |
try {
$result = $apiInstance->bundleProductLinkManagementV1RemoveChildDelete($sku, $optionId, $childSku);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling BundleProductLinkManagementV1Api->bundleProductLinkManagementV1RemoveChildDelete: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
sku | string | ||
optionId | int | ||
childSku | string |
bool
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
bool bundleProductLinkManagementV1SaveChildPut($sku, $id, $bundleProductLinkManagementV1SaveChildPutBody)
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure OAuth2 access token for authorization: OAuth2
$config = Krak\MagentoApiClient\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new Krak\MagentoApiClient\Api\BundleProductLinkManagementV1Api(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$sku = "sku_example"; // string |
$id = "id_example"; // string |
$bundleProductLinkManagementV1SaveChildPutBody = new \Krak\MagentoApiClient\Model\BundleProductLinkManagementV1SaveChildPutBody(); // \Krak\MagentoApiClient\Model\BundleProductLinkManagementV1SaveChildPutBody |
try {
$result = $apiInstance->bundleProductLinkManagementV1SaveChildPut($sku, $id, $bundleProductLinkManagementV1SaveChildPutBody);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling BundleProductLinkManagementV1Api->bundleProductLinkManagementV1SaveChildPut: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
sku | string | ||
id | string | ||
bundleProductLinkManagementV1SaveChildPutBody | \Krak\MagentoApiClient\Model\BundleProductLinkManagementV1SaveChildPutBody | [optional] |
bool
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]