GitHub

Mapa endpointów low-level

Znajdź gałąź raw i grupę metod ksef2 dla wybranego obszaru KSeF.

Na tej stronie

Grupy endpointów low-level są cienkimi fasadami nad wrapperami endpointów SDK. Są dostępne przez client.raw przed uwierzytelnieniem i auth.raw po uwierzytelnieniu.

Przed uwierzytelnieniem

GałąźMetody
client.raw.authchallenge, token_auth, xades_auth, auth_status, redeem_token, refresh_token
client.raw.encryptionfetch_public_certificates
client.raw.peppolquery_providers
client.raw.testdatacreate_subject, delete_subject, create_person, delete_person, grant_permissions, revoke_permissions, enable_attachments, revoke_attachments, block_context, unblock_context

client.raw.testdata jest dostępne tylko w Environment.TEST.

Po uwierzytelnieniu

GałąźMetody
auth.raw.authlist_sessions, terminate_current_session, terminate_auth_session; także metody auth, gdy są związane z uwierzytelnionym transportem
auth.raw.certificatesget_limits, get_enrollment_data, enroll, get_enrollment_status, retrieve, revoke, query
auth.raw.collective_identifiersgenerate, query, query_by_ksef_number, list_invoices
auth.raw.encryptionfetch_public_certificates
auth.raw.invoicesquery_metadata, export, get_export_status, download, send, get_session_status, list_session_invoices, list_failed_session_invoices, get_session_invoice_status, get_invoice_upo_by_ksef, get_invoice_upo_by_reference
auth.raw.limitsget_context_limits, get_subject_limits, get_api_rate_limits, set_session_limits, reset_session_limits, set_subject_limits, reset_subject_limits, set_api_rate_limits, reset_api_rate_limits, set_production_rate_limits
auth.raw.peppolquery_providers
auth.raw.permissions.grantgrant_person, grant_entity, grant_authorization, grant_indirect, grant_subunit, grant_administered_eu_entity, grant_eu_entity
auth.raw.permissions.revokerevoke_person, revoke_authorization
auth.raw.permissions.queryquery_entities_grants, query_personal_grants, query_attachments_status, query_authorizations_grants, query_eu_entities_grants, query_persons_grants, query_subordinate_entities_roles, query_subunits_grants
auth.raw.permissions.statusquery_operation_status, query_entity_roles
auth.raw.sessionopen_online, terminate_online, open_batch, close_batch, get_session_upo, list_sessions
auth.raw.testdataTe same metody co client.raw.testdata; dostępne tylko w Environment.TEST.
auth.raw.tokensgenerate_token, list_tokens, token_status, revoke_token

Importy

from ksef2.raw import (
    encrypt_invoice,
    encrypt_symmetric_key,
    encrypt_token,
    generate_session_key,
    prepare_batch_package,
    sha256_b64,
    spec,
    supp,
)
from ksef2.raw.mappers import auth as auth_mapper
python

Używaj spec i supp dla wspieranych modeli schema-native. Nie importuj wygenerowanych modeli z prywatnego pakietu schem SDK w kodzie aplikacyjnym.