Return the customer object if the customerCode exists.
Rate limit range : High
GET
/eTech/rest/ws/referentials/v1/customers/code:{customerCode}
curl \
--request GET 'https://ws-eu1.praxedo.com/eTech/rest/ws/referentials/v1/customers/code:customer-123456' \
--header "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
Customer with mandatory fields only defined
{
"customerCode": "customer-b0ee57c9",
"parentCustomerCode": null,
"name": "Customer name",
"addressDetails": {
"address": null,
"zipCode": null,
"city": "Paris",
"country": null
},
"contact": null,
"description": null,
"officeCode": "office-ac81dkl",
"customFields": {
"textCustomFieldCode": {
"textValue": "Value of mandatory custom field"
},
"urlCustomFieldCode": {
"urlValue": null
},
"dateCustomFieldCode": {
"dateValue": null
}
},
"lastUpdate": "2024-09-12 13:00:27 UTC"
}
{
"customerCode": "customer-b0ee57c9",
"parentCustomerCode": null,
"name": "Customer name",
"addressDetails": {
"address": null,
"zipCode": null,
"city": "Paris",
"country": null
},
"contact": null,
"description": null,
"officeCode": "office-ac81dkl",
"customFields": {},
"lastUpdate": "2024-09-12 13:00:27 UTC"
}
{
"customerCode": "customer-b0ee57c9",
"name": "Super Customer",
"parentCustomerCode": null,
"addressDetails": {
"address": "10 Boulevard Raspail",
"zipCode": "75007",
"city": "Paris",
"country": "FR"
},
"contact": {
"name": "Jean Du Jardin",
"details": [
{
"type": "Mobile",
"description": "Personal mobile number",
"value": "+7234567890"
},
{
"type": "Email",
"description": "Work email",
"value": "jean.dujardin@company.com"
},
{
"type": "Phone",
"description": "",
"value": 987654321
},
{
"type": "Fax",
"description": "Office fax",
"value": "+1122334455"
}
]
},
"description": "Super customer description",
"officeCode": "office-ac81dkl",
"customFields": {
"checkBoxCustomFieldCode": {
"booleanValue": true
},
"dateCustomFieldCode": {
"dateValue": "2024-12-11"
},
"dropDownCustomFieldCode": {
"dropDownValue": "Option selected for drop down field"
}
},
"lastUpdate": "2024-09-12 13:00:27 UTC"
}
{
"customerCode": "customer-bbcdef123",
"name": "Sub customer",
"parentCustomerCode": "customer-a0ee57c9",
"addressDetails": {
"address": null,
"zipCode": null,
"city": "Paris",
"country": null
},
"contact": null,
"description": null,
"officeCode": "office-ac81dkl",
"customFields": {
"textCustomFieldCode": {
"textValue": null
},
"dateCustomFieldCode": {
"dateValue": null
}
},
"lastUpdate": "2024-09-12 13:00:27 UTC"
}
{
"customerCode": "customer-bbcdef123",
"name": "Super sub customer",
"parentCustomerCode": "customer-a0ee57c9",
"addressDetails": {
"address": "10 Boulevard Raspail",
"zipCode": "75007",
"city": "Paris",
"country": "FR"
},
"contact": {
"name": "Rommain Duris",
"details": [
{
"type": "Mobile",
"description": "Personal mobile number",
"value": "+7234567890"
},
{
"type": "Email",
"description": "Work email",
"value": "romain.duris@company.com"
},
{
"type": "Phone",
"description": "",
"value": 987654321
},
{
"type": "Fax",
"description": "Office fax",
"value": "+1122334455"
}
]
},
"description": "Super sub customer description",
"officeCode": "office-ac81dkl",
"customFields": {
"dropDownCustomFieldCode": {
"dropDownValue": "Drop down text value"
},
"urlCustomFieldCode": {
"urlValue": "https://www.domain.fr/"
},
"dateTimeCustomFieldCode": {
"dateTimeValue": "2024-11-13T12:15"
}
},
"lastUpdate": "2024-09-12 13:00:27 UTC"
}
{
"customerCode": "customer-ksahf34h",
"parentCustomerCode": null,
"name": "Customer with custom data",
"addressDetails": {
"address": null,
"zipCode": null,
"city": "Nice",
"country": null
},
"contact": null,
"description": null,
"officeCode": "office-ksah8671",
"customFields": {
"textCustomFieldCode": {
"textValue": "Value of text field"
},
"checkboxCustomFieldCode": {
"booleanValue": true
},
"dropDownCustomFieldCode": {
"dropDownValue": "Option selected in drop down field"
},
"urlCustomFieldCode": {
"urlValue": "https://www.domain.fr/link"
},
"dateCustomFieldCode": {
"dateValue": "2024-12-11"
},
"dateTimeCustomFieldCode": {
"dateTimeValue": "2024-12-11T15:30"
},
"timeCustomFieldCode": {
"timeValue": 55800
},
"gpsCustomFieldCode": {
"gpsValue": {
"latitude": 34.293,
"longitude": 132.321
}
}
},
"lastUpdate": "2024-12-11 16:50:00 UTC"
}
Response examples (400)
{
"errors": [
{
"code": "referentials.customer.code.mandatory",
"message": "Missing code in path."
}
],
"errorReference": "669b11d0ae8145aa9b106b049091b371"
}
Response examples (401)
401 unauthorized
{
"errors": [
{
"code": "unauthorized.nocredentials",
"message": "No credentials."
}
],
"errorReference": "f939c6b8c15045c9a70f500fdb570555"
}
{
"errors": [
{
"code": "unauthorized.badcredentials",
"message": "Bad Credentials."
}
],
"errorReference": "f1028f99811b422eb21f5ff176664069"
}
Response examples (403)
{
"errors": [
{
"code": "access.forbiden",
"message": "You don't have the rights to access this resource."
}
],
"errorReference": "a745dc4c5a2b473aaf8ce94c9260aa8f"
}
Response examples (404)
{
"errors": [
{
"code": "referentials.customer.not.found",
"message": "Customer not found."
}
],
"errorReference": "6ef95ca524154a35bcc21e0d482bd07b"
}
Response examples (429)
{
"errors": [
{
"code": "ratelimiter.toomanyrequest",
"message": "Rejected because of the rate limit definition."
}
],
"errorReference": "973326230a3f44daba6cc34a5939b4fb"
}
Response examples (500)
{
"errors": [
{
"code": "internal.server.error",
"message": "Something went wrong."
}
],
"errorReference": "6377010431314bf6b0b95ec4d32ddae0"
}