Customer groups
Remove members from group
Remove-only. Each customer in customer_uuids is removed from the
group (their customer_group_id is cleared). Customers not in the group
are no-ops. Members not named in the request are NOT touched.
DELETE
/
customer_groups
/
{uuid}
/
members
Remove members from group
curl --request DELETE \
--url https://api.staging.streamlinedpayments.com/api/v1/customer_groups/{uuid}/members \
--header 'Content-Type: application/json' \
--header 'X-Api-Key: <api-key>' \
--header 'X-App-Id: <api-key>' \
--data '
{
"customer_uuids": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
]
}
'const options = {
method: 'DELETE',
headers: {
'X-App-Id': '<api-key>',
'X-Api-Key': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({customer_uuids: ['3c90c3cc-0d44-4b50-8888-8dd25736052a']})
};
fetch('https://api.staging.streamlinedpayments.com/api/v1/customer_groups/{uuid}/members', 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/customer_groups/{uuid}/members"
payload = { "customer_uuids": ["3c90c3cc-0d44-4b50-8888-8dd25736052a"] }
headers = {
"X-App-Id": "<api-key>",
"X-Api-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.delete(url, json=payload, headers=headers)
print(response.text)require 'uri'
require 'net/http'
url = URI("https://api.staging.streamlinedpayments.com/api/v1/customer_groups/{uuid}/members")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
request["X-App-Id"] = '<api-key>'
request["X-Api-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"customer_uuids\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"members": [
{
"uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"company_name": "<string>"
}
]
}⌘I
Remove members from group
curl --request DELETE \
--url https://api.staging.streamlinedpayments.com/api/v1/customer_groups/{uuid}/members \
--header 'Content-Type: application/json' \
--header 'X-Api-Key: <api-key>' \
--header 'X-App-Id: <api-key>' \
--data '
{
"customer_uuids": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
]
}
'const options = {
method: 'DELETE',
headers: {
'X-App-Id': '<api-key>',
'X-Api-Key': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({customer_uuids: ['3c90c3cc-0d44-4b50-8888-8dd25736052a']})
};
fetch('https://api.staging.streamlinedpayments.com/api/v1/customer_groups/{uuid}/members', 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/customer_groups/{uuid}/members"
payload = { "customer_uuids": ["3c90c3cc-0d44-4b50-8888-8dd25736052a"] }
headers = {
"X-App-Id": "<api-key>",
"X-Api-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.delete(url, json=payload, headers=headers)
print(response.text)require 'uri'
require 'net/http'
url = URI("https://api.staging.streamlinedpayments.com/api/v1/customer_groups/{uuid}/members")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
request["X-App-Id"] = '<api-key>'
request["X-Api-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"customer_uuids\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"members": [
{
"uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"company_name": "<string>"
}
]
}