Validate inbound message
curl --request POST \
--url https://spi.sandbox.lerian.net/api/v1/spi/messages/inbound/validate \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data @- <<EOF
{
"xml": "<Document xmlns='urn:iso:std:iso:20022:tech:xsd:pacs.008.001.08'>...</Document>"
}
EOFpackage main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://spi.sandbox.lerian.net/api/v1/spi/messages/inbound/validate"
payload := strings.NewReader("{\n \"xml\": \"<Document xmlns='urn:iso:std:iso:20022:tech:xsd:pacs.008.001.08'>...</Document>\"\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({
xml: '<Document xmlns=\'urn:iso:std:iso:20022:tech:xsd:pacs.008.001.08\'>...</Document>'
})
};
fetch('https://spi.sandbox.lerian.net/api/v1/spi/messages/inbound/validate', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://spi.sandbox.lerian.net/api/v1/spi/messages/inbound/validate"
payload = { "xml": "<Document xmlns='urn:iso:std:iso:20022:tech:xsd:pacs.008.001.08'>...</Document>" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"messageType": "pacs.008",
"status": "valid"
}{
"code": "ERR-0001",
"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"
}Validate inbound message
Validates an inbound ISO 20022 XML message (schema and signature) without processing it.
POST
/
api
/
v1
/
spi
/
messages
/
inbound
/
validate
Validate inbound message
curl --request POST \
--url https://spi.sandbox.lerian.net/api/v1/spi/messages/inbound/validate \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data @- <<EOF
{
"xml": "<Document xmlns='urn:iso:std:iso:20022:tech:xsd:pacs.008.001.08'>...</Document>"
}
EOFpackage main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://spi.sandbox.lerian.net/api/v1/spi/messages/inbound/validate"
payload := strings.NewReader("{\n \"xml\": \"<Document xmlns='urn:iso:std:iso:20022:tech:xsd:pacs.008.001.08'>...</Document>\"\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({
xml: '<Document xmlns=\'urn:iso:std:iso:20022:tech:xsd:pacs.008.001.08\'>...</Document>'
})
};
fetch('https://spi.sandbox.lerian.net/api/v1/spi/messages/inbound/validate', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://spi.sandbox.lerian.net/api/v1/spi/messages/inbound/validate"
payload = { "xml": "<Document xmlns='urn:iso:std:iso:20022:tech:xsd:pacs.008.001.08'>...</Document>" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"messageType": "pacs.008",
"status": "valid"
}{
"code": "ERR-0001",
"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"
}Authorizations
JWT bearer token issued by the identity provider.
Body
application/json
ISO 20022 message as a raw XML string (e.g. pacs.008).
Example:
"<Document xmlns='urn:iso:std:iso:20022:tech:xsd:pacs.008.001.08'>...</Document>"
Was this page helpful?

