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 |
\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
<?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";
}
?>
Name | Type | Description | Notes |
---|---|---|---|
pricingRequest | \BrightWrite\Model\PricingRequestCarRental | Pricing request should contain information about quoted policy and related booking information |
\BrightWrite\Model\PricingResponse
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
brightwriteControllerQuoteConversionAction($conversion)
Pricing request for car rental business
Takes in information about insurance quote conversion along with some other info
<?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";
}
?>
Name | Type | Description | Notes |
---|---|---|---|
conversion | \BrightWrite\Model\QuoteConversion | QuoteConversion |
void (empty response body)
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]