Skip to content

sunil11475-dev/woocommerce-v3

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SwaggerClient-php

OpenAPI documented, based on generated OpenAPI document of the namespace wc/v3 with some manual fixes.

This PHP package is automatically generated by the Swagger Codegen project:

  • API version: 1
  • Build package: io.swagger.codegen.v3.generators.php.PhpClientCodegen

Requirements

PHP 5.5 and later

Installation & Usage

Composer

To install the bindings via Composer, add the following to composer.json:

{
  "repositories": [
    {
      "type": "git",
      "url": "https://github.com/GIT_USER_ID/GIT_REPO_ID.git"
    }
  ],
  "require": {
    "GIT_USER_ID/GIT_REPO_ID": "*@dev"
  }
}

Then run composer install

Manual Installation

Download the files and include autoload.php:

    require_once('/path/to/SwaggerClient-php/vendor/autoload.php');

Tests

To run the unit tests:

composer install
./vendor/bin/phpunit

Getting Started

Please follow the installation procedure and then run the following:

<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: basicAuth
$config = Swagger\Client\Configuration::getDefaultConfiguration()
    ->setUsername('YOUR_USERNAME')
    ->setPassword('YOUR_PASSWORD');

$apiInstance = new Swagger\Client\Api\DefaultApi(
    // 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
);
$context = "context_example"; // string | Scope under which the request is made; determines fields present in response.
$page = 56; // int | Current page of the collection.
$per_page = 56; // int | Maximum number of items to be returned in result set.
$search = "search_example"; // string | Limit results to those matching a string.
$after = "after_example"; // string | Limit response to resources published after a given ISO8601 compliant date.
$before = "before_example"; // string | Limit response to resources published before a given ISO8601 compliant date.
$modified_after = "modified_after_example"; // string | Limit response to resources modified after a given ISO8601 compliant date.
$modified_before = "modified_before_example"; // string | Limit response to resources modified before a given ISO8601 compliant date.
$dates_are_gmt = true; // bool | Whether to consider GMT post dates when limiting response by published or modified date.
$exclude = array(56); // int[] | Ensure result set excludes specific IDs.
$include = array(56); // int[] | Limit result set to specific ids.
$offset = 56; // int | Offset the result set by a specific number of items.
$order = "order_example"; // string | Order sort attribute ascending or descending.
$orderby = "orderby_example"; // string | Sort collection by object attribute.
$code = "code_example"; // string | Limit result set to resources with a specific code.

try {
    $result = $apiInstance->couponsGet($context, $page, $per_page, $search, $after, $before, $modified_after, $modified_before, $dates_are_gmt, $exclude, $include, $offset, $order, $orderby, $code);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->couponsGet: ', $e->getMessage(), PHP_EOL;
}
// Configure HTTP basic authorization: basicAuth
$config = Swagger\Client\Configuration::getDefaultConfiguration()
    ->setUsername('YOUR_USERNAME')
    ->setPassword('YOUR_PASSWORD');

$apiInstance = new Swagger\Client\Api\DefaultApi(
    // 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 = 56; // int | Unique identifier for the resource.
$force = true; // bool | Whether to bypass trash and force deletion.

try {
    $result = $apiInstance->couponsIdDelete($id, $force);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->couponsIdDelete: ', $e->getMessage(), PHP_EOL;
}
// Configure HTTP basic authorization: basicAuth
$config = Swagger\Client\Configuration::getDefaultConfiguration()
    ->setUsername('YOUR_USERNAME')
    ->setPassword('YOUR_PASSWORD');

$apiInstance = new Swagger\Client\Api\DefaultApi(
    // 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 = 56; // int | Unique identifier for the resource.
$context = "context_example"; // string | Scope under which the request is made; determines fields present in response.

try {
    $result = $apiInstance->couponsIdGet($id, $context);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->couponsIdGet: ', $e->getMessage(), PHP_EOL;
}
// Configure HTTP basic authorization: basicAuth
$config = Swagger\Client\Configuration::getDefaultConfiguration()
    ->setUsername('YOUR_USERNAME')
    ->setPassword('YOUR_PASSWORD');

$apiInstance = new Swagger\Client\Api\DefaultApi(
    // 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
);
$body = new \Swagger\Client\Model\ShopCoupon4(); // \Swagger\Client\Model\ShopCoupon4 | 
$id = 56; // int | Unique identifier for the resource.

try {
    $result = $apiInstance->couponsIdPatch($body, $id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->couponsIdPatch: ', $e->getMessage(), PHP_EOL;
}
// Configure HTTP basic authorization: basicAuth
$config = Swagger\Client\Configuration::getDefaultConfiguration()
    ->setUsername('YOUR_USERNAME')
    ->setPassword('YOUR_PASSWORD');

$apiInstance = new Swagger\Client\Api\DefaultApi(
    // 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
);
$body = new \Swagger\Client\Model\ShopCoupon3(); // \Swagger\Client\Model\ShopCoupon3 | 
$id = 56; // int | Unique identifier for the resource.

try {
    $result = $apiInstance->couponsIdPost($body, $id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->couponsIdPost: ', $e->getMessage(), PHP_EOL;
}
// Configure HTTP basic authorization: basicAuth
$config = Swagger\Client\Configuration::getDefaultConfiguration()
    ->setUsername('YOUR_USERNAME')
    ->setPassword('YOUR_PASSWORD');

$apiInstance = new Swagger\Client\Api\DefaultApi(
    // 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
);
$body = new \Swagger\Client\Model\ShopCoupon2(); // \Swagger\Client\Model\ShopCoupon2 | 
$id = 56; // int | Unique identifier for the resource.

try {
    $result = $apiInstance->couponsIdPut($body, $id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->couponsIdPut: ', $e->getMessage(), PHP_EOL;
}
// Configure HTTP basic authorization: basicAuth
$config = Swagger\Client\Configuration::getDefaultConfiguration()
    ->setUsername('YOUR_USERNAME')
    ->setPassword('YOUR_PASSWORD');

$apiInstance = new Swagger\Client\Api\DefaultApi(
    // 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
);
$body = new \Swagger\Client\Model\ShopCoupon1(); // \Swagger\Client\Model\ShopCoupon1 | 

try {
    $result = $apiInstance->couponsPost($body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->couponsPost: ', $e->getMessage(), PHP_EOL;
}
// Configure HTTP basic authorization: basicAuth
$config = Swagger\Client\Configuration::getDefaultConfiguration()
    ->setUsername('YOUR_USERNAME')
    ->setPassword('YOUR_PASSWORD');

$apiInstance = new Swagger\Client\Api\DefaultApi(
    // 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
);
$customer_id = 56; // int | Unique identifier for the resource.
$context = "context_example"; // string | Scope under which the request is made; determines fields present in response.

try {
    $result = $apiInstance->customersCustomerIdDownloadsGet($customer_id, $context);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->customersCustomerIdDownloadsGet: ', $e->getMessage(), PHP_EOL;
}
// Configure HTTP basic authorization: basicAuth
$config = Swagger\Client\Configuration::getDefaultConfiguration()
    ->setUsername('YOUR_USERNAME')
    ->setPassword('YOUR_PASSWORD');

$apiInstance = new Swagger\Client\Api\DefaultApi(
    // 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
);
$context = "context_example"; // string | Scope under which the request is made; determines fields present in response.
$page = 56; // int | Current page of the collection.
$per_page = 56; // int | Maximum number of items to be returned in result set.
$search = "search_example"; // string | Limit results to those matching a string.
$exclude = array(56); // int[] | Ensure result set excludes specific IDs.
$include = array(56); // int[] | Limit result set to specific IDs.
$offset = 56; // int | Offset the result set by a specific number of items.
$order = "order_example"; // string | Order sort attribute ascending or descending.
$orderby = "orderby_example"; // string | Sort collection by object attribute.
$email = "email_example"; // string | Limit result set to resources with a specific email.
$role = "role_example"; // string | Limit result set to resources with a specific role.

try {
    $result = $apiInstance->customersGet($context, $page, $per_page, $search, $exclude, $include, $offset, $order, $orderby, $email, $role);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->customersGet: ', $e->getMessage(), PHP_EOL;
}
// Configure HTTP basic authorization: basicAuth
$config = Swagger\Client\Configuration::getDefaultConfiguration()
    ->setUsername('YOUR_USERNAME')
    ->setPassword('YOUR_PASSWORD');

$apiInstance = new Swagger\Client\Api\DefaultApi(
    // 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 = 56; // int | Unique identifier for the resource.
$force = true; // bool | Required to be true, as resource does not support trashing.
$reassign = 56; // int | ID to reassign posts to.

try {
    $result = $apiInstance->customersIdDelete($id, $force, $reassign);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->customersIdDelete: ', $e->getMessage(), PHP_EOL;
}
// Configure HTTP basic authorization: basicAuth
$config = Swagger\Client\Configuration::getDefaultConfiguration()
    ->setUsername('YOUR_USERNAME')
    ->setPassword('YOUR_PASSWORD');

$apiInstance = new Swagger\Client\Api\DefaultApi(
    // 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 = 56; // int | Unique identifier for the resource.
$context = "context_example"; // string | Scope under which the request is made; determines fields present in response.

try {
    $result = $apiInstance->customersIdGet($id, $context);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->customersIdGet: ', $e->getMessage(), PHP_EOL;
}
// Configure HTTP basic authorization: basicAuth
$config = Swagger\Client\Configuration::getDefaultConfiguration()
    ->setUsername('YOUR_USERNAME')
    ->setPassword('YOUR_PASSWORD');

$apiInstance = new Swagger\Client\Api\DefaultApi(
    // 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
);
$body = new \Swagger\Client\Model\Customer4(); // \Swagger\Client\Model\Customer4 | 
$id = 56; // int | Unique identifier for the resource.

try {
    $result = $apiInstance->customersIdPatch($body, $id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->customersIdPatch: ', $e->getMessage(), PHP_EOL;
}
// Configure HTTP basic authorization: basicAuth
$config = Swagger\Client\Configuration::getDefaultConfiguration()
    ->setUsername('YOUR_USERNAME')
    ->setPassword('YOUR_PASSWORD');

$apiInstance = new Swagger\Client\Api\DefaultApi(
    // 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
);
$body = new \Swagger\Client\Model\Customer3(); // \Swagger\Client\Model\Customer3 | 
$id = 56; // int | Unique identifier for the resource.

try {
    $result = $apiInstance->customersIdPost($body, $id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->customersIdPost: ', $e->getMessage(), PHP_EOL;
}
// Configure HTTP basic authorization: basicAuth
$config = Swagger\Client\Configuration::getDefaultConfiguration()
    ->setUsername('YOUR_USERNAME')
    ->setPassword('YOUR_PASSWORD');

$apiInstance = new Swagger\Client\Api\DefaultApi(
    // 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
);
$body = new \Swagger\Client\Model\Customer2(); // \Swagger\Client\Model\Customer2 | 
$id = 56; // int | Unique identifier for the resource.

try {
    $result = $apiInstance->customersIdPut($body, $id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->customersIdPut: ', $e->getMessage(), PHP_EOL;
}
// Configure HTTP basic authorization: basicAuth
$config = Swagger\Client\Configuration::getDefaultConfiguration()
    ->setUsername('YOUR_USERNAME')
    ->setPassword('YOUR_PASSWORD');

$apiInstance = new Swagger\Client\Api\DefaultApi(
    // 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
);
$body = new \Swagger\Client\Model\Customer1(); // \Swagger\Client\Model\Customer1 | 

try {
    $result = $apiInstance->customersPost($body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->customersPost: ', $e->getMessage(), PHP_EOL;
}
// Configure HTTP basic authorization: basicAuth
$config = Swagger\Client\Configuration::getDefaultConfiguration()
    ->setUsername('YOUR_USERNAME')
    ->setPassword('YOUR_PASSWORD');

$apiInstance = new Swagger\Client\Api\DefaultApi(
    // 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->dataContinentsGet();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->dataContinentsGet: ', $e->getMessage(), PHP_EOL;
}
// Configure HTTP basic authorization: basicAuth
$config = Swagger\Client\Configuration::getDefaultConfiguration()
    ->setUsername('YOUR_USERNAME')
    ->setPassword('YOUR_PASSWORD');

$apiInstance = new Swagger\Client\Api\DefaultApi(
    // 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
);
$location = "location_example"; // string | 2 character continent code.

try {
    $result = $apiInstance->dataContinentsLocationGet($location);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->dataContinentsLocationGet: ', $e->getMessage(), PHP_EOL;
}
// Configure HTTP basic authorization: basicAuth
$config = Swagger\Client\Configuration::getDefaultConfiguration()
    ->setUsername('YOUR_USERNAME')
    ->setPassword('YOUR_PASSWORD');

$apiInstance = new Swagger\Client\Api\DefaultApi(
    // 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->dataCountriesGet();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->dataCountriesGet: ', $e->getMessage(), PHP_EOL;
}
// Configure HTTP basic authorization: basicAuth
$config = Swagger\Client\Configuration::getDefaultConfiguration()
    ->setUsername('YOUR_USERNAME')
    ->setPassword('YOUR_PASSWORD');

$apiInstance = new Swagger\Client\Api\DefaultApi(
    // 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
);
$location = "location_example"; // string | ISO3166 alpha-2 country code.

try {
    $result = $apiInstance->dataCountriesLocationGet($location);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->dataCountriesLocationGet: ', $e->getMessage(), PHP_EOL;
}
// Configure HTTP basic authorization: basicAuth
$config = Swagger\Client\Configuration::getDefaultConfiguration()
    ->setUsername('YOUR_USERNAME')
    ->setPassword('YOUR_PASSWORD');

$apiInstance = new Swagger\Client\Api\DefaultApi(
    // 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
);
$currency = "currency_example"; // string | ISO4217 currency code.

try {
    $result = $apiInstance->dataCurrenciesCurrencyGet($currency);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->dataCurrenciesCurrencyGet: ', $e->getMessage(), PHP_EOL;
}
// Configure HTTP basic authorization: basicAuth
$config = Swagger\Client\Configuration::getDefaultConfiguration()
    ->setUsername('YOUR_USERNAME')
    ->setPassword('YOUR_PASSWORD');

$apiInstance = new Swagger\Client\Api\DefaultApi(
    // 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->dataCurrenciesCurrentGet();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->dataCurrenciesCurrentGet: ', $e->getMessage(), PHP_EOL;
}
// Configure HTTP basic authorization: basicAuth
$config = Swagger\Client\Configuration::getDefaultConfiguration()
    ->setUsername('YOUR_USERNAME')
    ->setPassword('YOUR_PASSWORD');

$apiInstance = new Swagger\Client\Api\DefaultApi(
    // 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->dataCurrenciesGet();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->dataCurrenciesGet: ', $e->getMessage(), PHP_EOL;
}
// Configure HTTP basic authorization: basicAuth
$config = Swagger\Client\Configuration::getDefaultConfiguration()
    ->setUsername('YOUR_USERNAME')
    ->setPassword('YOUR_PASSWORD');

$apiInstance = new Swagger\Client\Api\DefaultApi(
    // 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->dataGet();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->dataGet: ', $e->getMessage(), PHP_EOL;
}
// Configure HTTP basic authorization: basicAuth
$config = Swagger\Client\Configuration::getDefaultConfiguration()
    ->setUsername('YOUR_USERNAME')
    ->setPassword('YOUR_PASSWORD');

$apiInstance = new Swagger\Client\Api\DefaultApi(
    // 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
);
$context = "context_example"; // string | Scope under which the request is made; determines fields present in response.
$page = 56; // int | Current page of the collection.
$per_page = 56; // int | Maximum number of items to be returned in result set.
$search = "search_example"; // string | Limit results to those matching a string.
$after = "after_example"; // string | Limit response to resources published after a given ISO8601 compliant date.
$before = "before_example"; // string | Limit response to resources published before a given ISO8601 compliant date.
$modified_after = "modified_after_example"; // string | Limit response to resources modified after a given ISO8601 compliant date.
$modified_before = "modified_before_example"; // string | Limit response to resources modified before a given ISO8601 compliant date.
$dates_are_gmt = true; // bool | Whether to consider GMT post dates when limiting response by published or modified date.
$exclude = array(56); // int[] | Ensure result set excludes specific IDs.
$include = array(56); // int[] | Limit result set to specific ids.
$offset = 56; // int | Offset the result set by a specific number of items.
$order = "order_example"; // string | Order sort attribute ascending or descending.
$orderby = "orderby_example"; // string | Sort collection by object attribute.
$parent = array(56); // int[] | Limit result set to those of particular parent IDs.
$parent_exclude = array(56); // int[] | Limit result set to all items except those of a particular parent ID.
$status = array("status_example"); // string[] | Limit result set to orders which have specific statuses.
$customer = 56; // int | Limit result set to orders assigned a specific customer.
$product = 56; // int | Limit result set to orders assigned a specific product.
$dp = 56; // int | Number of decimal points to use in each resource.

try {
    $result = $apiInstance->ordersGet($context, $page, $per_page, $search, $after, $before, $modified_after, $modified_before, $dates_are_gmt, $exclude, $include, $offset, $order, $orderby, $parent, $parent_exclude, $status, $customer, $product, $dp);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->ordersGet: ', $e->getMessage(), PHP_EOL;
}
// Configure HTTP basic authorization: basicAuth
$config = Swagger\Client\Configuration::getDefaultConfiguration()
    ->setUsername('YOUR_USERNAME')
    ->setPassword('YOUR_PASSWORD');

$apiInstance = new Swagger\Client\Api\DefaultApi(
    // 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 = 56; // int | Unique identifier for the resource.
$force = true; // bool | Whether to bypass trash and force deletion.

try {
    $result = $apiInstance->ordersIdDelete($id, $force);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->ordersIdDelete: ', $e->getMessage(), PHP_EOL;
}
// Configure HTTP basic authorization: basicAuth
$config = Swagger\Client\Configuration::getDefaultConfiguration()
    ->setUsername('YOUR_USERNAME')
    ->setPassword('YOUR_PASSWORD');

$apiInstance = new Swagger\Client\Api\DefaultApi(
    // 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 = 56; // int | Unique identifier for the resource.
$context = "context_example"; // string | Scope under which the request is made; determines fields present in response.

try {
    $result = $apiInstance->ordersIdGet($id, $context);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->ordersIdGet: ', $e->getMessage(), PHP_EOL;
}
// Configure HTTP basic authorization: basicAuth
$config = Swagger\Client\Configuration::getDefaultConfiguration()
    ->setUsername('YOUR_USERNAME')
    ->setPassword('YOUR_PASSWORD');

$apiInstance = new Swagger\Client\Api\DefaultApi(
    // 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
);
$body = new \Swagger\Client\Model\ShopOrder4(); // \Swagger\Client\Model\ShopOrder4 | 
$id = 56; // int | Unique identifier for the resource.

try {
    $result = $apiInstance->ordersIdPatch($body, $id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->ordersIdPatch: ', $e->getMessage(), PHP_EOL;
}
// Configure HTTP basic authorization: basicAuth
$config = Swagger\Client\Configuration::getDefaultConfiguration()
    ->setUsername('YOUR_USERNAME')
    ->setPassword('YOUR_PASSWORD');

$apiInstance = new Swagger\Client\Api\DefaultApi(
    // 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
);
$body = new \Swagger\Client\Model\ShopOrder3(); // \Swagger\Client\Model\ShopOrder3 | 
$id = 56; // int | Unique identifier for the resource.

try {
    $result = $apiInstance->ordersIdPost($body, $id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->ordersIdPost: ', $e->getMessage(), PHP_EOL;
}
// Configure HTTP basic authorization: basicAuth
$config = Swagger\Client\Configuration::getDefaultConfiguration()
    ->setUsername('YOUR_USERNAME')
    ->setPassword('YOUR_PASSWORD');

$apiInstance = new Swagger\Client\Api\DefaultApi(
    // 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
);
$body = new \Swagger\Client\Model\ShopOrder2(); // \Swagger\Client\Model\ShopOrder2 | 
$id = 56; // int | Unique identifier for the resource.

try {
    $result = $apiInstance->ordersIdPut($body, $id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->ordersIdPut: ', $e->getMessage(), PHP_EOL;
}
// Configure HTTP basic authorization: basicAuth
$config = Swagger\Client\Configuration::getDefaultConfiguration()
    ->setUsername('YOUR_USERNAME')
    ->setPassword('YOUR_PASSWORD');

$apiInstance = new Swagger\Client\Api\DefaultApi(
    // 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
);
$order_id = 56; // int | The order ID.
$context = "context_example"; // string | Scope under which the request is made; determines fields present in response.
$type = "type_example"; // string | Limit result to customers or internal notes.

try {
    $result = $apiInstance->ordersOrderIdNotesGet($order_id, $context, $type);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->ordersOrderIdNotesGet: ', $e->getMessage(), PHP_EOL;
}
// Configure HTTP basic authorization: basicAuth
$config = Swagger\Client\Configuration::getDefaultConfiguration()
    ->setUsername('YOUR_USERNAME')
    ->setPassword('YOUR_PASSWORD');

$apiInstance = new Swagger\Client\Api\DefaultApi(
    // 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 = 56; // int | Unique identifier for the resource.
$order_id = 56; // int | The order ID.
$force = true; // bool | Required to be true, as resource does not support trashing.

try {
    $result = $apiInstance->ordersOrderIdNotesIdDelete($id, $order_id, $force);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->ordersOrderIdNotesIdDelete: ', $e->getMessage(), PHP_EOL;
}
// Configure HTTP basic authorization: basicAuth
$config = Swagger\Client\Configuration::getDefaultConfiguration()
    ->setUsername('YOUR_USERNAME')
    ->setPassword('YOUR_PASSWORD');

$apiInstance = new Swagger\Client\Api\DefaultApi(
    // 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 = 56; // int | Unique identifier for the resource.
$order_id = 56; // int | The order ID.
$context = "context_example"; // string | Scope under which the request is made; determines fields present in response.

try {
    $result = $apiInstance->ordersOrderIdNotesIdGet($id, $order_id, $context);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->ordersOrderIdNotesIdGet: ', $e->getMessage(), PHP_EOL;
}
// Configure HTTP basic authorization: basicAuth
$config = Swagger\Client\Configuration::getDefaultConfiguration()
    ->setUsername('YOUR_USERNAME')
    ->setPassword('YOUR_PASSWORD');

$apiInstance = new Swagger\Client\Api\DefaultApi(
    // 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
);
$body = new \Swagger\Client\Model\OrderNote1(); // \Swagger\Client\Model\OrderNote1 | 
$order_id = 56; // int | The order ID.

try {
    $result = $apiInstance->ordersOrderIdNotesPost($body, $order_id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->ordersOrderIdNotesPost: ', $e->getMessage(), PHP_EOL;
}
// Configure HTTP basic authorization: basicAuth
$config = Swagger\Client\Configuration::getDefaultConfiguration()
    ->setUsername('YOUR_USERNAME')
    ->setPassword('YOUR_PASSWORD');

$apiInstance = new Swagger\Client\Api\DefaultApi(
    // 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
);
$order_id = 56; // int | The order ID.
$context = "context_example"; // string | Scope under which the request is made; determines fields present in response.
$page = 56; // int | Current page of the collection.
$per_page = 56; // int | Maximum number of items to be returned in result set.
$search = "search_example"; // string | Limit results to those matching a string.
$after = "after_example"; // string | Limit response to resources published after a given ISO8601 compliant date.
$before = "before_example"; // string | Limit response to resources published before a given ISO8601 compliant date.
$modified_after = "modified_after_example"; // string | Limit response to resources modified after a given ISO8601 compliant date.
$modified_before = "modified_before_example"; // string | Limit response to resources modified before a given ISO8601 compliant date.
$dates_are_gmt = true; // bool | Whether to consider GMT post dates when limiting response by published or modified date.
$exclude = array(56); // int[] | Ensure result set excludes specific IDs.
$include = array(56); // int[] | Limit result set to specific ids.
$offset = 56; // int | Offset the result set by a specific number of items.
$order = "order_example"; // string | Order sort attribute ascending or descending.
$orderby = "orderby_example"; // string | Sort collection by object attribute.
$parent = array(56); // int[] | Limit result set to those of particular parent IDs.
$parent_exclude = array(56); // int[] | Limit result set to all items except those of a particular parent ID.
$dp = 56; // int | Number of decimal points to use in each resource.

try {
    $result = $apiInstance->ordersOrderIdRefundsGet($order_id, $context, $page, $per_page, $search, $after, $before, $modified_after, $modified_before, $dates_are_gmt, $exclude, $include, $offset, $order, $orderby, $parent, $parent_exclude, $dp);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->ordersOrderIdRefundsGet: ', $e->getMessage(), PHP_EOL;
}
// Configure HTTP basic authorization: basicAuth
$config = Swagger\Client\Configuration::getDefaultConfiguration()
    ->setUsername('YOUR_USERNAME')
    ->setPassword('YOUR_PASSWORD');

$apiInstance = new Swagger\Client\Api\DefaultApi(
    // 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
);
$order_id = 56; // int | The order ID.
$id = 56; // int | Unique identifier for the resource.
$force = true; // bool | Required to be true, as resource does not support trashing.

try {
    $result = $apiInstance->ordersOrderIdRefundsIdDelete($order_id, $id, $force);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->ordersOrderIdRefundsIdDelete: ', $e->getMessage(), PHP_EOL;
}
// Configure HTTP basic authorization: basicAuth
$config = Swagger\Client\Configuration::getDefaultConfiguration()
    ->setUsername('YOUR_USERNAME')
    ->setPassword('YOUR_PASSWORD');

$apiInstance = new Swagger\Client\Api\DefaultApi(
    // 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
);
$order_id = 56; // int | The order ID.
$id = 56; // int | Unique identifier for the resource.
$context = "context_example"; // string | Scope under which the request is made; determines fields present in response.

try {
    $result = $apiInstance->ordersOrderIdRefundsIdGet($order_id, $id, $context);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->ordersOrderIdRefundsIdGet: ', $e->getMessage(), PHP_EOL;
}
// Configure HTTP basic authorization: basicAuth
$config = Swagger\Client\Configuration::getDefaultConfiguration()
    ->setUsername('YOUR_USERNAME')
    ->setPassword('YOUR_PASSWORD');

$apiInstance = new Swagger\Client\Api\DefaultApi(
    // 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
);
$body = new \Swagger\Client\Model\ShopOrderRefund1(); // \Swagger\Client\Model\ShopOrderRefund1 | 
$order_id = 56; // int | The order ID.

try {
    $result = $apiInstance->ordersOrderIdRefundsPost($body, $order_id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->ordersOrderIdRefundsPost: ', $e->getMessage(), PHP_EOL;
}
// Configure HTTP basic authorization: basicAuth
$config = Swagger\Client\Configuration::getDefaultConfiguration()
    ->setUsername('YOUR_USERNAME')
    ->setPassword('YOUR_PASSWORD');

$apiInstance = new Swagger\Client\Api\DefaultApi(
    // 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
);
$body = new \Swagger\Client\Model\ShopOrder1(); // \Swagger\Client\Model\ShopOrder1 | 

try {
    $result = $apiInstance->ordersPost($body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->ordersPost: ', $e->getMessage(), PHP_EOL;
}
// Configure HTTP basic authorization: basicAuth
$config = Swagger\Client\Configuration::getDefaultConfiguration()
    ->setUsername('YOUR_USERNAME')
    ->setPassword('YOUR_PASSWORD');

$apiInstance = new Swagger\Client\Api\DefaultApi(
    // 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
);
$context = "context_example"; // string | Scope under which the request is made; determines fields present in response.

try {
    $result = $apiInstance->paymentGatewaysGet($context);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->paymentGatewaysGet: ', $e->getMessage(), PHP_EOL;
}
// Configure HTTP basic authorization: basicAuth
$config = Swagger\Client\Configuration::getDefaultConfiguration()
    ->setUsername('YOUR_USERNAME')
    ->setPassword('YOUR_PASSWORD');

$apiInstance = new Swagger\Client\Api\DefaultApi(
    // 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 = "id_example"; // string | Unique identifier for the resource.
$context = "context_example"; // string | Scope under which the request is made; determines fields present in response.

try {
    $result = $apiInstance->paymentGatewaysIdGet($id, $context);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->paymentGatewaysIdGet: ', $e->getMessage(), PHP_EOL;
}
// Configure HTTP basic authorization: basicAuth
$config = Swagger\Client\Configuration::getDefaultConfiguration()
    ->setUsername('YOUR_USERNAME')
    ->setPassword('YOUR_PASSWORD');

$apiInstance = new Swagger\Client\Api\DefaultApi(
    // 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
);
$body = new \Swagger\Client\Model\PaymentGateway3(); // \Swagger\Client\Model\PaymentGateway3 | 
$id = "id_example"; // string | Unique identifier for the resource.

try {
    $result = $apiInstance->paymentGatewaysIdPatch($body, $id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->paymentGatewaysIdPatch: ', $e->getMessage(), PHP_EOL;
}
// Configure HTTP basic authorization: basicAuth
$config = Swagger\Client\Configuration::getDefaultConfiguration()
    ->setUsername('YOUR_USERNAME')
    ->setPassword('YOUR_PASSWORD');

$apiInstance = new Swagger\Client\Api\DefaultApi(
    // 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
);
$body = new \Swagger\Client\Model\PaymentGateway2(); // \Swagger\Client\Model\PaymentGateway2 | 
$id = "id_example"; // string | Unique identifier for the resource.

try {
    $result = $apiInstance->paymentGatewaysIdPost($body, $id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->paymentGatewaysIdPost: ', $e->getMessage(), PHP_EOL;
}
// Configure HTTP basic authorization: basicAuth
$config = Swagger\Client\Configuration::getDefaultConfiguration()
    ->setUsername('YOUR_USERNAME')
    ->setPassword('YOUR_PASSWORD');

$apiInstance = new Swagger\Client\Api\DefaultApi(
    // 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
);
$body = new \Swagger\Client\Model\PaymentGateway1(); // \Swagger\Client\Model\PaymentGateway1 | 
$id = "id_example"; // string | Unique identifier for the resource.

try {
    $result = $apiInstance->paymentGatewaysIdPut($body, $id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->paymentGatewaysIdPut: ', $e->getMessage(), PHP_EOL;
}
// Configure HTTP basic authorization: basicAuth
$config = Swagger\Client\Configuration::getDefaultConfiguration()
    ->setUsername('YOUR_USERNAME')
    ->setPassword('YOUR_PASSWORD');

$apiInstance = new Swagger\Client\Api\DefaultApi(
    // 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 = 56; // int | Unique identifier for the attribute of the terms.
$context = "context_example"; // string | Scope under which the request is made; determines fields present in response.
$page = 56; // int | Current page of the collection.
$per_page = 56; // int | Maximum number of items to be returned in result set.
$search = "search_example"; // string | Limit results to those matching a string.
$exclude = array(56); // int[] | Ensure result set excludes specific IDs.
$include = array(56); // int[] | Limit result set to specific ids.
$offset = 56; // int | Offset the result set by a specific number of items. Applies to hierarchical taxonomies only.
$order = "order_example"; // string | Order sort attribute ascending or descending.
$orderby = "orderby_example"; // string | Sort collection by resource attribute.
$hide_empty = true; // bool | Whether to hide resources not assigned to any products.
$parent = 56; // int | Limit result set to resources assigned to a specific parent. Applies to hierarchical taxonomies only.
$product = 56; // int | Limit result set to resources assigned to a specific product.
$slug = "slug_example"; // string | Limit result set to resources with a specific slug.

try {
    $result = $apiInstance->productsAttributesAttributeIdTermsGet($attribute_id, $context, $page, $per_page, $search, $exclude, $include, $offset, $order, $orderby, $hide_empty, $parent, $product, $slug);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->productsAttributesAttributeIdTermsGet: ', $e->getMessage(), PHP_EOL;
}
// Configure HTTP basic authorization: basicAuth
$config = Swagger\Client\Configuration::getDefaultConfiguration()
    ->setUsername('YOUR_USERNAME')
    ->setPassword('YOUR_PASSWORD');

$apiInstance = new Swagger\Client\Api\DefaultApi(
    // 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 = 56; // int | Unique identifier for the resource.
$attribute_id = 56; // int | Unique identifier for the attribute of the terms.
$force = true; // bool | Required to be true, as resource does not support trashing.

try {
    $result = $apiInstance->productsAttributesAttributeIdTermsIdDelete($id, $attribute_id, $force);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->productsAttributesAttributeIdTermsIdDelete: ', $e->getMessage(), PHP_EOL;
}
// Configure HTTP basic authorization: basicAuth
$config = Swagger\Client\Configuration::getDefaultConfiguration()
    ->setUsername('YOUR_USERNAME')
    ->setPassword('YOUR_PASSWORD');

$apiInstance = new Swagger\Client\Api\DefaultApi(
    // 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 = 56; // int | Unique identifier for the resource.
$attribute_id = 56; // int | Unique identifier for the attribute of the terms.
$context = "context_example"; // string | Scope under which the request is made; determines fields present in response.

try {
    $result = $apiInstance->productsAttributesAttributeIdTermsIdGet($id, $attribute_id, $context);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->productsAttributesAttributeIdTermsIdGet: ', $e->getMessage(), PHP_EOL;
}
// Configure HTTP basic authorization: basicAuth
$config = Swagger\Client\Configuration::getDefaultConfiguration()
    ->setUsername('YOUR_USERNAME')
    ->setPassword('YOUR_PASSWORD');

$apiInstance = new Swagger\Client\Api\DefaultApi(
    // 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
);
$body = new \Swagger\Client\Model\ProductAttributeTerm4(); // \Swagger\Client\Model\ProductAttributeTerm4 | 
$id = 56; // int | Unique identifier for the resource.
$attribute_id = 56; // int | Unique identifier for the attribute of the terms.

try {
    $result = $apiInstance->productsAttributesAttributeIdTermsIdPatch($body, $id, $attribute_id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->productsAttributesAttributeIdTermsIdPatch: ', $e->getMessage(), PHP_EOL;
}
// Configure HTTP basic authorization: basicAuth
$config = Swagger\Client\Configuration::getDefaultConfiguration()
    ->setUsername('YOUR_USERNAME')
    ->setPassword('YOUR_PASSWORD');

$apiInstance = new Swagger\Client\Api\DefaultApi(
    // 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
);
$body = new \Swagger\Client\Model\ProductAttributeTerm3(); // \Swagger\Client\Model\ProductAttributeTerm3 | 
$id = 56; // int | Unique identifier for the resource.
$attribute_id = 56; // int | Unique identifier for the attribute of the terms.

try {
    $result = $apiInstance->productsAttributesAttributeIdTermsIdPost($body, $id, $attribute_id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->productsAttributesAttributeIdTermsIdPost: ', $e->getMessage(), PHP_EOL;
}
// Configure HTTP basic authorization: basicAuth
$config = Swagger\Client\Configuration::getDefaultConfiguration()
    ->setUsername('YOUR_USERNAME')
    ->setPassword('YOUR_PASSWORD');

$apiInstance = new Swagger\Client\Api\DefaultApi(
    // 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
);
$body = new \Swagger\Client\Model\ProductAttributeTerm2(); // \Swagger\Client\Model\ProductAttributeTerm2 | 
$id = 56; // int | Unique identifier for the resource.
$attribute_id = 56; // int | Unique identifier for the attribute of the terms.

try {
    $result = $apiInstance->productsAttributesAttributeIdTermsIdPut($body, $id, $attribute_id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->productsAttributesAttributeIdTermsIdPut: ', $e->getMessage(), PHP_EOL;
}
// Configure HTTP basic authorization: basicAuth
$config = Swagger\Client\Configuration::getDefaultConfiguration()
    ->setUsername('YOUR_USERNAME')
    ->setPassword('YOUR_PASSWORD');

$apiInstance = new Swagger\Client\Api\DefaultApi(
    // 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
);
$body = new \Swagger\Client\Model\ProductAttributeTerm1(); // \Swagger\Client\Model\ProductAttributeTerm1 | 
$attribute_id = 56; // int | Unique identifier for the attribute of the terms.

try {
    $result = $apiInstance->productsAttributesAttributeIdTermsPost($body, $attribute_id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->productsAttributesAttributeIdTermsPost: ', $e->getMessage(), PHP_EOL;
}
// Configure HTTP basic authorization: basicAuth
$config = Swagger\Client\Configuration::getDefaultConfiguration()
    ->setUsername('YOUR_USERNAME')
    ->setPassword('YOUR_PASSWORD');

$apiInstance = new Swagger\Client\Api\DefaultApi(
    // 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
);
$context = "context_example"; // string | Scope under which the request is made; determines fields present in response.

try {
    $result = $apiInstance->productsAttributesGet($context);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->productsAttributesGet: ', $e->getMessage(), PHP_EOL;
}
// Configure HTTP basic authorization: basicAuth
$config = Swagger\Client\Configuration::getDefaultConfiguration()
    ->setUsername('YOUR_USERNAME')
    ->setPassword('YOUR_PASSWORD');

$apiInstance = new Swagger\Client\Api\DefaultApi(
    // 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 = 56; // int | Unique identifier for the resource.
$force = true; // bool | Required to be true, as resource does not support trashing.

try {
    $result = $apiInstance->productsAttributesIdDelete($id, $force);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->productsAttributesIdDelete: ', $e->getMessage(), PHP_EOL;
}
// Configure HTTP basic authorization: basicAuth
$config = Swagger\Client\Configuration::getDefaultConfiguration()
    ->setUsername('YOUR_USERNAME')
    ->setPassword('YOUR_PASSWORD');

$apiInstance = new Swagger\Client\Api\DefaultApi(
    // 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 = 56; // int | Unique identifier for the resource.
$context = "context_example"; // string | Scope under which the request is made; determines fields present in response.

try {
    $result = $apiInstance->productsAttributesIdGet($id, $context);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->productsAttributesIdGet: ', $e->getMessage(), PHP_EOL;
}
// Configure HTTP basic authorization: basicAuth
$config = Swagger\Client\Configuration::getDefaultConfiguration()
    ->setUsername('YOUR_USERNAME')
    ->setPassword('YOUR_PASSWORD');

$apiInstance = new Swagger\Client\Api\DefaultApi(
    // 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
);
$body = new \Swagger\Client\Model\ProductAttribute4(); // \Swagger\Client\Model\ProductAttribute4 | 
$id = 56; // int | Unique identifier for the resource.

try {
    $result = $apiInstance->productsAttributesIdPatch($body, $id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->productsAttributesIdPatch: ', $e->getMessage(), PHP_EOL;
}
// Configure HTTP basic authorization: basicAuth
$config = Swagger\Client\Configuration::getDefaultConfiguration()
    ->setUsername('YOUR_USERNAME')
    ->setPassword('YOUR_PASSWORD');

$apiInstance = new Swagger\Client\Api\DefaultApi(
    // 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
);
$body = new \Swagger\Client\Model\ProductAttribute3(); // \Swagger\Client\Model\ProductAttribute3 | 
$id = 56; // int | Unique identifier for the resource.

try {
    $result = $apiInstance->productsAttributesIdPost($body, $id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->productsAttributesIdPost: ', $e->getMessage(), PHP_EOL;
}
// Configure HTTP basic authorization: basicAuth
$config = Swagger\Client\Configuration::getDefaultConfiguration()
    ->setUsername('YOUR_USERNAME')
    ->setPassword('YOUR_PASSWORD');

$apiInstance = new Swagger\Client\Api\DefaultApi(
    // 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
);
$body = new \Swagger\Client\Model\ProductAttribute2(); // \Swagger\Client\Model\ProductAttribute2 | 
$id = 56; // int | Unique identifier for the resource.

try {
    $result = $apiInstance->productsAttributesIdPut($body, $id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->productsAttributesIdPut: ', $e->getMessage(), PHP_EOL;
}
// Configure HTTP basic authorization: basicAuth
$config = Swagger\Client\Configuration::getDefaultConfiguration()
    ->setUsername('YOUR_USERNAME')
    ->setPassword('YOUR_PASSWORD');

$apiInstance = new Swagger\Client\Api\DefaultApi(
    // 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
);
$body = new \Swagger\Client\Model\ProductAttribute1(); // \Swagger\Client\Model\ProductAttribute1 | 

try {
    $result = $apiInstance->productsAttributesPost($body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->productsAttributesPost: ', $e->getMessage(), PHP_EOL;
}
// Configure HTTP basic authorization: basicAuth
$config = Swagger\Client\Configuration::getDefaultConfiguration()
    ->setUsername('YOUR_USERNAME')
    ->setPassword('YOUR_PASSWORD');

$apiInstance = new Swagger\Client\Api\DefaultApi(
    // 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
);
$context = "context_example"; // string | Scope under which the request is made; determines fields present in response.
$page = 56; // int | Current page of the collection.
$per_page = 56; // int | Maximum number of items to be returned in result set.
$search = "search_example"; // string | Limit results to those matching a string.
$exclude = array(56); // int[] | Ensure result set excludes specific IDs.
$include = array(56); // int[] | Limit result set to specific ids.
$offset = 56; // int | Offset the result set by a specific number of items. Applies to hierarchical taxonomies only.
$order = "order_example"; // string | Order sort attribute ascending or descending.
$orderby = "orderby_example"; // string | Sort collection by resource attribute.
$hide_empty = true; // bool | Whether to hide resources not assigned to any products.
$parent = 56; // int | Limit result set to resources assigned to a specific parent. Applies to hierarchical taxonomies only.
$product = 56; // int | Limit result set to resources assigned to a specific product.
$slug = "slug_example"; // string | Limit result set to resources with a specific slug.

try {
    $result = $apiInstance->productsCategoriesGet($context, $page, $per_page, $search, $exclude, $include, $offset, $order, $orderby, $hide_empty, $parent, $product, $slug);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->productsCategoriesGet: ', $e->getMessage(), PHP_EOL;
}
// Configure HTTP basic authorization: basicAuth
$config = Swagger\Client\Configuration::getDefaultConfiguration()
    ->setUsername('YOUR_USERNAME')
    ->setPassword('YOUR_PASSWORD');

$apiInstance = new Swagger\Client\Api\DefaultApi(
    // 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 = 56; // int | Unique identifier for the resource.
$force = true; // bool | Required to be true, as resource does not support trashing.

try {
    $result = $apiInstance->productsCategoriesIdDelete($id, $force);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->productsCategoriesIdDelete: ', $e->getMessage(), PHP_EOL;
}
// Configure HTTP basic authorization: basicAuth
$config = Swagger\Client\Configuration::getDefaultConfiguration()
    ->setUsername('YOUR_USERNAME')
    ->setPassword('YOUR_PASSWORD');

$apiInstance = new Swagger\Client\Api\DefaultApi(
    // 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 = 56; // int | Unique identifier for the resource.
$context = "context_example"; // string | Scope under which the request is made; determines fields present in response.

try {
    $result = $apiInstance->productsCategoriesIdGet($id, $context);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->productsCategoriesIdGet: ', $e->getMessage(), PHP_EOL;
}
// Configure HTTP basic authorization: basicAuth
$config = Swagger\Client\Configuration::getDefaultConfiguration()
    ->setUsername('YOUR_USERNAME')
    ->setPassword('YOUR_PASSWORD');

$apiInstance = new Swagger\Client\Api\DefaultApi(
    // 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
);
$body = new \Swagger\Client\Model\ProductCat4(); // \Swagger\Client\Model\ProductCat4 | 
$id = 56; // int | Unique identifier for the resource.

try {
    $result = $apiInstance->productsCategoriesIdPatch($body, $id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->productsCategoriesIdPatch: ', $e->getMessage(), PHP_EOL;
}
// Configure HTTP basic authorization: basicAuth
$config = Swagger\Client\Configuration::getDefaultConfiguration()
    ->setUsername('YOUR_USERNAME')
    ->setPassword('YOUR_PASSWORD');

$apiInstance = new Swagger\Client\Api\DefaultApi(
    // 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
);
$body = new \Swagger\Client\Model\ProductCat3(); // \Swagger\Client\Model\ProductCat3 | 
$id = 56; // int | Unique identifier for the resource.

try {
    $result = $apiInstance->productsCategoriesIdPost($body, $id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->productsCategoriesIdPost: ', $e->getMessage(), PHP_EOL;
}
// Configure HTTP basic authorization: basicAuth
$config = Swagger\Client\Configuration::getDefaultConfiguration()
    ->setUsername('YOUR_USERNAME')
    ->setPassword('YOUR_PASSWORD');

$apiInstance = new Swagger\Client\Api\DefaultApi(
    // 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
);
$body = new \Swagger\Client\Model\ProductCat2(); // \Swagger\Client\Model\ProductCat2 | 
$id = 56; // int | Unique identifier for the resource.

try {
    $result = $apiInstance->productsCategoriesIdPut($body, $id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->productsCategoriesIdPut: ', $e->getMessage(), PHP_EOL;
}
// Configure HTTP basic authorization: basicAuth
$config = Swagger\Client\Configuration::getDefaultConfiguration()
    ->setUsername('YOUR_USERNAME')
    ->setPassword('YOUR_PASSWORD');

$apiInstance = new Swagger\Client\Api\DefaultApi(
    // 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
);
$body = new \Swagger\Client\Model\ProductCat1(); // \Swagger\Client\Model\ProductCat1 | 

try {
    $result = $apiInstance->productsCategoriesPost($body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->productsCategoriesPost: ', $e->getMessage(), PHP_EOL;
}
// Configure HTTP basic authorization: basicAuth
$config = Swagger\Client\Configuration::getDefaultConfiguration()
    ->setUsername('YOUR_USERNAME')
    ->setPassword('YOUR_PASSWORD');

$apiInstance = new Swagger\Client\Api\DefaultApi(
    // 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
);
$context = "context_example"; // string | Scope under which the request is made; determines fields present in response.
$page = 56; // int | Current page of the collection.
$per_page = 56; // int | Maximum number of items to be returned in result set.
$search = "search_example"; // string | Limit results to those matching a string.
$after = "after_example"; // string | Limit response to resources published after a given ISO8601 compliant date.
$before = "before_example"; // string | Limit response to resources published before a given ISO8601 compliant date.
$modified_after = "modified_after_example"; // string | Limit response to resources modified after a given ISO8601 compliant date.
$modified_before = "modified_before_example"; // string | Limit response to resources modified before a given ISO8601 compliant date.
$dates_are_gmt = true; // bool | Whether to consider GMT post dates when limiting response by published or modified date.
$exclude = array(56); // int[] | Ensure result set excludes specific IDs.
$include = array(56); // int[] | Limit result set to specific ids.
$offset = 56; // int | Offset the result set by a specific number of items.
$order = "order_example"; // string | Order sort attribute ascending or descending.
$orderby = "orderby_example"; // string | Sort collection by object attribute.
$parent = array(56); // int[] | Limit result set to those of particular parent IDs.
$parent_exclude = array(56); // int[] | Limit result set to all items except those of a particular parent ID.
$slug = "slug_example"; // string | Limit result set to products with a specific slug.
$status = "status_example"; // string | Limit result set to products assigned a specific status.
$type = "type_example"; // string | Limit result set to products assigned a specific type.
$sku = "sku_example"; // string | Limit result set to products with specific SKU(s). Use commas to separate.
$featured = true; // bool | Limit result set to featured products.
$category = "category_example"; // string | Limit result set to products assigned a specific category ID.
$tag = "tag_example"; // string | Limit result set to products assigned a specific tag ID.
$shipping_class = "shipping_class_example"; // string | Limit result set to products assigned a specific shipping class ID.
$attribute = "attribute_example"; // string | Limit result set to products with a specific attribute. Use the taxonomy name/attribute slug.
$attribute_term = "attribute_term_example"; // string | Limit result set to products with a specific attribute term ID (required an assigned attribute).
$on_sale = true; // bool | Limit result set to products on sale.
$min_price = "min_price_example"; // string | Limit result set to products based on a minimum price.
$max_price = "max_price_example"; // string | Limit result set to products based on a maximum price.
$stock_status = "stock_status_example"; // string | Limit result set to products with specified stock status.

try {
    $result = $apiInstance->productsGet($context, $page, $per_page, $search, $after, $before, $modified_after, $modified_before, $dates_are_gmt, $exclude, $include, $offset, $order, $orderby, $parent, $parent_exclude, $slug, $status, $type, $sku, $featured, $category, $tag, $shipping_class, $attribute, $attribute_term, $on_sale, $min_price, $max_price, $stock_status);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->productsGet: ', $e->getMessage(), PHP_EOL;
}
// Configure HTTP basic authorization: basicAuth
$config = Swagger\Client\Configuration::getDefaultConfiguration()
    ->setUsername('YOUR_USERNAME')
    ->setPassword('YOUR_PASSWORD');

$apiInstance = new Swagger\Client\Api\DefaultApi(
    // 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 = 56; // int | Unique identifier for the resource.
$force = true; // bool | Whether to bypass trash and force deletion.

try {
    $result = $apiInstance->productsIdDelete($id, $force);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->productsIdDelete: ', $e->getMessage(), PHP_EOL;
}
// Configure HTTP basic authorization: basicAuth
$config = Swagger\Client\Configuration::getDefaultConfiguration()
    ->setUsername('YOUR_USERNAME')
    ->setPassword('YOUR_PASSWORD');

$apiInstance = new Swagger\Client\Api\DefaultApi(
    // 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 = 56; // int | Unique identifier for the resource.
$context = "context_example"; // string | Scope under which the request is made; determines fields present in response.

try {
    $result = $apiInstance->productsIdGet($id, $context);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->productsIdGet: ', $e->getMessage(), PHP_EOL;
}
// Configure HTTP basic authorization: basicAuth
$config = Swagger\Client\Configuration::getDefaultConfiguration()
    ->setUsername('YOUR_USERNAME')
    ->setPassword('YOUR_PASSWORD');

$apiInstance = new Swagger\Client\Api\DefaultApi(
    // 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
);
$body = new \Swagger\Client\Model\Product4(); // \Swagger\Client\Model\Product4 | 
$id = 56; // int | Unique identifier for the resource.

try {
    $result = $apiInstance->productsIdPatch($body, $id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->productsIdPatch: ', $e->getMessage(), PHP_EOL;
}
// Configure HTTP basic authorization: basicAuth
$config = Swagger\Client\Configuration::getDefaultConfiguration()
    ->setUsername('YOUR_USERNAME')
    ->setPassword('YOUR_PASSWORD');

$apiInstance = new Swagger\Client\Api\DefaultApi(
    // 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
);
$body = new \Swagger\Client\Model\Product3(); // \Swagger\Client\Model\Product3 | 
$id = 56; // int | Unique identifier for the resource.

try {
    $result = $apiInstance->productsIdPost($body, $id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->productsIdPost: ', $e->getMessage(), PHP_EOL;
}
// Configure HTTP basic authorization: basicAuth
$config = Swagger\Client\Configuration::getDefaultConfiguration()
    ->setUsername('YOUR_USERNAME')
    ->setPassword('YOUR_PASSWORD');

$apiInstance = new Swagger\Client\Api\DefaultApi(
    // 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
);
$body = new \Swagger\Client\Model\Product2(); // \Swagger\Client\Model\Product2 | 
$id = 56; // int | Unique identifier for the resource.

try {
    $result = $apiInstance->productsIdPut($body, $id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->productsIdPut: ', $e->getMessage(), PHP_EOL;
}
// Configure HTTP basic authorization: basicAuth
$config = Swagger\Client\Configuration::getDefaultConfiguration()
    ->setUsername('YOUR_USERNAME')
    ->setPassword('YOUR_PASSWORD');

$apiInstance = new Swagger\Client\Api\DefaultApi(
    // 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
);
$body = new \Swagger\Client\Model\Product1(); // \Swagger\Client\Model\Product1 | 

try {
    $result = $apiInstance->productsPost($body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->productsPost: ', $e->getMessage(), PHP_EOL;
}
// Configure HTTP basic authorization: basicAuth
$config = Swagger\Client\Configuration::getDefaultConfiguration()
    ->setUsername('YOUR_USERNAME')
    ->setPassword('YOUR_PASSWORD');

$apiInstance = new Swagger\Client\Api\DefaultApi(
    // 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
);
$product_id = 56; // int | Unique identifier for the variable product.
$context = "context_example"; // string | Scope under which the request is made; determines fields present in response.
$page = 56; // int | Current page of the collection.
$per_page = 56; // int | Maximum number of items to be returned in result set.
$search = "search_example"; // string | Limit results to those matching a string.
$after = "after_example"; // string | Limit response to resources published after a given ISO8601 compliant date.
$before = "before_example"; // string | Limit response to resources published before a given ISO8601 compliant date.
$modified_after = "modified_after_example"; // string | Limit response to resources modified after a given ISO8601 compliant date.
$modified_before = "modified_before_example"; // string | Limit response to resources modified before a given ISO8601 compliant date.
$dates_are_gmt = true; // bool | Whether to consider GMT post dates when limiting response by published or modified date.
$exclude = array(56); // int[] | Ensure result set excludes specific IDs.
$include = array(56); // int[] | Limit result set to specific ids.
$offset = 56; // int | Offset the result set by a specific number of items.
$order = "order_example"; // string | Order sort attribute ascending or descending.
$orderby = "orderby_example"; // string | Sort collection by object attribute.
$parent = array(56); // int[] | Limit result set to those of particular parent IDs.
$parent_exclude = array(56); // int[] | Limit result set to all items except those of a particular parent ID.
$slug = "slug_example"; // string | Limit result set to products with a specific slug.
$status = "status_example"; // string | Limit result set to products assigned a specific status.
$sku = "sku_example"; // string | Limit result set to products with specific SKU(s). Use commas to separate.
$on_sale = true; // bool | Limit result set to products on sale.
$min_price = "min_price_example"; // string | Limit result set to products based on a minimum price.
$max_price = "max_price_example"; // string | Limit result set to products based on a maximum price.
$stock_status = "stock_status_example"; // string | Limit result set to products with specified stock status.

try {
    $result = $apiInstance->productsProductIdVariationsGet($product_id, $context, $page, $per_page, $search, $after, $before, $modified_after, $modified_before, $dates_are_gmt, $exclude, $include, $offset, $order, $orderby, $parent, $parent_exclude, $slug, $status, $sku, $on_sale, $min_price, $max_price, $stock_status);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->productsProductIdVariationsGet: ', $e->getMessage(), PHP_EOL;
}
// Configure HTTP basic authorization: basicAuth
$config = Swagger\Client\Configuration::getDefaultConfiguration()
    ->setUsername('YOUR_USERNAME')
    ->setPassword('YOUR_PASSWORD');

$apiInstance = new Swagger\Client\Api\DefaultApi(
    // 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
);
$product_id = 56; // int | Unique identifier for the variable product.
$id = 56; // int | Unique identifier for the variation.
$force = true; // bool | Whether to bypass trash and force deletion.

try {
    $result = $apiInstance->productsProductIdVariationsIdDelete($product_id, $id, $force);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->productsProductIdVariationsIdDelete: ', $e->getMessage(), PHP_EOL;
}
// Configure HTTP basic authorization: basicAuth
$config = Swagger\Client\Configuration::getDefaultConfiguration()
    ->setUsername('YOUR_USERNAME')
    ->setPassword('YOUR_PASSWORD');

$apiInstance = new Swagger\Client\Api\DefaultApi(
    // 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
);
$product_id = 56; // int | Unique identifier for the variable product.
$id = 56; // int | Unique identifier for the variation.
$context = "context_example"; // string | Scope under which the request is made; determines fields present in response.

try {
    $result = $apiInstance->productsProductIdVariationsIdGet($product_id, $id, $context);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->productsProductIdVariationsIdGet: ', $e->getMessage(), PHP_EOL;
}
// Configure HTTP basic authorization: basicAuth
$config = Swagger\Client\Configuration::getDefaultConfiguration()
    ->setUsername('YOUR_USERNAME')
    ->setPassword('YOUR_PASSWORD');

$apiInstance = new Swagger\Client\Api\DefaultApi(
    // 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
);
$body = new \Swagger\Client\Model\ProductVariation4(); // \Swagger\Client\Model\ProductVariation4 | 
$product_id = 56; // int | Unique identifier for the variable product.
$id = 56; // int | Unique identifier for the variation.

try {
    $result = $apiInstance->productsProductIdVariationsIdPatch($body, $product_id, $id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->productsProductIdVariationsIdPatch: ', $e->getMessage(), PHP_EOL;
}
// Configure HTTP basic authorization: basicAuth
$config = Swagger\Client\Configuration::getDefaultConfiguration()
    ->setUsername('YOUR_USERNAME')
    ->setPassword('YOUR_PASSWORD');

$apiInstance = new Swagger\Client\Api\DefaultApi(
    // 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
);
$body = new \Swagger\Client\Model\ProductVariation3(); // \Swagger\Client\Model\ProductVariation3 | 
$product_id = 56; // int | Unique identifier for the variable product.
$id = 56; // int | Unique identifier for the variation.

try {
    $result = $apiInstance->productsProductIdVariationsIdPost($body, $product_id, $id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->productsProductIdVariationsIdPost: ', $e->getMessage(), PHP_EOL;
}
// Configure HTTP basic authorization: basicAuth
$config = Swagger\Client\Configuration::getDefaultConfiguration()
    ->setUsername('YOUR_USERNAME')
    ->setPassword('YOUR_PASSWORD');

$apiInstance = new Swagger\Client\Api\DefaultApi(
    // 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
);
$body = new \Swagger\Client\Model\ProductVariation2(); // \Swagger\Client\Model\ProductVariation2 | 
$product_id = 56; // int | Unique identifier for the variable product.
$id = 56; // int | Unique identifier for the variation.

try {
    $result = $apiInstance->productsProductIdVariationsIdPut($body, $product_id, $id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->productsProductIdVariationsIdPut: ', $e->getMessage(), PHP_EOL;
}
// Configure HTTP basic authorization: basicAuth
$config = Swagger\Client\Configuration::getDefaultConfiguration()
    ->setUsername('YOUR_USERNAME')
    ->setPassword('YOUR_PASSWORD');

$apiInstance = new Swagger\Client\Api\DefaultApi(
    // 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
);
$body = new \Swagger\Client\Model\ProductVariation1(); // \Swagger\Client\Model\ProductVariation1 | 
$product_id = 56; // int | Unique identifier for the variable product.

try {
    $result = $apiInstance->productsProductIdVariationsPost($body, $product_id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->productsProductIdVariationsPost: ', $e->getMessage(), PHP_EOL;
}
// Configure HTTP basic authorization: basicAuth
$config = Swagger\Client\Configuration::getDefaultConfiguration()
    ->setUsername('YOUR_USERNAME')
    ->setPassword('YOUR_PASSWORD');

$apiInstance = new Swagger\Client\Api\DefaultApi(
    // 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
);
$context = "context_example"; // string | Scope under which the request is made; determines fields present in response.
$page = 56; // int | Current page of the collection.
$per_page = 56; // int | Maximum number of items to be returned in result set.
$search = "search_example"; // string | Limit results to those matching a string.
$after = "after_example"; // string | Limit response to resources published after a given ISO8601 compliant date.
$before = "before_example"; // string | Limit response to reviews published before a given ISO8601 compliant date.
$exclude = array(56); // int[] | Ensure result set excludes specific IDs.
$include = array(56); // int[] | Limit result set to specific IDs.
$offset = 56; // int | Offset the result set by a specific number of items.
$order = "order_example"; // string | Order sort attribute ascending or descending.
$orderby = "orderby_example"; // string | Sort collection by object attribute.
$reviewer = array(56); // int[] | Limit result set to reviews assigned to specific user IDs.
$reviewer_exclude = array(56); // int[] | Ensure result set excludes reviews assigned to specific user IDs.
$reviewer_email = "reviewer_email_example"; // string | Limit result set to that from a specific author email.
$product = array(56); // int[] | Limit result set to reviews assigned to specific product IDs.
$status = "status_example"; // string | Limit result set to reviews assigned a specific status.

try {
    $result = $apiInstance->productsReviewsGet($context, $page, $per_page, $search, $after, $before, $exclude, $include, $offset, $order, $orderby, $reviewer, $reviewer_exclude, $reviewer_email, $product, $status);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->productsReviewsGet: ', $e->getMessage(), PHP_EOL;
}
// Configure HTTP basic authorization: basicAuth
$config = Swagger\Client\Configuration::getDefaultConfiguration()
    ->setUsername('YOUR_USERNAME')
    ->setPassword('YOUR_PASSWORD');

$apiInstance = new Swagger\Client\Api\DefaultApi(
    // 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 = 56; // int | Unique identifier for the resource.
$force = true; // bool | Whether to bypass trash and force deletion.

try {
    $result = $apiInstance->productsReviewsIdDelete($id, $force);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->productsReviewsIdDelete: ', $e->getMessage(), PHP_EOL;
}
// Configure HTTP basic authorization: basicAuth
$config = Swagger\Client\Configuration::getDefaultConfiguration()
    ->setUsername('YOUR_USERNAME')
    ->setPassword('YOUR_PASSWORD');

$apiInstance = new Swagger\Client\Api\DefaultApi(
    // 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 = 56; // int | Unique identifier for the resource.
$context = "context_example"; // string | Scope under which the request is made; determines fields present in response.

try {
    $result = $apiInstance->productsReviewsIdGet($id, $context);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->productsReviewsIdGet: ', $e->getMessage(), PHP_EOL;
}
// Configure HTTP basic authorization: basicAuth
$config = Swagger\Client\Configuration::getDefaultConfiguration()
    ->setUsername('YOUR_USERNAME')
    ->setPassword('YOUR_PASSWORD');

$apiInstance = new Swagger\Client\Api\DefaultApi(
    // 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
);
$body = new \Swagger\Client\Model\ProductReview4(); // \Swagger\Client\Model\ProductReview4 | 
$id = 56; // int | Unique identifier for the resource.

try {
    $result = $apiInstance->productsReviewsIdPatch($body, $id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->productsReviewsIdPatch: ', $e->getMessage(), PHP_EOL;
}
// Configure HTTP basic authorization: basicAuth
$config = Swagger\Client\Configuration::getDefaultConfiguration()
    ->setUsername('YOUR_USERNAME')
    ->setPassword('YOUR_PASSWORD');

$apiInstance = new Swagger\Client\Api\DefaultApi(
    // 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
);
$body = new \Swagger\Client\Model\ProductReview3(); // \Swagger\Client\Model\ProductReview3 | 
$id = 56; // int | Unique identifier for the resource.

try {
    $result = $apiInstance->productsReviewsIdPost($body, $id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->productsReviewsIdPost: ', $e->getMessage(), PHP_EOL;
}
// Configure HTTP basic authorization: basicAuth
$config = Swagger\Client\Configuration::getDefaultConfiguration()
    ->setUsername('YOUR_USERNAME')
    ->setPassword('YOUR_PASSWORD');

$apiInstance = new Swagger\Client\Api\DefaultApi(
    // 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
);
$body = new \Swagger\Client\Model\ProductReview2(); // \Swagger\Client\Model\ProductReview2 | 
$id = 56; // int | Unique identifier for the resource.

try {
    $result = $apiInstance->productsReviewsIdPut($body, $id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->productsReviewsIdPut: ', $e->getMessage(), PHP_EOL;
}
// Configure HTTP basic authorization: basicAuth
$config = Swagger\Client\Configuration::getDefaultConfiguration()
    ->setUsername('YOUR_USERNAME')
    ->setPassword('YOUR_PASSWORD');

$apiInstance = new Swagger\Client\Api\DefaultApi(
    // 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
);
$body = new \Swagger\Client\Model\ProductReview1(); // \Swagger\Client\Model\ProductReview1 | 

try {
    $result = $apiInstance->productsReviewsPost($body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->productsReviewsPost: ', $e->getMessage(), PHP_EOL;
}
// Configure HTTP basic authorization: basicAuth
$config = Swagger\Client\Configuration::getDefaultConfiguration()
    ->setUsername('YOUR_USERNAME')
    ->setPassword('YOUR_PASSWORD');

$apiInstance = new Swagger\Client\Api\DefaultApi(
    // 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
);
$context = "context_example"; // string | Scope under which the request is made; determines fields present in response.
$page = 56; // int | Current page of the collection.
$per_page = 56; // int | Maximum number of items to be returned in result set.
$search = "search_example"; // string | Limit results to those matching a string.
$exclude = array(56); // int[] | Ensure result set excludes specific IDs.
$include = array(56); // int[] | Limit result set to specific ids.
$offset = 56; // int | Offset the result set by a specific number of items. Applies to hierarchical taxonomies only.
$order = "order_example"; // string | Order sort attribute ascending or descending.
$orderby = "orderby_example"; // string | Sort collection by resource attribute.
$hide_empty = true; // bool | Whether to hide resources not assigned to any products.
$parent = 56; // int | Limit result set to resources assigned to a specific parent. Applies to hierarchical taxonomies only.
$product = 56; // int | Limit result set to resources assigned to a specific product.
$slug = "slug_example"; // string | Limit result set to resources with a specific slug.

try {
    $result = $apiInstance->productsShippingClassesGet($context, $page, $per_page, $search, $exclude, $include, $offset, $order, $orderby, $hide_empty, $parent, $product, $slug);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->productsShippingClassesGet: ', $e->getMessage(), PHP_EOL;
}
// Configure HTTP basic authorization: basicAuth
$config = Swagger\Client\Configuration::getDefaultConfiguration()
    ->setUsername('YOUR_USERNAME')
    ->setPassword('YOUR_PASSWORD');

$apiInstance = new Swagger\Client\Api\DefaultApi(
    // 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 = 56; // int | Unique identifier for the resource.
$force = true; // bool | Required to be true, as resource does not support trashing.

try {
    $result = $apiInstance->productsShippingClassesIdDelete($id, $force);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->productsShippingClassesIdDelete: ', $e->getMessage(), PHP_EOL;
}
// Configure HTTP basic authorization: basicAuth
$config = Swagger\Client\Configuration::getDefaultConfiguration()
    ->setUsername('YOUR_USERNAME')
    ->setPassword('YOUR_PASSWORD');

$apiInstance = new Swagger\Client\Api\DefaultApi(
    // 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 = 56; // int | Unique identifier for the resource.
$context = "context_example"; // string | Scope under which the request is made; determines fields present in response.

try {
    $result = $apiInstance->productsShippingClassesIdGet($id, $context);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->productsShippingClassesIdGet: ', $e->getMessage(), PHP_EOL;
}
// Configure HTTP basic authorization: basicAuth
$config = Swagger\Client\Configuration::getDefaultConfiguration()
    ->setUsername('YOUR_USERNAME')
    ->setPassword('YOUR_PASSWORD');

$apiInstance = new Swagger\Client\Api\DefaultApi(
    // 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
);
$body = new \Swagger\Client\Model\ProductShippingClass4(); // \Swagger\Client\Model\ProductShippingClass4 | 
$id = 56; // int | Unique identifier for the resource.

try {
    $result = $apiInstance->productsShippingClassesIdPatch($body, $id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->productsShippingClassesIdPatch: ', $e->getMessage(), PHP_EOL;
}
// Configure HTTP basic authorization: basicAuth
$config = Swagger\Client\Configuration::getDefaultConfiguration()
    ->setUsername('YOUR_USERNAME')
    ->setPassword('YOUR_PASSWORD');

$apiInstance = new Swagger\Client\Api\DefaultApi(
    // 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
);
$body = new \Swagger\Client\Model\ProductShippingClass3(); // \Swagger\Client\Model\ProductShippingClass3 | 
$id = 56; // int | Unique identifier for the resource.

try {
    $result = $apiInstance->productsShippingClassesIdPost($body, $id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->productsShippingClassesIdPost: ', $e->getMessage(), PHP_EOL;
}
// Configure HTTP basic authorization: basicAuth
$config = Swagger\Client\Configuration::getDefaultConfiguration()
    ->setUsername('YOUR_USERNAME')
    ->setPassword('YOUR_PASSWORD');

$apiInstance = new Swagger\Client\Api\DefaultApi(
    // 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
);
$body = new \Swagger\Client\Model\ProductShippingClass2(); // \Swagger\Client\Model\ProductShippingClass2 | 
$id = 56; // int | Unique identifier for the resource.

try {
    $result = $apiInstance->productsShippingClassesIdPut($body, $id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->productsShippingClassesIdPut: ', $e->getMessage(), PHP_EOL;
}
// Configure HTTP basic authorization: basicAuth
$config = Swagger\Client\Configuration::getDefaultConfiguration()
    ->setUsername('YOUR_USERNAME')
    ->setPassword('YOUR_PASSWORD');

$apiInstance = new Swagger\Client\Api\DefaultApi(
    // 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
);
$body = new \Swagger\Client\Model\ProductShippingClass1(); // \Swagger\Client\Model\ProductShippingClass1 | 

try {
    $result = $apiInstance->productsShippingClassesPost($body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->productsShippingClassesPost: ', $e->getMessage(), PHP_EOL;
}
// Configure HTTP basic authorization: basicAuth
$config = Swagger\Client\Configuration::getDefaultConfiguration()
    ->setUsername('YOUR_USERNAME')
    ->setPassword('YOUR_PASSWORD');

$apiInstance = new Swagger\Client\Api\DefaultApi(
    // 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
);
$context = "context_example"; // string | Scope under which the request is made; determines fields present in response.
$page = 56; // int | Current page of the collection.
$per_page = 56; // int | Maximum number of items to be returned in result set.
$search = "search_example"; // string | Limit results to those matching a string.
$exclude = array(56); // int[] | Ensure result set excludes specific IDs.
$include = array(56); // int[] | Limit result set to specific ids.
$offset = 56; // int | Offset the result set by a specific number of items. Applies to hierarchical taxonomies only.
$order = "order_example"; // string | Order sort attribute ascending or descending.
$orderby = "orderby_example"; // string | Sort collection by resource attribute.
$hide_empty = true; // bool | Whether to hide resources not assigned to any products.
$parent = 56; // int | Limit result set to resources assigned to a specific parent. Applies to hierarchical taxonomies only.
$product = 56; // int | Limit result set to resources assigned to a specific product.
$slug = "slug_example"; // string | Limit result set to resources with a specific slug.

try {
    $result = $apiInstance->productsTagsGet($context, $page, $per_page, $search, $exclude, $include, $offset, $order, $orderby, $hide_empty, $parent, $product, $slug);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->productsTagsGet: ', $e->getMessage(), PHP_EOL;
}
// Configure HTTP basic authorization: basicAuth
$config = Swagger\Client\Configuration::getDefaultConfiguration()
    ->setUsername('YOUR_USERNAME')
    ->setPassword('YOUR_PASSWORD');

$apiInstance = new Swagger\Client\Api\DefaultApi(
    // 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 = 56; // int | Unique identifier for the resource.
$force = true; // bool | Required to be true, as resource does not support trashing.

try {
    $result = $apiInstance->productsTagsIdDelete($id, $force);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->productsTagsIdDelete: ', $e->getMessage(), PHP_EOL;
}
// Configure HTTP basic authorization: basicAuth
$config = Swagger\Client\Configuration::getDefaultConfiguration()
    ->setUsername('YOUR_USERNAME')
    ->setPassword('YOUR_PASSWORD');

$apiInstance = new Swagger\Client\Api\DefaultApi(
    // 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 = 56; // int | Unique identifier for the resource.
$context = "context_example"; // string | Scope under which the request is made; determines fields present in response.

try {
    $result = $apiInstance->productsTagsIdGet($id, $context);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->productsTagsIdGet: ', $e->getMessage(), PHP_EOL;
}
// Configure HTTP basic authorization: basicAuth
$config = Swagger\Client\Configuration::getDefaultConfiguration()
    ->setUsername('YOUR_USERNAME')
    ->setPassword('YOUR_PASSWORD');

$apiInstance = new Swagger\Client\Api\DefaultApi(
    // 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
);
$body = new \Swagger\Client\Model\ProductTag4(); // \Swagger\Client\Model\ProductTag4 | 
$id = 56; // int | Unique identifier for the resource.

try {
    $result = $apiInstance->productsTagsIdPatch($body, $id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->productsTagsIdPatch: ', $e->getMessage(), PHP_EOL;
}
// Configure HTTP basic authorization: basicAuth
$config = Swagger\Client\Configuration::getDefaultConfiguration()
    ->setUsername('YOUR_USERNAME')
    ->setPassword('YOUR_PASSWORD');

$apiInstance = new Swagger\Client\Api\DefaultApi(
    // 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
);
$body = new \Swagger\Client\Model\ProductTag3(); // \Swagger\Client\Model\ProductTag3 | 
$id = 56; // int | Unique identifier for the resource.

try {
    $result = $apiInstance->productsTagsIdPost($body, $id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->productsTagsIdPost: ', $e->getMessage(), PHP_EOL;
}
// Configure HTTP basic authorization: basicAuth
$config = Swagger\Client\Configuration::getDefaultConfiguration()
    ->setUsername('YOUR_USERNAME')
    ->setPassword('YOUR_PASSWORD');

$apiInstance = new Swagger\Client\Api\DefaultApi(
    // 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
);
$body = new \Swagger\Client\Model\ProductTag2(); // \Swagger\Client\Model\ProductTag2 | 
$id = 56; // int | Unique identifier for the resource.

try {
    $result = $apiInstance->productsTagsIdPut($body, $id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->productsTagsIdPut: ', $e->getMessage(), PHP_EOL;
}
// Configure HTTP basic authorization: basicAuth
$config = Swagger\Client\Configuration::getDefaultConfiguration()
    ->setUsername('YOUR_USERNAME')
    ->setPassword('YOUR_PASSWORD');

$apiInstance = new Swagger\Client\Api\DefaultApi(
    // 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
);
$body = new \Swagger\Client\Model\ProductTag1(); // \Swagger\Client\Model\ProductTag1 | 

try {
    $result = $apiInstance->productsTagsPost($body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->productsTagsPost: ', $e->getMessage(), PHP_EOL;
}
// Configure HTTP basic authorization: basicAuth
$config = Swagger\Client\Configuration::getDefaultConfiguration()
    ->setUsername('YOUR_USERNAME')
    ->setPassword('YOUR_PASSWORD');

$apiInstance = new Swagger\Client\Api\DefaultApi(
    // 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
);
$context = "context_example"; // string | Scope under which the request is made; determines fields present in response.

try {
    $result = $apiInstance->reportsCouponsTotalsGet($context);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->reportsCouponsTotalsGet: ', $e->getMessage(), PHP_EOL;
}
// Configure HTTP basic authorization: basicAuth
$config = Swagger\Client\Configuration::getDefaultConfiguration()
    ->setUsername('YOUR_USERNAME')
    ->setPassword('YOUR_PASSWORD');

$apiInstance = new Swagger\Client\Api\DefaultApi(
    // 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
);
$context = "context_example"; // string | Scope under which the request is made; determines fields present in response.

try {
    $result = $apiInstance->reportsCustomersTotalsGet($context);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->reportsCustomersTotalsGet: ', $e->getMessage(), PHP_EOL;
}
// Configure HTTP basic authorization: basicAuth
$config = Swagger\Client\Configuration::getDefaultConfiguration()
    ->setUsername('YOUR_USERNAME')
    ->setPassword('YOUR_PASSWORD');

$apiInstance = new Swagger\Client\Api\DefaultApi(
    // 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
);
$context = "context_example"; // string | Scope under which the request is made; determines fields present in response.

try {
    $result = $apiInstance->reportsGet($context);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->reportsGet: ', $e->getMessage(), PHP_EOL;
}
// Configure HTTP basic authorization: basicAuth
$config = Swagger\Client\Configuration::getDefaultConfiguration()
    ->setUsername('YOUR_USERNAME')
    ->setPassword('YOUR_PASSWORD');

$apiInstance = new Swagger\Client\Api\DefaultApi(
    // 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
);
$context = "context_example"; // string | Scope under which the request is made; determines fields present in response.

try {
    $result = $apiInstance->reportsOrdersTotalsGet($context);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->reportsOrdersTotalsGet: ', $e->getMessage(), PHP_EOL;
}
// Configure HTTP basic authorization: basicAuth
$config = Swagger\Client\Configuration::getDefaultConfiguration()
    ->setUsername('YOUR_USERNAME')
    ->setPassword('YOUR_PASSWORD');

$apiInstance = new Swagger\Client\Api\DefaultApi(
    // 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
);
$context = "context_example"; // string | Scope under which the request is made; determines fields present in response.

try {
    $result = $apiInstance->reportsProductsTotalsGet($context);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->reportsProductsTotalsGet: ', $e->getMessage(), PHP_EOL;
}
// Configure HTTP basic authorization: basicAuth
$config = Swagger\Client\Configuration::getDefaultConfiguration()
    ->setUsername('YOUR_USERNAME')
    ->setPassword('YOUR_PASSWORD');

$apiInstance = new Swagger\Client\Api\DefaultApi(
    // 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
);
$context = "context_example"; // string | Scope under which the request is made; determines fields present in response.

try {
    $result = $apiInstance->reportsReviewsTotalsGet($context);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->reportsReviewsTotalsGet: ', $e->getMessage(), PHP_EOL;
}
// Configure HTTP basic authorization: basicAuth
$config = Swagger\Client\Configuration::getDefaultConfiguration()
    ->setUsername('YOUR_USERNAME')
    ->setPassword('YOUR_PASSWORD');

$apiInstance = new Swagger\Client\Api\DefaultApi(
    // 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
);
$context = "context_example"; // string | Scope under which the request is made; determines fields present in response.
$period = "period_example"; // string | Report period.
$date_min = new \DateTime("2013-10-20"); // \DateTime | Return sales for a specific start date, the date need to be in the YYYY-MM-DD format.
$date_max = new \DateTime("2013-10-20"); // \DateTime | Return sales for a specific end date, the date need to be in the YYYY-MM-DD format.

try {
    $result = $apiInstance->reportsSalesGet($context, $period, $date_min, $date_max);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->reportsSalesGet: ', $e->getMessage(), PHP_EOL;
}
// Configure HTTP basic authorization: basicAuth
$config = Swagger\Client\Configuration::getDefaultConfiguration()
    ->setUsername('YOUR_USERNAME')
    ->setPassword('YOUR_PASSWORD');

$apiInstance = new Swagger\Client\Api\DefaultApi(
    // 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
);
$context = "context_example"; // string | Scope under which the request is made; determines fields present in response.
$period = "period_example"; // string | Report period.
$date_min = new \DateTime("2013-10-20"); // \DateTime | Return sales for a specific start date, the date need to be in the YYYY-MM-DD format.
$date_max = new \DateTime("2013-10-20"); // \DateTime | Return sales for a specific end date, the date need to be in the YYYY-MM-DD format.

try {
    $result = $apiInstance->reportsTopSellersGet($context, $period, $date_min, $date_max);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->reportsTopSellersGet: ', $e->getMessage(), PHP_EOL;
}
// Configure HTTP basic authorization: basicAuth
$config = Swagger\Client\Configuration::getDefaultConfiguration()
    ->setUsername('YOUR_USERNAME')
    ->setPassword('YOUR_PASSWORD');

$apiInstance = new Swagger\Client\Api\DefaultApi(
    // 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
);
$namespace = "namespace_example"; // string | 
$context = "context_example"; // string | 

try {
    $apiInstance->rootGet($namespace, $context);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->rootGet: ', $e->getMessage(), PHP_EOL;
}
// Configure HTTP basic authorization: basicAuth
$config = Swagger\Client\Configuration::getDefaultConfiguration()
    ->setUsername('YOUR_USERNAME')
    ->setPassword('YOUR_PASSWORD');

$apiInstance = new Swagger\Client\Api\DefaultApi(
    // 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
);
$context = "context_example"; // string | Scope under which the request is made; determines fields present in response.

try {
    $result = $apiInstance->shippingMethodsGet($context);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->shippingMethodsGet: ', $e->getMessage(), PHP_EOL;
}
// Configure HTTP basic authorization: basicAuth
$config = Swagger\Client\Configuration::getDefaultConfiguration()
    ->setUsername('YOUR_USERNAME')
    ->setPassword('YOUR_PASSWORD');

$apiInstance = new Swagger\Client\Api\DefaultApi(
    // 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 = "id_example"; // string | Unique identifier for the resource.
$context = "context_example"; // string | Scope under which the request is made; determines fields present in response.

try {
    $result = $apiInstance->shippingMethodsIdGet($id, $context);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->shippingMethodsIdGet: ', $e->getMessage(), PHP_EOL;
}
// Configure HTTP basic authorization: basicAuth
$config = Swagger\Client\Configuration::getDefaultConfiguration()
    ->setUsername('YOUR_USERNAME')
    ->setPassword('YOUR_PASSWORD');

$apiInstance = new Swagger\Client\Api\DefaultApi(
    // 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->shippingZonesGet();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->shippingZonesGet: ', $e->getMessage(), PHP_EOL;
}
// Configure HTTP basic authorization: basicAuth
$config = Swagger\Client\Configuration::getDefaultConfiguration()
    ->setUsername('YOUR_USERNAME')
    ->setPassword('YOUR_PASSWORD');

$apiInstance = new Swagger\Client\Api\DefaultApi(
    // 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 = 56; // int | Unique ID for the resource.
$force = true; // bool | Whether to bypass trash and force deletion.

try {
    $result = $apiInstance->shippingZonesIdDelete($id, $force);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->shippingZonesIdDelete: ', $e->getMessage(), PHP_EOL;
}
// Configure HTTP basic authorization: basicAuth
$config = Swagger\Client\Configuration::getDefaultConfiguration()
    ->setUsername('YOUR_USERNAME')
    ->setPassword('YOUR_PASSWORD');

$apiInstance = new Swagger\Client\Api\DefaultApi(
    // 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 = 56; // int | Unique ID for the resource.

try {
    $result = $apiInstance->shippingZonesIdGet($id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->shippingZonesIdGet: ', $e->getMessage(), PHP_EOL;
}
// Configure HTTP basic authorization: basicAuth
$config = Swagger\Client\Configuration::getDefaultConfiguration()
    ->setUsername('YOUR_USERNAME')
    ->setPassword('YOUR_PASSWORD');

$apiInstance = new Swagger\Client\Api\DefaultApi(
    // 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 = 56; // int | Unique ID for the resource.

try {
    $result = $apiInstance->shippingZonesIdLocationsGet($id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->shippingZonesIdLocationsGet: ', $e->getMessage(), PHP_EOL;
}
// Configure HTTP basic authorization: basicAuth
$config = Swagger\Client\Configuration::getDefaultConfiguration()
    ->setUsername('YOUR_USERNAME')
    ->setPassword('YOUR_PASSWORD');

$apiInstance = new Swagger\Client\Api\DefaultApi(
    // 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
);
$body = new \Swagger\Client\Model\ShippingZoneLocation3(); // \Swagger\Client\Model\ShippingZoneLocation3 | 
$id = 56; // int | Unique ID for the resource.

try {
    $result = $apiInstance->shippingZonesIdLocationsPatch($body, $id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->shippingZonesIdLocationsPatch: ', $e->getMessage(), PHP_EOL;
}
// Configure HTTP basic authorization: basicAuth
$config = Swagger\Client\Configuration::getDefaultConfiguration()
    ->setUsername('YOUR_USERNAME')
    ->setPassword('YOUR_PASSWORD');

$apiInstance = new Swagger\Client\Api\DefaultApi(
    // 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
);
$body = new \Swagger\Client\Model\ShippingZoneLocation2(); // \Swagger\Client\Model\ShippingZoneLocation2 | 
$id = 56; // int | Unique ID for the resource.

try {
    $result = $apiInstance->shippingZonesIdLocationsPost($body, $id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->shippingZonesIdLocationsPost: ', $e->getMessage(), PHP_EOL;
}
// Configure HTTP basic authorization: basicAuth
$config = Swagger\Client\Configuration::getDefaultConfiguration()
    ->setUsername('YOUR_USERNAME')
    ->setPassword('YOUR_PASSWORD');

$apiInstance = new Swagger\Client\Api\DefaultApi(
    // 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
);
$body = new \Swagger\Client\Model\ShippingZoneLocation1(); // \Swagger\Client\Model\ShippingZoneLocation1 | 
$id = 56; // int | Unique ID for the resource.

try {
    $result = $apiInstance->shippingZonesIdLocationsPut($body, $id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->shippingZonesIdLocationsPut: ', $e->getMessage(), PHP_EOL;
}
// Configure HTTP basic authorization: basicAuth
$config = Swagger\Client\Configuration::getDefaultConfiguration()
    ->setUsername('YOUR_USERNAME')
    ->setPassword('YOUR_PASSWORD');

$apiInstance = new Swagger\Client\Api\DefaultApi(
    // 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
);
$body = new \Swagger\Client\Model\ShippingZone4(); // \Swagger\Client\Model\ShippingZone4 | 
$id = 56; // int | Unique ID for the resource.

try {
    $result = $apiInstance->shippingZonesIdPatch($body, $id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->shippingZonesIdPatch: ', $e->getMessage(), PHP_EOL;
}
// Configure HTTP basic authorization: basicAuth
$config = Swagger\Client\Configuration::getDefaultConfiguration()
    ->setUsername('YOUR_USERNAME')
    ->setPassword('YOUR_PASSWORD');

$apiInstance = new Swagger\Client\Api\DefaultApi(
    // 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
);
$body = new \Swagger\Client\Model\ShippingZone3(); // \Swagger\Client\Model\ShippingZone3 | 
$id = 56; // int | Unique ID for the resource.

try {
    $result = $apiInstance->shippingZonesIdPost($body, $id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->shippingZonesIdPost: ', $e->getMessage(), PHP_EOL;
}
// Configure HTTP basic authorization: basicAuth
$config = Swagger\Client\Configuration::getDefaultConfiguration()
    ->setUsername('YOUR_USERNAME')
    ->setPassword('YOUR_PASSWORD');

$apiInstance = new Swagger\Client\Api\DefaultApi(
    // 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
);
$body = new \Swagger\Client\Model\ShippingZone2(); // \Swagger\Client\Model\ShippingZone2 | 
$id = 56; // int | Unique ID for the resource.

try {
    $result = $apiInstance->shippingZonesIdPut($body, $id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->shippingZonesIdPut: ', $e->getMessage(), PHP_EOL;
}
// Configure HTTP basic authorization: basicAuth
$config = Swagger\Client\Configuration::getDefaultConfiguration()
    ->setUsername('YOUR_USERNAME')
    ->setPassword('YOUR_PASSWORD');

$apiInstance = new Swagger\Client\Api\DefaultApi(
    // 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
);
$body = new \Swagger\Client\Model\ShippingZone1(); // \Swagger\Client\Model\ShippingZone1 | 

try {
    $result = $apiInstance->shippingZonesPost($body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->shippingZonesPost: ', $e->getMessage(), PHP_EOL;
}
// Configure HTTP basic authorization: basicAuth
$config = Swagger\Client\Configuration::getDefaultConfiguration()
    ->setUsername('YOUR_USERNAME')
    ->setPassword('YOUR_PASSWORD');

$apiInstance = new Swagger\Client\Api\DefaultApi(
    // 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
);
$zone_id = 56; // int | Unique ID for the zone.

try {
    $result = $apiInstance->shippingZonesZoneIdMethodsGet($zone_id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->shippingZonesZoneIdMethodsGet: ', $e->getMessage(), PHP_EOL;
}
// Configure HTTP basic authorization: basicAuth
$config = Swagger\Client\Configuration::getDefaultConfiguration()
    ->setUsername('YOUR_USERNAME')
    ->setPassword('YOUR_PASSWORD');

$apiInstance = new Swagger\Client\Api\DefaultApi(
    // 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
);
$zone_id = 56; // int | Unique ID for the zone.
$instance_id = 56; // int | Unique ID for the instance.
$force = true; // bool | Whether to bypass trash and force deletion.

try {
    $result = $apiInstance->shippingZonesZoneIdMethodsInstanceIdDelete($zone_id, $instance_id, $force);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->shippingZonesZoneIdMethodsInstanceIdDelete: ', $e->getMessage(), PHP_EOL;
}
// Configure HTTP basic authorization: basicAuth
$config = Swagger\Client\Configuration::getDefaultConfiguration()
    ->setUsername('YOUR_USERNAME')
    ->setPassword('YOUR_PASSWORD');

$apiInstance = new Swagger\Client\Api\DefaultApi(
    // 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
);
$zone_id = 56; // int | Unique ID for the zone.
$instance_id = 56; // int | Unique ID for the instance.

try {
    $result = $apiInstance->shippingZonesZoneIdMethodsInstanceIdGet($zone_id, $instance_id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->shippingZonesZoneIdMethodsInstanceIdGet: ', $e->getMessage(), PHP_EOL;
}
// Configure HTTP basic authorization: basicAuth
$config = Swagger\Client\Configuration::getDefaultConfiguration()
    ->setUsername('YOUR_USERNAME')
    ->setPassword('YOUR_PASSWORD');

$apiInstance = new Swagger\Client\Api\DefaultApi(
    // 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
);
$body = new \Swagger\Client\Model\ShippingZoneMethod4(); // \Swagger\Client\Model\ShippingZoneMethod4 | 
$zone_id = 56; // int | Unique ID for the zone.
$instance_id = 56; // int | Unique ID for the instance.

try {
    $result = $apiInstance->shippingZonesZoneIdMethodsInstanceIdPatch($body, $zone_id, $instance_id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->shippingZonesZoneIdMethodsInstanceIdPatch: ', $e->getMessage(), PHP_EOL;
}
// Configure HTTP basic authorization: basicAuth
$config = Swagger\Client\Configuration::getDefaultConfiguration()
    ->setUsername('YOUR_USERNAME')
    ->setPassword('YOUR_PASSWORD');

$apiInstance = new Swagger\Client\Api\DefaultApi(
    // 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
);
$body = new \Swagger\Client\Model\ShippingZoneMethod3(); // \Swagger\Client\Model\ShippingZoneMethod3 | 
$zone_id = 56; // int | Unique ID for the zone.
$instance_id = 56; // int | Unique ID for the instance.

try {
    $result = $apiInstance->shippingZonesZoneIdMethodsInstanceIdPost($body, $zone_id, $instance_id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->shippingZonesZoneIdMethodsInstanceIdPost: ', $e->getMessage(), PHP_EOL;
}
// Configure HTTP basic authorization: basicAuth
$config = Swagger\Client\Configuration::getDefaultConfiguration()
    ->setUsername('YOUR_USERNAME')
    ->setPassword('YOUR_PASSWORD');

$apiInstance = new Swagger\Client\Api\DefaultApi(
    // 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
);
$body = new \Swagger\Client\Model\ShippingZoneMethod2(); // \Swagger\Client\Model\ShippingZoneMethod2 | 
$zone_id = 56; // int | Unique ID for the zone.
$instance_id = 56; // int | Unique ID for the instance.

try {
    $result = $apiInstance->shippingZonesZoneIdMethodsInstanceIdPut($body, $zone_id, $instance_id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->shippingZonesZoneIdMethodsInstanceIdPut: ', $e->getMessage(), PHP_EOL;
}
// Configure HTTP basic authorization: basicAuth
$config = Swagger\Client\Configuration::getDefaultConfiguration()
    ->setUsername('YOUR_USERNAME')
    ->setPassword('YOUR_PASSWORD');

$apiInstance = new Swagger\Client\Api\DefaultApi(
    // 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
);
$body = new \Swagger\Client\Model\ShippingZoneMethod1(); // \Swagger\Client\Model\ShippingZoneMethod1 | 
$zone_id = 56; // int | Unique ID for the zone.

try {
    $result = $apiInstance->shippingZonesZoneIdMethodsPost($body, $zone_id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->shippingZonesZoneIdMethodsPost: ', $e->getMessage(), PHP_EOL;
}
// Configure HTTP basic authorization: basicAuth
$config = Swagger\Client\Configuration::getDefaultConfiguration()
    ->setUsername('YOUR_USERNAME')
    ->setPassword('YOUR_PASSWORD');

$apiInstance = new Swagger\Client\Api\DefaultApi(
    // 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
);
$context = "context_example"; // string | Scope under which the request is made; determines fields present in response.

try {
    $result = $apiInstance->systemStatusGet($context);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->systemStatusGet: ', $e->getMessage(), PHP_EOL;
}
// Configure HTTP basic authorization: basicAuth
$config = Swagger\Client\Configuration::getDefaultConfiguration()
    ->setUsername('YOUR_USERNAME')
    ->setPassword('YOUR_PASSWORD');

$apiInstance = new Swagger\Client\Api\DefaultApi(
    // 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
);
$context = "context_example"; // string | Scope under which the request is made; determines fields present in response.

try {
    $result = $apiInstance->systemStatusToolsGet($context);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->systemStatusToolsGet: ', $e->getMessage(), PHP_EOL;
}
// Configure HTTP basic authorization: basicAuth
$config = Swagger\Client\Configuration::getDefaultConfiguration()
    ->setUsername('YOUR_USERNAME')
    ->setPassword('YOUR_PASSWORD');

$apiInstance = new Swagger\Client\Api\DefaultApi(
    // 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 = "id_example"; // string | Unique identifier for the resource.

try {
    $result = $apiInstance->systemStatusToolsIdGet($id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->systemStatusToolsIdGet: ', $e->getMessage(), PHP_EOL;
}
// Configure HTTP basic authorization: basicAuth
$config = Swagger\Client\Configuration::getDefaultConfiguration()
    ->setUsername('YOUR_USERNAME')
    ->setPassword('YOUR_PASSWORD');

$apiInstance = new Swagger\Client\Api\DefaultApi(
    // 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
);
$body = new \Swagger\Client\Model\SystemStatusTool3(); // \Swagger\Client\Model\SystemStatusTool3 | 
$id = "id_example"; // string | A unique identifier for the tool.

try {
    $result = $apiInstance->systemStatusToolsIdPatch($body, $id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->systemStatusToolsIdPatch: ', $e->getMessage(), PHP_EOL;
}
// Configure HTTP basic authorization: basicAuth
$config = Swagger\Client\Configuration::getDefaultConfiguration()
    ->setUsername('YOUR_USERNAME')
    ->setPassword('YOUR_PASSWORD');

$apiInstance = new Swagger\Client\Api\DefaultApi(
    // 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
);
$body = new \Swagger\Client\Model\SystemStatusTool2(); // \Swagger\Client\Model\SystemStatusTool2 | 
$id = "id_example"; // string | A unique identifier for the tool.

try {
    $result = $apiInstance->systemStatusToolsIdPost($body, $id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->systemStatusToolsIdPost: ', $e->getMessage(), PHP_EOL;
}
// Configure HTTP basic authorization: basicAuth
$config = Swagger\Client\Configuration::getDefaultConfiguration()
    ->setUsername('YOUR_USERNAME')
    ->setPassword('YOUR_PASSWORD');

$apiInstance = new Swagger\Client\Api\DefaultApi(
    // 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
);
$body = new \Swagger\Client\Model\SystemStatusTool1(); // \Swagger\Client\Model\SystemStatusTool1 | 
$id = "id_example"; // string | A unique identifier for the tool.

try {
    $result = $apiInstance->systemStatusToolsIdPut($body, $id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->systemStatusToolsIdPut: ', $e->getMessage(), PHP_EOL;
}
// Configure HTTP basic authorization: basicAuth
$config = Swagger\Client\Configuration::getDefaultConfiguration()
    ->setUsername('YOUR_USERNAME')
    ->setPassword('YOUR_PASSWORD');

$apiInstance = new Swagger\Client\Api\DefaultApi(
    // 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
);
$context = "context_example"; // string | Scope under which the request is made; determines fields present in response.

try {
    $result = $apiInstance->taxesClassesGet($context);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->taxesClassesGet: ', $e->getMessage(), PHP_EOL;
}
// Configure HTTP basic authorization: basicAuth
$config = Swagger\Client\Configuration::getDefaultConfiguration()
    ->setUsername('YOUR_USERNAME')
    ->setPassword('YOUR_PASSWORD');

$apiInstance = new Swagger\Client\Api\DefaultApi(
    // 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
);
$body = new \Swagger\Client\Model\TaxClass1(); // \Swagger\Client\Model\TaxClass1 | 

try {
    $result = $apiInstance->taxesClassesPost($body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->taxesClassesPost: ', $e->getMessage(), PHP_EOL;
}
// Configure HTTP basic authorization: basicAuth
$config = Swagger\Client\Configuration::getDefaultConfiguration()
    ->setUsername('YOUR_USERNAME')
    ->setPassword('YOUR_PASSWORD');

$apiInstance = new Swagger\Client\Api\DefaultApi(
    // 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
);
$slug = "slug_example"; // string | Unique slug for the resource.
$force = true; // bool | Required to be true, as resource does not support trashing.

try {
    $result = $apiInstance->taxesClassesSlugDelete($slug, $force);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->taxesClassesSlugDelete: ', $e->getMessage(), PHP_EOL;
}
// Configure HTTP basic authorization: basicAuth
$config = Swagger\Client\Configuration::getDefaultConfiguration()
    ->setUsername('YOUR_USERNAME')
    ->setPassword('YOUR_PASSWORD');

$apiInstance = new Swagger\Client\Api\DefaultApi(
    // 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
);
$slug = "slug_example"; // string | Unique slug for the resource.

try {
    $result = $apiInstance->taxesClassesSlugGet($slug);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->taxesClassesSlugGet: ', $e->getMessage(), PHP_EOL;
}
// Configure HTTP basic authorization: basicAuth
$config = Swagger\Client\Configuration::getDefaultConfiguration()
    ->setUsername('YOUR_USERNAME')
    ->setPassword('YOUR_PASSWORD');

$apiInstance = new Swagger\Client\Api\DefaultApi(
    // 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
);
$context = "context_example"; // string | Scope under which the request is made; determines fields present in response.
$page = 56; // int | Current page of the collection.
$per_page = 56; // int | Maximum number of items to be returned in result set.
$offset = 56; // int | Offset the result set by a specific number of items.
$order = "order_example"; // string | Order sort attribute ascending or descending.
$orderby = "orderby_example"; // string | Sort collection by object attribute.
$class = "class_example"; // string | Sort by tax class.

try {
    $result = $apiInstance->taxesGet($context, $page, $per_page, $offset, $order, $orderby, $class);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->taxesGet: ', $e->getMessage(), PHP_EOL;
}
// Configure HTTP basic authorization: basicAuth
$config = Swagger\Client\Configuration::getDefaultConfiguration()
    ->setUsername('YOUR_USERNAME')
    ->setPassword('YOUR_PASSWORD');

$apiInstance = new Swagger\Client\Api\DefaultApi(
    // 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 = 56; // int | Unique identifier for the resource.
$force = true; // bool | Required to be true, as resource does not support trashing.

try {
    $result = $apiInstance->taxesIdDelete($id, $force);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->taxesIdDelete: ', $e->getMessage(), PHP_EOL;
}
// Configure HTTP basic authorization: basicAuth
$config = Swagger\Client\Configuration::getDefaultConfiguration()
    ->setUsername('YOUR_USERNAME')
    ->setPassword('YOUR_PASSWORD');

$apiInstance = new Swagger\Client\Api\DefaultApi(
    // 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 = 56; // int | Unique identifier for the resource.
$context = "context_example"; // string | Scope under which the request is made; determines fields present in response.

try {
    $result = $apiInstance->taxesIdGet($id, $context);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->taxesIdGet: ', $e->getMessage(), PHP_EOL;
}
// Configure HTTP basic authorization: basicAuth
$config = Swagger\Client\Configuration::getDefaultConfiguration()
    ->setUsername('YOUR_USERNAME')
    ->setPassword('YOUR_PASSWORD');

$apiInstance = new Swagger\Client\Api\DefaultApi(
    // 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
);
$body = new \Swagger\Client\Model\Tax4(); // \Swagger\Client\Model\Tax4 | 
$id = 56; // int | Unique identifier for the resource.

try {
    $result = $apiInstance->taxesIdPatch($body, $id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->taxesIdPatch: ', $e->getMessage(), PHP_EOL;
}
// Configure HTTP basic authorization: basicAuth
$config = Swagger\Client\Configuration::getDefaultConfiguration()
    ->setUsername('YOUR_USERNAME')
    ->setPassword('YOUR_PASSWORD');

$apiInstance = new Swagger\Client\Api\DefaultApi(
    // 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
);
$body = new \Swagger\Client\Model\Tax3(); // \Swagger\Client\Model\Tax3 | 
$id = 56; // int | Unique identifier for the resource.

try {
    $result = $apiInstance->taxesIdPost($body, $id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->taxesIdPost: ', $e->getMessage(), PHP_EOL;
}
// Configure HTTP basic authorization: basicAuth
$config = Swagger\Client\Configuration::getDefaultConfiguration()
    ->setUsername('YOUR_USERNAME')
    ->setPassword('YOUR_PASSWORD');

$apiInstance = new Swagger\Client\Api\DefaultApi(
    // 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
);
$body = new \Swagger\Client\Model\Tax2(); // \Swagger\Client\Model\Tax2 | 
$id = 56; // int | Unique identifier for the resource.

try {
    $result = $apiInstance->taxesIdPut($body, $id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->taxesIdPut: ', $e->getMessage(), PHP_EOL;
}
// Configure HTTP basic authorization: basicAuth
$config = Swagger\Client\Configuration::getDefaultConfiguration()
    ->setUsername('YOUR_USERNAME')
    ->setPassword('YOUR_PASSWORD');

$apiInstance = new Swagger\Client\Api\DefaultApi(
    // 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
);
$body = new \Swagger\Client\Model\Tax1(); // \Swagger\Client\Model\Tax1 | 

try {
    $result = $apiInstance->taxesPost($body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->taxesPost: ', $e->getMessage(), PHP_EOL;
}
// Configure HTTP basic authorization: basicAuth
$config = Swagger\Client\Configuration::getDefaultConfiguration()
    ->setUsername('YOUR_USERNAME')
    ->setPassword('YOUR_PASSWORD');

$apiInstance = new Swagger\Client\Api\DefaultApi(
    // 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
);
$context = "context_example"; // string | Scope under which the request is made; determines fields present in response.
$page = 56; // int | Current page of the collection.
$per_page = 56; // int | Maximum number of items to be returned in result set.
$search = "search_example"; // string | Limit results to those matching a string.
$after = "after_example"; // string | Limit response to resources published after a given ISO8601 compliant date.
$before = "before_example"; // string | Limit response to resources published before a given ISO8601 compliant date.
$exclude = array(56); // int[] | Ensure result set excludes specific IDs.
$include = array(56); // int[] | Limit result set to specific ids.
$offset = 56; // int | Offset the result set by a specific number of items.
$order = "order_example"; // string | Order sort attribute ascending or descending.
$orderby = "orderby_example"; // string | Sort collection by object attribute.
$status = "status_example"; // string | Limit result set to webhooks assigned a specific status.

try {
    $result = $apiInstance->webhooksGet($context, $page, $per_page, $search, $after, $before, $exclude, $include, $offset, $order, $orderby, $status);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->webhooksGet: ', $e->getMessage(), PHP_EOL;
}
// Configure HTTP basic authorization: basicAuth
$config = Swagger\Client\Configuration::getDefaultConfiguration()
    ->setUsername('YOUR_USERNAME')
    ->setPassword('YOUR_PASSWORD');

$apiInstance = new Swagger\Client\Api\DefaultApi(
    // 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 = 56; // int | Unique identifier for the resource.
$force = true; // bool | Required to be true, as resource does not support trashing.

try {
    $result = $apiInstance->webhooksIdDelete($id, $force);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->webhooksIdDelete: ', $e->getMessage(), PHP_EOL;
}
// Configure HTTP basic authorization: basicAuth
$config = Swagger\Client\Configuration::getDefaultConfiguration()
    ->setUsername('YOUR_USERNAME')
    ->setPassword('YOUR_PASSWORD');

$apiInstance = new Swagger\Client\Api\DefaultApi(
    // 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 = 56; // int | Unique identifier for the resource.
$context = "context_example"; // string | Scope under which the request is made; determines fields present in response.

try {
    $result = $apiInstance->webhooksIdGet($id, $context);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->webhooksIdGet: ', $e->getMessage(), PHP_EOL;
}
// Configure HTTP basic authorization: basicAuth
$config = Swagger\Client\Configuration::getDefaultConfiguration()
    ->setUsername('YOUR_USERNAME')
    ->setPassword('YOUR_PASSWORD');

$apiInstance = new Swagger\Client\Api\DefaultApi(
    // 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
);
$body = new \Swagger\Client\Model\Webhook4(); // \Swagger\Client\Model\Webhook4 | 
$id = 56; // int | Unique identifier for the resource.

try {
    $result = $apiInstance->webhooksIdPatch($body, $id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->webhooksIdPatch: ', $e->getMessage(), PHP_EOL;
}
// Configure HTTP basic authorization: basicAuth
$config = Swagger\Client\Configuration::getDefaultConfiguration()
    ->setUsername('YOUR_USERNAME')
    ->setPassword('YOUR_PASSWORD');

$apiInstance = new Swagger\Client\Api\DefaultApi(
    // 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
);
$body = new \Swagger\Client\Model\Webhook3(); // \Swagger\Client\Model\Webhook3 | 
$id = 56; // int | Unique identifier for the resource.

try {
    $result = $apiInstance->webhooksIdPost($body, $id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->webhooksIdPost: ', $e->getMessage(), PHP_EOL;
}
// Configure HTTP basic authorization: basicAuth
$config = Swagger\Client\Configuration::getDefaultConfiguration()
    ->setUsername('YOUR_USERNAME')
    ->setPassword('YOUR_PASSWORD');

$apiInstance = new Swagger\Client\Api\DefaultApi(
    // 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
);
$body = new \Swagger\Client\Model\Webhook2(); // \Swagger\Client\Model\Webhook2 | 
$id = 56; // int | Unique identifier for the resource.

try {
    $result = $apiInstance->webhooksIdPut($body, $id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->webhooksIdPut: ', $e->getMessage(), PHP_EOL;
}
// Configure HTTP basic authorization: basicAuth
$config = Swagger\Client\Configuration::getDefaultConfiguration()
    ->setUsername('YOUR_USERNAME')
    ->setPassword('YOUR_PASSWORD');

$apiInstance = new Swagger\Client\Api\DefaultApi(
    // 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
);
$body = new \Swagger\Client\Model\Webhook1(); // \Swagger\Client\Model\Webhook1 | 

try {
    $result = $apiInstance->webhooksPost($body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->webhooksPost: ', $e->getMessage(), PHP_EOL;
}
?>

Documentation for API Endpoints

All URIs are relative to https://www.software-creation.nl/wp-json/wc/v3

Class Method HTTP request Description
DefaultApi couponsGet GET /coupons
DefaultApi couponsIdDelete DELETE /coupons/{id}
DefaultApi couponsIdGet GET /coupons/{id}
DefaultApi couponsIdPatch PATCH /coupons/{id}
DefaultApi couponsIdPost POST /coupons/{id}
DefaultApi couponsIdPut PUT /coupons/{id}
DefaultApi couponsPost POST /coupons
DefaultApi customersCustomerIdDownloadsGet GET /customers/{customer_id}/downloads
DefaultApi customersGet GET /customers
DefaultApi customersIdDelete DELETE /customers/{id}
DefaultApi customersIdGet GET /customers/{id}
DefaultApi customersIdPatch PATCH /customers/{id}
DefaultApi customersIdPost POST /customers/{id}
DefaultApi customersIdPut PUT /customers/{id}
DefaultApi customersPost POST /customers
DefaultApi dataContinentsGet GET /data/continents
DefaultApi dataContinentsLocationGet GET /data/continents/{location}
DefaultApi dataCountriesGet GET /data/countries
DefaultApi dataCountriesLocationGet GET /data/countries/{location}
DefaultApi dataCurrenciesCurrencyGet GET /data/currencies/{currency}
DefaultApi dataCurrenciesCurrentGet GET /data/currencies/current
DefaultApi dataCurrenciesGet GET /data/currencies
DefaultApi dataGet GET /data
DefaultApi ordersGet GET /orders
DefaultApi ordersIdDelete DELETE /orders/{id}
DefaultApi ordersIdGet GET /orders/{id}
DefaultApi ordersIdPatch PATCH /orders/{id}
DefaultApi ordersIdPost POST /orders/{id}
DefaultApi ordersIdPut PUT /orders/{id}
DefaultApi ordersOrderIdNotesGet GET /orders/{order_id}/notes
DefaultApi ordersOrderIdNotesIdDelete DELETE /orders/{order_id}/notes/{id}
DefaultApi ordersOrderIdNotesIdGet GET /orders/{order_id}/notes/{id}
DefaultApi ordersOrderIdNotesPost POST /orders/{order_id}/notes
DefaultApi ordersOrderIdRefundsGet GET /orders/{order_id}/refunds
DefaultApi ordersOrderIdRefundsIdDelete DELETE /orders/{order_id}/refunds/{id}
DefaultApi ordersOrderIdRefundsIdGet GET /orders/{order_id}/refunds/{id}
DefaultApi ordersOrderIdRefundsPost POST /orders/{order_id}/refunds
DefaultApi ordersPost POST /orders
DefaultApi paymentGatewaysGet GET /payment_gateways
DefaultApi paymentGatewaysIdGet GET /payment_gateways/{id}
DefaultApi paymentGatewaysIdPatch PATCH /payment_gateways/{id}
DefaultApi paymentGatewaysIdPost POST /payment_gateways/{id}
DefaultApi paymentGatewaysIdPut PUT /payment_gateways/{id}
DefaultApi productsAttributesAttributeIdTermsGet GET /products/attributes/{attribute_id}/terms
DefaultApi productsAttributesAttributeIdTermsIdDelete DELETE /products/attributes/{attribute_id}/terms/{id}
DefaultApi productsAttributesAttributeIdTermsIdGet GET /products/attributes/{attribute_id}/terms/{id}
DefaultApi productsAttributesAttributeIdTermsIdPatch PATCH /products/attributes/{attribute_id}/terms/{id}
DefaultApi productsAttributesAttributeIdTermsIdPost POST /products/attributes/{attribute_id}/terms/{id}
DefaultApi productsAttributesAttributeIdTermsIdPut PUT /products/attributes/{attribute_id}/terms/{id}
DefaultApi productsAttributesAttributeIdTermsPost POST /products/attributes/{attribute_id}/terms
DefaultApi productsAttributesGet GET /products/attributes
DefaultApi productsAttributesIdDelete DELETE /products/attributes/{id}
DefaultApi productsAttributesIdGet GET /products/attributes/{id}
DefaultApi productsAttributesIdPatch PATCH /products/attributes/{id}
DefaultApi productsAttributesIdPost POST /products/attributes/{id}
DefaultApi productsAttributesIdPut PUT /products/attributes/{id}
DefaultApi productsAttributesPost POST /products/attributes
DefaultApi productsCategoriesGet GET /products/categories
DefaultApi productsCategoriesIdDelete DELETE /products/categories/{id}
DefaultApi productsCategoriesIdGet GET /products/categories/{id}
DefaultApi productsCategoriesIdPatch PATCH /products/categories/{id}
DefaultApi productsCategoriesIdPost POST /products/categories/{id}
DefaultApi productsCategoriesIdPut PUT /products/categories/{id}
DefaultApi productsCategoriesPost POST /products/categories
DefaultApi productsGet GET /products
DefaultApi productsIdDelete DELETE /products/{id}
DefaultApi productsIdGet GET /products/{id}
DefaultApi productsIdPatch PATCH /products/{id}
DefaultApi productsIdPost POST /products/{id}
DefaultApi productsIdPut PUT /products/{id}
DefaultApi productsPost POST /products
DefaultApi productsProductIdVariationsGet GET /products/{product_id}/variations
DefaultApi productsProductIdVariationsIdDelete DELETE /products/{product_id}/variations/{id}
DefaultApi productsProductIdVariationsIdGet GET /products/{product_id}/variations/{id}
DefaultApi productsProductIdVariationsIdPatch PATCH /products/{product_id}/variations/{id}
DefaultApi productsProductIdVariationsIdPost POST /products/{product_id}/variations/{id}
DefaultApi productsProductIdVariationsIdPut PUT /products/{product_id}/variations/{id}
DefaultApi productsProductIdVariationsPost POST /products/{product_id}/variations
DefaultApi productsReviewsGet GET /products/reviews
DefaultApi productsReviewsIdDelete DELETE /products/reviews/{id}
DefaultApi productsReviewsIdGet GET /products/reviews/{id}
DefaultApi productsReviewsIdPatch PATCH /products/reviews/{id}
DefaultApi productsReviewsIdPost POST /products/reviews/{id}
DefaultApi productsReviewsIdPut PUT /products/reviews/{id}
DefaultApi productsReviewsPost POST /products/reviews
DefaultApi productsShippingClassesGet GET /products/shipping_classes
DefaultApi productsShippingClassesIdDelete DELETE /products/shipping_classes/{id}
DefaultApi productsShippingClassesIdGet GET /products/shipping_classes/{id}
DefaultApi productsShippingClassesIdPatch PATCH /products/shipping_classes/{id}
DefaultApi productsShippingClassesIdPost POST /products/shipping_classes/{id}
DefaultApi productsShippingClassesIdPut PUT /products/shipping_classes/{id}
DefaultApi productsShippingClassesPost POST /products/shipping_classes
DefaultApi productsTagsGet GET /products/tags
DefaultApi productsTagsIdDelete DELETE /products/tags/{id}
DefaultApi productsTagsIdGet GET /products/tags/{id}
DefaultApi productsTagsIdPatch PATCH /products/tags/{id}
DefaultApi productsTagsIdPost POST /products/tags/{id}
DefaultApi productsTagsIdPut PUT /products/tags/{id}
DefaultApi productsTagsPost POST /products/tags
DefaultApi reportsCouponsTotalsGet GET /reports/coupons/totals
DefaultApi reportsCustomersTotalsGet GET /reports/customers/totals
DefaultApi reportsGet GET /reports
DefaultApi reportsOrdersTotalsGet GET /reports/orders/totals
DefaultApi reportsProductsTotalsGet GET /reports/products/totals
DefaultApi reportsReviewsTotalsGet GET /reports/reviews/totals
DefaultApi reportsSalesGet GET /reports/sales
DefaultApi reportsTopSellersGet GET /reports/top_sellers
DefaultApi rootGet GET /
DefaultApi shippingMethodsGet GET /shipping_methods
DefaultApi shippingMethodsIdGet GET /shipping_methods/{id}
DefaultApi shippingZonesGet GET /shipping/zones
DefaultApi shippingZonesIdDelete DELETE /shipping/zones/{id}
DefaultApi shippingZonesIdGet GET /shipping/zones/{id}
DefaultApi shippingZonesIdLocationsGet GET /shipping/zones/{id}/locations
DefaultApi shippingZonesIdLocationsPatch PATCH /shipping/zones/{id}/locations
DefaultApi shippingZonesIdLocationsPost POST /shipping/zones/{id}/locations
DefaultApi shippingZonesIdLocationsPut PUT /shipping/zones/{id}/locations
DefaultApi shippingZonesIdPatch PATCH /shipping/zones/{id}
DefaultApi shippingZonesIdPost POST /shipping/zones/{id}
DefaultApi shippingZonesIdPut PUT /shipping/zones/{id}
DefaultApi shippingZonesPost POST /shipping/zones
DefaultApi shippingZonesZoneIdMethodsGet GET /shipping/zones/{zone_id}/methods
DefaultApi shippingZonesZoneIdMethodsInstanceIdDelete DELETE /shipping/zones/{zone_id}/methods/{instance_id}
DefaultApi shippingZonesZoneIdMethodsInstanceIdGet GET /shipping/zones/{zone_id}/methods/{instance_id}
DefaultApi shippingZonesZoneIdMethodsInstanceIdPatch PATCH /shipping/zones/{zone_id}/methods/{instance_id}
DefaultApi shippingZonesZoneIdMethodsInstanceIdPost POST /shipping/zones/{zone_id}/methods/{instance_id}
DefaultApi shippingZonesZoneIdMethodsInstanceIdPut PUT /shipping/zones/{zone_id}/methods/{instance_id}
DefaultApi shippingZonesZoneIdMethodsPost POST /shipping/zones/{zone_id}/methods
DefaultApi systemStatusGet GET /system_status
DefaultApi systemStatusToolsGet GET /system_status/tools
DefaultApi systemStatusToolsIdGet GET /system_status/tools/{id}
DefaultApi systemStatusToolsIdPatch PATCH /system_status/tools/{id}
DefaultApi systemStatusToolsIdPost POST /system_status/tools/{id}
DefaultApi systemStatusToolsIdPut PUT /system_status/tools/{id}
DefaultApi taxesClassesGet GET /taxes/classes
DefaultApi taxesClassesPost POST /taxes/classes
DefaultApi taxesClassesSlugDelete DELETE /taxes/classes/{slug}
DefaultApi taxesClassesSlugGet GET /taxes/classes/{slug}
DefaultApi taxesGet GET /taxes
DefaultApi taxesIdDelete DELETE /taxes/{id}
DefaultApi taxesIdGet GET /taxes/{id}
DefaultApi taxesIdPatch PATCH /taxes/{id}
DefaultApi taxesIdPost POST /taxes/{id}
DefaultApi taxesIdPut PUT /taxes/{id}
DefaultApi taxesPost POST /taxes
DefaultApi webhooksGet GET /webhooks
DefaultApi webhooksIdDelete DELETE /webhooks/{id}
DefaultApi webhooksIdGet GET /webhooks/{id}
DefaultApi webhooksIdPatch PATCH /webhooks/{id}
DefaultApi webhooksIdPost POST /webhooks/{id}
DefaultApi webhooksIdPut PUT /webhooks/{id}
DefaultApi webhooksPost POST /webhooks

Documentation For Models

Documentation For Authorization

basicAuth

  • Type: HTTP basic authentication

Author

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published