Post Signup Pending
curl --request POST \
--url https://api.loyalty.dog/v2/signup/pending \
--header 'Content-Type: application/json' \
--data '
{
"email": "[email protected]",
"passwordHash": "<string>",
"name": "<string>",
"company": "<string>",
"country": "<string>",
"consent": {
"tosAt": "2023-11-07T05:31:56Z",
"dpaAt": "2023-11-07T05:31:56Z",
"privacyAt": "2023-11-07T05:31:56Z",
"ip": "<string>"
},
"utm": {
"source": "<string>",
"medium": "<string>",
"campaign": "<string>"
}
}
'import requests
url = "https://api.loyalty.dog/v2/signup/pending"
payload = {
"email": "[email protected]",
"passwordHash": "<string>",
"name": "<string>",
"company": "<string>",
"country": "<string>",
"consent": {
"tosAt": "2023-11-07T05:31:56Z",
"dpaAt": "2023-11-07T05:31:56Z",
"privacyAt": "2023-11-07T05:31:56Z",
"ip": "<string>"
},
"utm": {
"source": "<string>",
"medium": "<string>",
"campaign": "<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({
email: '[email protected]',
passwordHash: '<string>',
name: '<string>',
company: '<string>',
country: '<string>',
consent: {
tosAt: '2023-11-07T05:31:56Z',
dpaAt: '2023-11-07T05:31:56Z',
privacyAt: '2023-11-07T05:31:56Z',
ip: '<string>'
},
utm: {source: '<string>', medium: '<string>', campaign: '<string>'}
})
};
fetch('https://api.loyalty.dog/v2/signup/pending', 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.loyalty.dog/v2/signup/pending",
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([
'email' => '[email protected]',
'passwordHash' => '<string>',
'name' => '<string>',
'company' => '<string>',
'country' => '<string>',
'consent' => [
'tosAt' => '2023-11-07T05:31:56Z',
'dpaAt' => '2023-11-07T05:31:56Z',
'privacyAt' => '2023-11-07T05:31:56Z',
'ip' => '<string>'
],
'utm' => [
'source' => '<string>',
'medium' => '<string>',
'campaign' => '<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.loyalty.dog/v2/signup/pending"
payload := strings.NewReader("{\n \"email\": \"[email protected]\",\n \"passwordHash\": \"<string>\",\n \"name\": \"<string>\",\n \"company\": \"<string>\",\n \"country\": \"<string>\",\n \"consent\": {\n \"tosAt\": \"2023-11-07T05:31:56Z\",\n \"dpaAt\": \"2023-11-07T05:31:56Z\",\n \"privacyAt\": \"2023-11-07T05:31:56Z\",\n \"ip\": \"<string>\"\n },\n \"utm\": {\n \"source\": \"<string>\",\n \"medium\": \"<string>\",\n \"campaign\": \"<string>\"\n }\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.loyalty.dog/v2/signup/pending")
.header("Content-Type", "application/json")
.body("{\n \"email\": \"[email protected]\",\n \"passwordHash\": \"<string>\",\n \"name\": \"<string>\",\n \"company\": \"<string>\",\n \"country\": \"<string>\",\n \"consent\": {\n \"tosAt\": \"2023-11-07T05:31:56Z\",\n \"dpaAt\": \"2023-11-07T05:31:56Z\",\n \"privacyAt\": \"2023-11-07T05:31:56Z\",\n \"ip\": \"<string>\"\n },\n \"utm\": {\n \"source\": \"<string>\",\n \"medium\": \"<string>\",\n \"campaign\": \"<string>\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.loyalty.dog/v2/signup/pending")
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 \"email\": \"[email protected]\",\n \"passwordHash\": \"<string>\",\n \"name\": \"<string>\",\n \"company\": \"<string>\",\n \"country\": \"<string>\",\n \"consent\": {\n \"tosAt\": \"2023-11-07T05:31:56Z\",\n \"dpaAt\": \"2023-11-07T05:31:56Z\",\n \"privacyAt\": \"2023-11-07T05:31:56Z\",\n \"ip\": \"<string>\"\n },\n \"utm\": {\n \"source\": \"<string>\",\n \"medium\": \"<string>\",\n \"campaign\": \"<string>\"\n }\n}"
response = http.request(request)
puts response.read_body{
"pendingId": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}API Reference
Post Signup Pending
Create or resume a pending signup. Returns the User’s id as pendingId.
Maps service-layer ValueErrors to 400 with the error code in the body so the frontend can show a localized message based on the code, not the English error string. Rate-limited to 20 req/min/IP via slowapi — sufficient for legitimate retries while throttling enumeration attempts.
Returns 201 Created for fresh inserts; 200 OK when a live-pending or abandoned row is resumed (the row already existed).
POST
/
v2
/
signup
/
pending
Post Signup Pending
curl --request POST \
--url https://api.loyalty.dog/v2/signup/pending \
--header 'Content-Type: application/json' \
--data '
{
"email": "[email protected]",
"passwordHash": "<string>",
"name": "<string>",
"company": "<string>",
"country": "<string>",
"consent": {
"tosAt": "2023-11-07T05:31:56Z",
"dpaAt": "2023-11-07T05:31:56Z",
"privacyAt": "2023-11-07T05:31:56Z",
"ip": "<string>"
},
"utm": {
"source": "<string>",
"medium": "<string>",
"campaign": "<string>"
}
}
'import requests
url = "https://api.loyalty.dog/v2/signup/pending"
payload = {
"email": "[email protected]",
"passwordHash": "<string>",
"name": "<string>",
"company": "<string>",
"country": "<string>",
"consent": {
"tosAt": "2023-11-07T05:31:56Z",
"dpaAt": "2023-11-07T05:31:56Z",
"privacyAt": "2023-11-07T05:31:56Z",
"ip": "<string>"
},
"utm": {
"source": "<string>",
"medium": "<string>",
"campaign": "<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({
email: '[email protected]',
passwordHash: '<string>',
name: '<string>',
company: '<string>',
country: '<string>',
consent: {
tosAt: '2023-11-07T05:31:56Z',
dpaAt: '2023-11-07T05:31:56Z',
privacyAt: '2023-11-07T05:31:56Z',
ip: '<string>'
},
utm: {source: '<string>', medium: '<string>', campaign: '<string>'}
})
};
fetch('https://api.loyalty.dog/v2/signup/pending', 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.loyalty.dog/v2/signup/pending",
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([
'email' => '[email protected]',
'passwordHash' => '<string>',
'name' => '<string>',
'company' => '<string>',
'country' => '<string>',
'consent' => [
'tosAt' => '2023-11-07T05:31:56Z',
'dpaAt' => '2023-11-07T05:31:56Z',
'privacyAt' => '2023-11-07T05:31:56Z',
'ip' => '<string>'
],
'utm' => [
'source' => '<string>',
'medium' => '<string>',
'campaign' => '<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.loyalty.dog/v2/signup/pending"
payload := strings.NewReader("{\n \"email\": \"[email protected]\",\n \"passwordHash\": \"<string>\",\n \"name\": \"<string>\",\n \"company\": \"<string>\",\n \"country\": \"<string>\",\n \"consent\": {\n \"tosAt\": \"2023-11-07T05:31:56Z\",\n \"dpaAt\": \"2023-11-07T05:31:56Z\",\n \"privacyAt\": \"2023-11-07T05:31:56Z\",\n \"ip\": \"<string>\"\n },\n \"utm\": {\n \"source\": \"<string>\",\n \"medium\": \"<string>\",\n \"campaign\": \"<string>\"\n }\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.loyalty.dog/v2/signup/pending")
.header("Content-Type", "application/json")
.body("{\n \"email\": \"[email protected]\",\n \"passwordHash\": \"<string>\",\n \"name\": \"<string>\",\n \"company\": \"<string>\",\n \"country\": \"<string>\",\n \"consent\": {\n \"tosAt\": \"2023-11-07T05:31:56Z\",\n \"dpaAt\": \"2023-11-07T05:31:56Z\",\n \"privacyAt\": \"2023-11-07T05:31:56Z\",\n \"ip\": \"<string>\"\n },\n \"utm\": {\n \"source\": \"<string>\",\n \"medium\": \"<string>\",\n \"campaign\": \"<string>\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.loyalty.dog/v2/signup/pending")
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 \"email\": \"[email protected]\",\n \"passwordHash\": \"<string>\",\n \"name\": \"<string>\",\n \"company\": \"<string>\",\n \"country\": \"<string>\",\n \"consent\": {\n \"tosAt\": \"2023-11-07T05:31:56Z\",\n \"dpaAt\": \"2023-11-07T05:31:56Z\",\n \"privacyAt\": \"2023-11-07T05:31:56Z\",\n \"ip\": \"<string>\"\n },\n \"utm\": {\n \"source\": \"<string>\",\n \"medium\": \"<string>\",\n \"campaign\": \"<string>\"\n }\n}"
response = http.request(request)
puts response.read_body{
"pendingId": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Body
application/json
Required string length:
10 - 200Required string length:
1 - 200Required string length:
1 - 200Required string length:
2ToS / DPA / Privacy timestamps captured at the moment the merchant ticked the checkboxes on Step 1. The IP, if present, is truncated to /24 (IPv4) / /48 (IPv6) inside the service layer for GDPR minimization.
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Response
Successful Response
⌘I
