Account and profile
Was this helpful?
Was this helpful?
Your Emporix tenant's name.
Note: The tenant should always be written in lowercase.
^[a-z][a-z0-9]+$
List of additional attributes to be retrieved, separated by commas.
Possible value to be passed in this parameter is addresses
.
addresses
GET /customer/{tenant}/me HTTP/1.1
Host: api.emporix.io
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"title": "MR",
"firstName": "John",
"lastName": "Doe",
"contactPhone": "123456789",
"company": "Emporix",
"preferredLanguage": "en_US",
"preferredCurrency": "USD",
"preferredSite": "default",
"metadata": {
"mixins": {},
"version": 2
},
"mixins": {},
"customerNumber": "13869000",
"id": "13869000",
"accounts": [
{
"id": "example@customer.com"
}
],
"contactEmail": "example@customer.com",
"businessModel": "B2B",
"b2b": {
"companyRegistrationId": "123-456-789",
"legalEntities": [
{
"id": "D165356",
"name": "BMW",
"contactAssignmentId": "D436432"
}
]
}
}
Your Emporix tenant's name.
Note: The tenant should always be written in lowercase.
^[a-z][a-z0-9]+$
Token received by the customer through email.
DELETE /customer/{tenant}/me HTTP/1.1
Host: api.emporix.io
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
No content
Your Emporix tenant's name.
Note: The tenant should always be written in lowercase.
^[a-z][a-z0-9]+$
PATCH /customer/{tenant}/me HTTP/1.1
Host: api.emporix.io
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 283
{
"title": "MR",
"firstName": "John",
"lastName": "Doe",
"contactEmail": "example@customer.com",
"contactPhone": "123456789",
"company": "Emporix",
"preferredLanguage": "en_US",
"preferredCurrency": "EUR",
"preferredSite": "main",
"b2b": {
"companyRegistrationId": "123-456-789"
},
"metadata": {
"version": 1
}
}
No content
Customer's email address.
Customer's account password.
POST /customer/{tenant}/me/accounts/internal HTTP/1.1
Host: api.emporix.io
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 57
{
"email": "john.doe@example.com",
"password": "password123"
}
{
"id": "13869000"
}