---
title: "Update a customer"
description: "Update a customer"
url: https://docs.invoicefalcon.com/api/customers/update-a-customer/
api: "API v1 reference"
method: PATCH
path: "/customers/{id}"
---

# Update a customer

`PATCH https://app.invoicefalcon.com/api/v1/external/customers/{id}`

Update a customer

## Path parameters

- `id` (integer, required)

## Request body

- `customer` (object, required)
  - `email` (string): e.g. `jane.doe@example.com`
  - `first_name` (string): e.g. `Jane`
  - `last_name` (string): e.g. `Doe`
  - `phone` (string): e.g. `+1 555 010 0199`
  - `tax_number` (string): e.g. `US-12-3456789`
  - `eori_number` (string)
  - `tags` (string): e.g. `wholesale, vip`

## Returns

The [customer object](https://docs.invoicefalcon.com/api/customers/).

Rate limit: this call costs 2 points ([rate limits](https://docs.invoicefalcon.com/docs/rate-limiting/)).

## Example request

```sh
curl -X PATCH "https://app.invoicefalcon.com/api/v1/external/customers/{id}" \
  -H "X-Auth-Token: $INVOICE_FALCON_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "customer": {
      "id": 9177,
      "email": "jane.doe@example.com",
      "first_name": "Jane",
      "last_name": "Doe",
      "phone": "+1 555 010 0199",
      "tax_number": "US-12-3456789",
      "eori_number": null,
      "tags": "wholesale, vip",
      "shopify_customer_id": 7001234567,
      "created_at": "2025-09-21T16:45:00Z",
      "updated_at": "2026-01-16T10:05:00Z"
    }
  }'
```

## 200

Customer updated.

```json
{
  "customer": {
    "id": 9177,
    "email": "jane.doe@example.com",
    "first_name": "Jane",
    "last_name": "Doe",
    "phone": "+1 555 010 0199",
    "tax_number": "US-12-3456789",
    "eori_number": null,
    "tags": "wholesale, vip",
    "shopify_customer_id": 7001234567,
    "created_at": "2025-09-21T16:45:00Z",
    "updated_at": "2026-01-16T10:05:00Z"
  }
}
```

## 401

Missing or invalid API key.

```json
{
  "error": "Invalid API key"
}
```

## 403

The store is not on a paid plan. API access requires a paid Invoice Falcon plan.

```json
{
  "error": "REST API access requires a paid plan"
}
```

## 404

Resource not found.

```json
{
  "error": "Not found"
}
```

## 422

Request could not be processed.

```json
{
  "error": "param is missing or the value is empty: customer",
  "errors": {}
}
```

## 429

Rate limit exceeded. Check `X-RateLimit-Reset` header.

```json
{
  "error": "Rate limit exceeded",
  "retry_after": 30,
  "message": "You have exceeded the rate limit of 40 points per 60 seconds. Read requests cost 1 point(s) and write requests cost 2 point(s). Please retry after 30 second(s)."
}
```

