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

# Get customer

GET https://api.fleetwire.io/api/v2/customers/{id}

One customer by `id` (their `r_id`, the same ID bookings carry).

Reference: https://docs.fleetwire.io/api-reference/customers/get-customers-id

## Authentication

- `Authorization` header (bearer token, required) — An API token from **Settings → API tokens** in Fleetwire, sent as `Authorization: Bearer …`. Each token carries scopes: `read` for every GET, plus write scopes such as `bookings:write`.

## Servers

- `https://api.fleetwire.io/api` (Production, default)
- `https://staging.fleetwire.io/api` (Sandbox (Partner API))

## Request

### Path parameters

- `id` (string, required) — Customer ID

## Response

### 200

OK

- `id` (string, optional)
- `first_name` (string, optional)
- `last_name` (string, optional)
- `email` (string, optional)
- `phone` (string, optional)
- `dob` (string, optional)
- `address` (V2CustomersIdGetResponsesContentApplicationJsonSchemaAddress, optional)
- `source` (string, optional)
- `email_verified_at` (string, optional)
- `identity_verified_at` (string, optional, nullable)
- `bookings_count` (integer, optional)
- `total_spent_in_cents` (integer, optional)
- `last_trip_end` (string, optional)
- `created_at` (string, optional)
- `updated_at` (string, optional)

## Errors

### 401 Unauthorized Error

Missing or invalid token.

- `message` (string, required)

### 404 Not Found Error

Not found, or it isn't your company's.

- `message` (string, required)

### 429 Too Many Requests Error

Too many requests. Wait for the `Retry-After` header (seconds).

- `message` (string, required)

## Types

### V2CustomersIdGetResponsesContentApplicationJsonSchemaAddress

- `address_1` (string, optional)
- `address_2` (string, optional, nullable)
- `city` (string, optional)
- `state` (string, optional)
- `postal_code` (string, optional)
- `country` (string, optional)

## Examples

**Response**

```json
{
  "id": "r_EXAMPLE1",
  "first_name": "Jordan",
  "last_name": "Rivera",
  "email": "jordan@example.com",
  "phone": "+13105550142",
  "dob": "1990-04-18",
  "address": {
    "address_1": "100 Example St",
    "address_2": null,
    "city": "Austin",
    "state": "TX",
    "postal_code": "78701",
    "country": "US"
  },
  "source": "direct",
  "email_verified_at": "2026-10-01T14:30:00Z",
  "identity_verified_at": null,
  "bookings_count": 3,
  "total_spent_in_cents": 73250,
  "last_trip_end": "2026-10-12 10:00:00",
  "created_at": "2026-08-12T16:04:26Z",
  "updated_at": "2026-10-12T18:20:01Z"
}
```

**SDK Code**

```python Customer
import requests

url = "https://api.fleetwire.io/api/v2/customers/r_EXAMPLE1"

headers = {"Authorization": "Bearer <token>"}

response = requests.get(url, headers=headers)

print(response.json())
```

```javascript Customer
const url = 'https://api.fleetwire.io/api/v2/customers/r_EXAMPLE1';
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

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

```go Customer
package main

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

func main() {

	url := "https://api.fleetwire.io/api/v2/customers/r_EXAMPLE1"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("Authorization", "Bearer <token>")

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

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

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

}
```

```ruby Customer
require 'uri'
require 'net/http'

url = URI("https://api.fleetwire.io/api/v2/customers/r_EXAMPLE1")

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

request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'

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

```java Customer
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://api.fleetwire.io/api/v2/customers/r_EXAMPLE1")
  .header("Authorization", "Bearer <token>")
  .asString();
```

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

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.fleetwire.io/api/v2/customers/r_EXAMPLE1', [
  'headers' => [
    'Authorization' => 'Bearer <token>',
  ],
]);

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

```csharp Customer
using RestSharp;

var client = new RestClient("https://api.fleetwire.io/api/v2/customers/r_EXAMPLE1");
var request = new RestRequest(Method.GET);
request.AddHeader("Authorization", "Bearer <token>");
IRestResponse response = client.Execute(request);
```

```swift Customer
import Foundation

let headers = ["Authorization": "Bearer <token>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://api.fleetwire.io/api/v2/customers/r_EXAMPLE1")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

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()
```