Edit address
Replaces all address fields entirely (like when creating).
PUT /addresses/{id}
- Key Permission:
addresses:write - Key: test or live
- Idempotency-Key: required. Idempotency
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
id |
string | yes | Address number (field id from the response). |
label |
string | no | Address name for you, up to 100 characters. |
kind |
string | no | Address type: sender (shipper), recipient (receiver), or both (general, default). |
name |
string | yes | Contact name, up to 22 characters (carrier restriction). |
company |
string | no | Company, up to 27 characters. |
line1 |
string | yes | Address line 1, up to 35 characters. |
line2 |
string | no | Address line 2, up to 35 characters. |
city |
string | yes | City, up to 100 characters. |
state |
string | no | State or province (required for countries where applicable, e.g., USA). |
postal_code |
string | yes | Postal code, format validated by country. |
country |
string | yes | Country, ISO 3166-1 alpha-2 code, e.g., US. Must match the address type (shipping from or delivery to the country). |
phone |
string | yes | Phone number, at least 6 digits. |
email |
string | yes | Contact email. |
is_default |
boolean | no | true: set the address as primary (this happens automatically for the first address in the book). |
Important to know
- PUT replaces all fields, so send the full address as when creating.
- Field lengths are limited by carriers: name 22, company 27, address lines 35 characters. The address book holds no more than 1000 addresses.
Request example
curl -X PUT https://api.shippickup.com/v1/addresses/b7e2c9a41d5f4830a6c1e8d2f4 \
-H "Authorization: Bearer $SHIPPICKUP_API_KEY" \
-H "Idempotency-Key: order-10452-label-v1" \
-H "Content-Type: application/json" \
-d '{
"label": "Warehouse NYC",
"kind": "sender",
"name": "Acme Store",
"company": "Acme Inc",
"line1": "350 5th Ave",
"city": "New York",
"state": "NY",
"postal_code": "10001",
"country": "US",
"phone": "+12125550100",
"email": "shipping@example.com",
"is_default": true
}'<?php
$body = [
'label' => 'Warehouse NYC',
'kind' => 'sender',
'name' => 'Acme Store',
'company' => 'Acme Inc',
'line1' => '350 5th Ave',
'city' => 'New York',
'state' => 'NY',
'postal_code' => '10001',
'country' => 'US',
'phone' => '+12125550100',
'email' => 'shipping@example.com',
'is_default' => true,
];
$ch = curl_init('https://api.shippickup.com/v1/addresses/b7e2c9a41d5f4830a6c1e8d2f4');
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => 'PUT',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . getenv('SHIPPICKUP_API_KEY'),
'Idempotency-Key: order-10452-label-v1',
'Content-Type: application/json',
],
CURLOPT_POSTFIELDS => json_encode($body),
]);
$response = json_decode((string) curl_exec($ch), true);
$status = curl_getinfo($ch, CURLINFO_RESPONSE_CODE);
print_r([$status, $response]);
import os
import requests
body = {
"label": "Warehouse NYC",
"kind": "sender",
"name": "Acme Store",
"company": "Acme Inc",
"line1": "350 5th Ave",
"city": "New York",
"state": "NY",
"postal_code": "10001",
"country": "US",
"phone": "+12125550100",
"email": "shipping@example.com",
"is_default": True,
}
r = requests.put(
"https://api.shippickup.com/v1/addresses/b7e2c9a41d5f4830a6c1e8d2f4",
headers={
"Authorization": "Bearer " + os.environ["SHIPPICKUP_API_KEY"],
"Idempotency-Key": "order-10452-label-v1",
},
json=body,
timeout=30,
)
print(r.status_code, r.json())
const body = {
"label": "Warehouse NYC",
"kind": "sender",
"name": "Acme Store",
"company": "Acme Inc",
"line1": "350 5th Ave",
"city": "New York",
"state": "NY",
"postal_code": "10001",
"country": "US",
"phone": "+12125550100",
"email": "shipping@example.com",
"is_default": true
};
const res = await fetch("https://api.shippickup.com/v1/addresses/b7e2c9a41d5f4830a6c1e8d2f4", {
method: "PUT",
headers: {
Authorization: `Bearer ${process.env.SHIPPICKUP_API_KEY}`,
"Idempotency-Key": "order-10452-label-v1",
"Content-Type": "application/json",
},
body: JSON.stringify(body),
});
console.log(res.status, await res.json());
Response example 200
JSON
{
"data": {
"id": "b7e2c9a41d5f4830a6c1e8d2f4",
"label": "Warehouse NYC",
"kind": "sender",
"name": "Acme Store",
"company": "Acme Inc",
"line1": "350 5th Ave",
"line2": "",
"city": "New York",
"state": "NY",
"postal_code": "10001",
"country": "US",
"phone": "+12125550100",
"email": "shipping@example.com",
"is_default": true,
"created_at": "2026-12-01T09:00:00+00:00",
"updated_at": "2026-12-01T09:00:00+00:00"
}
}Possible errors
| HTTP | Code | Description |
|---|---|---|
| 404 | not_found | Object not found among your account's objects (order, address, invoice, webhook, member, or team invitation), or the order has no active pickup, or the method does not exist. Objects belonging to others appear as non-existent. |
| 422 | validation_failed | Error in request fields. error.details specifies the reason for each field. |
| 422 | idempotency_key_required | Missing or invalid Idempotency-Key header: must be 16–64 characters A-Za-z0-9_-. |
| 422 | idempotency_key_reused | Этот Idempotency-Key уже использован для другого запроса: для нового запроса нужен новый ключ. |
| 403 | insufficient_scope | Key lacks the required permission, specified in error.details.required_scope. |
| 429 | rate_limited | Key request limit exceeded. Retry after the time specified in the Retry-After header. |