SpringImport\Swagger\Magento2\Client\TaxTaxRateRepositoryV1Api
May 23, 2017 · View on GitHub
All URIs are relative to http://t213.vg/rest/default
| Method | HTTP request | Description |
|---|---|---|
| taxTaxRateRepositoryV1DeleteByIdDelete | DELETE /V1/taxRates/{rateId} | |
| taxTaxRateRepositoryV1GetGet | GET /V1/taxRates/{rateId} | |
| taxTaxRateRepositoryV1GetListGet | GET /V1/taxRates/search | |
| taxTaxRateRepositoryV1SavePost | POST /V1/taxRates | |
| taxTaxRateRepositoryV1SavePut | PUT /V1/taxRates |
taxTaxRateRepositoryV1DeleteByIdDelete
bool taxTaxRateRepositoryV1DeleteByIdDelete($rateId)
Delete tax rate
Example
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new SpringImport\Swagger\Magento2\Client\Api\TaxTaxRateRepositoryV1Api();
$rateId = 56; // int |
try {
$result = $api_instance->taxTaxRateRepositoryV1DeleteByIdDelete($rateId);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling TaxTaxRateRepositoryV1Api->taxTaxRateRepositoryV1DeleteByIdDelete: ', $e->getMessage(), PHP_EOL;
}
?>
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| rateId | 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]
taxTaxRateRepositoryV1GetGet
\SpringImport\Swagger\Magento2\Client\Model\TaxDataTaxRateInterface taxTaxRateRepositoryV1GetGet($rateId)
Get tax rate
Example
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new SpringImport\Swagger\Magento2\Client\Api\TaxTaxRateRepositoryV1Api();
$rateId = 56; // int |
try {
$result = $api_instance->taxTaxRateRepositoryV1GetGet($rateId);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling TaxTaxRateRepositoryV1Api->taxTaxRateRepositoryV1GetGet: ', $e->getMessage(), PHP_EOL;
}
?>
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| rateId | int |
Return type
\SpringImport\Swagger\Magento2\Client\Model\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]
taxTaxRateRepositoryV1GetListGet
\SpringImport\Swagger\Magento2\Client\Model\TaxDataTaxRateSearchResultsInterface taxTaxRateRepositoryV1GetListGet(searchCriteriaFilterGroups0Filters0Value, searchCriteriaSortOrders0Field, searchCriteriaPageSize, $searchCriteriaCurrentPage)
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
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new SpringImport\Swagger\Magento2\Client\Api\TaxTaxRateRepositoryV1Api();
$searchCriteriaFilterGroups0Filters0Field = "searchCriteriaFilterGroups0Filters0Field_example"; // string | Field
$searchCriteriaFilterGroups0Filters0Value = "searchCriteriaFilterGroups0Filters0Value_example"; // string | Value
$searchCriteriaFilterGroups0Filters0ConditionType = "searchCriteriaFilterGroups0Filters0ConditionType_example"; // string | Condition type
$searchCriteriaSortOrders0Field = "searchCriteriaSortOrders0Field_example"; // string | Sorting field.
$searchCriteriaSortOrders0Direction = "searchCriteriaSortOrders0Direction_example"; // string | Sorting direction.
$searchCriteriaPageSize = 56; // int | Page size.
$searchCriteriaCurrentPage = 56; // int | Current page.
try {
$result = $api_instance->taxTaxRateRepositoryV1GetListGet($searchCriteriaFilterGroups0Filters0Field, $searchCriteriaFilterGroups0Filters0Value, $searchCriteriaFilterGroups0Filters0ConditionType, $searchCriteriaSortOrders0Field, $searchCriteriaSortOrders0Direction, $searchCriteriaPageSize, $searchCriteriaCurrentPage);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling TaxTaxRateRepositoryV1Api->taxTaxRateRepositoryV1GetListGet: ', $e->getMessage(), PHP_EOL;
}
?>
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| searchCriteriaFilterGroups0Filters0Field | string | Field | [optional] |
| searchCriteriaFilterGroups0Filters0Value | string | Value | [optional] |
| searchCriteriaFilterGroups0Filters0ConditionType | string | Condition type | [optional] |
| searchCriteriaSortOrders0Field | string | Sorting field. | [optional] |
| searchCriteriaSortOrders0Direction | string | Sorting direction. | [optional] |
| searchCriteriaPageSize | int | Page size. | [optional] |
| searchCriteriaCurrentPage | int | Current page. | [optional] |
Return type
\SpringImport\Swagger\Magento2\Client\Model\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]
taxTaxRateRepositoryV1SavePost
\SpringImport\Swagger\Magento2\Client\Model\TaxDataTaxRateInterface taxTaxRateRepositoryV1SavePost($body)
Create or update tax rate
Example
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new SpringImport\Swagger\Magento2\Client\Api\TaxTaxRateRepositoryV1Api();
$body = new \SpringImport\Swagger\Magento2\Client\Model\Body113(); // \SpringImport\Swagger\Magento2\Client\Model\Body113 |
try {
$result = $api_instance->taxTaxRateRepositoryV1SavePost($body);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling TaxTaxRateRepositoryV1Api->taxTaxRateRepositoryV1SavePost: ', $e->getMessage(), PHP_EOL;
}
?>
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| body | \SpringImport\Swagger\Magento2\Client\Model\Body113 | [optional] |
Return type
\SpringImport\Swagger\Magento2\Client\Model\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]
taxTaxRateRepositoryV1SavePut
\SpringImport\Swagger\Magento2\Client\Model\TaxDataTaxRateInterface taxTaxRateRepositoryV1SavePut($body)
Create or update tax rate
Example
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new SpringImport\Swagger\Magento2\Client\Api\TaxTaxRateRepositoryV1Api();
$body = new \SpringImport\Swagger\Magento2\Client\Model\Body112(); // \SpringImport\Swagger\Magento2\Client\Model\Body112 |
try {
$result = $api_instance->taxTaxRateRepositoryV1SavePut($body);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling TaxTaxRateRepositoryV1Api->taxTaxRateRepositoryV1SavePut: ', $e->getMessage(), PHP_EOL;
}
?>
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| body | \SpringImport\Swagger\Magento2\Client\Model\Body112 | [optional] |
Return type
\SpringImport\Swagger\Magento2\Client\Model\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]