curl --request PUT \
--url https://api.exowpee.com/v1/customer/customers/{customer}/addresses/{address} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"label": "<string>",
"address": "<string>",
"city": "<string>",
"phone_number": "<string>",
"latitude": 0,
"longitude": 0
}
'import requests
url = "https://api.exowpee.com/v1/customer/customers/{customer}/addresses/{address}"
payload = {
"label": "<string>",
"address": "<string>",
"city": "<string>",
"phone_number": "<string>",
"latitude": 0,
"longitude": 0
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
label: '<string>',
address: '<string>',
city: '<string>',
phone_number: '<string>',
latitude: 0,
longitude: 0
})
};
fetch('https://api.exowpee.com/v1/customer/customers/{customer}/addresses/{address}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.exowpee.com/v1/customer/customers/{customer}/addresses/{address}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'label' => '<string>',
'address' => '<string>',
'city' => '<string>',
'phone_number' => '<string>',
'latitude' => 0,
'longitude' => 0
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.exowpee.com/v1/customer/customers/{customer}/addresses/{address}"
payload := strings.NewReader("{\n \"label\": \"<string>\",\n \"address\": \"<string>\",\n \"city\": \"<string>\",\n \"phone_number\": \"<string>\",\n \"latitude\": 0,\n \"longitude\": 0\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.put("https://api.exowpee.com/v1/customer/customers/{customer}/addresses/{address}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"label\": \"<string>\",\n \"address\": \"<string>\",\n \"city\": \"<string>\",\n \"phone_number\": \"<string>\",\n \"latitude\": 0,\n \"longitude\": 0\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.exowpee.com/v1/customer/customers/{customer}/addresses/{address}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"label\": \"<string>\",\n \"address\": \"<string>\",\n \"city\": \"<string>\",\n \"phone_number\": \"<string>\",\n \"latitude\": 0,\n \"longitude\": 0\n}"
response = http.request(request)
puts response.read_body{
"id": "<string>",
"customer_id": "<string>",
"label": "<string>",
"address": "<string>",
"city": "<string>",
"phone_number": "<string>",
"latitude": "<string>",
"longitude": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}{
"message": "<string>",
"errors": {}
}Edit a customer address
Changes the details of an address saved for a customer.
curl --request PUT \
--url https://api.exowpee.com/v1/customer/customers/{customer}/addresses/{address} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"label": "<string>",
"address": "<string>",
"city": "<string>",
"phone_number": "<string>",
"latitude": 0,
"longitude": 0
}
'import requests
url = "https://api.exowpee.com/v1/customer/customers/{customer}/addresses/{address}"
payload = {
"label": "<string>",
"address": "<string>",
"city": "<string>",
"phone_number": "<string>",
"latitude": 0,
"longitude": 0
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
label: '<string>',
address: '<string>',
city: '<string>',
phone_number: '<string>',
latitude: 0,
longitude: 0
})
};
fetch('https://api.exowpee.com/v1/customer/customers/{customer}/addresses/{address}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.exowpee.com/v1/customer/customers/{customer}/addresses/{address}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'label' => '<string>',
'address' => '<string>',
'city' => '<string>',
'phone_number' => '<string>',
'latitude' => 0,
'longitude' => 0
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.exowpee.com/v1/customer/customers/{customer}/addresses/{address}"
payload := strings.NewReader("{\n \"label\": \"<string>\",\n \"address\": \"<string>\",\n \"city\": \"<string>\",\n \"phone_number\": \"<string>\",\n \"latitude\": 0,\n \"longitude\": 0\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.put("https://api.exowpee.com/v1/customer/customers/{customer}/addresses/{address}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"label\": \"<string>\",\n \"address\": \"<string>\",\n \"city\": \"<string>\",\n \"phone_number\": \"<string>\",\n \"latitude\": 0,\n \"longitude\": 0\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.exowpee.com/v1/customer/customers/{customer}/addresses/{address}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"label\": \"<string>\",\n \"address\": \"<string>\",\n \"city\": \"<string>\",\n \"phone_number\": \"<string>\",\n \"latitude\": 0,\n \"longitude\": 0\n}"
response = http.request(request)
puts response.read_body{
"id": "<string>",
"customer_id": "<string>",
"label": "<string>",
"address": "<string>",
"city": "<string>",
"phone_number": "<string>",
"latitude": "<string>",
"longitude": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}{
"message": "<string>",
"errors": {}
}customer_addresses.update
Conditions
- The label must stay unique among the addresses of this customer.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Identifier of the customer (27-character KSUID string).
Identifier of the customer address (27-character KSUID string).
Query Parameters
Response mode. Default none; none answers 204 No Content.
none, resource Comma-separated JSON keys of the root resource (id is always rendered). Available: id, customer_id, label, address, city, phone_number, latitude, longitude, created_at, updated_at.
Comma-separated include paths, each optionally followed by its fields in parentheses: units(id,sku),units.uomUnit(id,name). Max depth 6, max 40 paths. Available: .
Body
Short name of the address. Required when creating, up to 255 characters, and unique among the addresses of the same customer.
255Free-text address, up to 1000 characters. Required when creating.
1000City, up to 255 characters. Optional; null clears it on update.
255Contact phone number for this address, up to 30 characters. Optional; null clears it on update.
30Latitude in decimal degrees, between -90 and 90. Optional; null clears it on update.
-90 <= x <= 90Longitude in decimal degrees, between -180 and 180. Optional; null clears it on update.
-180 <= x <= 180Response
Resource (only with response=resource).
Identifier of the address (27-character KSUID string).
Identifier of the customer the address belongs to (27-character KSUID string).
Short name of the address, unique among the addresses of the same customer.
Free-text address.
City, or null when none was given.
Contact phone number for this address, or null when none was given.
Latitude in decimal degrees, between -90 and 90, with up to 7 decimals. Returned as a decimal string. Null when none was given.
Longitude in decimal degrees, between -180 and 180, with up to 7 decimals. Returned as a decimal string. Null when none was given.
Date and time the record was created (ISO 8601, UTC).
Date and time the record was last changed (ISO 8601, UTC).