CheckEntity: CDEK receipts with PHP API in Joomla

WT CDEK library - Documentation
Category: Libraries

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()

Signature

public function get(array $request_options = []): array

REST API

  • GET /v2/check

Purpose

Retrieves receipt information.

Parameters

Supply at least one of order_uuid, cdek_number, date. If supplied, order_uuid is validated as a UUID.

Returns

Receipt data or a library/API error.

Example

<?php

declare(strict_types=1);

use Webtolk\Cdekapi\Cdek;

defined('_JEXEC') or die;

$cdek = new Cdek();

$result = $cdek->check()->get([
    'cdek_number' => '1234567890',
]);

Overview and getting started

WT CDEK 1.4.0 source code on GitHub

WebTolk Joomla Extensions

113 Extensions
12 Categories
587 Versions released
920737 Downloads