Documents (SAPI)List received documents

List received documents

Zoznam metadát. XML získate cez detail; nextPageToken použite ako pageToken. Poradie výsledkov nie je vo V1 popísané jednotne.

curl -X GET "https://einvoice-v1-ynyiur6quq-ey.a.run.app/v1/sapi/document/receive?pageToken=example_string&limit=20&status=RECEIVED" \
  -H "Content-Type: application/json" \
  -H "X-Peppol-Participant-Id: example_string" \
  -H "Authorization: Bearer YOUR_API_TOKEN (JWT)"
{
  "documents": [
    {
      "documentId": "example_string",
      "documentTypeId": "example_string",
      "processId": "example_string",
      "senderParticipantId": "example_string",
      "receiverParticipantId": "example_string",
      "clientDocumentId": "example_string",
      "receivedAt": "2024-12-25T10:00:00Z",
      "status": "RECEIVED",
      "payloadFormat": "XML"
    }
  ],
  "nextPageToken": "example_string"
}
GET
/v1/sapi/document/receive
GET
Base URLstring

Target server for requests. Edit to use your own host.

Bearer Token (JWT)
Bearer Tokenstring
Required

Bearer token (JWT) - just enter the token, "Bearer" prefix will be added automatically

query
pageTokenstring

Token z nextPageToken predchádzajúcej odpovede.

query
limitinteger

Počet výsledkov na stranu.

Max: 100
query
statusstring

Filter stavu.

Options: RECEIVED, ACKNOWLEDGED
header
X-Peppol-Participant-Idstring
Required

Firma oprávnená na operáciu; pri odoslaní sa zhoduje s metadata.senderParticipantId.

Request Preview
Response

Response will appear here after sending the request

Authentication

header
Authorizationstring
Required

Bearer token (JWT). Authentication token required.

Query Parameters

pageTokenstring

Token z nextPageToken predchádzajúcej odpovede.

limitinteger

Počet výsledkov na stranu.

statusstring

Filter stavu.

Allowed values:RECEIVEDACKNOWLEDGED

Headers

X-Peppol-Participant-Idstring
Required

Firma oprávnená na operáciu; pri odoslaní sa zhoduje s metadata.senderParticipantId.

Responses

documentsarray
nextPageTokenstring

Chýba alebo je null, keď ďalšia strana neexistuje.