Carfax

Updating the Carfax

POST Request: https://api.autoznetwork.com/v1/inventory/{inventory}/carfax

CURL
AUTOZNETWORK_TOKEN="your API token"
AUTOZNETWORK_ORG_ID="your organization id"

curl -X POST https://api.autoznetwork.com/v1/inventory/{inventory}/carfax \
  -H "Authorization: Bearer $AUTOZNETWORK_TOKEN" \
  -H "X-AutozNetwork-Organization-Id: $AUTOZNETWORK_ORG_ID" \
  -H 'Accept: application/json'
PHP
<?php 
$apiToken = 'ABCD12345 ...';
$organizationId = '1234';

$autoZnetwork = new AutozNetwork($apiToken);

$historyReport = $autoznetwork
              ->withOrganization($organizationId)
              ->historyReport('carfax')
              ->update();

print($historyReport)