Upload KSeF certificate
Upload the KSeF certificate, private key, and password for a registered party. This endpoint provides an alternative to the web-based certificate upload wizard for programmatic integration.
The certificate, private key, and password must be generated client-side following the standard KSeF certificate generation process:Documentation Index
Fetch the complete documentation index at: https://invopop-mintlify-2cf83a7b.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
- Log into the KSeF Portal (production) or KSeF Demo Portal (demo)
- Generate the certificate with authentication enabled for KSeF
- Download the certificate file and private key file
- Save the password used during generation
Authorizations
Use the Bearer scheme with a valid JWT token to authenticate requests.
Example: Authorization: Bearer <token>
Path Parameters
ID of the party silo entry to upload the certificate for.
"5b45453c-cdd0-11ed-afa1-0242ac120002"
Body
The password set during certificate generation in the KSeF portal.
"MySecurePassword123!"
Base64 encoded private key file downloaded from the KSeF portal. The private key must match the certificate and be properly formatted.
Base64 encoded certificate file downloaded from the KSeF portal. The certificate must be valid, with a start date that is not in the future, and must be configured for "Authentication in the KSeF system".
Response
Certificate uploaded successfully and validated.