The user needs to be logged in to use this endpoint, click here to read more.
Customer API for customer details.
OK
Bad Request
Too Many Requests
Internal Server Error
{- "customerNumber": 563457,
- "name": {
- "firstName": "Ola",
- "middleName": "Solstrand",
- "lastName": "Nordmann",
- "companyName": "Company International Ltd",
- "departmentName": "Support"
}, - "phoneNumbers": [
- {
- "phoneNumber": "+4712345678",
- "phoneNumberType": "personal"
}, - {
- "phoneNumber": "+4723339100",
- "phoneNumberType": "company"
}
], - "emails": [
- "ola.nordmann@hotmail.no",
- "ola.nordmann@company.com"
], - "invoiceEmailAddress": "ola.nordmann@hotmail.no",
- "attachedUsers": {
- "uniqueId": "abc123ee63461dd",
- "credentials": [
- {
- "credential": "ola.nordmann@hotmail.no",
- "credentialType": "A_EMAIL_ADDRESS",
- "verificationLevel": "Externally_verified"
}, - {
- "credential": "+4790123456",
- "credentialType": "B_SMS_PHONE",
- "verificationLevel": "Not verified"
}
]
}
}
The user needs to be logged in to use this endpoint, click here to read more.
This API updates customer data and will replace the existing customerdata for every field in the request. This means fields that are not specified are defined as null in the request. Name in Connect required minimum lastName
or companyName
. If request is null or empty, then lastName
will be set to “-”. In this API we may set an email address that shall be used for sending email invoice.
{- "name": {
- "firstName": "Ola",
- "middleName": "Solstrand",
- "lastName": "Nordmann",
- "companyName": "Company International Ltd",
- "departmentName": "Support"
}, - "phoneNumbers": [
- {
- "phoneNumber": "+4712345678",
- "phoneNumberType": "personal"
}, - {
- "phoneNumber": "+4723339100",
- "phoneNumberType": "company"
}
], - "emails": [
- "ola.nordmann@hotmail.no",
- "ola.nordmann@company.com"
], - "invoiceEmailAddress": "ola.nordmann@hotmail.no"
}
{- "success": true
}
Only the client needs to be logged in to use this endpoint. The user does not need to be logged in, click here to read more.
This API allows to retrieve information about one or more customers.
Search results may be one or more customers, depending on the arguments used and what is actually present in the database.
In combination with customer number and name, you can also fill in the product. This will "shrink" search result.
Requirements for fields:
Searching by name or address require following fields to be set in request:
companyName
or lastName
streetAddress
postalCode
or postalPlace
Otherwise one of following fields to be set in request:
phoneNumber
email
Response
The response is a list of customers found. The list is empty if no customer is found.
Number of customers in response are limited to 5 customers.
productCode | string <= 12 characters Product code to match in search. |
companyName | string <= 40 characters Company name to match in a name/address search. |
departmentName | string <= 40 characters Department name to match in a name/address search. |
firstName | string <= 30 characters First name to match in a name/address search. |
middleName | string <= 30 characters Middle name to match in a name/address search. |
lastName | string <= 30 characters Last name to match in a name/address search. |
careOfAddress | string <= 40 characters Care of address to match in a name/address search. |
streetAddress | string <= 40 characters Street name to match in a name/address search. |
streetNumber | integer Street number to match in a name/address search. |
entrance | string <= 12 characters Entrance to match in a name/address search. |
postalCode | string <= 10 characters Postal code to match in a name/address search. |
postalPlace | string <= 30 characters Postal place to match in a name/address search. |
countryCode | string <= 3 characters Country code, in ISO 3166-2 format, to match in a search. |
phoneNumber | string <= 20 characters Phone number to match in a search. A phone number has to follow the telephone number standard E.164 |
string <email> <= 255 characters Email to match in a search. |
OK
Array of objects <= 5 items |
Bad Request
Forbidden - Number of customers in response are limited to 5 customers
Too Many Requests
Internal Server Error
{- "productCode": "CO27409",
- "companyName": "Company International Ltd",
- "departmentName": "Support",
- "firstName": "Ola",
- "middleName": "Fjordstrand",
- "lastName": "Nordmann",
- "careOfAddress": "",
- "streetAddress": "Grubbegata",
- "streetNumber": 6,
- "entrance": "A",
- "postalCode": 179,
- "postalPlace": "Oslo",
- "countryCode": "NO",
- "phoneNumber": "+4712345678",
- "email": "ola.nordmann@company.com"
}
{- "customers": [
- {
- "customerNumber": 563457,
- "companyName": "Company International Ltd",
- "departmentName": "Support",
- "firstName": "Ola",
- "middleName": "Fjordstrand",
- "lastName": "Nordmann",
- "streetAddress": "Grubbegata",
- "streetNumber": 6,
- "postalCode": 179,
- "postalPlace": "Oslo",
- "postalAddress": "Postboks 265 Økern",
- "postalAddressPostalCode": "0510",
- "postalAddressPostalPlace": "Oslo",
- "countryCode": "NO",
- "emails": {
- "email": [
- "ola.nordmann@company.com",
- "ola.nordmann@hotmail.no"
]
}, - "phoneNumbers": [
- {
- "phoneNumber": "+4712345678",
- "isMobile": true
}, - {
- "phoneNumber": "+4723339100",
- "isMobile": false
}
]
}
]
}
Only the client needs to be logged in to use this endpoint. The user does not need to be logged in, click here to read more.
This API will return a list with customers from input with credentials.
OK
Array of objects |
Bad Request
Too Many Requests
Internal Server Error
{- "credentials": [
- "+4787654321",
- "kari.nordmann@gmail.com"
]
}
{- "customers": [
- {
- "credential": "+4787654321",
- "customerNumber": 327492
}
]
}
Only the client needs to be logged in to use this endpoint. The user does not need to be logged in, click here to read more.
OK
Bad Request
Not Found
Too Many Requests
Internal Server Error
{- "customerNumber": 563457,
- "name": {
- "firstName": "Ola",
- "middleName": "Fjordstrand",
- "lastName": "Nordmann",
- "companyName": "Company International Ltd",
- "departmentName": "Support"
}, - "phoneNumbers": [
- {
- "phoneNumber": "+4712345678",
- "phoneNumberType": "personal"
}, - {
- "phoneNumber": "+4723339100",
- "phoneNumberType": "company"
}
], - "emails": [
- "ola.nordmann@hotmail.no",
- "ola.nordmann@company.com"
], - "invoiceEmailAddress": "ola.nordmann@hotmail.no",
- "attachedUsers": {
- "uniqueId": "abc123ee63461dd",
- "credentials": [
- {
- "credential": "ola.nordmann@hotmail.no",
- "credentialType": "A_EMAIL_ADDRESS",
- "verificationLevel": "Externally_verified"
}, - {
- "credential": "+4790123456",
- "credentialType": "B_SMS_PHONE",
- "verificationLevel": "Not verified"
}
]
}
}