curl --request POST \
--url https://api.digitalseaservice.com/v1/partners/sponsorships/reconcile \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"active_refs": [
"jane@example.com",
"ywc-beta-0042"
],
"apply": false,
"max_cancel": 25,
"override_threshold": false
}
'import requests
url = "https://api.digitalseaservice.com/v1/partners/sponsorships/reconcile"
payload = {
"active_refs": ["jane@example.com", "ywc-beta-0042"],
"apply": False,
"max_cancel": 25,
"override_threshold": False
}
headers = {
"Authorization": "Basic <encoded-value>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Basic <encoded-value>', 'Content-Type': 'application/json'},
body: JSON.stringify({
active_refs: ['jane@example.com', 'ywc-beta-0042'],
apply: false,
max_cancel: 25,
override_threshold: false
})
};
fetch('https://api.digitalseaservice.com/v1/partners/sponsorships/reconcile', 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.digitalseaservice.com/v1/partners/sponsorships/reconcile",
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([
'active_refs' => [
'jane@example.com',
'ywc-beta-0042'
],
'apply' => false,
'max_cancel' => 25,
'override_threshold' => false
]),
CURLOPT_HTTPHEADER => [
"Authorization: Basic <encoded-value>",
"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.digitalseaservice.com/v1/partners/sponsorships/reconcile"
payload := strings.NewReader("{\n \"active_refs\": [\n \"jane@example.com\",\n \"ywc-beta-0042\"\n ],\n \"apply\": false,\n \"max_cancel\": 25,\n \"override_threshold\": false\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Basic <encoded-value>")
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.digitalseaservice.com/v1/partners/sponsorships/reconcile")
.header("Authorization", "Basic <encoded-value>")
.header("Content-Type", "application/json")
.body("{\n \"active_refs\": [\n \"jane@example.com\",\n \"ywc-beta-0042\"\n ],\n \"apply\": false,\n \"max_cancel\": 25,\n \"override_threshold\": false\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.digitalseaservice.com/v1/partners/sponsorships/reconcile")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Basic <encoded-value>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"active_refs\": [\n \"jane@example.com\",\n \"ywc-beta-0042\"\n ],\n \"apply\": false,\n \"max_cancel\": 25,\n \"override_threshold\": false\n}"
response = http.request(request)
puts response.read_body{
"active_seats": 42,
"applied": false,
"cancelled_count": 0,
"missing_refs": [
"newjoiner@example.com"
],
"threshold_exceeded": false,
"to_cancel": [
{
"email": "gone@example.com",
"sponsorship_id": "665f00000000000000000042"
}
]
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>",
"errors": [
{}
]
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>"
}Reconcile seats against the partner's authoritative active list
Cancel seats the partner no longer lists (guarded, dry-run by default).
Partner-scoped: only this partner’s live seats are considered. Safety rails:
an empty active_refs is a 400; a mass-cancel over the threshold is refused
unless override_threshold is set; nothing is cancelled unless apply is
true. See :func:dss_api.sponsorship.roster.reconcile_roster.
curl --request POST \
--url https://api.digitalseaservice.com/v1/partners/sponsorships/reconcile \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"active_refs": [
"jane@example.com",
"ywc-beta-0042"
],
"apply": false,
"max_cancel": 25,
"override_threshold": false
}
'import requests
url = "https://api.digitalseaservice.com/v1/partners/sponsorships/reconcile"
payload = {
"active_refs": ["jane@example.com", "ywc-beta-0042"],
"apply": False,
"max_cancel": 25,
"override_threshold": False
}
headers = {
"Authorization": "Basic <encoded-value>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Basic <encoded-value>', 'Content-Type': 'application/json'},
body: JSON.stringify({
active_refs: ['jane@example.com', 'ywc-beta-0042'],
apply: false,
max_cancel: 25,
override_threshold: false
})
};
fetch('https://api.digitalseaservice.com/v1/partners/sponsorships/reconcile', 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.digitalseaservice.com/v1/partners/sponsorships/reconcile",
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([
'active_refs' => [
'jane@example.com',
'ywc-beta-0042'
],
'apply' => false,
'max_cancel' => 25,
'override_threshold' => false
]),
CURLOPT_HTTPHEADER => [
"Authorization: Basic <encoded-value>",
"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.digitalseaservice.com/v1/partners/sponsorships/reconcile"
payload := strings.NewReader("{\n \"active_refs\": [\n \"jane@example.com\",\n \"ywc-beta-0042\"\n ],\n \"apply\": false,\n \"max_cancel\": 25,\n \"override_threshold\": false\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Basic <encoded-value>")
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.digitalseaservice.com/v1/partners/sponsorships/reconcile")
.header("Authorization", "Basic <encoded-value>")
.header("Content-Type", "application/json")
.body("{\n \"active_refs\": [\n \"jane@example.com\",\n \"ywc-beta-0042\"\n ],\n \"apply\": false,\n \"max_cancel\": 25,\n \"override_threshold\": false\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.digitalseaservice.com/v1/partners/sponsorships/reconcile")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Basic <encoded-value>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"active_refs\": [\n \"jane@example.com\",\n \"ywc-beta-0042\"\n ],\n \"apply\": false,\n \"max_cancel\": 25,\n \"override_threshold\": false\n}"
response = http.request(request)
puts response.read_body{
"active_seats": 42,
"applied": false,
"cancelled_count": 0,
"missing_refs": [
"newjoiner@example.com"
],
"threshold_exceeded": false,
"to_cancel": [
{
"email": "gone@example.com",
"sponsorship_id": "665f00000000000000000042"
}
]
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>",
"errors": [
{}
]
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>"
}Authorizations
HTTP Basic for /v1/partners/*. Username is the partner client_id; password is the client_secret.
Headers
Body
Reconcile DSS seats against the partner's authoritative active-member list.
active_refs is the partner's own list of currently-active member
identifiers (each matched against a seat's email AND external_ref).
An empty list is rejected (400) so a bad/empty export can never be read
as "cancel everyone". By default this is a DRY RUN (apply=false): the diff
is returned and nothing is cancelled. A mass-cancel that exceeds max_cancel
(or the default safety fraction) is refused unless override_threshold is
true.
Partner's authoritative list of active member emails / external refs.
False = dry run (default). True = actually cancel the diff.
Hard ceiling on cancellations; exceeding it trips the threshold guard.
x >= 0Apply even when the mass-cancel threshold guard trips.
Response
The reconcile diff (dry run, or the result of an applied cancel).

