Skip to content

Motorcycle Use (E13) ​

The E13 form is the employer declaration that employees use a moped or motorcycle while carrying out their work (e.g. couriers and delivery staff). One declaration can list several vehicles.

Overview ​

PropertyValue
Document ClassMotorcycleUse
Action CodeWebE13
Declaration ModelMotorcycleUseDeclaration
Vehicle ModelMotorcycleVehicle
Use CaseDeclaring mopeds/motorcycles used by employees for work

Basic Usage ​

php
use OxygenSuite\OxygenErgani\Enums\VehicleOwner;
use OxygenSuite\OxygenErgani\Http\Documents\Motorcycle\MotorcycleUse;
use OxygenSuite\OxygenErgani\Models\Motorcycle\MotorcycleUseDeclaration;
use OxygenSuite\OxygenErgani\Models\Motorcycle\MotorcycleVehicle;

$vehicle = MotorcycleVehicle::make()
    ->setLicencePlate('ΥΡΟ4534')
    ->setOwner(VehicleOwner::EMPLOYEE)
    ->setAfm('888888888')
    ->setLastName('ΠΑΠΑΔΟΠΟΥΛΟΣ')
    ->setFirstName('ΙΩΑΝΝΗΣ')
    ->setFatherName('ΓΕΩΡΓΙΟΣ')
    ->setStartDate('15/09/2025')
    ->setStartTime('08:00')
    ->setEndDate('')
    ->setNotes('');

$declaration = MotorcycleUseDeclaration::make()
    ->setBranchCode(0)
    ->setLaborInspectionCode('24010')
    ->setDypaServiceCode('101213')
    ->setComments('')
    ->setLegalRepresentativeAfm('123456789')
    ->addVehicle($vehicle);

$response = (new MotorcycleUse())->handle($declaration);

Via Ergani Facade ​

php
use OxygenSuite\OxygenErgani\Ergani;

$ergani = new Ergani($accessToken);
$responses = $ergani->sendMotorcycleUse($declaration);

Field Reference ​

Declaration Fields (MotorcycleUseDeclaration) ​

MethodAPI FieldTypeRequiredDescription
setBranchCode()f_aa_pararthmatosint|stringYesBranch sequence number (0 for HQ)
setLaborInspectionCode()f_ypiresia_sepestringYesLabour inspectorate service code (5 digits)
setDypaServiceCode()f_ypiresia_oaedstringYesDYPA service code (6 digits)
setComments()f_commentsstringYesComments (max 200 characters, may be empty)
setLegalRepresentativeAfm()f_afm_proswpoystringYesLegal representative AFM (9 digits)
setVehicles() / addVehicle()MixanesMotorcycleVehicle[]YesAt least one vehicle

Vehicle Fields (MotorcycleVehicle) ​

MethodAPI FieldTypeRequiredDescription
setLicencePlate()f_licence_platestringYesLicence plate number
setOwner()f_is_ownerVehicleOwner|string|intYesWho owns/holds the vehicle (0=Employer, 1=Employee)
setAfm()f_afm_ergazomenoustringYesEmployee AFM (9 digits, may be empty)
setLastName()f_eponimo_ergazomenoustringYesEmployee last name (max 100)
setFirstName()f_onoma_ergazomenoustringYesEmployee first name (max 50)
setFatherName()f_onoma_paterastringYesEmployee father's name (max 50)
setStartDate()f_date_enarxis_xrisisDateTime|stringYesVehicle use start date (DD/MM/YYYY)
setStartTime()f_hour_enarxis_xrisisstringYesVehicle use start time (HH:MM)
setEndDate()f_date_lixis_xrisisDateTime|stringYesVehicle use end date (DD/MM/YYYY, may be empty)
setNotes()f_paratiriseisstringYesNotes (max 200, may be empty)

Empty values

All vehicle fields must be present in the payload. Send an empty string for optional values such as the end date or notes.

VehicleOwner Enum ​

CaseValueEnglishGreek
EMPLOYER0EmployerΕργοδότης
EMPLOYEE1EmployeeΕργαζόμενος

Managing Vehicles ​

php
// Add one at a time
$declaration->addVehicle($vehicle1);
$declaration->addVehicle($vehicle2);

// Or set all at once
$declaration->setVehicles([$vehicle1, $vehicle2]);

// Access vehicles
$vehicles = $declaration->getVehicles();
$first = $declaration->getVehicle(0);

Response Handling ​

php
$response = (new MotorcycleUse())->handle($declaration);

foreach ($response as $result) {
    echo $result->id;              // Unique submission ID
    echo $result->protocol;        // Protocol number
    echo $result->submissionDate->format('d/m/Y H:i:s');
}

Retrieve PDF ​

php
$pdfBase64 = (new MotorcycleUse())->pdf(
    $response[0]->protocol,
    $response[0]->submissionDate
);

file_put_contents('motorcycle-use.pdf', base64_decode($pdfBase64));

Testing with Factories ​

php
use OxygenSuite\OxygenErgani\Models\Motorcycle\MotorcycleUseDeclaration;
use OxygenSuite\OxygenErgani\Models\Motorcycle\MotorcycleVehicle;

$declaration = MotorcycleUseDeclaration::factory()->make();

// With state methods
$declaration = MotorcycleUseDeclaration::factory()
    ->forBranch(2)
    ->withVehicles(3)
    ->make();

// Vehicle factory
$vehicle = MotorcycleVehicle::factory()
    ->employerOwned()
    ->endingOn('31/12/2026')
    ->make();

See Also ​

Released under the MIT License.