WebTolk Joomla Extensions
113 Extensions
12 Categories
587 Versions released
920740 Downloads
InternationalEntity in WT CDEK for Joomla covers international shipment restrictions. This reference explains its purpose, parameters and PHP examples for Joomla extensions.
InternationalEntity checks restrictions for an international route, tariff and packages before creating an order.
Access the entity through the Cdek facade:
$international = $cdek->international();
checkPackagesRestrictions()public function checkPackagesRestrictions(array $request_options = []): array
POST /v2/international/package/restrictionsChecks international shipment restrictions.
A nonempty options array; typically route, tariff and package characteristics. Full validation belongs to the CDEK API.
API response describing whether restrictions apply and any reported problem.
<?php
declare(strict_types=1);
use Webtolk\Cdekapi\Cdek;
defined('_JEXEC') or die;
$cdek = new Cdek();
$result = $cdek->international()->checkPackagesRestrictions([
'tariff_code' => 7,
'from_location' => ['country_code' => 'RU'],
'to_location' => ['country_code' => 'KZ'],
'packages' => [
['weight' => 500],
],
]);