Customers
Get customer details
Retrieves detailed information about a specific customer.
GET
/
customers
/
{uuid}
Get customer details
curl --request GET \
--url https://api.staging.streamlinedpayments.com/api/v1/customers/{uuid} \
--header 'X-Api-Key: <api-key>' \
--header 'X-App-Id: <api-key>'const options = {method: 'GET', headers: {'X-App-Id': '<api-key>', 'X-Api-Key': '<api-key>'}};
fetch('https://api.staging.streamlinedpayments.com/api/v1/customers/{uuid}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.staging.streamlinedpayments.com/api/v1/customers/{uuid}"
headers = {
"X-App-Id": "<api-key>",
"X-Api-Key": "<api-key>"
}
response = requests.get(url, headers=headers)
print(response.text)require 'uri'
require 'net/http'
url = URI("https://api.staging.streamlinedpayments.com/api/v1/customers/{uuid}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-App-Id"] = '<api-key>'
request["X-Api-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"customer": {
"website": "<string>",
"company_name": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"tags": [
"<string>"
],
"first_name": "<string>",
"last_name": "<string>",
"uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"display_name": "<string>",
"customer_email": "<string>",
"total_open_balance_amount": 123,
"quick_pay_enabled": true,
"average_days_to_pay": 123,
"net_terms": 0,
"net_terms_label": "<string>",
"shopify_customer_id": "gid://shopify/Customer/1234567890",
"shopify_shop_domain": "your-store",
"application_submitted_at": "2023-11-07T05:31:56Z",
"application_approved_at": "2023-11-07T05:31:56Z",
"customer_group": {
"uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"company_name": "<string>"
},
"billing_address": {
"id": 123,
"address1": "<string>",
"address2": "<string>",
"city": "<string>",
"state": "<string>",
"postal_code": "<string>",
"phone": "<string>",
"country": "<string>",
"email": "<string>",
"cc_email": "<string>",
"first_name": "<string>",
"last_name": "<string>",
"company_name": "<string>"
},
"addresses": [
{
"id": 123,
"address1": "<string>",
"address2": "<string>",
"city": "<string>",
"state": "<string>",
"postal_code": "<string>",
"phone": "<string>",
"country": "<string>",
"email": "<string>",
"cc_email": "<string>",
"first_name": "<string>",
"last_name": "<string>",
"company_name": "<string>"
}
]
}
}⌘I
Get customer details
curl --request GET \
--url https://api.staging.streamlinedpayments.com/api/v1/customers/{uuid} \
--header 'X-Api-Key: <api-key>' \
--header 'X-App-Id: <api-key>'const options = {method: 'GET', headers: {'X-App-Id': '<api-key>', 'X-Api-Key': '<api-key>'}};
fetch('https://api.staging.streamlinedpayments.com/api/v1/customers/{uuid}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.staging.streamlinedpayments.com/api/v1/customers/{uuid}"
headers = {
"X-App-Id": "<api-key>",
"X-Api-Key": "<api-key>"
}
response = requests.get(url, headers=headers)
print(response.text)require 'uri'
require 'net/http'
url = URI("https://api.staging.streamlinedpayments.com/api/v1/customers/{uuid}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-App-Id"] = '<api-key>'
request["X-Api-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"customer": {
"website": "<string>",
"company_name": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"tags": [
"<string>"
],
"first_name": "<string>",
"last_name": "<string>",
"uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"display_name": "<string>",
"customer_email": "<string>",
"total_open_balance_amount": 123,
"quick_pay_enabled": true,
"average_days_to_pay": 123,
"net_terms": 0,
"net_terms_label": "<string>",
"shopify_customer_id": "gid://shopify/Customer/1234567890",
"shopify_shop_domain": "your-store",
"application_submitted_at": "2023-11-07T05:31:56Z",
"application_approved_at": "2023-11-07T05:31:56Z",
"customer_group": {
"uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"company_name": "<string>"
},
"billing_address": {
"id": 123,
"address1": "<string>",
"address2": "<string>",
"city": "<string>",
"state": "<string>",
"postal_code": "<string>",
"phone": "<string>",
"country": "<string>",
"email": "<string>",
"cc_email": "<string>",
"first_name": "<string>",
"last_name": "<string>",
"company_name": "<string>"
},
"addresses": [
{
"id": 123,
"address1": "<string>",
"address2": "<string>",
"city": "<string>",
"state": "<string>",
"postal_code": "<string>",
"phone": "<string>",
"country": "<string>",
"email": "<string>",
"cc_email": "<string>",
"first_name": "<string>",
"last_name": "<string>",
"company_name": "<string>"
}
]
}
}