WebTolk Joomla Extensions
113 Extensions
12 Categories
587 Versions released
920737 Downloads
CheckEntity in WT CDEK for Joomla covers receipts by order identifier or date. This reference explains its purpose, parameters and PHP examples for Joomla extensions.
CheckEntity retrieves receipt information by order identifier or date.
Access the entity through the Cdek facade:
$check = $cdek->check();
get()public function get(array $request_options = []): array
GET /v2/checkRetrieves receipt information.
Supply at least one of order_uuid, cdek_number, date. If supplied, order_uuid is validated as a UUID.
Receipt data or a library/API error.
<?php
declare(strict_types=1);
use Webtolk\Cdekapi\Cdek;
defined('_JEXEC') or die;
$cdek = new Cdek();
$result = $cdek->check()->get([
'cdek_number' => '1234567890',
]);