Set Default Address

🔒

Requires write_customer access scope.

The Set Default Address API allows set a specific address as the default for a given customer.

This API is especially useful for:

  1. Managing default shipping or billing addresses for customers.
  2. Allowing users to quickly access and use their preferred address.
  3. Updating address priority in customer profiles.

Note: The operation is scoped to a specific shop, identified by its unique domain prefix (shopdomain), ensuring all updates are applied to the correct store.

Request Parameters

Public Request Parameters

📘

Path Parameters

ParameterTypeRequiredDescriptionExample
customer_idstringYesUnique identifier of the customer.165618e4-3243-4cd7-abc3-1234567890ab
address_idstringYesUnique identifier of the address.2490dc6a-d511-4e5e-bbcb-d58e913243ad

Response Explanation

Public Response Parameters

📘

Successful Response

FieldTypeExampleDescription
codestring"success"Response status code
messagestring""Descriptive message of the response
dataobject

Error Response

FieldTypeExampleDescription
codestringInvalidParameterError http message
messagestring``Error message

API Structure Overview

Language
Credentials
Header
URL
Click Try It! to start a request and see the response here!