Update an address

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

Updates an existing billing or shipping address. Changing the country of a billing address that is tied to an active subscription is not allowed.

Path Parameters

uuid string*

UUID of the address to update

Body Parameters

name string*
last_name string
country string*
address string*
city string*
postcode string
state string
email string*
company string
phone string
vat string
locale string
is_company boolean
representative string
shipping_address boolean

Responses

200 Address updated successfully

Address updated successfully

status integer
customer Customer
400 Validation or business-logic error. Possible `error_code` values:
401 Unauthorized – invalid or missing Bearer token
/customers/address/update/{uuid}
1const response = await fetch("https://api.tamio.com/v2/customers/address/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"
  }
}