> For the complete documentation index, see [llms.txt](https://doklado-mnojd9vj.documentationai.com/llms.txt).
> Use it to discover all available pages before exploring further.

# Lookup Peppol participant

Lookup podľa DIČ cez SML/SMP. Nenájdený účastník vracia HTTP 200 a found=false, participant=null.


<PlaygroundComponent />

<AuthParams schemes={["bearerAuth"]}>
<AuthType scheme="bearerAuth">
<ParamField header="Authorization" param-type="string" required="true">
Bearer token (JWT). Authentication token required.
</ParamField>
</AuthType>
</AuthParams>

### Query Parameters

<ParamField showLocation="false" query="dic" param-type="string" required="true">
Slovenské DIČ s prefixom SK alebo bez neho.
</ParamField>

<ParamField showLocation="false" query="schemeId" param-type="string" required="false">
Schéma identifikátora.
</ParamField>

<ParamField showLocation="false" query="documentTypeId" param-type="string" required="false">
Úplný identifikátor podporovaného dokumentu.
</ParamField>

<Request tabs="curl,python,javascript,go,ruby">

```bash
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)"
```

```python
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())
```

```javascript
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);
```

```go
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)
}
```

```ruby
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
```

</Request>

### Responses

<div data-component="ResponsesCollection"><Expandable title="200 - Úspešná odpoveď podľa V1." default-open="true">

<ResponseField name="found" field-type="boolean" required="false">

</ResponseField>

<ResponseField name="participant" field-type="object" required="false">

<Expandable title="Object Properties" default-open="false">

<ResponseField name="participantId" field-type="string" required="false">

</ResponseField>

<ResponseField name="schemeId" field-type="string" required="false">

</ResponseField>

<ResponseField name="identifier" field-type="string" required="false">

</ResponseField>

<ResponseField name="registeredAt" field-type="string" required="false">

</ResponseField>

<ResponseField name="capabilities" field-type="array" required="false">

<Expandable title="Array Items" default-open="false">

<ResponseField name="documentTypeId" field-type="string" required="false">

</ResponseField>

<ResponseField name="processId" field-type="string" required="false">

</ResponseField>

<ResponseField name="transportProfile" field-type="string" required="false">

</ResponseField>

</Expandable>
</ResponseField>

</Expandable>
</ResponseField>

<ResponseField name="lookupTimestamp" field-type="string" required="false">

</ResponseField>

</Expandable>

<Expandable title="400 - Neplatný formát DIČ alebo kombinácia parametrov." default-open="false">

*Neplatný formát DIČ alebo kombinácia parametrov.*

</Expandable>

<Expandable title="401 - Neplatný token." default-open="false">

*Neplatný token.*

</Expandable>

<Expandable title="503 - Dočasná nedostupnosť SML/SMP." default-open="false">

*Dočasná nedostupnosť SML/SMP.*

</Expandable>

</div>

<Response tabs={["200","400","401","503"]} dropdown="true">

```json
{
  "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"
}
```

```json
{
  "error": "Bad Request",
  "message": "The request contains invalid parameters or malformed data",
  "code": 400,
  "details": [
    {
      "field": "email",
      "message": "Invalid email format"
    }
  ]
}
```

```json
{
  "error": "Unauthorized",
  "message": "Authentication required. Please provide a valid API token",
  "code": 401
}
```

```json
{
  "error": "Service Unavailable",
  "message": "The service is temporarily unavailable. Please try again later",
  "code": 503
}
```

</Response>

