Lookup Peppol participant
Lookup podľa DIČ cez SML/SMP. Nenájdený účastník vracia HTTP 200 a found=false, participant=null.
curl -X GET "https://einvoice-v1-ynyiur6quq-ey.a.run.app/v1/sapi-plus/participant/lookup?dic=example_string&schemeId=0245&documentTypeId=example_string" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_TOKEN (JWT)"
import requests
import json
url = "https://einvoice-v1-ynyiur6quq-ey.a.run.app/v1/sapi-plus/participant/lookup?dic=example_string&schemeId=0245&documentTypeId=example_string"
headers = {
"Content-Type": "application/json",
"Authorization": "Bearer YOUR_API_TOKEN (JWT)"
}
response = requests.get(url, headers=headers)
print(response.json())
const response = await fetch("https://einvoice-v1-ynyiur6quq-ey.a.run.app/v1/sapi-plus/participant/lookup?dic=example_string&schemeId=0245&documentTypeId=example_string", {
method: "GET",
headers: {
"Content-Type": "application/json",
"Authorization": "Bearer YOUR_API_TOKEN (JWT)"
}
});
const data = await response.json();
console.log(data);
package main
import (
"fmt"
"net/http"
)
func main() {
req, err := http.NewRequest("GET", "https://einvoice-v1-ynyiur6quq-ey.a.run.app/v1/sapi-plus/participant/lookup?dic=example_string&schemeId=0245&documentTypeId=example_string", nil)
if err != nil {
panic(err)
}
req.Header.Set("Content-Type", "application/json")
req.Header.Set("Authorization", "Bearer YOUR_API_TOKEN (JWT)")
client := &http.Client{}
resp, err := client.Do(req)
if err != nil {
panic(err)
}
defer resp.Body.Close()
fmt.Println("Response Status:", resp.Status)
}
require 'net/http'
require 'json'
uri = URI('https://einvoice-v1-ynyiur6quq-ey.a.run.app/v1/sapi-plus/participant/lookup?dic=example_string&schemeId=0245&documentTypeId=example_string')
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = true
request = Net::HTTP::Get.new(uri)
request['Content-Type'] = 'application/json'
request['Authorization'] = 'Bearer YOUR_API_TOKEN (JWT)'
response = http.request(request)
puts response.body
{
"found": true,
"participant": {
"participantId": "example_string",
"schemeId": "example_string",
"identifier": "example_string",
"registeredAt": "2024-12-25T10:00:00Z",
"capabilities": [
{
"documentTypeId": "example_string",
"processId": "example_string",
"transportProfile": "example_string"
}
]
},
"lookupTimestamp": "2024-12-25T10:00:00Z"
}
{
"error": "Bad Request",
"message": "The request contains invalid parameters or malformed data",
"code": 400,
"details": [
{
"field": "email",
"message": "Invalid email format"
}
]
}
{
"error": "Unauthorized",
"message": "Authentication required. Please provide a valid API token",
"code": 401
}
{
"error": "Service Unavailable",
"message": "The service is temporarily unavailable. Please try again later",
"code": 503
}
/v1/sapi-plus/participant/lookup
Target server for requests. Edit to use your own host.
Bearer token (JWT) - just enter the token, "Bearer" prefix will be added automatically
Slovenské DIČ s prefixom SK alebo bez neho.
Schéma identifikátora.
Úplný identifikátor podporovaného dokumentu.
Request Preview
Response
Response will appear here after sending the request
Authentication
Bearer token (JWT). Authentication token required.
Query Parameters
Slovenské DIČ s prefixom SK alebo bez neho.
Schéma identifikátora.
Úplný identifikátor podporovaného dokumentu.