Skip to content

Latest commit

 

History

History
109 lines (73 loc) · 4.1 KB

PartnerApi.md

File metadata and controls

109 lines (73 loc) · 4.1 KB

BrightWrite\PartnerApi

All URIs are relative to https://api.brightwrite.com/api/v1

Method HTTP request Description
brightwriteControllerPricingRequestCarRentalAction POST /pricingRequestCarRental Pricing request for a car rental policy
brightwriteControllerQuoteConversionAction PUT /quoteConversion Pricing request for car rental business

brightwriteControllerPricingRequestCarRentalAction

\BrightWrite\Model\PricingResponse brightwriteControllerPricingRequestCarRentalAction($pricingRequest)

Pricing request for a car rental policy

Accepts information about quoted policy and related booking information and returns price recommendation for a given policy

Example

<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: apiKeyHeader
BrightWrite\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. BEARER) for API key, if needed
// BrightWrite\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'BEARER');

$api_instance = new BrightWrite\Api\PartnerApi();
$pricingRequest = new \BrightWrite\Model\PricingRequestCarRental(); // \BrightWrite\Model\PricingRequestCarRental | Pricing request should contain information about quoted policy and related booking information

try { 
    $result = $api_instance->brightwriteControllerPricingRequestCarRentalAction($pricingRequest);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling PartnerApi->brightwriteControllerPricingRequestCarRentalAction: ', $e->getMessage(), "\n";
}
?>

Parameters

Name Type Description Notes
pricingRequest \BrightWrite\Model\PricingRequestCarRental Pricing request should contain information about quoted policy and related booking information

Return type

\BrightWrite\Model\PricingResponse

Authorization

apiKeyHeader

HTTP reuqest headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

brightwriteControllerQuoteConversionAction

brightwriteControllerQuoteConversionAction($conversion)

Pricing request for car rental business

Takes in information about insurance quote conversion along with some other info

Example

<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: apiKeyHeader
BrightWrite\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. BEARER) for API key, if needed
// BrightWrite\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'BEARER');

$api_instance = new BrightWrite\Api\PartnerApi();
$conversion = new \BrightWrite\Model\QuoteConversion(); // \BrightWrite\Model\QuoteConversion | QuoteConversion

try { 
    $api_instance->brightwriteControllerQuoteConversionAction($conversion);
} catch (Exception $e) {
    echo 'Exception when calling PartnerApi->brightwriteControllerQuoteConversionAction: ', $e->getMessage(), "\n";
}
?>

Parameters

Name Type Description Notes
conversion \BrightWrite\Model\QuoteConversion QuoteConversion

Return type

void (empty response body)

Authorization

apiKeyHeader

HTTP reuqest headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]