Prehľad SAPI-SK a Enterprise API endpointov s odkazom na interaktívnu dokumentáciu.Overview of the SAPI-SK and Enterprise API endpoints, with a link to the interactive documentation.
2 min čítania2 min read
#sapi-sk
#enterprise api
#endpointy
#openapi
#sapi-sk
#enterprise api
#endpoints
#openapi
Nižšie je prehľad. Úplnú referenciu vrátane schém, príkladov a tlačidla Try it
nájdete v interaktívnej dokumentácii.
Vráti prijatý dokument ako JSON (XML v poli payload)
POST
/sapi/document/receive/{id}/acknowledge
Potvrdí prevzatie dokumentu
Enterprise API
Metóda
Endpoint
Popis
POST
/api/v1/invoices
Vytvorí a odošle faktúru
GET
/api/v1/invoices
Zoznam faktúr, stránkovaný kurzorom
GET
/api/v1/invoices/{id}
Detail faktúry vrátane stavu
GET
/api/v1/invoices/{id}/xml
Pôvodné UBL XML
GET
/api/v1/invoices/{id}/pdf
PDF vizualizácia faktúry
GET
/api/v1/invoices/search
Fulltextové vyhľadávanie v archíve
DELETE
/api/v1/invoices/{id}
Zruší faktúru, kým je PENDING alebo VALIDATING
POST
/api/v1/documents/validate
Predbežná validácia dokumentu — bez odoslania, bez kreditu
GET
/api/v1/participants/{peppolId}/reachability
Overí, či je príjemca v sieti a podporuje daný typ dokumentu
POST
/api/v1/webhooks
Zaregistruje webhook
POST
/api/v1/webhooks/{id}/test
Pošle testovaciu udalosť
GET
/api/v1/billing/balance
Zostatok kreditu
POST
/api/v1/sapi-clients
Vytvorí SAPI klienta
documents/validate a participants/{peppolId}/reachability slúžia na kontrolu pred
odoslaním: overia dokument aj dosiahnuteľnosť príjemcu, nevytvárajú faktúru a
nespotrebúvajú kredit. Tvar odpovede, význam poľa reason a limity rozoberá článok
Predbežná validácia.
An overview follows. The full reference — schemas, examples and a Try it
button — lives in the interactive documentation.
Returns the inbound document as JSON (XML in the payload)
POST
/sapi/document/receive/{id}/acknowledge
Acknowledges the document
Enterprise API
Method
Endpoint
Description
POST
/api/v1/invoices
Creates and sends an invoice
GET
/api/v1/invoices
Lists invoices, cursor-paginated
GET
/api/v1/invoices/{id}
Invoice detail including status
GET
/api/v1/invoices/{id}/xml
The original UBL XML
GET
/api/v1/invoices/{id}/pdf
PDF rendering of the invoice
GET
/api/v1/invoices/search
Full-text search across the archive
DELETE
/api/v1/invoices/{id}
Cancels an invoice while still PENDING or VALIDATING
POST
/api/v1/documents/validate
Pre-flight validation of a document — no send, no credit
GET
/api/v1/participants/{peppolId}/reachability
Reports whether the receiver is in the network and supports the document type
POST
/api/v1/webhooks
Registers a webhook
POST
/api/v1/webhooks/{id}/test
Sends a test event
GET
/api/v1/billing/balance
Credit balance
POST
/api/v1/sapi-clients
Creates a SAPI client
documents/validate and participants/{peppolId}/reachability cover the pre-flight
check: they validate the document and the receiver’s reachability, create no invoice and
consume no credit. The response shape, the meaning of reason and the limits are covered
in Pre-flight validation.