Gets all the contacts.
1 min
GET
/episerverapi/commerce/customers/contact
Header Parameters
- acceptstringDescriptionDefaulttext/plainAllowedtext/plainapplication/jsontext/json
Responses
200
- ContactModel[]Description
- primaryKeyIdstring<uuid>DescriptionFormatuuid
- addressesAddressModel[]Description
- addressIdstring<uuid>DescriptionFormatuuid
- modifiedstring<date-time>DescriptionFormatdate-time
- namestringDescription
- firstNamestringDescription
- lastNamestringDescription
- countryNamestringDescription
- countryCodestringDescription
- citystringDescription
- postalCodestringDescription
- line1stringDescription
- line2stringDescription
- regionNamestringDescription
- regionCodestringDescription
- emailstringDescription
- isShippingAddressbooleanDescription
- isBillingAddressbooleanDescription
- daytimePhoneNumberstringDescription
- eveningPhoneNumberstringDescription
- organizationstringDescription
- addressTypeinteger[]Description
- firstNamestringDescription
- lastNamestringDescription
- emailstringDescription
- registrationSourcestringDescription
401
curl
curl --request GET \
--url /episerverapi/commerce/customers/contact \
--header 'accept: text/plain'javascript
var myHeaders = new Headers();
myHeaders.append("accept", "text/plain");
myHeaders.append("content-type", "application/json");
var requestOptions = {
method: 'GET',
headers: myHeaders,
redirect: 'follow'
};
fetch("/episerverapi/commerce/customers/contact", requestOptions)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));ruby
require "uri"
require "json"
require "net/http"
url = URI("/episerverapi/commerce/customers/contact")
http = Net::HTTP.new(url.host, url.port);
request = Net::HTTP::Get.new(url)
request["accept"] = "text/plain"
request["content-type"] = "application/json"
response = http.request(request)
puts response.read_body
python
import requests
import json
url = "/episerverapi/commerce/customers/contact"
payload = {}
headers = {
'accept': 'text/plain',
'content-type': 'application/json'
}
response = requests.request("GET", url, headers=headers, data=payload)
print(response.text)
200
// Return the contacts.
[
{
"primaryKeyId": "",
"addresses": [
{
"addressId": "",
"modified": "",
"name": "",
"firstName": "",
"lastName": "",
"countryName": "",
"countryCode": "",
"city": "",
"postalCode": "",
"line1": "",
"line2": "",
"regionName": "",
"regionCode": "",
"email": "",
"isShippingAddress": false,
"isBillingAddress": false,
"daytimePhoneNumber": "",
"eveningPhoneNumber": "",
"organization": "",
"addressType": [
0
]
}
],
"firstName": "",
"lastName": "",
"email": "",
"registrationSource": ""
}
]401
// If user does not have enough permission for this request.