All URIs are relative to http://localhost/rest/default
Method | HTTP request | Description |
---|---|---|
catalog_cost_storage_v1_delete_post | POST /V1/products/cost-delete | |
catalog_cost_storage_v1_get_post | POST /V1/products/cost-information | |
catalog_cost_storage_v1_update_post | POST /V1/products/cost |
bool catalog_cost_storage_v1_delete_post(body=body)
Delete product cost. In case of at least one of skus is not found exception will be thrown. If error occurred during the delete exception will be thrown.
from __future__ import print_function
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = swagger_client.CatalogCostStorageV1Api()
body = swagger_client.Body38() # Body38 | (optional)
try:
api_response = api_instance.catalog_cost_storage_v1_delete_post(body=body)
pprint(api_response)
except ApiException as e:
print("Exception when calling CatalogCostStorageV1Api->catalog_cost_storage_v1_delete_post: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
body | Body38 | [optional] |
bool
No authorization required
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
list[CatalogDataCostInterface] catalog_cost_storage_v1_get_post(body=body)
Return product prices. In case of at least one of skus is not found exception will be thrown.
from __future__ import print_function
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = swagger_client.CatalogCostStorageV1Api()
body = swagger_client.Body36() # Body36 | (optional)
try:
api_response = api_instance.catalog_cost_storage_v1_get_post(body=body)
pprint(api_response)
except ApiException as e:
print("Exception when calling CatalogCostStorageV1Api->catalog_cost_storage_v1_get_post: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
body | Body36 | [optional] |
list[CatalogDataCostInterface]
No authorization required
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
list[CatalogDataPriceUpdateResultInterface] catalog_cost_storage_v1_update_post(body=body)
Add or update product cost. Input item should correspond to \Magento\Catalog\Api\Data\CostInterface. If any items will have invalid cost, store id or sku, they will be marked as failed and excluded from update list and \Magento\Catalog\Api\Data\PriceUpdateResultInterface[] with problem description will be returned. If there were no failed items during update empty array will be returned. If error occurred during the update exception will be thrown.
from __future__ import print_function
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = swagger_client.CatalogCostStorageV1Api()
body = swagger_client.Body37() # Body37 | (optional)
try:
api_response = api_instance.catalog_cost_storage_v1_update_post(body=body)
pprint(api_response)
except ApiException as e:
print("Exception when calling CatalogCostStorageV1Api->catalog_cost_storage_v1_update_post: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
body | Body37 | [optional] |
list[CatalogDataPriceUpdateResultInterface]
No authorization required
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]