All URIs are relative to https://api.api2cart.local.com/v1.1, except if the operation defines another base path.
| Method | HTTP request | Description |
|---|---|---|
| attributeAdd() | POST /attribute.add.json | attribute.add |
| attributeAssignGroup() | POST /attribute.assign.group.json | attribute.assign.group |
| attributeAssignSet() | POST /attribute.assign.set.json | attribute.assign.set |
| attributeAttributesetList() | GET /attribute.attributeset.list.json | attribute.attributeset.list |
| attributeCount() | GET /attribute.count.json | attribute.count |
| attributeDelete() | DELETE /attribute.delete.json | attribute.delete |
| attributeGroupList() | GET /attribute.group.list.json | attribute.group.list |
| attributeInfo() | GET /attribute.info.json | attribute.info |
| attributeList() | GET /attribute.list.json | attribute.list |
| attributeTypeList() | GET /attribute.type.list.json | attribute.type.list |
| attributeUnassignGroup() | POST /attribute.unassign.group.json | attribute.unassign.group |
| attributeUnassignSet() | POST /attribute.unassign.set.json | attribute.unassign.set |
| attributeUpdate() | PUT /attribute.update.json | attribute.update |
| attributeValueAdd() | POST /attribute.value.add.json | attribute.value.add |
| attributeValueDelete() | DELETE /attribute.value.delete.json | attribute.value.delete |
| attributeValueUpdate() | PUT /attribute.value.update.json | attribute.value.update |
attributeAdd($type, $name, $code, $store_id, $lang_id, $visible, $required, $position, $attribute_group_id, $is_global, $is_searchable, $is_filterable, $is_comparable, $is_html_allowed_on_front, $is_filterable_in_search, $is_configurable, $is_visible_in_advanced_search, $is_used_for_promo_rules, $used_in_product_listing, $used_for_sort_by, $apply_to, $idempotency_key): \OpenAPI\Client\Model\AttributeAdd200Responseattribute.add
Add new attribute
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: StoreKeyAuth
$config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setApiKey('x-store-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-store-key', 'Bearer');
// Configure API key authorization: ApiKeyAuth
$config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
$apiInstance = new OpenAPI\Client\Api\AttributeApi(
// 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
);
$type = text; // string | Defines attribute's type
$name = Specification; // string | Defines attributes's name
$code = code; // string | Entity code
$store_id = 1; // string | Store Id
$lang_id = 3; // string | Language id
$visible = true; // bool | Set visibility status
$required = true; // bool | Defines if the option is required
$position = 5; // int | Attribute`s position
$attribute_group_id = 202; // string | Filter by attribute_group_id
$is_global = Global; // string | Attribute saving scope
$is_searchable = false; // bool | Use attribute in Quick Search
$is_filterable = No; // string | Use In Layered Navigation
$is_comparable = true; // bool | Comparable on Front-end
$is_html_allowed_on_front = true; // bool | Allow HTML Tags on Frontend
$is_filterable_in_search = true; // bool | Use In Search Results Layered Navigation
$is_configurable = true; // bool | Use To Create Configurable Product
$is_visible_in_advanced_search = true; // bool | Use in Advanced Search
$is_used_for_promo_rules = true; // bool | Use for Promo Rule Conditions
$used_in_product_listing = true; // bool | Used in Product Listing
$used_for_sort_by = true; // bool | Used for Sorting in Product Listing
$apply_to = Global; // string | Types of products which can have this attribute
$idempotency_key = 098f6bcd4621d373cade4e832627b4f6; // string | A unique identifier associated with a specific request. Repeated requests with the same <strong>idempotency_key</strong> return a cached response without re-executing the business logic. <strong>Please note that the cache lifetime is 15 minutes.</strong>
try {
$result = $apiInstance->attributeAdd($type, $name, $code, $store_id, $lang_id, $visible, $required, $position, $attribute_group_id, $is_global, $is_searchable, $is_filterable, $is_comparable, $is_html_allowed_on_front, $is_filterable_in_search, $is_configurable, $is_visible_in_advanced_search, $is_used_for_promo_rules, $used_in_product_listing, $used_for_sort_by, $apply_to, $idempotency_key);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling AttributeApi->attributeAdd: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| type | string | Defines attribute's type | |
| name | string | Defines attributes's name | |
| code | string | Entity code | [optional] |
| store_id | string | Store Id | [optional] |
| lang_id | string | Language id | [optional] |
| visible | bool | Set visibility status | [optional] [default to false] |
| required | bool | Defines if the option is required | [optional] [default to false] |
| position | int | Attribute`s position | [optional] [default to 0] |
| attribute_group_id | string | Filter by attribute_group_id | [optional] |
| is_global | string | Attribute saving scope | [optional] [default to 'Store'] |
| is_searchable | bool | Use attribute in Quick Search | [optional] [default to false] |
| is_filterable | string | Use In Layered Navigation | [optional] [default to 'No'] |
| is_comparable | bool | Comparable on Front-end | [optional] [default to false] |
| is_html_allowed_on_front | bool | Allow HTML Tags on Frontend | [optional] [default to false] |
| is_filterable_in_search | bool | Use In Search Results Layered Navigation | [optional] [default to false] |
| is_configurable | bool | Use To Create Configurable Product | [optional] [default to false] |
| is_visible_in_advanced_search | bool | Use in Advanced Search | [optional] [default to false] |
| is_used_for_promo_rules | bool | Use for Promo Rule Conditions | [optional] [default to false] |
| used_in_product_listing | bool | Used in Product Listing | [optional] [default to false] |
| used_for_sort_by | bool | Used for Sorting in Product Listing | [optional] [default to false] |
| apply_to | string | Types of products which can have this attribute | [optional] [default to 'all_types'] |
| idempotency_key | string | A unique identifier associated with a specific request. Repeated requests with the same <strong>idempotency_key</strong> return a cached response without re-executing the business logic. <strong>Please note that the cache lifetime is 15 minutes.</strong> | [optional] |
\OpenAPI\Client\Model\AttributeAdd200Response
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
attributeAssignGroup($id, $group_id, $attribute_set_id, $idempotency_key): \OpenAPI\Client\Model\AttributeAssignGroup200Responseattribute.assign.group
Assign attribute to the group
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: StoreKeyAuth
$config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setApiKey('x-store-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-store-key', 'Bearer');
// Configure API key authorization: ApiKeyAuth
$config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
$apiInstance = new OpenAPI\Client\Api\AttributeApi(
// 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
);
$id = 10; // string | Entity id
$group_id = 3; // string | Attribute group_id
$attribute_set_id = 4; // string | Attribute set id
$idempotency_key = 098f6bcd4621d373cade4e832627b4f6; // string | A unique identifier associated with a specific request. Repeated requests with the same <strong>idempotency_key</strong> return a cached response without re-executing the business logic. <strong>Please note that the cache lifetime is 15 minutes.</strong>
try {
$result = $apiInstance->attributeAssignGroup($id, $group_id, $attribute_set_id, $idempotency_key);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling AttributeApi->attributeAssignGroup: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| id | string | Entity id | |
| group_id | string | Attribute group_id | |
| attribute_set_id | string | Attribute set id | [optional] |
| idempotency_key | string | A unique identifier associated with a specific request. Repeated requests with the same <strong>idempotency_key</strong> return a cached response without re-executing the business logic. <strong>Please note that the cache lifetime is 15 minutes.</strong> | [optional] |
\OpenAPI\Client\Model\AttributeAssignGroup200Response
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
attributeAssignSet($id, $attribute_set_id, $group_id, $idempotency_key): \OpenAPI\Client\Model\AttributeAssignGroup200Responseattribute.assign.set
Assign attribute to the attribute set
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: StoreKeyAuth
$config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setApiKey('x-store-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-store-key', 'Bearer');
// Configure API key authorization: ApiKeyAuth
$config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
$apiInstance = new OpenAPI\Client\Api\AttributeApi(
// 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
);
$id = 10; // string | Entity id
$attribute_set_id = 4; // string | Attribute set id
$group_id = 3; // string | Attribute group_id
$idempotency_key = 098f6bcd4621d373cade4e832627b4f6; // string | A unique identifier associated with a specific request. Repeated requests with the same <strong>idempotency_key</strong> return a cached response without re-executing the business logic. <strong>Please note that the cache lifetime is 15 minutes.</strong>
try {
$result = $apiInstance->attributeAssignSet($id, $attribute_set_id, $group_id, $idempotency_key);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling AttributeApi->attributeAssignSet: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| id | string | Entity id | |
| attribute_set_id | string | Attribute set id | |
| group_id | string | Attribute group_id | [optional] |
| idempotency_key | string | A unique identifier associated with a specific request. Repeated requests with the same <strong>idempotency_key</strong> return a cached response without re-executing the business logic. <strong>Please note that the cache lifetime is 15 minutes.</strong> | [optional] |
\OpenAPI\Client\Model\AttributeAssignGroup200Response
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
attributeAttributesetList($start, $count, $response_fields, $params, $exclude): \OpenAPI\Client\Model\ModelResponseAttributeAttributesetListattribute.attributeset.list
Get attribute_set list
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: StoreKeyAuth
$config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setApiKey('x-store-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-store-key', 'Bearer');
// Configure API key authorization: ApiKeyAuth
$config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
$apiInstance = new OpenAPI\Client\Api\AttributeApi(
// 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
);
$start = 0; // int | This parameter sets the number from which you want to get entities
$count = 20; // int | This parameter sets the entity amount that has to be retrieved. Max allowed count=250
$response_fields = {result}; // string | Set this parameter in order to choose which entity fields you want to retrieve
$params = id,name; // string | Set this parameter in order to choose which entity fields you want to retrieve
$exclude = id,name; // string | Set this parameter in order to choose which entity fields you want to ignore. Works only if parameter `params` equal force_all
try {
$result = $apiInstance->attributeAttributesetList($start, $count, $response_fields, $params, $exclude);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling AttributeApi->attributeAttributesetList: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| start | int | This parameter sets the number from which you want to get entities | [optional] [default to 0] |
| count | int | This parameter sets the entity amount that has to be retrieved. Max allowed count=250 | [optional] [default to 10] |
| response_fields | string | Set this parameter in order to choose which entity fields you want to retrieve | [optional] |
| params | string | Set this parameter in order to choose which entity fields you want to retrieve | [optional] [default to 'id,name'] |
| exclude | string | Set this parameter in order to choose which entity fields you want to ignore. Works only if parameter `params` equal force_all | [optional] |
\OpenAPI\Client\Model\ModelResponseAttributeAttributesetList
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
attributeCount($type, $attribute_set_id, $store_id, $lang_id, $visible, $required, $system): \OpenAPI\Client\Model\AttributeCount200Responseattribute.count
Get attributes count
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: StoreKeyAuth
$config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setApiKey('x-store-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-store-key', 'Bearer');
// Configure API key authorization: ApiKeyAuth
$config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
$apiInstance = new OpenAPI\Client\Api\AttributeApi(
// 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
);
$type = text; // string | Defines attribute's type
$attribute_set_id = 4; // string | Filter items by attribute set id
$store_id = 1; // string | Store Id
$lang_id = 3; // string | Language id
$visible = true; // bool | Filter items by visibility status
$required = true; // bool | Defines if the option is required
$system = false; // bool | True if attribute is system
try {
$result = $apiInstance->attributeCount($type, $attribute_set_id, $store_id, $lang_id, $visible, $required, $system);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling AttributeApi->attributeCount: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| type | string | Defines attribute's type | [optional] |
| attribute_set_id | string | Filter items by attribute set id | [optional] |
| store_id | string | Store Id | [optional] |
| lang_id | string | Language id | [optional] |
| visible | bool | Filter items by visibility status | [optional] |
| required | bool | Defines if the option is required | [optional] |
| system | bool | True if attribute is system | [optional] |
\OpenAPI\Client\Model\AttributeCount200Response
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
attributeDelete($id, $store_id): \OpenAPI\Client\Model\AttributeDelete200Responseattribute.delete
Delete attribute from store
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: StoreKeyAuth
$config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setApiKey('x-store-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-store-key', 'Bearer');
// Configure API key authorization: ApiKeyAuth
$config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
$apiInstance = new OpenAPI\Client\Api\AttributeApi(
// 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
);
$id = 10; // string | Entity id
$store_id = 1; // string | Store Id
try {
$result = $apiInstance->attributeDelete($id, $store_id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling AttributeApi->attributeDelete: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| id | string | Entity id | |
| store_id | string | Store Id | [optional] |
\OpenAPI\Client\Model\AttributeDelete200Response
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
attributeGroupList($start, $count, $attribute_set_id, $lang_id, $response_fields, $params, $exclude): \OpenAPI\Client\Model\ModelResponseAttributeGroupListattribute.group.list
Get attribute group list
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: StoreKeyAuth
$config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setApiKey('x-store-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-store-key', 'Bearer');
// Configure API key authorization: ApiKeyAuth
$config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
$apiInstance = new OpenAPI\Client\Api\AttributeApi(
// 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
);
$start = 0; // int | This parameter sets the number from which you want to get entities
$count = 20; // int | This parameter sets the entity amount that has to be retrieved. Max allowed count=250
$attribute_set_id = 4; // string | Attribute set id
$lang_id = 3; // string | Language id
$response_fields = {result}; // string | Set this parameter in order to choose which entity fields you want to retrieve
$params = id,name; // string | Set this parameter in order to choose which entity fields you want to retrieve
$exclude = id,name; // string | Set this parameter in order to choose which entity fields you want to ignore. Works only if parameter `params` equal force_all
try {
$result = $apiInstance->attributeGroupList($start, $count, $attribute_set_id, $lang_id, $response_fields, $params, $exclude);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling AttributeApi->attributeGroupList: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| start | int | This parameter sets the number from which you want to get entities | [optional] [default to 0] |
| count | int | This parameter sets the entity amount that has to be retrieved. Max allowed count=250 | [optional] [default to 10] |
| attribute_set_id | string | Attribute set id | [optional] |
| lang_id | string | Language id | [optional] |
| response_fields | string | Set this parameter in order to choose which entity fields you want to retrieve | [optional] |
| params | string | Set this parameter in order to choose which entity fields you want to retrieve | [optional] [default to 'id,name'] |
| exclude | string | Set this parameter in order to choose which entity fields you want to ignore. Works only if parameter `params` equal force_all | [optional] |
\OpenAPI\Client\Model\ModelResponseAttributeGroupList
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
attributeInfo($id, $attribute_set_id, $store_id, $lang_id, $response_fields, $params, $exclude): \OpenAPI\Client\Model\AttributeInfo200Responseattribute.info
Get information about a specific global attribute by its ID.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: StoreKeyAuth
$config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setApiKey('x-store-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-store-key', 'Bearer');
// Configure API key authorization: ApiKeyAuth
$config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
$apiInstance = new OpenAPI\Client\Api\AttributeApi(
// 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
);
$id = 10; // string | Entity id
$attribute_set_id = 4; // string | Attribute set id
$store_id = 1; // string | Store Id
$lang_id = 3; // string | Language id
$response_fields = {result}; // string | Set this parameter in order to choose which entity fields you want to retrieve
$params = force_all; // string | Set this parameter in order to choose which entity fields you want to retrieve
$exclude = name; // string | Set this parameter in order to choose which entity fields you want to ignore. Works only if parameter `params` equal force_all
try {
$result = $apiInstance->attributeInfo($id, $attribute_set_id, $store_id, $lang_id, $response_fields, $params, $exclude);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling AttributeApi->attributeInfo: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| id | string | Entity id | |
| attribute_set_id | string | Attribute set id | [optional] |
| store_id | string | Store Id | [optional] |
| lang_id | string | Language id | [optional] |
| response_fields | string | Set this parameter in order to choose which entity fields you want to retrieve | [optional] |
| params | string | Set this parameter in order to choose which entity fields you want to retrieve | [optional] [default to 'force_all'] |
| exclude | string | Set this parameter in order to choose which entity fields you want to ignore. Works only if parameter `params` equal force_all | [optional] |
\OpenAPI\Client\Model\AttributeInfo200Response
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
attributeList($start, $count, $attribute_ids, $attribute_set_id, $store_id, $lang_id, $type, $visible, $required, $system, $response_fields, $params, $exclude): \OpenAPI\Client\Model\ModelResponseAttributeListattribute.list
Get a list of global attributes.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: StoreKeyAuth
$config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setApiKey('x-store-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-store-key', 'Bearer');
// Configure API key authorization: ApiKeyAuth
$config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
$apiInstance = new OpenAPI\Client\Api\AttributeApi(
// 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
);
$start = 0; // int | This parameter sets the number from which you want to get entities
$count = 20; // int | This parameter sets the entity amount that has to be retrieved. Max allowed count=250
$attribute_ids = 1,2,3; // string | Filter attributes by ids
$attribute_set_id = 4; // string | Filter items by attribute set id
$store_id = 1; // string | Store Id
$lang_id = 3; // string | Retrieves attributes on specified language id
$type = text; // string | Defines attribute's type
$visible = true; // bool | Filter items by visibility status
$required = true; // bool | Defines if the option is required
$system = false; // bool | True if attribute is system
$response_fields = {return_code,return_message,pagination,result}; // string | Set this parameter in order to choose which entity fields you want to retrieve
$params = id,name; // string | Set this parameter in order to choose which entity fields you want to retrieve
$exclude = id,name; // string | Set this parameter in order to choose which entity fields you want to ignore. Works only if parameter `params` equal force_all
try {
$result = $apiInstance->attributeList($start, $count, $attribute_ids, $attribute_set_id, $store_id, $lang_id, $type, $visible, $required, $system, $response_fields, $params, $exclude);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling AttributeApi->attributeList: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| start | int | This parameter sets the number from which you want to get entities | [optional] [default to 0] |
| count | int | This parameter sets the entity amount that has to be retrieved. Max allowed count=250 | [optional] [default to 10] |
| attribute_ids | string | Filter attributes by ids | [optional] |
| attribute_set_id | string | Filter items by attribute set id | [optional] |
| store_id | string | Store Id | [optional] |
| lang_id | string | Retrieves attributes on specified language id | [optional] |
| type | string | Defines attribute's type | [optional] |
| visible | bool | Filter items by visibility status | [optional] |
| required | bool | Defines if the option is required | [optional] |
| system | bool | True if attribute is system | [optional] |
| response_fields | string | Set this parameter in order to choose which entity fields you want to retrieve | [optional] |
| params | string | Set this parameter in order to choose which entity fields you want to retrieve | [optional] [default to 'id,name,code,type'] |
| exclude | string | Set this parameter in order to choose which entity fields you want to ignore. Works only if parameter `params` equal force_all | [optional] |
\OpenAPI\Client\Model\ModelResponseAttributeList
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
attributeTypeList(): \OpenAPI\Client\Model\AttributeTypeList200Responseattribute.type.list
Get list of supported attributes types
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: StoreKeyAuth
$config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setApiKey('x-store-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-store-key', 'Bearer');
// Configure API key authorization: ApiKeyAuth
$config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
$apiInstance = new OpenAPI\Client\Api\AttributeApi(
// 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
);
try {
$result = $apiInstance->attributeTypeList();
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling AttributeApi->attributeTypeList: ', $e->getMessage(), PHP_EOL;
}This endpoint does not need any parameter.
\OpenAPI\Client\Model\AttributeTypeList200Response
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
attributeUnassignGroup($id, $group_id, $idempotency_key): \OpenAPI\Client\Model\AttributeUnassignGroup200Responseattribute.unassign.group
Unassign attribute from group
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: StoreKeyAuth
$config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setApiKey('x-store-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-store-key', 'Bearer');
// Configure API key authorization: ApiKeyAuth
$config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
$apiInstance = new OpenAPI\Client\Api\AttributeApi(
// 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
);
$id = 10; // string | Entity id
$group_id = 3; // string | Customer group_id
$idempotency_key = 098f6bcd4621d373cade4e832627b4f6; // string | A unique identifier associated with a specific request. Repeated requests with the same <strong>idempotency_key</strong> return a cached response without re-executing the business logic. <strong>Please note that the cache lifetime is 15 minutes.</strong>
try {
$result = $apiInstance->attributeUnassignGroup($id, $group_id, $idempotency_key);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling AttributeApi->attributeUnassignGroup: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| id | string | Entity id | |
| group_id | string | Customer group_id | |
| idempotency_key | string | A unique identifier associated with a specific request. Repeated requests with the same <strong>idempotency_key</strong> return a cached response without re-executing the business logic. <strong>Please note that the cache lifetime is 15 minutes.</strong> | [optional] |
\OpenAPI\Client\Model\AttributeUnassignGroup200Response
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
attributeUnassignSet($id, $attribute_set_id, $idempotency_key): \OpenAPI\Client\Model\AttributeUnassignGroup200Responseattribute.unassign.set
Unassign attribute from attribute set
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: StoreKeyAuth
$config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setApiKey('x-store-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-store-key', 'Bearer');
// Configure API key authorization: ApiKeyAuth
$config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
$apiInstance = new OpenAPI\Client\Api\AttributeApi(
// 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
);
$id = 10; // string | Entity id
$attribute_set_id = 4; // string | Attribute set id
$idempotency_key = 098f6bcd4621d373cade4e832627b4f6; // string | A unique identifier associated with a specific request. Repeated requests with the same <strong>idempotency_key</strong> return a cached response without re-executing the business logic. <strong>Please note that the cache lifetime is 15 minutes.</strong>
try {
$result = $apiInstance->attributeUnassignSet($id, $attribute_set_id, $idempotency_key);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling AttributeApi->attributeUnassignSet: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| id | string | Entity id | |
| attribute_set_id | string | Attribute set id | |
| idempotency_key | string | A unique identifier associated with a specific request. Repeated requests with the same <strong>idempotency_key</strong> return a cached response without re-executing the business logic. <strong>Please note that the cache lifetime is 15 minutes.</strong> | [optional] |
\OpenAPI\Client\Model\AttributeUnassignGroup200Response
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
attributeUpdate($id, $name, $store_id, $lang_id, $idempotency_key): \OpenAPI\Client\Model\AttributeUpdate200Responseattribute.update
Update attribute data
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: StoreKeyAuth
$config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setApiKey('x-store-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-store-key', 'Bearer');
// Configure API key authorization: ApiKeyAuth
$config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
$apiInstance = new OpenAPI\Client\Api\AttributeApi(
// 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
);
$id = 10; // string | Entity id
$name = Test name; // string | Defines new attributes's name
$store_id = 1; // string | Store Id
$lang_id = 3; // string | Language id
$idempotency_key = 098f6bcd4621d373cade4e832627b4f6; // string | A unique identifier associated with a specific request. Repeated requests with the same <strong>idempotency_key</strong> return a cached response without re-executing the business logic. <strong>Please note that the cache lifetime is 15 minutes.</strong>
try {
$result = $apiInstance->attributeUpdate($id, $name, $store_id, $lang_id, $idempotency_key);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling AttributeApi->attributeUpdate: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| id | string | Entity id | |
| name | string | Defines new attributes's name | |
| store_id | string | Store Id | [optional] |
| lang_id | string | Language id | [optional] |
| idempotency_key | string | A unique identifier associated with a specific request. Repeated requests with the same <strong>idempotency_key</strong> return a cached response without re-executing the business logic. <strong>Please note that the cache lifetime is 15 minutes.</strong> | [optional] |
\OpenAPI\Client\Model\AttributeUpdate200Response
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
attributeValueAdd($attribute_id, $name, $code, $description, $store_id, $lang_id, $idempotency_key): \OpenAPI\Client\Model\AttributeAdd200Responseattribute.value.add
Add new value to attribute.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: StoreKeyAuth
$config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setApiKey('x-store-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-store-key', 'Bearer');
// Configure API key authorization: ApiKeyAuth
$config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
$apiInstance = new OpenAPI\Client\Api\AttributeApi(
// 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
);
$attribute_id = 156; // string | Attribute Id
$name = Test name; // string | Defines attribute value's name
$code = code; // string | Entity code
$description = Test value; // string | Defines attribute value's description
$store_id = 1; // string | Store Id
$lang_id = 3; // string | Language id
$idempotency_key = 098f6bcd4621d373cade4e832627b4f6; // string | A unique identifier associated with a specific request. Repeated requests with the same <strong>idempotency_key</strong> return a cached response without re-executing the business logic. <strong>Please note that the cache lifetime is 15 minutes.</strong>
try {
$result = $apiInstance->attributeValueAdd($attribute_id, $name, $code, $description, $store_id, $lang_id, $idempotency_key);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling AttributeApi->attributeValueAdd: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| attribute_id | string | Attribute Id | |
| name | string | Defines attribute value's name | |
| code | string | Entity code | [optional] |
| description | string | Defines attribute value's description | [optional] |
| store_id | string | Store Id | [optional] |
| lang_id | string | Language id | [optional] |
| idempotency_key | string | A unique identifier associated with a specific request. Repeated requests with the same <strong>idempotency_key</strong> return a cached response without re-executing the business logic. <strong>Please note that the cache lifetime is 15 minutes.</strong> | [optional] |
\OpenAPI\Client\Model\AttributeAdd200Response
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
attributeValueDelete($id, $attribute_id, $store_id): \OpenAPI\Client\Model\AttributeValueDelete200Responseattribute.value.delete
Delete attribute value.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: StoreKeyAuth
$config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setApiKey('x-store-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-store-key', 'Bearer');
// Configure API key authorization: ApiKeyAuth
$config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
$apiInstance = new OpenAPI\Client\Api\AttributeApi(
// 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
);
$id = 10; // string | Entity id
$attribute_id = 156; // string | Attribute Id
$store_id = 1; // string | Store Id
try {
$result = $apiInstance->attributeValueDelete($id, $attribute_id, $store_id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling AttributeApi->attributeValueDelete: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| id | string | Entity id | |
| attribute_id | string | Attribute Id | |
| store_id | string | Store Id | [optional] |
\OpenAPI\Client\Model\AttributeValueDelete200Response
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
attributeValueUpdate($id, $attribute_id, $name, $description, $code, $store_id, $lang_id, $idempotency_key): \OpenAPI\Client\Model\AttributeUpdate200Responseattribute.value.update
Update attribute value.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: StoreKeyAuth
$config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setApiKey('x-store-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-store-key', 'Bearer');
// Configure API key authorization: ApiKeyAuth
$config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
$apiInstance = new OpenAPI\Client\Api\AttributeApi(
// 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
);
$id = 10; // string | Defines attribute value's id
$attribute_id = 156; // string | Attribute Id
$name = Test name; // string | Defines attribute value's name
$description = Test value; // string | Defines new attribute value's description
$code = code; // string | Entity code
$store_id = 1; // string | Store Id
$lang_id = 3; // string | Language id
$idempotency_key = 098f6bcd4621d373cade4e832627b4f6; // string | A unique identifier associated with a specific request. Repeated requests with the same <strong>idempotency_key</strong> return a cached response without re-executing the business logic. <strong>Please note that the cache lifetime is 15 minutes.</strong>
try {
$result = $apiInstance->attributeValueUpdate($id, $attribute_id, $name, $description, $code, $store_id, $lang_id, $idempotency_key);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling AttributeApi->attributeValueUpdate: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| id | string | Defines attribute value's id | |
| attribute_id | string | Attribute Id | |
| name | string | Defines attribute value's name | [optional] |
| description | string | Defines new attribute value's description | [optional] |
| code | string | Entity code | [optional] |
| store_id | string | Store Id | [optional] |
| lang_id | string | Language id | [optional] |
| idempotency_key | string | A unique identifier associated with a specific request. Repeated requests with the same <strong>idempotency_key</strong> return a cached response without re-executing the business logic. <strong>Please note that the cache lifetime is 15 minutes.</strong> | [optional] |
\OpenAPI\Client\Model\AttributeUpdate200Response
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]