Working with e-invoicesEndpoint overview

Endpoint overview

Overview of 12 public Doklado SAPI and SAPI+ operations.

The reference covers 12 public Doklado SAPI and SAPI+ operations. The base server and paths are listed in SAPI+ overview. Operation names in the REST API reference start with a capital letter.

MethodEndpointPurpose
POST/v1/sapi/auth/tokenObtaining an access token
GET/v1/sapi/auth/token/statusToken validity check
POST/v1/sapi/auth/renewToken renewal
POST/v1/sapi/auth/revokeToken revocation
POST/v1/sapi/document/sendSending an XML eInvoice
GET/v1/sapi/document/receiveList of received documents
GET/v1/sapi/document/receive/{documentId}Detail and XML document
POST/v1/sapi/document/receive/{documentId}/acknowledgeConfirmation of successful download
GET/v1/sapi-plus/document/send/{providerDocumentId}/statusDelivery status and TDD reporting
GET/v1/sapi-plus/document/send/{providerDocumentId}/receiptsList of receipts of the sent document
GET/v1/sapi-plus/document/send/{providerDocumentId}/receipts/{receiptId}Detail or download MLS/AS4 receipts
GET/v1/sapi-plus/participant/lookupParticipant search by tax identification number (DIČ)

Scope of the public interface

renew renews the token with refresh_token; revoke serves to cancel it. For examples of requests, see the tutorial Authentication and Tokens. You get client credentials when activating.

Sending and receiving documents belong to SAPI (/v1/sapi/document/...). The SAPI+ extensions provide the status of the sent document, the list and download of receipts under /v1/sapi-plus/document/send/... and the search for the participant GET /v1/sapi-plus/participant/lookup. Internal verification for the web application is not part of the public interface.

You can find the procedure for the three new operations in the Status of sending and receipts. They require a Bearer token with authorization document:send, a header X-Peppol-Participant-Id from the original sender, and providerDocumentId from the send response. Delivery status and TDD reporting result are returned separately; a successful load may return HTTP 200 even with a rejected document.

The three state operations and their schemas are based on the current Swagger Doklado SAPI PLUS. The existing participant search remains as an additional operation from the previous documentation; this Swagger does not list it.

The reference does not contain an endpoint for managing webhooks or testing them.

The webhook is outgoing POST from Doklado to the client URL. Its structure is in the tutorial Webhooky; it is not another endpoint on the Doklado API server.

Rate limits according to endpoints

EndpointNumber of calls per minute
POST /v1/sapi/auth/token5
POST /v1/sapi/auth/renew5
GET /v1/sapi/auth/token/status100
POST /v1/sapi/auth/revoke100
POST /v1/sapi/document/send30
GET /v1/sapi/document/receive100
GET /v1/sapi/document/receive/{documentId}100
POST /v1/sapi/document/receive/{documentId}/acknowledge100
GET /v1/sapi-plus/participant/lookup100
GET /v1/sapi-plus/document/send/{providerDocumentId}/status100
GET /v1/sapi-plus/document/send/{providerDocumentId}/receipts100
GET /v1/sapi-plus/document/send/{providerDocumentId}/receipts/{receiptId}100

The table shows the current limits. In the short term, at full capacity, up to 50 sending calls and up to 200 lookup calls or other routes with a default limit can be made.

HTTP 429 is returned when the limit is exceeded. Repeat the request with gradually increasing intervals and respect Retry-After if it is given.

How to read a reference

The reference lists operation inputs, field descriptions, and example responses. When renewing and canceling the token, the format of the answers is not defined in the current documents. Replace the example identifiers and XML with your own valid data.