Update Address
curl --request PATCH \
--url https://api-sandbox.revolv3.com/api/Customers/{customerId}/address/{addressId} \
--header 'Content-Type: application/json-patch+json' \
--header 'x-revolv3-token: <api-key>' \
--data '
{
"addressLine1": "101 Update Street",
"addressLine2": null,
"city": "Irvine",
"state": null,
"postalCode": "92602",
"phoneNumber": null,
"email": null,
"country": null
}
'import requests
url = "https://api-sandbox.revolv3.com/api/Customers/{customerId}/address/{addressId}"
payload = {
"addressLine1": "101 Update Street",
"addressLine2": None,
"city": "Irvine",
"state": None,
"postalCode": "92602",
"phoneNumber": None,
"email": None,
"country": None
}
headers = {
"x-revolv3-token": "<api-key>",
"Content-Type": "application/json-patch+json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {'x-revolv3-token': '<api-key>', 'Content-Type': 'application/json-patch+json'},
body: JSON.stringify({
addressLine1: '101 Update Street',
addressLine2: null,
city: 'Irvine',
state: null,
postalCode: '92602',
phoneNumber: null,
email: null,
country: null
})
};
fetch('https://api-sandbox.revolv3.com/api/Customers/{customerId}/address/{addressId}', 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-sandbox.revolv3.com/api/Customers/{customerId}/address/{addressId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'addressLine1' => '101 Update Street',
'addressLine2' => null,
'city' => 'Irvine',
'state' => null,
'postalCode' => '92602',
'phoneNumber' => null,
'email' => null,
'country' => null
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json-patch+json",
"x-revolv3-token: <api-key>"
],
]);
$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-sandbox.revolv3.com/api/Customers/{customerId}/address/{addressId}"
payload := strings.NewReader("{\n \"addressLine1\": \"101 Update Street\",\n \"addressLine2\": null,\n \"city\": \"Irvine\",\n \"state\": null,\n \"postalCode\": \"92602\",\n \"phoneNumber\": null,\n \"email\": null,\n \"country\": null\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("x-revolv3-token", "<api-key>")
req.Header.Add("Content-Type", "application/json-patch+json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.patch("https://api-sandbox.revolv3.com/api/Customers/{customerId}/address/{addressId}")
.header("x-revolv3-token", "<api-key>")
.header("Content-Type", "application/json-patch+json")
.body("{\n \"addressLine1\": \"101 Update Street\",\n \"addressLine2\": null,\n \"city\": \"Irvine\",\n \"state\": null,\n \"postalCode\": \"92602\",\n \"phoneNumber\": null,\n \"email\": null,\n \"country\": null\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-sandbox.revolv3.com/api/Customers/{customerId}/address/{addressId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["x-revolv3-token"] = '<api-key>'
request["Content-Type"] = 'application/json-patch+json'
request.body = "{\n \"addressLine1\": \"101 Update Street\",\n \"addressLine2\": null,\n \"city\": \"Irvine\",\n \"state\": null,\n \"postalCode\": \"92602\",\n \"phoneNumber\": null,\n \"email\": null,\n \"country\": null\n}"
response = http.request(request)
puts response.read_body{
"customerId": 1,
"merchantCustomerRefId": "1234-5678-9101",
"firstName": "John",
"lastName": "Doe",
"billingAddresses": [
{
"addressId": 1,
"addressLine1": "101 Update Street",
"addressLine2": "",
"city": "Irvine",
"state": "CA",
"postalCode": "92602",
"phoneNumber": null,
"email": null,
"country": "US"
}
],
"shippingAddresses": [],
"taxAddresses": [],
"subscriptions": []
}{
"message": "Unable to perform the request action with provided data."
}{
"message": "Attempted to perform an unauthorized operation."
}{
"message": "Unable to find an entity with the provided data."
}Customers
Update Address
Updates the details of an existing customer address, such as street, city, postal code, or country. Only the fields provided in the request will be updated — others will remain unchanged.
This endpoint is commonly used when a customer changes residence, corrects an error in their address, or updates billing information for compliance or tax purposes.
PATCH
/
api
/
Customers
/
{customerId}
/
address
/
{addressId}
Update Address
curl --request PATCH \
--url https://api-sandbox.revolv3.com/api/Customers/{customerId}/address/{addressId} \
--header 'Content-Type: application/json-patch+json' \
--header 'x-revolv3-token: <api-key>' \
--data '
{
"addressLine1": "101 Update Street",
"addressLine2": null,
"city": "Irvine",
"state": null,
"postalCode": "92602",
"phoneNumber": null,
"email": null,
"country": null
}
'import requests
url = "https://api-sandbox.revolv3.com/api/Customers/{customerId}/address/{addressId}"
payload = {
"addressLine1": "101 Update Street",
"addressLine2": None,
"city": "Irvine",
"state": None,
"postalCode": "92602",
"phoneNumber": None,
"email": None,
"country": None
}
headers = {
"x-revolv3-token": "<api-key>",
"Content-Type": "application/json-patch+json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {'x-revolv3-token': '<api-key>', 'Content-Type': 'application/json-patch+json'},
body: JSON.stringify({
addressLine1: '101 Update Street',
addressLine2: null,
city: 'Irvine',
state: null,
postalCode: '92602',
phoneNumber: null,
email: null,
country: null
})
};
fetch('https://api-sandbox.revolv3.com/api/Customers/{customerId}/address/{addressId}', 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-sandbox.revolv3.com/api/Customers/{customerId}/address/{addressId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'addressLine1' => '101 Update Street',
'addressLine2' => null,
'city' => 'Irvine',
'state' => null,
'postalCode' => '92602',
'phoneNumber' => null,
'email' => null,
'country' => null
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json-patch+json",
"x-revolv3-token: <api-key>"
],
]);
$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-sandbox.revolv3.com/api/Customers/{customerId}/address/{addressId}"
payload := strings.NewReader("{\n \"addressLine1\": \"101 Update Street\",\n \"addressLine2\": null,\n \"city\": \"Irvine\",\n \"state\": null,\n \"postalCode\": \"92602\",\n \"phoneNumber\": null,\n \"email\": null,\n \"country\": null\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("x-revolv3-token", "<api-key>")
req.Header.Add("Content-Type", "application/json-patch+json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.patch("https://api-sandbox.revolv3.com/api/Customers/{customerId}/address/{addressId}")
.header("x-revolv3-token", "<api-key>")
.header("Content-Type", "application/json-patch+json")
.body("{\n \"addressLine1\": \"101 Update Street\",\n \"addressLine2\": null,\n \"city\": \"Irvine\",\n \"state\": null,\n \"postalCode\": \"92602\",\n \"phoneNumber\": null,\n \"email\": null,\n \"country\": null\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-sandbox.revolv3.com/api/Customers/{customerId}/address/{addressId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["x-revolv3-token"] = '<api-key>'
request["Content-Type"] = 'application/json-patch+json'
request.body = "{\n \"addressLine1\": \"101 Update Street\",\n \"addressLine2\": null,\n \"city\": \"Irvine\",\n \"state\": null,\n \"postalCode\": \"92602\",\n \"phoneNumber\": null,\n \"email\": null,\n \"country\": null\n}"
response = http.request(request)
puts response.read_body{
"customerId": 1,
"merchantCustomerRefId": "1234-5678-9101",
"firstName": "John",
"lastName": "Doe",
"billingAddresses": [
{
"addressId": 1,
"addressLine1": "101 Update Street",
"addressLine2": "",
"city": "Irvine",
"state": "CA",
"postalCode": "92602",
"phoneNumber": null,
"email": null,
"country": "US"
}
],
"shippingAddresses": [],
"taxAddresses": [],
"subscriptions": []
}{
"message": "Unable to perform the request action with provided data."
}{
"message": "Attempted to perform an unauthorized operation."
}{
"message": "Unable to find an entity with the provided data."
}Authorizations
Path Parameters
Required range:
1 <= x <= 1000000000Required range:
1 <= x <= 1000000000Body
application/json-patch+jsonapplication/jsontext/jsonapplication/*+json
Address.
Maximum string length:
3000Supplemental information for the address.
Maximum string length:
3000City.
Maximum string length:
3000State.
Maximum string length:
2Postal Code.
Required string length:
2 - 20The phone number associated with a payment method that is used for billing purposes.
Required string length:
7 - 21Pattern:
^(?=.*\d)\+?[0-9\s\-\(\)\.]{7,20}$The email associated with a billing address.
Maximum string length:
3000The input must be a valid Alpha2 code, Alpha3 code, UN code, or full country name.
Maximum string length:
2Response
OK
Required range:
1 <= x <= 1000000000Maximum string length:
100Maximum string length:
150Maximum string length:
150Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes

