Skip to content

Latest commit

 

History

History
164 lines (112 loc) · 5.46 KB

CatalogProductTierPriceManagementV1Api.md

File metadata and controls

164 lines (112 loc) · 5.46 KB

swagger_client.CatalogProductTierPriceManagementV1Api

All URIs are relative to http://localhost/rest/default

Method HTTP request Description
catalog_product_tier_price_management_v1_add_post POST /V1/products/{sku}/group-prices/{customerGroupId}/tiers/{qty}/price/{price}
catalog_product_tier_price_management_v1_get_list_get GET /V1/products/{sku}/group-prices/{customerGroupId}/tiers
catalog_product_tier_price_management_v1_remove_delete DELETE /V1/products/{sku}/group-prices/{customerGroupId}/tiers/{qty}

catalog_product_tier_price_management_v1_add_post

bool catalog_product_tier_price_management_v1_add_post(sku, customer_group_id, price, qty)

Create tier price for product

Example

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.CatalogProductTierPriceManagementV1Api()
sku = 'sku_example' # str | 
customer_group_id = 'customer_group_id_example' # str | 'all' can be used to specify 'ALL GROUPS'
price = 3.4 # float | 
qty = 3.4 # float | 

try: 
    api_response = api_instance.catalog_product_tier_price_management_v1_add_post(sku, customer_group_id, price, qty)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CatalogProductTierPriceManagementV1Api->catalog_product_tier_price_management_v1_add_post: %s\n" % e)

Parameters

Name Type Description Notes
sku str
customer_group_id str 'all' can be used to specify 'ALL GROUPS'
price float
qty float

Return type

bool

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to README]

catalog_product_tier_price_management_v1_get_list_get

list[CatalogDataProductTierPriceInterface] catalog_product_tier_price_management_v1_get_list_get(sku, customer_group_id)

Get tier price of product

Example

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.CatalogProductTierPriceManagementV1Api()
sku = 'sku_example' # str | 
customer_group_id = 'customer_group_id_example' # str | 'all' can be used to specify 'ALL GROUPS'

try: 
    api_response = api_instance.catalog_product_tier_price_management_v1_get_list_get(sku, customer_group_id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CatalogProductTierPriceManagementV1Api->catalog_product_tier_price_management_v1_get_list_get: %s\n" % e)

Parameters

Name Type Description Notes
sku str
customer_group_id str 'all' can be used to specify 'ALL GROUPS'

Return type

list[CatalogDataProductTierPriceInterface]

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to README]

catalog_product_tier_price_management_v1_remove_delete

bool catalog_product_tier_price_management_v1_remove_delete(sku, customer_group_id, qty)

Remove tier price from product

Example

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.CatalogProductTierPriceManagementV1Api()
sku = 'sku_example' # str | 
customer_group_id = 'customer_group_id_example' # str | 'all' can be used to specify 'ALL GROUPS'
qty = 3.4 # float | 

try: 
    api_response = api_instance.catalog_product_tier_price_management_v1_remove_delete(sku, customer_group_id, qty)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CatalogProductTierPriceManagementV1Api->catalog_product_tier_price_management_v1_remove_delete: %s\n" % e)

Parameters

Name Type Description Notes
sku str
customer_group_id str 'all' can be used to specify 'ALL GROUPS'
qty float

Return type

bool

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to README]