Update a customer

POST https://api.tamio.com/v2/customers/update/{uuid}

Updates an existing customer's information. The customer name is always required. Email can be changed as long as it is not already in use by another customer within the same account.

Path Parameters

uuid string*

Body Parameters

name string*
last_name string
email string
country string
locale string
timezone_offset string
priority string
lownormalmediumhigh
category string
leadcustomer
phone string
teammate_id string

Responses

200 Customer updated successfully

Customer updated successfully

status integer
customer Customer
400 Validation or business-logic error. Possible `error_code` values:
401 Unauthorized – invalid or missing Bearer token
/customers/update/{uuid}
1const response = await fetch("https://api.tamio.com/v2/customers/update/{uuid}", {
2 method: "POST",
3 headers: {
4 "Authorization": "Bearer YOUR_API_KEY",
5 "Content-Type": "application/json"
6 },
7 body: JSON.stringify({
8 // ... request body
9 })
10});
11const data = await response.json();
Responses
{
  "status": 200,
  "customer": {
    "id": "550e8400-e29b-41d4-a716-446655440000",
    "object": "customer",
    "email": "john.doe@example.com",
    "name": "John",
    "last_name": "Doe",
    "country": "de",
    "locale": "en",
    "timezone_offset": "+00:00",
    "category": "customer",
    "priority": "normal",
    "lead_status": "string",
    "phone": "+49123456789",
    "stripe_customer_id": "string",
    "teammate_id": "string",
    "affiliate_partner_id": "string",
    "has_notes": false,
    "created_at": 1700000000,
    "billing_address": {
      "id": "string",
      "object": "address",
      "name": "string",
      "last_name": "string",
      "email": "string",
      "address": "string",
      "city": "string",
      "postcode": "string",
      "state": "string",
      "country": "string",
      "locale": "string",
      "phone": "string",
      "company": "string",
      "message": "string",
      "shipping_address": false,
      "is_company": false,
      "vat": "string",
      "verified_vat": false,
      "representative": "string"
    },
    "shipping_address": {
      "id": "string",
      "object": "address",
      "name": "string",
      "last_name": "string",
      "email": "string",
      "address": "string",
      "city": "string",
      "postcode": "string",
      "state": "string",
      "country": "string",
      "locale": "string",
      "phone": "string",
      "company": "string",
      "message": "string",
      "shipping_address": false,
      "is_company": false,
      "vat": "string",
      "verified_vat": false,
      "representative": "string"
    },
    "direct_debits": [],
    "client_id": "string"
  }
}