Send a reminder email to a consumer
curl --request POST \
--url https://api.chift.eu/consumers/{consumer_id}/reminders \
--header 'Content-Type: application/json' \
--data '
{
"syncid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"language": "<string>",
"email": "<string>"
}
'import requests
url = "https://api.chift.eu/consumers/{consumer_id}/reminders"
payload = {
"syncid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"language": "<string>",
"email": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
syncid: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
language: '<string>',
email: '<string>'
})
};
fetch('https://api.chift.eu/consumers/{consumer_id}/reminders', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.chift.eu/consumers/{consumer_id}/reminders",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'syncid' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'language' => '<string>',
'email' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.chift.eu/consumers/{consumer_id}/reminders"
payload := strings.NewReader("{\n \"syncid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"language\": \"<string>\",\n \"email\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.chift.eu/consumers/{consumer_id}/reminders")
.header("Content-Type", "application/json")
.body("{\n \"syncid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"language\": \"<string>\",\n \"email\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.chift.eu/consumers/{consumer_id}/reminders")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"syncid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"language\": \"<string>\",\n \"email\": \"<string>\"\n}"
response = http.request(request)
puts response.read_bodyReminder
Send a reminder email to a consumer
Sends the consumer the reminder email of your account, with a link valid for 3 days: to complete a sync when a syncid is passed, to activate its connection otherwise. Answers HTTP 422 when the consumer has nothing left to complete. The email goes to the email of the consumer, or to the one passed when the consumer has none. Returns HTTP 204 on success.
POST
/
consumers
/
{consumer_id}
/
reminders
Send a reminder email to a consumer
curl --request POST \
--url https://api.chift.eu/consumers/{consumer_id}/reminders \
--header 'Content-Type: application/json' \
--data '
{
"syncid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"language": "<string>",
"email": "<string>"
}
'import requests
url = "https://api.chift.eu/consumers/{consumer_id}/reminders"
payload = {
"syncid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"language": "<string>",
"email": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
syncid: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
language: '<string>',
email: '<string>'
})
};
fetch('https://api.chift.eu/consumers/{consumer_id}/reminders', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.chift.eu/consumers/{consumer_id}/reminders",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'syncid' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'language' => '<string>',
'email' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.chift.eu/consumers/{consumer_id}/reminders"
payload := strings.NewReader("{\n \"syncid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"language\": \"<string>\",\n \"email\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.chift.eu/consumers/{consumer_id}/reminders")
.header("Content-Type", "application/json")
.body("{\n \"syncid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"language\": \"<string>\",\n \"email\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.chift.eu/consumers/{consumer_id}/reminders")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"syncid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"language\": \"<string>\",\n \"email\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body