Skip to content

Latest commit

 

History

History
260 lines (176 loc) · 9.51 KB

TaxTaxRateRepositoryV1Api.md

File metadata and controls

260 lines (176 loc) · 9.51 KB

swagger_client.TaxTaxRateRepositoryV1Api

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

Method HTTP request Description
tax_tax_rate_repository_v1_delete_by_id_delete DELETE /V1/taxRates/{rateId}
tax_tax_rate_repository_v1_get_get GET /V1/taxRates/{rateId}
tax_tax_rate_repository_v1_get_list_get GET /V1/taxRates/search
tax_tax_rate_repository_v1_save_post POST /V1/taxRates
tax_tax_rate_repository_v1_save_put PUT /V1/taxRates

tax_tax_rate_repository_v1_delete_by_id_delete

bool tax_tax_rate_repository_v1_delete_by_id_delete(rate_id)

Delete tax rate

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.TaxTaxRateRepositoryV1Api()
rate_id = 56 # int | 

try: 
    api_response = api_instance.tax_tax_rate_repository_v1_delete_by_id_delete(rate_id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling TaxTaxRateRepositoryV1Api->tax_tax_rate_repository_v1_delete_by_id_delete: %s\n" % e)

Parameters

Name Type Description Notes
rate_id int

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]

tax_tax_rate_repository_v1_get_get

TaxDataTaxRateInterface tax_tax_rate_repository_v1_get_get(rate_id)

Get tax rate

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.TaxTaxRateRepositoryV1Api()
rate_id = 56 # int | 

try: 
    api_response = api_instance.tax_tax_rate_repository_v1_get_get(rate_id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling TaxTaxRateRepositoryV1Api->tax_tax_rate_repository_v1_get_get: %s\n" % e)

Parameters

Name Type Description Notes
rate_id int

Return type

TaxDataTaxRateInterface

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]

tax_tax_rate_repository_v1_get_list_get

TaxDataTaxRateSearchResultsInterface tax_tax_rate_repository_v1_get_list_get(search_criteria_filter_groups_filters_field=search_criteria_filter_groups_filters_field, search_criteria_filter_groups_filters_value=search_criteria_filter_groups_filters_value, search_criteria_filter_groups_filters_condition_type=search_criteria_filter_groups_filters_condition_type, search_criteria_sort_orders_field=search_criteria_sort_orders_field, search_criteria_sort_orders_direction=search_criteria_sort_orders_direction, search_criteria_page_size=search_criteria_page_size, search_criteria_current_page=search_criteria_current_page)

Search TaxRates This call returns an array of objects, but detailed information about each object’s attributes might not be included. See http://devdocs.magento.com/codelinks/attributes.html#TaxRateRepositoryInterface to determine which call to use to get detailed information about all attributes for an object.

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.TaxTaxRateRepositoryV1Api()
search_criteria_filter_groups_filters_field = 'search_criteria_filter_groups_filters_field_example' # str | Field (optional)
search_criteria_filter_groups_filters_value = 'search_criteria_filter_groups_filters_value_example' # str | Value (optional)
search_criteria_filter_groups_filters_condition_type = 'search_criteria_filter_groups_filters_condition_type_example' # str | Condition type (optional)
search_criteria_sort_orders_field = 'search_criteria_sort_orders_field_example' # str | Sorting field. (optional)
search_criteria_sort_orders_direction = 'search_criteria_sort_orders_direction_example' # str | Sorting direction. (optional)
search_criteria_page_size = 56 # int | Page size. (optional)
search_criteria_current_page = 56 # int | Current page. (optional)

try: 
    api_response = api_instance.tax_tax_rate_repository_v1_get_list_get(search_criteria_filter_groups_filters_field=search_criteria_filter_groups_filters_field, search_criteria_filter_groups_filters_value=search_criteria_filter_groups_filters_value, search_criteria_filter_groups_filters_condition_type=search_criteria_filter_groups_filters_condition_type, search_criteria_sort_orders_field=search_criteria_sort_orders_field, search_criteria_sort_orders_direction=search_criteria_sort_orders_direction, search_criteria_page_size=search_criteria_page_size, search_criteria_current_page=search_criteria_current_page)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling TaxTaxRateRepositoryV1Api->tax_tax_rate_repository_v1_get_list_get: %s\n" % e)

Parameters

Name Type Description Notes
search_criteria_filter_groups_filters_field str Field [optional]
search_criteria_filter_groups_filters_value str Value [optional]
search_criteria_filter_groups_filters_condition_type str Condition type [optional]
search_criteria_sort_orders_field str Sorting field. [optional]
search_criteria_sort_orders_direction str Sorting direction. [optional]
search_criteria_page_size int Page size. [optional]
search_criteria_current_page int Current page. [optional]

Return type

TaxDataTaxRateSearchResultsInterface

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]

tax_tax_rate_repository_v1_save_post

TaxDataTaxRateInterface tax_tax_rate_repository_v1_save_post(body=body)

Create or update tax rate

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.TaxTaxRateRepositoryV1Api()
body = swagger_client.Body133() # Body133 |  (optional)

try: 
    api_response = api_instance.tax_tax_rate_repository_v1_save_post(body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling TaxTaxRateRepositoryV1Api->tax_tax_rate_repository_v1_save_post: %s\n" % e)

Parameters

Name Type Description Notes
body Body133 [optional]

Return type

TaxDataTaxRateInterface

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]

tax_tax_rate_repository_v1_save_put

TaxDataTaxRateInterface tax_tax_rate_repository_v1_save_put(body=body)

Create or update tax rate

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.TaxTaxRateRepositoryV1Api()
body = swagger_client.Body132() # Body132 |  (optional)

try: 
    api_response = api_instance.tax_tax_rate_repository_v1_save_put(body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling TaxTaxRateRepositoryV1Api->tax_tax_rate_repository_v1_save_put: %s\n" % e)

Parameters

Name Type Description Notes
body Body132 [optional]

Return type

TaxDataTaxRateInterface

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]