Register a justification on a non-compliance log
curl --request POST \
--url https://api.example.com/v1/institutions/{institutionId}/non-compliance-logs/{id}/justification \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"justificativa": "Batch delay caused by upstream connector outage; SLA breach accepted under ops incident INC-2026-042."
}
'package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/v1/institutions/{institutionId}/non-compliance-logs/{id}/justification"
payload := strings.NewReader("{\n \"justificativa\": \"Batch delay caused by upstream connector outage; SLA breach accepted under ops incident INC-2026-042.\"\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))
}const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
justificativa: 'Batch delay caused by upstream connector outage; SLA breach accepted under ops incident INC-2026-042.'
})
};
fetch('https://api.example.com/v1/institutions/{institutionId}/non-compliance-logs/{id}/justification', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.example.com/v1/institutions/{institutionId}/non-compliance-logs/{id}/justification"
payload = { "justificativa": "Batch delay caused by upstream connector outage; SLA breach accepted under ops incident INC-2026-042." }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"id": "bbbbbbbb-bbbb-bbbb-bbbb-bbbbbbbbbbbb"
}{
"code": "<string>",
"detail": "Property foo is required but is missing.",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
],
"instance": "https://example.com/error-log/abc123",
"status": 400,
"title": "Bad Request",
"type": "https://example.com/errors/example",
"upstream": {
"code": "E4001",
"message": "account not found at provider"
}
}{
"code": "<string>",
"detail": "Property foo is required but is missing.",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
],
"instance": "https://example.com/error-log/abc123",
"status": 400,
"title": "Bad Request",
"type": "https://example.com/errors/example",
"upstream": {
"code": "E4001",
"message": "account not found at provider"
}
}{
"code": "<string>",
"detail": "Property foo is required but is missing.",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
],
"instance": "https://example.com/error-log/abc123",
"status": 400,
"title": "Bad Request",
"type": "https://example.com/errors/example",
"upstream": {
"code": "E4001",
"message": "account not found at provider"
}
}{
"code": "<string>",
"detail": "Property foo is required but is missing.",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
],
"instance": "https://example.com/error-log/abc123",
"status": 400,
"title": "Bad Request",
"type": "https://example.com/errors/example",
"upstream": {
"code": "E4001",
"message": "account not found at provider"
}
}Register a justification on a non-compliance log
Registers an institution’s justification on an SLA-breach non-compliance log. An empty or oversized justification maps to 400; an absent record to 404; an already-justified record to 409. The audit actor is derived from the validated identity (403 when absent).
POST
/
v1
/
institutions
/
{institutionId}
/
non-compliance-logs
/
{id}
/
justification
Register a justification on a non-compliance log
curl --request POST \
--url https://api.example.com/v1/institutions/{institutionId}/non-compliance-logs/{id}/justification \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"justificativa": "Batch delay caused by upstream connector outage; SLA breach accepted under ops incident INC-2026-042."
}
'package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/v1/institutions/{institutionId}/non-compliance-logs/{id}/justification"
payload := strings.NewReader("{\n \"justificativa\": \"Batch delay caused by upstream connector outage; SLA breach accepted under ops incident INC-2026-042.\"\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))
}const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
justificativa: 'Batch delay caused by upstream connector outage; SLA breach accepted under ops incident INC-2026-042.'
})
};
fetch('https://api.example.com/v1/institutions/{institutionId}/non-compliance-logs/{id}/justification', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.example.com/v1/institutions/{institutionId}/non-compliance-logs/{id}/justification"
payload = { "justificativa": "Batch delay caused by upstream connector outage; SLA breach accepted under ops incident INC-2026-042." }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"id": "bbbbbbbb-bbbb-bbbb-bbbb-bbbbbbbbbbbb"
}{
"code": "<string>",
"detail": "Property foo is required but is missing.",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
],
"instance": "https://example.com/error-log/abc123",
"status": 400,
"title": "Bad Request",
"type": "https://example.com/errors/example",
"upstream": {
"code": "E4001",
"message": "account not found at provider"
}
}{
"code": "<string>",
"detail": "Property foo is required but is missing.",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
],
"instance": "https://example.com/error-log/abc123",
"status": 400,
"title": "Bad Request",
"type": "https://example.com/errors/example",
"upstream": {
"code": "E4001",
"message": "account not found at provider"
}
}{
"code": "<string>",
"detail": "Property foo is required but is missing.",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
],
"instance": "https://example.com/error-log/abc123",
"status": 400,
"title": "Bad Request",
"type": "https://example.com/errors/example",
"upstream": {
"code": "E4001",
"message": "account not found at provider"
}
}{
"code": "<string>",
"detail": "Property foo is required but is missing.",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
],
"instance": "https://example.com/error-log/abc123",
"status": 400,
"title": "Bad Request",
"type": "https://example.com/errors/example",
"upstream": {
"code": "E4001",
"message": "account not found at provider"
}
}Path Parameters
Body
application/json
Was this page helpful?

