Internal-credit balance (temporary Rail B, replayed — source labelled)
curl --request GET \
--url https://api.pid.peridotvault.com/v1/fiat/balance \
--cookie pid_access=const options = {method: 'GET', headers: {cookie: 'pid_access='}};
fetch('https://api.pid.peridotvault.com/v1/fiat/balance', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.pid.peridotvault.com/v1/fiat/balance"
headers = {"cookie": "pid_access="}
response = requests.get(url, headers=headers)
print(response.text)package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.pid.peridotvault.com/v1/fiat/balance"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("cookie", "pid_access=")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"balanceIdr": "<string>",
"currency": "IDR",
"source": "fiat-ledger",
"replayErrors": [
"<string>"
]
}{
"statusCode": 401,
"message": "Unauthorized"
}fiat
Internal-credit balance (temporary Rail B, replayed — source labelled)
Temporary Internal Credit Ledger balance, replayed from the immutable journal (source: internal-credit — NOT the DOKU POINT Saldo). See docs/INTERNAL_CREDIT.md.
GET
/
fiat
/
balance
Internal-credit balance (temporary Rail B, replayed — source labelled)
curl --request GET \
--url https://api.pid.peridotvault.com/v1/fiat/balance \
--cookie pid_access=const options = {method: 'GET', headers: {cookie: 'pid_access='}};
fetch('https://api.pid.peridotvault.com/v1/fiat/balance', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.pid.peridotvault.com/v1/fiat/balance"
headers = {"cookie": "pid_access="}
response = requests.get(url, headers=headers)
print(response.text)package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.pid.peridotvault.com/v1/fiat/balance"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("cookie", "pid_access=")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"balanceIdr": "<string>",
"currency": "IDR",
"source": "fiat-ledger",
"replayErrors": [
"<string>"
]
}{
"statusCode": 401,
"message": "Unauthorized"
}Authorizations
JWT access token set by /auth/google/callback or /auth/refresh