Operations API
Customers
Remove from List
this endpoint ( post post ) removes a customer from a mailing list if the request succeeds, it will return the id of the mailing and a customer object docid\ x0e6zfnwaym4bwj4a82ex permissions customers edit path parameters id the id of the customer body parameters mailing list string the id of the mailing list require "uri" require "json" require "net/http" url = uri("https //api tamio com/v2/customers/remove from list/c5f3b078 5520 4694 a4d1 d45885a6314e") https = net http new(url host, url port) https use ssl = true request = net http post new(url) request\["accept"] = "application/json" request\["authorization"] = "bearer your token here" data = { mailing list '3b02d904 4fcb 41f8 8f4f bc75585a848d' } request body = data to json response = https request(request) puts response read bodyvar myheaders = new headers(); myheaders append("accept", "application/json"); myheaders append("authorization", "bearer your token here"); var data = { mailing list '3b02d904 4fcb 41f8 8f4f bc75585a848d' }; var body = json stringify(data); var requestoptions = { method 'post', headers myheaders, body body }; fetch("https //api tamio com/v2/customers/remove from list/c5f3b078 5520 4694 a4d1 d45885a6314e", requestoptions) then(response => response text()) then(result => console log(result)) catch(error => console log('error', error));curl location request post 'https //api tamio com/v2/customers/remove from list/c5f3b078 5520 4694 a4d1 d45885a6314e' \\ \ header 'accept application/json' \\ \ header 'authorization bearer your token here' \\ \ data raw '{"mailing list" "3b02d904 4fcb 41f8 8f4f bc75585a848d"}'{ "status" 200, "customer" { "id" "c5f3b078 5520 4694 a4d1 d45885a6314e", "email" "john doe\@tamio com", "name" "john", "last name" "doe", "country" "de", "locale" "en", "billing addresses" \[], "shipping addresses" \[], "created at" 1664635710, "stripe customer id" null, "object" "customer", "teammate id" null, "timezone offset" "+00 00", "category" "customer", "priority" "normal", "source" "import", "affiliate partner id" null, "lead status" null }, "mailing list" "bc75585a848d 3b02d904 4fcb 41f8 8f4f" }