Skip to content

Latest commit

 

History

History
68 lines (45 loc) · 2.41 KB

TaxSettingsApi.md

File metadata and controls

68 lines (45 loc) · 2.41 KB

OpenAPI\AllegroSdk\TaxSettingsApi

All URIs are relative to https://api.allegro.pl.

Method HTTP request Description
getTaxSettingsForCategory() GET /sale/tax-settings Get all tax settings for category

getTaxSettingsForCategory()

getTaxSettingsForCategory($category_id): \OpenAPI\AllegroSdk\Model\TaxSettings

Get all tax settings for category

Use this resource to receive tax settings for given category. Based on received settings you may set VAT tax settings for your offers. Read more: <a href="../../tutorials/jak-jednym-requestem-wystawic-oferte-powiazana-z-produktem-D7Kj9gw4xFA#opcje-faktury-i-stawki-vat" target="_blank">PL / <a href="../../tutorials/list-offer-assigned-product-one-request-D7Kj9M71Bu6#invoice-and-vat-settings" target="_blank">EN.

Example

<?php
require_once(__DIR__ . '/vendor/autoload.php');


// Configure OAuth2 access token for authorization: bearer-token-for-user
$config = OpenAPI\AllegroSdk\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');


$apiInstance = new OpenAPI\AllegroSdk\Api\TaxSettingsApi(
    // 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
);
$category_id = 316194; // string | An identifier of a category for which all available tax settings will be returned.

try {
    $result = $apiInstance->getTaxSettingsForCategory($category_id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling TaxSettingsApi->getTaxSettingsForCategory: ', $e->getMessage(), PHP_EOL;
}

Parameters

Name Type Description Notes
category_id string An identifier of a category for which all available tax settings will be returned.

Return type

\OpenAPI\AllegroSdk\Model\TaxSettings

Authorization

bearer-token-for-user

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/vnd.allegro.public.v1+json

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