Customer Enrollment & Profile
Update customer birth date
POST
/
loyalty
/
cp
/
api
/
update-customer-birth-date
Update customer birth date
curl --request POST \
--url https://loyalty-admin.appstle.com/loyalty/cp/api/update-customer-birth-date \
--header 'Content-Type: application/json' \
--data '
{
"customerId": 0,
"dob": "2026-01-12",
"dobYearProvided": true,
"status": "ACTIVE"
}
'import requests
url = "https://loyalty-admin.appstle.com/loyalty/cp/api/update-customer-birth-date"
payload = {
"customerId": 0,
"dob": "2026-01-12",
"dobYearProvided": True,
"status": "ACTIVE"
}
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({customerId: 0, dob: '2026-01-12', dobYearProvided: true, status: 'ACTIVE'})
};
fetch('https://loyalty-admin.appstle.com/loyalty/cp/api/update-customer-birth-date', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));const url = 'https://loyalty-admin.appstle.com/loyalty/cp/api/update-customer-birth-date';
const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({customerId: 0, dob: '2026-01-12', dobYearProvided: true, status: 'ACTIVE'})
};
fetch(url, options)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://loyalty-admin.appstle.com/loyalty/cp/api/update-customer-birth-date",
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([
'customerId' => 0,
'dob' => '2026-01-12',
'dobYearProvided' => true,
'status' => 'ACTIVE'
]),
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://loyalty-admin.appstle.com/loyalty/cp/api/update-customer-birth-date"
payload := strings.NewReader("{\n \"customerId\": 0,\n \"dob\": \"2026-01-12\",\n \"dobYearProvided\": true,\n \"status\": \"ACTIVE\"\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))
}require 'uri'
require 'net/http'
url = URI("https://loyalty-admin.appstle.com/loyalty/cp/api/update-customer-birth-date")
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 \"customerId\": 0,\n \"dob\": \"2026-01-12\",\n \"dobYearProvided\": true,\n \"status\": \"ACTIVE\"\n}"
response = http.request(request)
puts response.read_body{
"createAt": "2023-11-07T05:31:56Z",
"customerId": 123,
"shop": "<string>",
"availablePoints": 123,
"availableStoreCredits": 123,
"completedActivities": 123,
"displayName": "<string>",
"dob": "2023-12-25",
"dobYearProvided": true,
"email": "<string>",
"emailBouncedOrFailed": true,
"emailSetting": "<string>",
"enableEmail": true,
"enableEmailMarketing": true,
"enableSmsMarketing": true,
"firstName": "<string>",
"id": 123,
"isDeletedFromShopify": true,
"lastActivity": "2023-11-07T05:31:56Z",
"lastMonthlyReminderSentDate": "2023-11-07T05:31:56Z",
"lastName": "<string>",
"lastRewardExpiryReminderSentDate": "2023-11-07T05:31:56Z",
"loyaltyProgramEnabled": true,
"ordersCount": 123,
"pendingPoints": 123,
"phone": "<string>",
"pointsExpiryDate": "2023-11-07T05:31:56Z",
"redeemLimit": 123,
"redeemLimitOnce": 123,
"redeemedPoints": 123,
"referrals": 123,
"rewardClaimed": 123,
"skipReview": true,
"spentAmount": 123,
"status": "ACTIVE",
"storeCreditAccountId": "<string>",
"tags": "<string>",
"token": "<string>",
"totalEarnedPoints": 123,
"totalEarnedStoreCredits": 123,
"totalRevenue": 123,
"updatedSettings": "<string>",
"vipAssignType": "MANUAL",
"vipTier": "<string>",
"vipTierAmount": 123,
"vipTierExpiredAt": "2023-11-07T05:31:56Z",
"vipTierId": 123,
"vipTierSummary": "<string>"
}Body
application/json
Customer birth date update request containing the date of birth
Unique identifier of the customer
Example:
0
Customer date of birth
Example:
"2026-01-12"
Whether the customer provided a real birth year. When false, dob's year is treated as a placeholder and only the month/day are used for birthday-reward matching. Defaults to true when omitted (existing clients).
Example:
true
Customer loyalty status
Available options:
ACTIVE, INACTIVE, EXCLUDED, EXCLUDED_BY_CUSTOMER, ACTIVE, INACTIVE, EXCLUDED, EXCLUDED_BY_CUSTOMER Response
Customer birth date updated successfully
Available options:
ACTIVE, INACTIVE, EXCLUDED, EXCLUDED_BY_CUSTOMER Available options:
MANUAL, AUTO_RENEWAL, RENEWAL_ON_HIGHER_TIER ⌘I
Update customer birth date
curl --request POST \
--url https://loyalty-admin.appstle.com/loyalty/cp/api/update-customer-birth-date \
--header 'Content-Type: application/json' \
--data '
{
"customerId": 0,
"dob": "2026-01-12",
"dobYearProvided": true,
"status": "ACTIVE"
}
'import requests
url = "https://loyalty-admin.appstle.com/loyalty/cp/api/update-customer-birth-date"
payload = {
"customerId": 0,
"dob": "2026-01-12",
"dobYearProvided": True,
"status": "ACTIVE"
}
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({customerId: 0, dob: '2026-01-12', dobYearProvided: true, status: 'ACTIVE'})
};
fetch('https://loyalty-admin.appstle.com/loyalty/cp/api/update-customer-birth-date', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));const url = 'https://loyalty-admin.appstle.com/loyalty/cp/api/update-customer-birth-date';
const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({customerId: 0, dob: '2026-01-12', dobYearProvided: true, status: 'ACTIVE'})
};
fetch(url, options)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://loyalty-admin.appstle.com/loyalty/cp/api/update-customer-birth-date",
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([
'customerId' => 0,
'dob' => '2026-01-12',
'dobYearProvided' => true,
'status' => 'ACTIVE'
]),
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://loyalty-admin.appstle.com/loyalty/cp/api/update-customer-birth-date"
payload := strings.NewReader("{\n \"customerId\": 0,\n \"dob\": \"2026-01-12\",\n \"dobYearProvided\": true,\n \"status\": \"ACTIVE\"\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))
}require 'uri'
require 'net/http'
url = URI("https://loyalty-admin.appstle.com/loyalty/cp/api/update-customer-birth-date")
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 \"customerId\": 0,\n \"dob\": \"2026-01-12\",\n \"dobYearProvided\": true,\n \"status\": \"ACTIVE\"\n}"
response = http.request(request)
puts response.read_body{
"createAt": "2023-11-07T05:31:56Z",
"customerId": 123,
"shop": "<string>",
"availablePoints": 123,
"availableStoreCredits": 123,
"completedActivities": 123,
"displayName": "<string>",
"dob": "2023-12-25",
"dobYearProvided": true,
"email": "<string>",
"emailBouncedOrFailed": true,
"emailSetting": "<string>",
"enableEmail": true,
"enableEmailMarketing": true,
"enableSmsMarketing": true,
"firstName": "<string>",
"id": 123,
"isDeletedFromShopify": true,
"lastActivity": "2023-11-07T05:31:56Z",
"lastMonthlyReminderSentDate": "2023-11-07T05:31:56Z",
"lastName": "<string>",
"lastRewardExpiryReminderSentDate": "2023-11-07T05:31:56Z",
"loyaltyProgramEnabled": true,
"ordersCount": 123,
"pendingPoints": 123,
"phone": "<string>",
"pointsExpiryDate": "2023-11-07T05:31:56Z",
"redeemLimit": 123,
"redeemLimitOnce": 123,
"redeemedPoints": 123,
"referrals": 123,
"rewardClaimed": 123,
"skipReview": true,
"spentAmount": 123,
"status": "ACTIVE",
"storeCreditAccountId": "<string>",
"tags": "<string>",
"token": "<string>",
"totalEarnedPoints": 123,
"totalEarnedStoreCredits": 123,
"totalRevenue": 123,
"updatedSettings": "<string>",
"vipAssignType": "MANUAL",
"vipTier": "<string>",
"vipTierAmount": 123,
"vipTierExpiredAt": "2023-11-07T05:31:56Z",
"vipTierId": 123,
"vipTierSummary": "<string>"
}