Update a shipping address
curl --request PATCH \
--url https://store.salesive.com/api/v1/user/address/{addressId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'x-shop-id: <api-key>' \
--data '
{
"name": "Jane Smith",
"phone": "+2348099887766",
"email": "jane@example.com",
"address": "12 Marina Road",
"city": "Lagos",
"state": "Lagos",
"zipCode": "100001",
"country": "Nigeria",
"latitude": 6.5244,
"longitude": 3.3792,
"landmark": "<string>",
"isDefault": false
}
'import requests
url = "https://store.salesive.com/api/v1/user/address/{addressId}"
payload = {
"name": "Jane Smith",
"phone": "+2348099887766",
"email": "jane@example.com",
"address": "12 Marina Road",
"city": "Lagos",
"state": "Lagos",
"zipCode": "100001",
"country": "Nigeria",
"latitude": 6.5244,
"longitude": 3.3792,
"landmark": "<string>",
"isDefault": False
}
headers = {
"Authorization": "Bearer <token>",
"x-shop-id": "<api-key>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {
Authorization: 'Bearer <token>',
'x-shop-id': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
name: 'Jane Smith',
phone: '+2348099887766',
email: 'jane@example.com',
address: '12 Marina Road',
city: 'Lagos',
state: 'Lagos',
zipCode: '100001',
country: 'Nigeria',
latitude: 6.5244,
longitude: 3.3792,
landmark: '<string>',
isDefault: false
})
};
fetch('https://store.salesive.com/api/v1/user/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://store.salesive.com/api/v1/user/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([
'name' => 'Jane Smith',
'phone' => '+2348099887766',
'email' => 'jane@example.com',
'address' => '12 Marina Road',
'city' => 'Lagos',
'state' => 'Lagos',
'zipCode' => '100001',
'country' => 'Nigeria',
'latitude' => 6.5244,
'longitude' => 3.3792,
'landmark' => '<string>',
'isDefault' => false
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json",
"x-shop-id: <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://store.salesive.com/api/v1/user/address/{addressId}"
payload := strings.NewReader("{\n \"name\": \"Jane Smith\",\n \"phone\": \"+2348099887766\",\n \"email\": \"jane@example.com\",\n \"address\": \"12 Marina Road\",\n \"city\": \"Lagos\",\n \"state\": \"Lagos\",\n \"zipCode\": \"100001\",\n \"country\": \"Nigeria\",\n \"latitude\": 6.5244,\n \"longitude\": 3.3792,\n \"landmark\": \"<string>\",\n \"isDefault\": false\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("x-shop-id", "<api-key>")
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.patch("https://store.salesive.com/api/v1/user/address/{addressId}")
.header("Authorization", "Bearer <token>")
.header("x-shop-id", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"Jane Smith\",\n \"phone\": \"+2348099887766\",\n \"email\": \"jane@example.com\",\n \"address\": \"12 Marina Road\",\n \"city\": \"Lagos\",\n \"state\": \"Lagos\",\n \"zipCode\": \"100001\",\n \"country\": \"Nigeria\",\n \"latitude\": 6.5244,\n \"longitude\": 3.3792,\n \"landmark\": \"<string>\",\n \"isDefault\": false\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://store.salesive.com/api/v1/user/address/{addressId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["x-shop-id"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"Jane Smith\",\n \"phone\": \"+2348099887766\",\n \"email\": \"jane@example.com\",\n \"address\": \"12 Marina Road\",\n \"city\": \"Lagos\",\n \"state\": \"Lagos\",\n \"zipCode\": \"100001\",\n \"country\": \"Nigeria\",\n \"latitude\": 6.5244,\n \"longitude\": 3.3792,\n \"landmark\": \"<string>\",\n \"isDefault\": false\n}"
response = http.request(request)
puts response.read_body{}User
Update shipping address
Update an existing shipping address in the shopper’s address book.
PATCH
/
user
/
address
/
{addressId}
Update a shipping address
curl --request PATCH \
--url https://store.salesive.com/api/v1/user/address/{addressId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'x-shop-id: <api-key>' \
--data '
{
"name": "Jane Smith",
"phone": "+2348099887766",
"email": "jane@example.com",
"address": "12 Marina Road",
"city": "Lagos",
"state": "Lagos",
"zipCode": "100001",
"country": "Nigeria",
"latitude": 6.5244,
"longitude": 3.3792,
"landmark": "<string>",
"isDefault": false
}
'import requests
url = "https://store.salesive.com/api/v1/user/address/{addressId}"
payload = {
"name": "Jane Smith",
"phone": "+2348099887766",
"email": "jane@example.com",
"address": "12 Marina Road",
"city": "Lagos",
"state": "Lagos",
"zipCode": "100001",
"country": "Nigeria",
"latitude": 6.5244,
"longitude": 3.3792,
"landmark": "<string>",
"isDefault": False
}
headers = {
"Authorization": "Bearer <token>",
"x-shop-id": "<api-key>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {
Authorization: 'Bearer <token>',
'x-shop-id': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
name: 'Jane Smith',
phone: '+2348099887766',
email: 'jane@example.com',
address: '12 Marina Road',
city: 'Lagos',
state: 'Lagos',
zipCode: '100001',
country: 'Nigeria',
latitude: 6.5244,
longitude: 3.3792,
landmark: '<string>',
isDefault: false
})
};
fetch('https://store.salesive.com/api/v1/user/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://store.salesive.com/api/v1/user/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([
'name' => 'Jane Smith',
'phone' => '+2348099887766',
'email' => 'jane@example.com',
'address' => '12 Marina Road',
'city' => 'Lagos',
'state' => 'Lagos',
'zipCode' => '100001',
'country' => 'Nigeria',
'latitude' => 6.5244,
'longitude' => 3.3792,
'landmark' => '<string>',
'isDefault' => false
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json",
"x-shop-id: <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://store.salesive.com/api/v1/user/address/{addressId}"
payload := strings.NewReader("{\n \"name\": \"Jane Smith\",\n \"phone\": \"+2348099887766\",\n \"email\": \"jane@example.com\",\n \"address\": \"12 Marina Road\",\n \"city\": \"Lagos\",\n \"state\": \"Lagos\",\n \"zipCode\": \"100001\",\n \"country\": \"Nigeria\",\n \"latitude\": 6.5244,\n \"longitude\": 3.3792,\n \"landmark\": \"<string>\",\n \"isDefault\": false\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("x-shop-id", "<api-key>")
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.patch("https://store.salesive.com/api/v1/user/address/{addressId}")
.header("Authorization", "Bearer <token>")
.header("x-shop-id", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"Jane Smith\",\n \"phone\": \"+2348099887766\",\n \"email\": \"jane@example.com\",\n \"address\": \"12 Marina Road\",\n \"city\": \"Lagos\",\n \"state\": \"Lagos\",\n \"zipCode\": \"100001\",\n \"country\": \"Nigeria\",\n \"latitude\": 6.5244,\n \"longitude\": 3.3792,\n \"landmark\": \"<string>\",\n \"isDefault\": false\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://store.salesive.com/api/v1/user/address/{addressId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["x-shop-id"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"Jane Smith\",\n \"phone\": \"+2348099887766\",\n \"email\": \"jane@example.com\",\n \"address\": \"12 Marina Road\",\n \"city\": \"Lagos\",\n \"state\": \"Lagos\",\n \"zipCode\": \"100001\",\n \"country\": \"Nigeria\",\n \"latitude\": 6.5244,\n \"longitude\": 3.3792,\n \"landmark\": \"<string>\",\n \"isDefault\": false\n}"
response = http.request(request)
puts response.read_body{}Request
PATCH /user/address/{addressId}
Authorization: Bearer {{token}}
x-shop-id: {{shopId}}
Content-Type: application/json
{
"name": "Jane A. Smith",
"phone": "+2348011112222"
}
Path parameters
| Parameter | Type | Description |
|---|---|---|
addressId | string | The id of the address to update. |
Updating the core address fields (
address, city, state, or country)
re-runs address validation against the shipping provider, which requires the
address to also carry an email and latitude/longitude. Updating only
contact fields such as name or phone skips that step.Successful response
{
"status": 200,
"success": true,
"message": "Address updated successfully",
"data": {
"address": {
"_id": "651f8a9b2c3d4e5f60718300",
"name": "Jane A. Smith",
"phone": "+2348011112222",
"city": "Lagos",
"state": "Lagos",
"country": "Nigeria",
"isDefault": false,
"updatedAt": "2026-06-18T03:25:00.000Z"
}
}
}
Error responses
{
"status": 400,
"success": false,
"message": "\"addressId\" length must be 24 characters long",
"data": {}
}
{
"status": 404,
"success": false,
"message": "Address not found or unauthorized",
"data": {}
}
Authorizations
JWT issued by the Salesive Store API for authenticated shoppers.
Optional storefront identifier sent as a header to scope responses to a specific shop. Try It requests remember this value once provided.
Headers
Optional identifier that scopes responses to a specific storefront when the referer cannot be inferred.
Path Parameters
Body
application/json
Example:
"Jane Smith"
Example:
"+2348099887766"
Example:
"jane@example.com"
Example:
"12 Marina Road"
Example:
"Lagos"
Example:
"Lagos"
Example:
"100001"
Example:
"Nigeria"
Example:
6.5244
Example:
3.3792
Example:
false
Response
Address updated.
The response is of type object.
Was this page helpful?
⌘I

