curl --request POST \
--url https://app.d-sports.org/api/v1/engage/games/locker-singularity/ledger/buy \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"quantity": 50,
"idempotencyKey": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
'import requests
url = "https://app.d-sports.org/api/v1/engage/games/locker-singularity/ledger/buy"
payload = {
"quantity": 50,
"idempotencyKey": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
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({quantity: 50, idempotencyKey: '3c90c3cc-0d44-4b50-8888-8dd25736052a'})
};
fetch('https://app.d-sports.org/api/v1/engage/games/locker-singularity/ledger/buy', 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://app.d-sports.org/api/v1/engage/games/locker-singularity/ledger/buy",
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([
'quantity' => 50,
'idempotencyKey' => '3c90c3cc-0d44-4b50-8888-8dd25736052a'
]),
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://app.d-sports.org/api/v1/engage/games/locker-singularity/ledger/buy"
payload := strings.NewReader("{\n \"quantity\": 50,\n \"idempotencyKey\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\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://app.d-sports.org/api/v1/engage/games/locker-singularity/ledger/buy")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"quantity\": 50,\n \"idempotencyKey\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.d-sports.org/api/v1/engage/games/locker-singularity/ledger/buy")
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 \"quantity\": 50,\n \"idempotencyKey\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n}"
response = http.request(request)
puts response.read_body{
"ledger": {
"buzz": "<string>",
"lifetimeBuzz": "<string>",
"cumulativeBuzz": "<string>",
"playbooks": 123,
"generators": [
{
"generatorId": "rookie-card",
"owned": 123
}
],
"milestonesClaimed": [
"<string>"
],
"upgrades": [
"<string>"
],
"rings": 123,
"totalRings": 123,
"prestigeCount": 123,
"multiplier": 123,
"prestigeUnlocked": true,
"version": 123,
"lastSeenAt": "2023-11-07T05:31:56Z"
},
"costPaid": "<string>",
"playbooksGranted": 123
}Buy generator units with buzz
quantity is an integer 1-100, else 400 IDLE_MAX_PER_CALL. Unknown generatorId returns 400 VALIDATION_ERROR. Locked generators (unlock thresholds unmet) return 409 IDLE_GENERATOR_LOCKED. Insufficient buzz returns 409 IDLE_INSUFFICIENT_BUZZ with no partial write. Crossing 25/50 owned per generator appends milestones and grants +1 Playbook each (max 8 per run). Idempotent per idempotencyKey. Optional X-Client-Version below minClientVersion returns 403 GAME_UPDATE_REQUIRED.
curl --request POST \
--url https://app.d-sports.org/api/v1/engage/games/locker-singularity/ledger/buy \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"quantity": 50,
"idempotencyKey": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
'import requests
url = "https://app.d-sports.org/api/v1/engage/games/locker-singularity/ledger/buy"
payload = {
"quantity": 50,
"idempotencyKey": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
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({quantity: 50, idempotencyKey: '3c90c3cc-0d44-4b50-8888-8dd25736052a'})
};
fetch('https://app.d-sports.org/api/v1/engage/games/locker-singularity/ledger/buy', 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://app.d-sports.org/api/v1/engage/games/locker-singularity/ledger/buy",
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([
'quantity' => 50,
'idempotencyKey' => '3c90c3cc-0d44-4b50-8888-8dd25736052a'
]),
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://app.d-sports.org/api/v1/engage/games/locker-singularity/ledger/buy"
payload := strings.NewReader("{\n \"quantity\": 50,\n \"idempotencyKey\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\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://app.d-sports.org/api/v1/engage/games/locker-singularity/ledger/buy")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"quantity\": 50,\n \"idempotencyKey\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.d-sports.org/api/v1/engage/games/locker-singularity/ledger/buy")
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 \"quantity\": 50,\n \"idempotencyKey\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n}"
response = http.request(request)
puts response.read_body{
"ledger": {
"buzz": "<string>",
"lifetimeBuzz": "<string>",
"cumulativeBuzz": "<string>",
"playbooks": 123,
"generators": [
{
"generatorId": "rookie-card",
"owned": 123
}
],
"milestonesClaimed": [
"<string>"
],
"upgrades": [
"<string>"
],
"rings": 123,
"totalRings": 123,
"prestigeCount": 123,
"multiplier": 123,
"prestigeUnlocked": true,
"version": 123,
"lastSeenAt": "2023-11-07T05:31:56Z"
},
"costPaid": "<string>",
"playbooksGranted": 123
}Authorizations
Clerk session token. Use Authorization: Bearer .
Headers
Native client semver. Below minClientVersion returns 403 GAME_UPDATE_REQUIRED.
Body
Response
{ ledger, costPaid, playbooksGranted }
locker-singularity idle ledger wire state. Buzz counters are BigInt serialized as decimal strings. Additive-only wire evolution (d-sports-api#682).
Show child attributes
Show child attributes
BigInt serialized as decimal string.
0 when no milestone threshold was crossed.
Was this page helpful?
