olsgreen/ivendi-quoteware-api

iVendi Quoteware API Client

1.0.2 2022-05-08 11:36 UTC

This package is auto-updated.

Last update: 2024-12-08 17:39:45 UTC


README

Latest Version Software License

This package provides a means easily of interacting with the iVendi Quoteware API in PHP.

Visit iVendi's documentation site at: https://documentation.ivendi.com/docs/ before getting started.

Installation

Add the client to your project using composer.

composer require olsgreen/ivendi-quoteware-api

Examples

Performing a basic quote request

    $ivendi = new \Olsgreen\IVendi\Quoteware\Client([
        'username' => 'www.ivendimotors.com',
        'quotee_uid' => '268E8202-338E-4B26-A6FE-74BCDAB0A357',
    ]);

    $response = $ivendi->quoteware()->request([
        'cashPrice' => 20000,
        'cashDeposit' => 2000,
        'annualDistance' => 10000,
        'term' => 48,
        'currentOdometerReading' => 12345,
        'identity' => 'FV10 XYB',
        'creditTier' => CreditTiers::EXCELLENT,
        'entityType' => EntityTypes::PERSONAL,
    ]);

    // {
    //     "hasQuoteResults": true,
    //     "QuotedResultsUID": "aeec6f6f-6d1c-4f1c-8380-e50e0b3554eb",
    //     "QuoteResults": [
    //        ...
    //     ]
    //     @see https://documentation.ivendi.com/docs/ExampleQuotewareResponse
    // }

License

See attached license file

Contributions

Pull requests welcome 🙂