curl --request GET \
--url https://{customerDomain}.fabric.zone/api-commerceIdentity/user/{userId} \
--header 'Authorization: Bearer <token>' \
--header 'x-site-context: <x-site-context>'
{
"isActive": true,
"registrationDate": "2020-04-15T10:08:04.246Z",
"expiryDate": "2020-04-15T10:08:04.246Z",
"roles": "customer",
"name": {
"first": "Pat",
"middle": "E",
"last": "Kake"
},
"phone": [
{
"number": "555-123-4567",
"countryCode": "+91",
"extenstion": "x-6789",
"kind": "Mobile"
}
],
"email": "test@mail.com",
"extra": {},
"registrationSite": "XXX",
"account": "xxxxxcxxxxxxxxxxxxxx",
"userId": "6169b2d892a5f30009d76480",
"address": [
{
"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
}
],
"provider": [
{
"id": "6228f647a257734d91dbb49f",
"name": "LOCAL",
"isActive": true,
"registrationDate": "2020-04-15T10:08:04.246Z",
"lastLoginDate": "2020-04-15T10:08:04.246Z"
}
],
"createdAt": "2020-04-15T10:08:04.246Z",
"updatedAt": "2020-04-15T10:08:04.246Z"
}
Get user details
curl --request GET \
--url https://{customerDomain}.fabric.zone/api-commerceIdentity/user/{userId} \
--header 'Authorization: Bearer <token>' \
--header 'x-site-context: <x-site-context>'
{
"isActive": true,
"registrationDate": "2020-04-15T10:08:04.246Z",
"expiryDate": "2020-04-15T10:08:04.246Z",
"roles": "customer",
"name": {
"first": "Pat",
"middle": "E",
"last": "Kake"
},
"phone": [
{
"number": "555-123-4567",
"countryCode": "+91",
"extenstion": "x-6789",
"kind": "Mobile"
}
],
"email": "test@mail.com",
"extra": {},
"registrationSite": "XXX",
"account": "xxxxxcxxxxxxxxxxxxxx",
"userId": "6169b2d892a5f30009d76480",
"address": [
{
"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
}
],
"provider": [
{
"id": "6228f647a257734d91dbb49f",
"name": "LOCAL",
"isActive": true,
"registrationDate": "2020-04-15T10:08:04.246Z",
"lastLoginDate": "2020-04-15T10:08:04.246Z"
}
],
"createdAt": "2020-04-15T10:08:04.246Z",
"updatedAt": "2020-04-15T10:08:04.246Z"
}
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
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.
"{\"date\": \"2023-01-01T00:00:00.000Z\", \"channel\": 12, \"account\": \"1234abcd5678efgh9ijklmno\",\"stage\":\"production\"}"
User ID
"6169b2d892a5f30009d76480"
OK
User User details
Was this page helpful?