GET
/
api-commerceIdentity
/
user
/
{userId}
/
address
curl --request GET \
  --url https://{customerDomain}.fabric.zone/api-commerceIdentity/user/{userId}/address \
  --header 'x-api-key: <api-key>' \
  --header 'x-site-context: <x-site-context>'
[
  {
    "attention": "Account Manager",
    "address1": "1234 Main St.",
    "address2": "Suite 710",
    "address3": "Floor 7",
    "city": "Houston",
    "state": "TX",
    "country": "USA",
    "zipCode": 77035,
    "company": "Acme Inc.",
    "kind": "Business",
    "phone": {
      "number": "555-123-4567",
      "kind": "Mobile"
    },
    "name": {
      "first": "Pat",
      "last": "Kake"
    },
    "email": "test@mail.com",
    "isValidated": true,
    "isDefault": true
  }
]

Authorizations

x-api-key
string
header
required

Headers

x-site-context
string
required

The x-site-context header is a JSON object that contains information about the source you wish to pull from. The mandatory account is the 24 character identifier found in Copilot. The channel (Sales channel ID), stage (environment name), and date attributes can be used to further narrow the scope of your data source.

Example:

"{\"date\": \"2023-01-01T00:00:00.000Z\", \"channel\": 12, \"account\": \"1234abcd5678efgh9ijklmno\",\"stage\":\"production\"}"

Path Parameters

userId
string
required

User ID

Example:

"6169b2d892a5f30009d76480"

Query Parameters

kind
string

Type of user to return

Response

200
application/json
OK

The response is of type object[].