/customers/address/{uuid}
| 1 | const response = await fetch("https://api.tamio.com/v2/customers/address/{uuid}", { |
| 2 | method: "DELETE", |
| 3 | headers: { |
| 4 | "Authorization": "Bearer YOUR_API_KEY", |
| 5 | "Content-Type": "application/json" |
| 6 | }, |
| 7 | body: JSON.stringify({ |
| 8 | |
| 9 | }) |
| 10 | }); |
| 11 | const data = await response.json(); |
| 1 | require "uri" |
| 2 | require "net/http" |
| 3 | |
| 4 | url = URI("https://api.tamio.com/v2/customers/address/{uuid}") |
| 5 | |
| 6 | https = Net::HTTP.new(url.host, url.port) |
| 7 | https.use_ssl = true |
| 8 | |
| 9 | request = Net::HTTP::Delete.new(url) |
| 10 | request["Accept"] = "application/json" |
| 11 | request["Authorization"] = "Bearer YOUR_API_KEY" |
| 12 | |
| 13 | response = https.request(request) |
| 14 | puts response.read_body |
Responses
{
"status": 200,
"customer": {
"id": "550e8400-e29b-41d4-a716-446655440000",
"object": "customer",
"email": "[email protected]",
"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": "00000000-0000-0000-0000-000000000000",
"affiliate_partner_id": "00000000-0000-0000-0000-000000000000",
"has_notes": false,
"created_at": 1700000000,
"billing_address": {
"id": "00000000-0000-0000-0000-000000000000",
"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": "00000000-0000-0000-0000-000000000000",
"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": "00000000-0000-0000-0000-000000000000"
}
}