Query
query GetCustomerById($customerId: ID!) {
GetCustomerById(customerId: $customerId) {
customerId
customerGroupId
customerNumber
createdDate
lastChanged
customerAddresses {
customerAddressId
customerId
isDefault
addressType
companyName
additionalCompanyLine
}
}
}Variables
{
"customerId": "id"
}Response
{
"data": {
"GetCustomerById": {
"customerId": "id",
"customerGroupId": "id",
"customerNumber": "string",
"createdDate": "value",
"lastChanged": "value",
"customerAddresses": [
{
"customerAddressId": "id",
"customerId": "id",
"isDefault": true,
"addressType": "SHIPMENT_ADDRESS",
"companyName": "string",
"additionalCompanyLine": "string"
}
]
}
}
}Queries
GetCustomerById
Retrieves a customer by its ID.
QUERY
GetCustomerById(customerId: ID!): Customer!Arguments
customerId
ID!
required
Returns
customerId
ID!
Customer id
customerGroupId
ID!
Id of the customer group
customerNumber
String
Customer number
createdDate
DateTime
Date when the customer was created
lastChanged
DateTime
Date when the customer was last changed
customerAddresses
[CustomerAddress!]!
List of addresses of the customer
customerGroup
The customer group of the customer
languageIso
String
The language iso code of the customer
Query
query GetCustomerById($customerId: ID!) {
GetCustomerById(customerId: $customerId) {
customerId
customerGroupId
customerNumber
createdDate
lastChanged
customerAddresses {
customerAddressId
customerId
isDefault
addressType
companyName
additionalCompanyLine
}
}
}Variables
{
"customerId": "id"
}Response
{
"data": {
"GetCustomerById": {
"customerId": "id",
"customerGroupId": "id",
"customerNumber": "string",
"createdDate": "value",
"lastChanged": "value",
"customerAddresses": [
{
"customerAddressId": "id",
"customerId": "id",
"isDefault": true,
"addressType": "SHIPMENT_ADDRESS",
"companyName": "string",
"additionalCompanyLine": "string"
}
]
}
}
}Was this page helpful?