Customer addresses
List, create, change and delete entries in a customer's address book.
List a customer's addresses
/customers/{externalId}/addresses
Scope: customers.read
Returns the address book of the customer, sorted by ID. Deleted addresses are not included.
Path parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
externalId | string | required | Your customer ID, as sent in customer.external_id. Case-sensitive. URL-encode special characters. max length 191 |
Example request
curl "https://shop.example.com/api/v1/customers/u-55871/addresses" \
-H "Authorization: Bearer $API_KEY" \
-H "Accept: application/json" Responses
200 OK The addresses of the customer.
{
"data": [
{
"id": 1,
"customer_id": 9021,
"salutation": "Mr",
"title": null,
"first_name": "Alex",
"last_name": "Sample",
"company_name": null,
"street": "Packstation",
"house_number": "123",
"additional": null,
"postcode": "10117",
"city": "Berlin",
"country_id": 276,
"country": "DE",
"telephone": "+49 30 1234567",
"mobile": null,
"email": null,
"packstation": 1,
"packstation_name": "123",
"postnumber": "12345678",
"is_default": 1,
"is_default_billing": 0,
"is_default_shipping": true,
"created_at": "2026-10-13T12:05:03.000000Z",
"updated_at": "2026-10-13T12:05:03.000000Z"
}
]
} Response fields
| Field | Type | Required | Description |
|---|---|---|---|
data[] | array of object | required | |
id | integer | required | ID of the address, used in the path of updateCustomerAddress and deleteCustomerAddress. |
customer_id | integer | required | Our customer number. |
salutation | string | null | optional | |
title | string | null | optional | |
first_name | string | null | optional | |
last_name | string | null | optional | |
company_name | string | null | optional | |
street | string | null | optional | |
house_number | string | null | optional | |
additional | string | null | optional | |
postcode | string | null | optional | |
city | string | null | optional | |
country_id | integer | null | optional | Our internal country ID. |
country | string | null | required | Country code according to ISO 3166-1 alpha-2. |
telephone | string | null | optional | |
mobile | string | null | optional | |
email | string | null | optional | |
packstation | integer | null | optional | 1 for a parcel locker address. |
packstation_name | string | null | optional | Number of the parcel locker. |
postnumber | string | null | optional | Parcel locker customer number. |
is_default | integer | null | optional | 1 if this is the default delivery address (same as is_default_shipping). |
is_default_billing | integer | null | optional | 1 if this is the default billing address. |
is_default_shipping | boolean | required | true if this is the default delivery address. |
created_at | string (date-time) | null | optional | |
updated_at | string (date-time) | null | optional |
Error responses
401 Unauthorized The API key is missing, malformed, wrong, paused, expired or revoked. The body is always the same and never names the reason.
{
"error": {
"code": "unauthorized",
"message": "Invalid or missing API key.",
"details": []
}
} 403 Forbidden The API key is valid but lacks a scope this endpoint needs. details.required lists the scopes
the endpoint requires, details.missing the ones your key lacks. Ask the shop operator to add
the scope.
{
"error": {
"code": "insufficient_scope",
"message": "The API key is missing a required scope.",
"details": {
"required": [
"orders.write"
],
"missing": [
"orders.write"
]
}
}
} 404 Not Found The path does not exist, the API is not enabled on this system, the order does not belong to the shop of your API client, or the customer, address or label value is not known to your API client.
{
"error": {
"code": "not_found",
"message": "The requested resource does not exist.",
"details": []
}
} 429 Too Many Requests Too many requests. Either your API client used up its requests per minute
(message Too many requests., with all rate limit headers), or too many failed authentications
came in a short time (message Too many authentication attempts., only Retry-After). Both
carry the code rate_limited.
{
"error": {
"code": "rate_limited",
"message": "Too many requests.",
"details": []
}
} 500 Internal Server Error An unexpected error occurred on our side. Retry later.
{
"error": {
"code": "server_error",
"message": "An unexpected error occurred.",
"details": []
}
} All error codes: error code reference.
Create an address
/customers/{externalId}/addresses
Scope: customers.write
Adds an address to the customer's address book. If the same address already exists, no second
one is created; the existing address is returned with 200.
is_default_shipping and is_default_billing make the address the default delivery or billing
address; the previous default loses the flag.
Path parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
externalId | string | required | Your customer ID, as sent in customer.external_id. Case-sensitive. URL-encode special characters. max length 191 |
Request body
| Field | Type | Required | Description |
|---|---|---|---|
salutation | string | null | optional | max length 191 |
title | string | null | optional | max length 50 |
first_name | string | null | optional | max length 191 |
last_name | string | null | optional | max length 191 |
company | string | null | optional | max length 191 |
street | string | required | max length 191 |
house | string | null | optional | House number. For a parcel locker, the number of the parcel locker. max length 191 |
additional | string | null | optional | max length 191 |
postcode | string | required | max length 191 |
city | string | required | max length 191 |
country | string | required | Country code according to ISO 3166-1 alpha-2. Unknown codes fail with unknown_country. min length 2 · max length 2 |
telephone | string | null | optional | max length 191 |
mobile | string | null | optional | max length 191 |
email | string (email) | null | optional | max length 191 |
packstation | boolean | null | optional | true for a parcel locker address. Then postnumber is required. |
postnumber | string | null | optional | Parcel locker customer number (DHL Postnummer), 6 to 10 digits. Only stored when packstation is true. pattern ^[0-9]{6,10}$ |
is_default_shipping | boolean | null | optional | true makes this the default delivery address; the previous default loses the flag. |
is_default_billing | boolean | null | optional | true makes this the default billing address; the previous default loses the flag. |
Example request
curl -X POST "https://shop.example.com/api/v1/customers/u-55871/addresses" \
-H "Authorization: Bearer $API_KEY" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-d '{
"first_name": "Alex",
"last_name": "Sample",
"company": null,
"street": "Packstation",
"house": "123",
"postcode": "10117",
"city": "Berlin",
"country": "DE",
"telephone": "+49 30 1234567",
"packstation": true,
"postnumber": "12345678",
"is_default_shipping": true,
"is_default_billing": false
}' Responses
200 OK The same address already existed. Nothing new was created; the existing address is returned.
{
"data": {
"id": 2,
"customer_id": 9021,
"first_name": "Alex",
"last_name": "Sample",
"company_name": null,
"street": "Packstation",
"house_number": "123",
"postcode": "10117",
"city": "Berlin",
"country_id": 276,
"country": "DE",
"telephone": "+49 30 1234567",
"packstation": 1,
"packstation_name": "123",
"postnumber": "12345678",
"is_default": 1,
"is_default_billing": 0,
"is_default_shipping": true
}
} Response fields
| Field | Type | Required | Description |
|---|---|---|---|
data | object | required | An address book entry. Note that responses use company_name and house_number, while requests
use company and house. Further fields of the address record are included as well. |
id | integer | required | ID of the address, used in the path of updateCustomerAddress and deleteCustomerAddress. |
customer_id | integer | required | Our customer number. |
salutation | string | null | optional | |
title | string | null | optional | |
first_name | string | null | optional | |
last_name | string | null | optional | |
company_name | string | null | optional | |
street | string | null | optional | |
house_number | string | null | optional | |
additional | string | null | optional | |
postcode | string | null | optional | |
city | string | null | optional | |
country_id | integer | null | optional | Our internal country ID. |
country | string | null | required | Country code according to ISO 3166-1 alpha-2. |
telephone | string | null | optional | |
mobile | string | null | optional | |
email | string | null | optional | |
packstation | integer | null | optional | 1 for a parcel locker address. |
packstation_name | string | null | optional | Number of the parcel locker. |
postnumber | string | null | optional | Parcel locker customer number. |
is_default | integer | null | optional | 1 if this is the default delivery address (same as is_default_shipping). |
is_default_billing | integer | null | optional | 1 if this is the default billing address. |
is_default_shipping | boolean | required | true if this is the default delivery address. |
created_at | string (date-time) | null | optional | |
updated_at | string (date-time) | null | optional |
201 Created The address was created.
{
"data": {
"id": 2,
"customer_id": 9021,
"first_name": "Alex",
"last_name": "Sample",
"company_name": null,
"street": "Packstation",
"house_number": "123",
"postcode": "10117",
"city": "Berlin",
"country_id": 276,
"country": "DE",
"telephone": "+49 30 1234567",
"packstation": 1,
"packstation_name": "123",
"postnumber": "12345678",
"is_default": 1,
"is_default_billing": 0,
"is_default_shipping": true
}
} Response fields
| Field | Type | Required | Description |
|---|---|---|---|
data | object | required | An address book entry. Note that responses use company_name and house_number, while requests
use company and house. Further fields of the address record are included as well. |
id | integer | required | ID of the address, used in the path of updateCustomerAddress and deleteCustomerAddress. |
customer_id | integer | required | Our customer number. |
salutation | string | null | optional | |
title | string | null | optional | |
first_name | string | null | optional | |
last_name | string | null | optional | |
company_name | string | null | optional | |
street | string | null | optional | |
house_number | string | null | optional | |
additional | string | null | optional | |
postcode | string | null | optional | |
city | string | null | optional | |
country_id | integer | null | optional | Our internal country ID. |
country | string | null | required | Country code according to ISO 3166-1 alpha-2. |
telephone | string | null | optional | |
mobile | string | null | optional | |
email | string | null | optional | |
packstation | integer | null | optional | 1 for a parcel locker address. |
packstation_name | string | null | optional | Number of the parcel locker. |
postnumber | string | null | optional | Parcel locker customer number. |
is_default | integer | null | optional | 1 if this is the default delivery address (same as is_default_shipping). |
is_default_billing | integer | null | optional | 1 if this is the default billing address. |
is_default_shipping | boolean | required | true if this is the default delivery address. |
created_at | string (date-time) | null | optional | |
updated_at | string (date-time) | null | optional |
Error responses
401 Unauthorized The API key is missing, malformed, wrong, paused, expired or revoked. The body is always the same and never names the reason.
{
"error": {
"code": "unauthorized",
"message": "Invalid or missing API key.",
"details": []
}
} 403 Forbidden The API key is valid but lacks a scope this endpoint needs. details.required lists the scopes
the endpoint requires, details.missing the ones your key lacks. Ask the shop operator to add
the scope.
{
"error": {
"code": "insufficient_scope",
"message": "The API key is missing a required scope.",
"details": {
"required": [
"orders.write"
],
"missing": [
"orders.write"
]
}
}
} 404 Not Found The path does not exist, the API is not enabled on this system, the order does not belong to the shop of your API client, or the customer, address or label value is not known to your API client.
{
"error": {
"code": "not_found",
"message": "The requested resource does not exist.",
"details": []
}
} 422 Unprocessable Content The request data is invalid. details lists every problem at once: per field a list of
{code, message}. Field names use dots for nesting, for example value_ids.1 is the second
entry of value_ids (counting from 0).
{
"error": {
"code": "validation_failed",
"message": "The request payload is invalid.",
"details": {
"street": [
{
"code": "required",
"message": "The street field is required."
}
],
"country": [
{
"code": "unknown_country",
"message": "The selected country is invalid."
}
]
}
}
} 429 Too Many Requests Too many requests. Either your API client used up its requests per minute
(message Too many requests., with all rate limit headers), or too many failed authentications
came in a short time (message Too many authentication attempts., only Retry-After). Both
carry the code rate_limited.
{
"error": {
"code": "rate_limited",
"message": "Too many requests.",
"details": []
}
} 500 Internal Server Error An unexpected error occurred on our side. Retry later.
{
"error": {
"code": "server_error",
"message": "An unexpected error occurred.",
"details": []
}
} All error codes: error code reference.
Change an address
/customers/{externalId}/addresses/{addressId}
Scope: customers.write
Changes an address of the customer. Send only the fields that change. street, postcode,
city and country must not be emptied if you send them.
For a parcel locker address, send packstation, house and postnumber together: the
parcel locker number and customer number are only stored when packstation is true in the
same request.
Only addresses of this customer can be changed; any other address ID answers 404.
Path parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
externalId | string | required | Your customer ID, as sent in customer.external_id. Case-sensitive. URL-encode special characters. max length 191 |
addressId | integer | required | ID of the address (id from the address list). |
Request body
| Field | Type | Required | Description |
|---|---|---|---|
salutation | string | null | optional | max length 191 |
title | string | null | optional | max length 50 |
first_name | string | null | optional | max length 191 |
last_name | string | null | optional | max length 191 |
company | string | null | optional | max length 191 |
street | string | optional | max length 191 |
house | string | null | optional | House number. For a parcel locker, the number of the parcel locker. max length 191 |
additional | string | null | optional | max length 191 |
postcode | string | optional | max length 191 |
city | string | optional | max length 191 |
country | string | optional | Country code according to ISO 3166-1 alpha-2. Unknown codes fail with unknown_country. min length 2 · max length 2 |
telephone | string | null | optional | max length 191 |
mobile | string | null | optional | max length 191 |
email | string (email) | null | optional | max length 191 |
packstation | boolean | null | optional | true for a parcel locker address. Then postnumber is required. |
postnumber | string | null | optional | Parcel locker customer number (DHL Postnummer), 6 to 10 digits. Only stored when packstation is true. pattern ^[0-9]{6,10}$ |
is_default_shipping | boolean | null | optional | true makes this the default delivery address; the previous default loses the flag. |
is_default_billing | boolean | null | optional | true makes this the default billing address; the previous default loses the flag. |
Example request
curl -X PATCH "https://shop.example.com/api/v1/customers/u-55871/addresses/2" \
-H "Authorization: Bearer $API_KEY" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-d '{
"postcode": "20095",
"city": "Hamburg"
}' Responses
200 OK The changed address.
{
"data": {
"id": 2,
"customer_id": 9021,
"first_name": "Alex",
"last_name": "Sample",
"company_name": null,
"street": "Sample Street",
"house_number": "7",
"postcode": "20095",
"city": "Hamburg",
"country_id": 276,
"country": "DE",
"packstation": 0,
"packstation_name": null,
"postnumber": null,
"is_default": 1,
"is_default_billing": 0,
"is_default_shipping": true
}
} Response fields
| Field | Type | Required | Description |
|---|---|---|---|
data | object | required | An address book entry. Note that responses use company_name and house_number, while requests
use company and house. Further fields of the address record are included as well. |
id | integer | required | ID of the address, used in the path of updateCustomerAddress and deleteCustomerAddress. |
customer_id | integer | required | Our customer number. |
salutation | string | null | optional | |
title | string | null | optional | |
first_name | string | null | optional | |
last_name | string | null | optional | |
company_name | string | null | optional | |
street | string | null | optional | |
house_number | string | null | optional | |
additional | string | null | optional | |
postcode | string | null | optional | |
city | string | null | optional | |
country_id | integer | null | optional | Our internal country ID. |
country | string | null | required | Country code according to ISO 3166-1 alpha-2. |
telephone | string | null | optional | |
mobile | string | null | optional | |
email | string | null | optional | |
packstation | integer | null | optional | 1 for a parcel locker address. |
packstation_name | string | null | optional | Number of the parcel locker. |
postnumber | string | null | optional | Parcel locker customer number. |
is_default | integer | null | optional | 1 if this is the default delivery address (same as is_default_shipping). |
is_default_billing | integer | null | optional | 1 if this is the default billing address. |
is_default_shipping | boolean | required | true if this is the default delivery address. |
created_at | string (date-time) | null | optional | |
updated_at | string (date-time) | null | optional |
Error responses
401 Unauthorized The API key is missing, malformed, wrong, paused, expired or revoked. The body is always the same and never names the reason.
{
"error": {
"code": "unauthorized",
"message": "Invalid or missing API key.",
"details": []
}
} 403 Forbidden The API key is valid but lacks a scope this endpoint needs. details.required lists the scopes
the endpoint requires, details.missing the ones your key lacks. Ask the shop operator to add
the scope.
{
"error": {
"code": "insufficient_scope",
"message": "The API key is missing a required scope.",
"details": {
"required": [
"orders.write"
],
"missing": [
"orders.write"
]
}
}
} 404 Not Found The path does not exist, the API is not enabled on this system, the order does not belong to the shop of your API client, or the customer, address or label value is not known to your API client.
{
"error": {
"code": "not_found",
"message": "The requested resource does not exist.",
"details": []
}
} 422 Unprocessable Content The request data is invalid. details lists every problem at once: per field a list of
{code, message}. Field names use dots for nesting, for example value_ids.1 is the second
entry of value_ids (counting from 0).
{
"error": {
"code": "validation_failed",
"message": "The request payload is invalid.",
"details": {
"street": [
{
"code": "required",
"message": "The street field is required."
}
],
"country": [
{
"code": "unknown_country",
"message": "The selected country is invalid."
}
]
}
}
} 429 Too Many Requests Too many requests. Either your API client used up its requests per minute
(message Too many requests., with all rate limit headers), or too many failed authentications
came in a short time (message Too many authentication attempts., only Retry-After). Both
carry the code rate_limited.
{
"error": {
"code": "rate_limited",
"message": "Too many requests.",
"details": []
}
} 500 Internal Server Error An unexpected error occurred on our side. Retry later.
{
"error": {
"code": "server_error",
"message": "An unexpected error occurred.",
"details": []
}
} All error codes: error code reference.
Delete an address
/customers/{externalId}/addresses/{addressId}
Scope: customers.write
Deletes an address of the customer. Any address ID that does not belong to this customer answers 404.
Path parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
externalId | string | required | Your customer ID, as sent in customer.external_id. Case-sensitive. URL-encode special characters. max length 191 |
addressId | integer | required | ID of the address (id from the address list). |
Example request
curl -X DELETE "https://shop.example.com/api/v1/customers/u-55871/addresses/2" \
-H "Authorization: Bearer $API_KEY" \
-H "Accept: application/json" Responses
204 No Content The address was deleted. The response has no body.
Error responses
401 Unauthorized The API key is missing, malformed, wrong, paused, expired or revoked. The body is always the same and never names the reason.
{
"error": {
"code": "unauthorized",
"message": "Invalid or missing API key.",
"details": []
}
} 403 Forbidden The API key is valid but lacks a scope this endpoint needs. details.required lists the scopes
the endpoint requires, details.missing the ones your key lacks. Ask the shop operator to add
the scope.
{
"error": {
"code": "insufficient_scope",
"message": "The API key is missing a required scope.",
"details": {
"required": [
"orders.write"
],
"missing": [
"orders.write"
]
}
}
} 404 Not Found The path does not exist, the API is not enabled on this system, the order does not belong to the shop of your API client, or the customer, address or label value is not known to your API client.
{
"error": {
"code": "not_found",
"message": "The requested resource does not exist.",
"details": []
}
} 429 Too Many Requests Too many requests. Either your API client used up its requests per minute
(message Too many requests., with all rate limit headers), or too many failed authentications
came in a short time (message Too many authentication attempts., only Retry-After). Both
carry the code rate_limited.
{
"error": {
"code": "rate_limited",
"message": "Too many requests.",
"details": []
}
} 500 Internal Server Error An unexpected error occurred on our side. Retry later.
{
"error": {
"code": "server_error",
"message": "An unexpected error occurred.",
"details": []
}
} All error codes: error code reference.