SendMauriceOrderEmailAPI sends Maurice's fixed billing-order message. The
curl --request POST \
--url https://api.erdo.ai/v1/maurice-order-emails \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"customer_company_name": "<string>",
"ends_on": "<string>",
"idempotency_key": "<string>",
"order_id": "<string>",
"order_revision": 123,
"order_url": "<string>",
"starts_on": "<string>",
"to": "<string>",
"to_name": "<string>"
}
'import requests
url = "https://api.erdo.ai/v1/maurice-order-emails"
payload = {
"customer_company_name": "<string>",
"ends_on": "<string>",
"idempotency_key": "<string>",
"order_id": "<string>",
"order_revision": 123,
"order_url": "<string>",
"starts_on": "<string>",
"to": "<string>",
"to_name": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
customer_company_name: '<string>',
ends_on: '<string>',
idempotency_key: '<string>',
order_id: '<string>',
order_revision: 123,
order_url: '<string>',
starts_on: '<string>',
to: '<string>',
to_name: '<string>'
})
};
fetch('https://api.erdo.ai/v1/maurice-order-emails', 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.erdo.ai/v1/maurice-order-emails",
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([
'customer_company_name' => '<string>',
'ends_on' => '<string>',
'idempotency_key' => '<string>',
'order_id' => '<string>',
'order_revision' => 123,
'order_url' => '<string>',
'starts_on' => '<string>',
'to' => '<string>',
'to_name' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"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.erdo.ai/v1/maurice-order-emails"
payload := strings.NewReader("{\n \"customer_company_name\": \"<string>\",\n \"ends_on\": \"<string>\",\n \"idempotency_key\": \"<string>\",\n \"order_id\": \"<string>\",\n \"order_revision\": 123,\n \"order_url\": \"<string>\",\n \"starts_on\": \"<string>\",\n \"to\": \"<string>\",\n \"to_name\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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.erdo.ai/v1/maurice-order-emails")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"customer_company_name\": \"<string>\",\n \"ends_on\": \"<string>\",\n \"idempotency_key\": \"<string>\",\n \"order_id\": \"<string>\",\n \"order_revision\": 123,\n \"order_url\": \"<string>\",\n \"starts_on\": \"<string>\",\n \"to\": \"<string>\",\n \"to_name\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.erdo.ai/v1/maurice-order-emails")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"customer_company_name\": \"<string>\",\n \"ends_on\": \"<string>\",\n \"idempotency_key\": \"<string>\",\n \"order_id\": \"<string>\",\n \"order_revision\": 123,\n \"order_url\": \"<string>\",\n \"starts_on\": \"<string>\",\n \"to\": \"<string>\",\n \"to_name\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"email_id": "<string>",
"from": "<string>",
"status": "<string>",
"subject": "<string>",
"to": "<string>"
}{
"code": "not_found",
"details": {},
"message": "<string>"
}API Reference
SendMauriceOrderEmailAPI sends Maurice's fixed billing-order message. The
private Order URL is the sole CTA and is never accepted as arbitrary body copy. Only an unscoped organization API key may invoke this external effect; authenticated sessions, guest/external tokens, and scoped API keys are not operator credentials.
POST
/
v1
/
maurice-order-emails
SendMauriceOrderEmailAPI sends Maurice's fixed billing-order message. The
curl --request POST \
--url https://api.erdo.ai/v1/maurice-order-emails \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"customer_company_name": "<string>",
"ends_on": "<string>",
"idempotency_key": "<string>",
"order_id": "<string>",
"order_revision": 123,
"order_url": "<string>",
"starts_on": "<string>",
"to": "<string>",
"to_name": "<string>"
}
'import requests
url = "https://api.erdo.ai/v1/maurice-order-emails"
payload = {
"customer_company_name": "<string>",
"ends_on": "<string>",
"idempotency_key": "<string>",
"order_id": "<string>",
"order_revision": 123,
"order_url": "<string>",
"starts_on": "<string>",
"to": "<string>",
"to_name": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
customer_company_name: '<string>',
ends_on: '<string>',
idempotency_key: '<string>',
order_id: '<string>',
order_revision: 123,
order_url: '<string>',
starts_on: '<string>',
to: '<string>',
to_name: '<string>'
})
};
fetch('https://api.erdo.ai/v1/maurice-order-emails', 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.erdo.ai/v1/maurice-order-emails",
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([
'customer_company_name' => '<string>',
'ends_on' => '<string>',
'idempotency_key' => '<string>',
'order_id' => '<string>',
'order_revision' => 123,
'order_url' => '<string>',
'starts_on' => '<string>',
'to' => '<string>',
'to_name' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"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.erdo.ai/v1/maurice-order-emails"
payload := strings.NewReader("{\n \"customer_company_name\": \"<string>\",\n \"ends_on\": \"<string>\",\n \"idempotency_key\": \"<string>\",\n \"order_id\": \"<string>\",\n \"order_revision\": 123,\n \"order_url\": \"<string>\",\n \"starts_on\": \"<string>\",\n \"to\": \"<string>\",\n \"to_name\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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.erdo.ai/v1/maurice-order-emails")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"customer_company_name\": \"<string>\",\n \"ends_on\": \"<string>\",\n \"idempotency_key\": \"<string>\",\n \"order_id\": \"<string>\",\n \"order_revision\": 123,\n \"order_url\": \"<string>\",\n \"starts_on\": \"<string>\",\n \"to\": \"<string>\",\n \"to_name\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.erdo.ai/v1/maurice-order-emails")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"customer_company_name\": \"<string>\",\n \"ends_on\": \"<string>\",\n \"idempotency_key\": \"<string>\",\n \"order_id\": \"<string>\",\n \"order_revision\": 123,\n \"order_url\": \"<string>\",\n \"starts_on\": \"<string>\",\n \"to\": \"<string>\",\n \"to_name\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"email_id": "<string>",
"from": "<string>",
"status": "<string>",
"subject": "<string>",
"to": "<string>"
}{
"code": "not_found",
"details": {},
"message": "<string>"
}Authorizations
An Erdo API key (erdo_api_...) or scoped token (erdo_token_...).
Body
application/json

