curl --request GET \
--url https://api.example.com/spi/v1/regulatory/apix001/report \
--header 'Authorization: Bearer <token>'package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/spi/v1/regulatory/apix001/report"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.example.com/spi/v1/regulatory/apix001/report', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.example.com/spi/v1/regulatory/apix001/report"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)Get the APIX001 report of a closed reference month
Returns the current report of the month in the period query parameter: the ten blocks of the APIX001 layout for the ISPB of the tenant, in layout order and with the fixed rows of the layout, zero rows included. Every indicator and block carries coverage, so a 0.00 that is a filler is never read as a measured zero. A block that Pix Lerian does not compute comes back UNAVAILABLE with a reason, never omitted. A time indicator is in seconds, except maxCautionaryBlockTime, in hours.
A month never closed, or reopened and not closed again, answers 404 (PIX-0711): close it first. A future month answers 422 (PIX-0710). A period that is absent or not YYYY-MM answers 400 (PIX-0020), and a month before 2020-11 answers 400 (PIX-0003). The month state is read on the read replica, and on the primary when none is configured, so a reopen or a new close is visible once the replica has applied it. The close response already carries the report.
curl --request GET \
--url https://api.example.com/spi/v1/regulatory/apix001/report \
--header 'Authorization: Bearer <token>'package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/spi/v1/regulatory/apix001/report"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.example.com/spi/v1/regulatory/apix001/report', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.example.com/spi/v1/regulatory/apix001/report"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)Query Parameters
Response
OK
Was this page helpful?

