> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.duuo.cooperators.ca/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.duuo.cooperators.ca/_mcp/server.

# Data Transfer API

POST {{prefillBaseUrl}}/fbu/uapi/modules/69785bc1caef8ab4925c2ccb/api/v1/pre-fill
Content-Type: application/json

Reference: https://docs.duuo.cooperators.ca/prefill-api-guide/submit-prefill-data/data-transfer-api

## Authentication

- `Authorization` header (bearer token, required) — Bearer authentication of the form `Bearer <token>`, where token is your auth token.

## Request

### Headers

- `Idempotency-Key` (string, required) — GUID. Unique per request. Manually set value if testing duplicate retry behavior.
- `X-Correlation-Id` (string, required) — GUID. Unique identifier used for tracing the request across systems.

### Body (application/json)

This endpoint expects an object.

- `isPrefill` (boolean, required)
- `referrer` (string, required) — Referrer website URL
- `product` (enum, required) — "a" for auto, "h" for habitational
  - Allowed values: `a`, `h`
- `language` (enum, required) — "en" for English, "fr" for French
  - Allowed values: `en`, `fr`
- `firstName` (string, optional)
- `lastName` (string, optional)
- `preferredName` (string, optional)
- `dateOfBirth` (date, optional) — Date in the YYYY-MM-DD format
- `phone` (string, optional)
- `email` (string, optional)
- `address` (FbuUapiModules69785Bc1Caef8Ab4925C2CcbApiV1PreFillPostRequestBodyContentApplicationJsonSchemaAddress, optional)
- `partner` (string, optional) — Partner name with Duuo by Cooperators
- `vehicles` (list of FbuUapiModules69785Bc1Caef8Ab4925C2CcbApiV1PreFillPostRequestBodyContentApplicationJsonSchemaVehiclesItems, optional)

## Response

### 200

200 - Success

- `data` (PostFbuUapiModules69785Bc1Caef8Ab4925C2CcbApiV1PreFillResponse200ApplicationJsonData, required)
- `metadata` (PostFbuUapiModules69785Bc1Caef8Ab4925C2CcbApiV1PreFillResponse200ApplicationJsonMetadata, required)
- `validationErrors` (list of any, required)
- `invalidNavigationPanels` (list of any, required)

## Errors

### 400 Bad Request Error

400 - Bad Token

- `any`

### 401 Unauthorized Error

401 - Invalid Partner

- `data` (PostFbuUapiModules69785Bc1Caef8Ab4925C2CcbApiV1PreFillResponse401ApplicationJsonData, optional)
- `metadata` (PostFbuUapiModules69785Bc1Caef8Ab4925C2CcbApiV1PreFillResponse401ApplicationJsonMetadata, optional)
- `validationErrors` (list of any, optional)
- `invalidNavigationPanels` (list of any, optional)

### 403 Forbidden Error

403 - Missing Credentials

- `any`

### 404 Not Found Error

404 - Not Found

- `data` (PostFbuUapiModules69785Bc1Caef8Ab4925C2CcbApiV1PreFillResponse404ApplicationJsonData, optional)
- `metadata` (PostFbuUapiModules69785Bc1Caef8Ab4925C2CcbApiV1PreFillResponse404ApplicationJsonMetadata, optional)
- `validationErrors` (list of any, optional)
- `invalidNavigationPanels` (list of any, optional)

### 405 Method Not Allowed Error

405 - Invalid Method

- `data` (PostFbuUapiModules69785Bc1Caef8Ab4925C2CcbApiV1PreFillResponse405ApplicationJsonData, optional)
- `metadata` (PostFbuUapiModules69785Bc1Caef8Ab4925C2CcbApiV1PreFillResponse405ApplicationJsonMetadata, optional)
- `validationErrors` (list of any, optional)
- `invalidNavigationPanels` (list of any, optional)

### 409 Conflict Error

409 - Conflict

- `TODO` (string, optional)

### 412 Precondition Failed Error

412 - Precondition Failed

- `TODO` (string, optional)

### 422 Unprocessable Entity Error

422 - Unprocessable Entity

- `data` (PostFbuUapiModules69785Bc1Caef8Ab4925C2CcbApiV1PreFillResponse422ApplicationJsonData, optional)
- `metadata` (PostFbuUapiModules69785Bc1Caef8Ab4925C2CcbApiV1PreFillResponse422ApplicationJsonMetadata, optional)
- `validationErrors` (list of any, optional)
- `invalidNavigationPanels` (list of any, optional)

### 429 Too Many Requests Error

429 - Too Many Requests

- `TODO` (string, optional)

### 500 Internal Server Error

500 - Internal Server Error

- `TODO` (string, optional)

### 502 Bad Gateway Error

502 - Bad Gateway

- `TODO` (string, optional)

### 503 Service Unavailable Error

503 - Service Unavailable

- `TODO` (string, optional)

## Types

### FbuUapiModules69785Bc1Caef8Ab4925C2CcbApiV1PreFillPostRequestBodyContentApplicationJsonSchemaAddress

- `unitNumber` (string, required)
- `street` (string, required)
- `city` (string, required)
- `state` (string, required)
- `postalCode` (string, required)
- `country` (string, required)

### FbuUapiModules69785Bc1Caef8Ab4925C2CcbApiV1PreFillPostRequestBodyContentApplicationJsonSchemaVehiclesItems

- `vin` (string, required)
- `make` (string, required)
- `model` (string, required)
- `year` (string, required)

### PostFbuUapiModules69785Bc1Caef8Ab4925C2CcbApiV1PreFillResponse200ApplicationJsonData

- `resolved` (PostFbuUapiModules69785Bc1Caef8Ab4925C2CcbApiV1PreFillResponse200ApplicationJsonDataResolved, required)

### PostFbuUapiModules69785Bc1Caef8Ab4925C2CcbApiV1PreFillResponse200ApplicationJsonMetadata

### PostFbuUapiModules69785Bc1Caef8Ab4925C2CcbApiV1PreFillResponse401ApplicationJsonData

- `resolved` (PostFbuUapiModules69785Bc1Caef8Ab4925C2CcbApiV1PreFillResponse401ApplicationJsonDataResolved, optional)

### PostFbuUapiModules69785Bc1Caef8Ab4925C2CcbApiV1PreFillResponse401ApplicationJsonMetadata

### PostFbuUapiModules69785Bc1Caef8Ab4925C2CcbApiV1PreFillResponse404ApplicationJsonData

- `resolved` (PostFbuUapiModules69785Bc1Caef8Ab4925C2CcbApiV1PreFillResponse404ApplicationJsonDataResolved, optional)

### PostFbuUapiModules69785Bc1Caef8Ab4925C2CcbApiV1PreFillResponse404ApplicationJsonMetadata

### PostFbuUapiModules69785Bc1Caef8Ab4925C2CcbApiV1PreFillResponse405ApplicationJsonData

- `resolved` (PostFbuUapiModules69785Bc1Caef8Ab4925C2CcbApiV1PreFillResponse405ApplicationJsonDataResolved, optional)

### PostFbuUapiModules69785Bc1Caef8Ab4925C2CcbApiV1PreFillResponse405ApplicationJsonMetadata

### PostFbuUapiModules69785Bc1Caef8Ab4925C2CcbApiV1PreFillResponse422ApplicationJsonData

- `resolved` (PostFbuUapiModules69785Bc1Caef8Ab4925C2CcbApiV1PreFillResponse422ApplicationJsonDataResolved, optional)

### PostFbuUapiModules69785Bc1Caef8Ab4925C2CcbApiV1PreFillResponse422ApplicationJsonMetadata

### PostFbuUapiModules69785Bc1Caef8Ab4925C2CcbApiV1PreFillResponse200ApplicationJsonDataResolved

- `success` (boolean, required)
- `code` (enum, required)
  - Allowed values: `200`
- `response` (PostFbuUapiModules69785Bc1Caef8Ab4925C2CcbApiV1PreFillResponse200ApplicationJsonDataResolvedResponse, required)

### PostFbuUapiModules69785Bc1Caef8Ab4925C2CcbApiV1PreFillResponse401ApplicationJsonDataResolved

- `success` (boolean, optional)
- `error` (string, optional)
- `code` (enum, optional)
  - Allowed values: `401`

### PostFbuUapiModules69785Bc1Caef8Ab4925C2CcbApiV1PreFillResponse404ApplicationJsonDataResolved

- `success` (boolean, optional)
- `error` (string, optional)
- `code` (enum, optional)
  - Allowed values: `404`

### PostFbuUapiModules69785Bc1Caef8Ab4925C2CcbApiV1PreFillResponse405ApplicationJsonDataResolved

- `success` (boolean, optional)
- `error` (string, optional)
- `code` (enum, optional)
  - Allowed values: `405`

### PostFbuUapiModules69785Bc1Caef8Ab4925C2CcbApiV1PreFillResponse422ApplicationJsonDataResolved

- `success` (boolean, optional)
- `error` (string, optional)
- `code` (enum, optional)
  - Allowed values: `422`

### PostFbuUapiModules69785Bc1Caef8Ab4925C2CcbApiV1PreFillResponse200ApplicationJsonDataResolvedResponse

- `status` (enum, required)
  - Allowed values: `success`, `Prefill data accepted`
- `message` (string, required)
- `httpCode` (enum, required) — Integer type of data.resolved.code
  - Allowed values: `200`
- `warnings` (list of PostFbuUapiModules69785Bc1Caef8Ab4925C2CcbApiV1PreFillResponse200ApplicationJsonDataResolvedResponseWarningsItems, required)
- `recordId` (string, required)
- `url` (string, required)

### PostFbuUapiModules69785Bc1Caef8Ab4925C2CcbApiV1PreFillResponse200ApplicationJsonDataResolvedResponseWarningsItems

- `field` (string, required)
- `message` (string, required)

## Examples

**Request**

```json
{
  "isPrefill": true,
  "referrer": "Abc.ca",
  "product": "a",
  "language": "en",
  "firstName": "Jane Arash",
  "lastName": "Kaur Test",
  "preferredName": "Arash",
  "dateOfBirth": "1994-05-21",
  "phone": "+5178812345",
  "email": "arash.kaur@abc.com",
  "address": {
    "unitNumber": "204",
    "street": "170 Jackson St E",
    "city": "Hamilton",
    "state": "ON",
    "postalCode": "L8N 1L4",
    "country": "CA"
  },
  "partner": "Abc",
  "vehicles": [
    {
      "vin": "WAUSAAF52PA838501",
      "make": "AUDI",
      "model": "A5 TECHNIK 45 2.0 TFSI QUATTRO 2DR",
      "year": "2023"
    }
  ]
}
```

**Response**

```json
{
  "data": {
    "resolved": {
      "success": true,
      "code": "200",
      "response": {
        "status": "success",
        "message": "Data has been prefilled.",
        "httpCode": 200,
        "warnings": [],
        "recordId": "{{recordId}}",
        "url": "{{unqorkRedirectUrl}}"
      }
    }
  },
  "metadata": {},
  "validationErrors": [],
  "invalidNavigationPanels": []
}
```

**SDK Code**

```python 200 - Success
import requests

url = "https://{{prefillbaseurl}}/fbu/uapi/modules/69785bc1caef8ab4925c2ccb/api/v1/pre-fill"

payload = {
    "isPrefill": True,
    "referrer": "Abc.ca",
    "product": "a",
    "language": "en",
    "firstName": "Jane Arash",
    "lastName": "Kaur Test",
    "preferredName": "Arash",
    "dateOfBirth": "1994-05-21",
    "phone": "+5178812345",
    "email": "arash.kaur@abc.com",
    "address": {
        "unitNumber": "204",
        "street": "170 Jackson St E",
        "city": "Hamilton",
        "state": "ON",
        "postalCode": "L8N 1L4",
        "country": "CA"
    },
    "partner": "Abc",
    "vehicles": [
        {
            "vin": "WAUSAAF52PA838501",
            "make": "AUDI",
            "model": "A5 TECHNIK 45 2.0 TFSI QUATTRO 2DR",
            "year": "2023"
        }
    ]
}
headers = {
    "Idempotency-Key": "{{$guid}}",
    "X-Correlation-Id": "{{$guid}}",
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
```

```javascript 200 - Success
const url = 'https://{{prefillbaseurl}}/fbu/uapi/modules/69785bc1caef8ab4925c2ccb/api/v1/pre-fill';
const options = {
  method: 'POST',
  headers: {
    'Idempotency-Key': '{{$guid}}',
    'X-Correlation-Id': '{{$guid}}',
    Authorization: 'Bearer <token>',
    'Content-Type': 'application/json'
  },
  body: '{"isPrefill":true,"referrer":"Abc.ca","product":"a","language":"en","firstName":"Jane Arash","lastName":"Kaur Test","preferredName":"Arash","dateOfBirth":"1994-05-21","phone":"+5178812345","email":"arash.kaur@abc.com","address":{"unitNumber":"204","street":"170 Jackson St E","city":"Hamilton","state":"ON","postalCode":"L8N 1L4","country":"CA"},"partner":"Abc","vehicles":[{"vin":"WAUSAAF52PA838501","make":"AUDI","model":"A5 TECHNIK 45 2.0 TFSI QUATTRO 2DR","year":"2023"}]}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go 200 - Success
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://{{prefillbaseurl}}/fbu/uapi/modules/69785bc1caef8ab4925c2ccb/api/v1/pre-fill"

	payload := strings.NewReader("{\n  \"isPrefill\": true,\n  \"referrer\": \"Abc.ca\",\n  \"product\": \"a\",\n  \"language\": \"en\",\n  \"firstName\": \"Jane Arash\",\n  \"lastName\": \"Kaur Test\",\n  \"preferredName\": \"Arash\",\n  \"dateOfBirth\": \"1994-05-21\",\n  \"phone\": \"+5178812345\",\n  \"email\": \"arash.kaur@abc.com\",\n  \"address\": {\n    \"unitNumber\": \"204\",\n    \"street\": \"170 Jackson St E\",\n    \"city\": \"Hamilton\",\n    \"state\": \"ON\",\n    \"postalCode\": \"L8N 1L4\",\n    \"country\": \"CA\"\n  },\n  \"partner\": \"Abc\",\n  \"vehicles\": [\n    {\n      \"vin\": \"WAUSAAF52PA838501\",\n      \"make\": \"AUDI\",\n      \"model\": \"A5 TECHNIK 45 2.0 TFSI QUATTRO 2DR\",\n      \"year\": \"2023\"\n    }\n  ]\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("Idempotency-Key", "{{$guid}}")
	req.Header.Add("X-Correlation-Id", "{{$guid}}")
	req.Header.Add("Authorization", "Bearer <token>")
	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby 200 - Success
require 'uri'
require 'net/http'

url = URI("https://{{prefillbaseurl}}/fbu/uapi/modules/69785bc1caef8ab4925c2ccb/api/v1/pre-fill")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["Idempotency-Key"] = '{{$guid}}'
request["X-Correlation-Id"] = '{{$guid}}'
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"isPrefill\": true,\n  \"referrer\": \"Abc.ca\",\n  \"product\": \"a\",\n  \"language\": \"en\",\n  \"firstName\": \"Jane Arash\",\n  \"lastName\": \"Kaur Test\",\n  \"preferredName\": \"Arash\",\n  \"dateOfBirth\": \"1994-05-21\",\n  \"phone\": \"+5178812345\",\n  \"email\": \"arash.kaur@abc.com\",\n  \"address\": {\n    \"unitNumber\": \"204\",\n    \"street\": \"170 Jackson St E\",\n    \"city\": \"Hamilton\",\n    \"state\": \"ON\",\n    \"postalCode\": \"L8N 1L4\",\n    \"country\": \"CA\"\n  },\n  \"partner\": \"Abc\",\n  \"vehicles\": [\n    {\n      \"vin\": \"WAUSAAF52PA838501\",\n      \"make\": \"AUDI\",\n      \"model\": \"A5 TECHNIK 45 2.0 TFSI QUATTRO 2DR\",\n      \"year\": \"2023\"\n    }\n  ]\n}"

response = http.request(request)
puts response.read_body
```

```java 200 - Success
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://{{prefillbaseurl}}/fbu/uapi/modules/69785bc1caef8ab4925c2ccb/api/v1/pre-fill")
  .header("Idempotency-Key", "{{$guid}}")
  .header("X-Correlation-Id", "{{$guid}}")
  .header("Authorization", "Bearer <token>")
  .header("Content-Type", "application/json")
  .body("{\n  \"isPrefill\": true,\n  \"referrer\": \"Abc.ca\",\n  \"product\": \"a\",\n  \"language\": \"en\",\n  \"firstName\": \"Jane Arash\",\n  \"lastName\": \"Kaur Test\",\n  \"preferredName\": \"Arash\",\n  \"dateOfBirth\": \"1994-05-21\",\n  \"phone\": \"+5178812345\",\n  \"email\": \"arash.kaur@abc.com\",\n  \"address\": {\n    \"unitNumber\": \"204\",\n    \"street\": \"170 Jackson St E\",\n    \"city\": \"Hamilton\",\n    \"state\": \"ON\",\n    \"postalCode\": \"L8N 1L4\",\n    \"country\": \"CA\"\n  },\n  \"partner\": \"Abc\",\n  \"vehicles\": [\n    {\n      \"vin\": \"WAUSAAF52PA838501\",\n      \"make\": \"AUDI\",\n      \"model\": \"A5 TECHNIK 45 2.0 TFSI QUATTRO 2DR\",\n      \"year\": \"2023\"\n    }\n  ]\n}")
  .asString();
```

```php 200 - Success
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://{{prefillbaseurl}}/fbu/uapi/modules/69785bc1caef8ab4925c2ccb/api/v1/pre-fill', [
  'body' => '{
  "isPrefill": true,
  "referrer": "Abc.ca",
  "product": "a",
  "language": "en",
  "firstName": "Jane Arash",
  "lastName": "Kaur Test",
  "preferredName": "Arash",
  "dateOfBirth": "1994-05-21",
  "phone": "+5178812345",
  "email": "arash.kaur@abc.com",
  "address": {
    "unitNumber": "204",
    "street": "170 Jackson St E",
    "city": "Hamilton",
    "state": "ON",
    "postalCode": "L8N 1L4",
    "country": "CA"
  },
  "partner": "Abc",
  "vehicles": [
    {
      "vin": "WAUSAAF52PA838501",
      "make": "AUDI",
      "model": "A5 TECHNIK 45 2.0 TFSI QUATTRO 2DR",
      "year": "2023"
    }
  ]
}',
  'headers' => [
    'Authorization' => 'Bearer <token>',
    'Content-Type' => 'application/json',
    'Idempotency-Key' => '{{$guid}}',
    'X-Correlation-Id' => '{{$guid}}',
  ],
]);

echo $response->getBody();
```

```csharp 200 - Success
using RestSharp;

var client = new RestClient("https://{{prefillbaseurl}}/fbu/uapi/modules/69785bc1caef8ab4925c2ccb/api/v1/pre-fill");
var request = new RestRequest(Method.POST);
request.AddHeader("Idempotency-Key", "{{$guid}}");
request.AddHeader("X-Correlation-Id", "{{$guid}}");
request.AddHeader("Authorization", "Bearer <token>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"isPrefill\": true,\n  \"referrer\": \"Abc.ca\",\n  \"product\": \"a\",\n  \"language\": \"en\",\n  \"firstName\": \"Jane Arash\",\n  \"lastName\": \"Kaur Test\",\n  \"preferredName\": \"Arash\",\n  \"dateOfBirth\": \"1994-05-21\",\n  \"phone\": \"+5178812345\",\n  \"email\": \"arash.kaur@abc.com\",\n  \"address\": {\n    \"unitNumber\": \"204\",\n    \"street\": \"170 Jackson St E\",\n    \"city\": \"Hamilton\",\n    \"state\": \"ON\",\n    \"postalCode\": \"L8N 1L4\",\n    \"country\": \"CA\"\n  },\n  \"partner\": \"Abc\",\n  \"vehicles\": [\n    {\n      \"vin\": \"WAUSAAF52PA838501\",\n      \"make\": \"AUDI\",\n      \"model\": \"A5 TECHNIK 45 2.0 TFSI QUATTRO 2DR\",\n      \"year\": \"2023\"\n    }\n  ]\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift 200 - Success
import Foundation

let headers = [
  "Idempotency-Key": "{{$guid}}",
  "X-Correlation-Id": "{{$guid}}",
  "Authorization": "Bearer <token>",
  "Content-Type": "application/json"
]
let parameters = [
  "isPrefill": true,
  "referrer": "Abc.ca",
  "product": "a",
  "language": "en",
  "firstName": "Jane Arash",
  "lastName": "Kaur Test",
  "preferredName": "Arash",
  "dateOfBirth": "1994-05-21",
  "phone": "+5178812345",
  "email": "arash.kaur@abc.com",
  "address": [
    "unitNumber": "204",
    "street": "170 Jackson St E",
    "city": "Hamilton",
    "state": "ON",
    "postalCode": "L8N 1L4",
    "country": "CA"
  ],
  "partner": "Abc",
  "vehicles": [
    [
      "vin": "WAUSAAF52PA838501",
      "make": "AUDI",
      "model": "A5 TECHNIK 45 2.0 TFSI QUATTRO 2DR",
      "year": "2023"
    ]
  ]
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "https://{{prefillbaseurl}}/fbu/uapi/modules/69785bc1caef8ab4925c2ccb/api/v1/pre-fill")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```