All URIs are relative to https://api.allegro.pl.
Method | HTTP request | Description |
---|---|---|
createShippingRatesSetUsingPOST() | POST /sale/shipping-rates | Create a new shipping rates set |
getListOfDeliveryMethodsUsingGET() | GET /sale/delivery-methods | Get the list of delivery methods |
getListOfShippingRatestUsingGET() | GET /sale/shipping-rates | Get the user's shipping rates |
getSaleDeliverySettings() | GET /sale/delivery-settings | Get the user's delivery settings |
getShippingRatesSetUsingGET() | GET /sale/shipping-rates/{id} | Get the details of a shipping rates set |
modifyShippingRatesSetUsingPUT() | PUT /sale/shipping-rates/{id} | Edit a user's shipping rates set |
putSaleDeliverySettings() | PUT /sale/delivery-settings | Modify the user's delivery settings |
createShippingRatesSetUsingPOST($shipping_rates_set): \OpenAPI\AllegroSdk\Model\ShippingRatesSet
Create a new shipping rates set
Use this resource to create a new seller's shipping rates set. Read more: <a href="../../news/nowe-zasoby-zarzadzaj-cennikami-dostawy-aMDnG7zamSX" target="_blank">PL / <a href="../../news/new-resources-manage-shipping-price-lists-0A2lDe6jGSB" target="_blank">EN.
<?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\DeliveryApi(
// 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
);
$shipping_rates_set = new \OpenAPI\AllegroSdk\Model\ShippingRatesSet(); // \OpenAPI\AllegroSdk\Model\ShippingRatesSet | Shipping rates set
try {
$result = $apiInstance->createShippingRatesSetUsingPOST($shipping_rates_set);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DeliveryApi->createShippingRatesSetUsingPOST: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
shipping_rates_set | \OpenAPI\AllegroSdk\Model\ShippingRatesSet | Shipping rates set |
\OpenAPI\AllegroSdk\Model\ShippingRatesSet
- Content-Type:
application/vnd.allegro.public.v1+json
- Accept:
application/vnd.allegro.public.v1+json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
getListOfDeliveryMethodsUsingGET(): \OpenAPI\AllegroSdk\Model\InlineResponse2001
Get the list of delivery methods
Use this resource to get a list of all delivery methods currently available on the platform, as well as those that have already been discontinued. Read more: <a href="../../news/nowe-zasoby-zarzadzaj-cennikami-dostawy-aMDnG7zamSX" target="_blank">PL / <a href="../../news/new-resources-manage-shipping-price-lists-0A2lDe6jGSB" target="_blank">EN.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure OAuth2 access token for authorization: bearer-token-for-application
$config = OpenAPI\AllegroSdk\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
// Configure OAuth2 access token for authorization: bearer-token-for-user
$config = OpenAPI\AllegroSdk\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new OpenAPI\AllegroSdk\Api\DeliveryApi(
// 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->getListOfDeliveryMethodsUsingGET();
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DeliveryApi->getListOfDeliveryMethodsUsingGET: ', $e->getMessage(), PHP_EOL;
}
This endpoint does not need any parameter.
\OpenAPI\AllegroSdk\Model\InlineResponse2001
bearer-token-for-application, bearer-token-for-user
- 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]
getListOfShippingRatestUsingGET(): \OpenAPI\AllegroSdk\Model\InlineResponse200
Get the user's shipping rates
Use this resource to get a list of seller's shipping rates. Read more: <a href="../../news/nowe-zasoby-zarzadzaj-cennikami-dostawy-aMDnG7zamSX" target="_blank">PL / <a href="../../news/new-resources-manage-shipping-price-lists-0A2lDe6jGSB" target="_blank">EN.
<?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\DeliveryApi(
// 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->getListOfShippingRatestUsingGET();
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DeliveryApi->getListOfShippingRatestUsingGET: ', $e->getMessage(), PHP_EOL;
}
This endpoint does not need any parameter.
\OpenAPI\AllegroSdk\Model\InlineResponse200
- 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]
getSaleDeliverySettings(): \OpenAPI\AllegroSdk\Model\DeliverySettingsResponse
Get the user's delivery settings
Use this resource to get the delivery settings declared by the seller. Read more: <a href="../../tutorials/jak-zarzadzac-kontem-danymi-uzytkownika-ZM9YAKgPgi2#jak-pobrac-ustawienia-dostawy" target="_blank">PL / <a href="../../tutorials/account-and-user-data-management-jn9vBjqjnsw#how-to-get-delivery-settings" target="_blank">EN.
<?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\DeliveryApi(
// 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->getSaleDeliverySettings();
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DeliveryApi->getSaleDeliverySettings: ', $e->getMessage(), PHP_EOL;
}
This endpoint does not need any parameter.
\OpenAPI\AllegroSdk\Model\DeliverySettingsResponse
- 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]
getShippingRatesSetUsingGET($id): \OpenAPI\AllegroSdk\Model\ShippingRatesSet
Get the details of a shipping rates set
Use this resource to get details of the given shipping rates set. Read more: <a href="../../news/nowe-zasoby-zarzadzaj-cennikami-dostawy-aMDnG7zamSX" target="_blank">PL / <a href="../../news/new-resources-manage-shipping-price-lists-0A2lDe6jGSB" target="_blank">EN.
<?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\DeliveryApi(
// 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 | Shipping rates set identifier.
try {
$result = $apiInstance->getShippingRatesSetUsingGET($id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DeliveryApi->getShippingRatesSetUsingGET: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
id | string | Shipping rates set identifier. |
\OpenAPI\AllegroSdk\Model\ShippingRatesSet
- 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]
modifyShippingRatesSetUsingPUT($id, $shipping_rates_set): \OpenAPI\AllegroSdk\Model\ShippingRatesSet
Edit a user's shipping rates set
Use this resource to edit a new seller's shipping rates set. Read more: <a href="../../news/nowe-zasoby-zarzadzaj-cennikami-dostawy-aMDnG7zamSX" target="_blank">PL / <a href="../../news/new-resources-manage-shipping-price-lists-0A2lDe6jGSB" target="_blank">EN.
<?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\DeliveryApi(
// 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 | Shipping rates set identifier.
$shipping_rates_set = new \OpenAPI\AllegroSdk\Model\ShippingRatesSet(); // \OpenAPI\AllegroSdk\Model\ShippingRatesSet | Shipping rates set
try {
$result = $apiInstance->modifyShippingRatesSetUsingPUT($id, $shipping_rates_set);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DeliveryApi->modifyShippingRatesSetUsingPUT: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
id | string | Shipping rates set identifier. | |
shipping_rates_set | \OpenAPI\AllegroSdk\Model\ShippingRatesSet | Shipping rates set |
\OpenAPI\AllegroSdk\Model\ShippingRatesSet
- Content-Type:
application/vnd.allegro.public.v1+json
- Accept:
application/vnd.allegro.public.v1+json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
putSaleDeliverySettings($delivery_settings_request): \OpenAPI\AllegroSdk\Model\DeliverySettingsResponse
Modify the user's delivery settings
Use this resource to modify the delivery settings declared by the seller. Read more: <a href="../../tutorials/jak-zarzadzac-kontem-danymi-uzytkownika-ZM9YAKgPgi2#jak-edytowac-ustawienia-dostawy" target="_blank">PL / <a href="../../tutorials/account-and-user-data-management-jn9vBjqjnsw#how-to-edit-delivery-settings" target="_blank">EN.
<?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\DeliveryApi(
// 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
);
$delivery_settings_request = new \OpenAPI\AllegroSdk\Model\DeliverySettingsRequest(); // \OpenAPI\AllegroSdk\Model\DeliverySettingsRequest | Delivery settings set
try {
$result = $apiInstance->putSaleDeliverySettings($delivery_settings_request);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DeliveryApi->putSaleDeliverySettings: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
delivery_settings_request | \OpenAPI\AllegroSdk\Model\DeliverySettingsRequest | Delivery settings set |
\OpenAPI\AllegroSdk\Model\DeliverySettingsResponse
- Content-Type:
application/vnd.allegro.public.v1+json
- Accept:
application/vnd.allegro.public.v1+json
[Back to top] [Back to API list] [Back to Model list] [Back to README]