KontoCloud

Rust SDK

Lidhni aplikacionin tuaj me KontoCloud. Çdo paketë përmban vetëm veprime klienti; thirrjet administrative janë në paketën e veçantë të brendshme Rust sdk-admin.

Mjedisi i kërkuar: Rust stable · native / wasm

Instalimi

Paketat shkarkohen nga kjo faqe dhe shtohen lokalisht në projekt. Nuk janë publikuar në regjistra publikë paketash. Nxirrni ZIP-in në dosjen vendor pranë projektit, pastaj ekzekutoni komandat më poshtë nga projekti.

ZIP është workspace Cargo i pavarur me kc-sdk dhe kc-types. Nuk ka crate administrative, DTO administrative apo metoda administrative. Shtojeni si varësi lokale path; klienti mbështet native dhe wasm.

cargo add kc-sdk --path ../vendor/kontocloud-rust/crates/kc-sdk
cargo add tokio --features macros,rt-multi-thread
cargo add chrono --no-default-features --features std

Skedari SHA-256 ju lejon të verifikoni ZIP-in para nxjerrjes.

Kërkesa e parë

Client ofron metoda async të tipizuara që kthejnë Result<T, SdkError>. login_start, login_mfa dhe device_login_poll i miratuar ruajnë sesionin. Përdorni with_token për token ekzistues. with_http pranon klientin tuaj reqwest për afatet dhe ridrejtimet. Shembujt me data përdorin chrono::NaiveDate.

#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
    let client = kc_sdk::Client::new("https://api.kontocloud.mk")
        .with_token(std::env::var("KC_TOKEN")?);
    let tenants = client.tenants().await?;
    println!("{tenants:#?}");
    Ok(())
}

Sesionet dhe hyrja

Shembujt lexojnë KC_TOKEN nga mjedisi. Merrni sesion përmes hyrjes, MFA ose miratimit të pajisjes në dokumentacionin API. Klienti e mban tokenin vetëm në memorie. SDK nuk zgjedh person juridik dhe nuk miraton automatikisht hyrjen.

Dokumentacioni API →

Referenca e operacioneve

Çdo operacion ka parametrat, tipat JSON, përgjigjen dhe shembullin e vet. Zgjidhni fushën ose kërkoni sipas shtegut, identifikuesit apo metodës Rust.

Tipat e plotë JSON · JSON ↓
GET/api/account/ai-packageai_package_orders, organization_ai_ordersGET/api/account/ai-package/allowanceai_document_allowance, organization_ai_allowanceGET/api/account/ai-package/{id}/invoiceai_package_invoicePOST/api/auth/devicedevice_login_startPOST/api/auth/device/polldevice_login_pollGET/api/auth/email-verificationemail_verification_waitPOST/api/auth/email-verificationrequest_email_verificationPOST/api/auth/email-verification/confirmverify_emailPOST/api/auth/loginlogin_startPOST/api/auth/login/mfalogin_mfaPOST/api/auth/login/passkeylogin_passkeyPOST/api/auth/login/passkey/optionslogin_passkey_optionsPOST/api/auth/logoutlogoutPOST/api/auth/logout-alllogout_allPOST/api/auth/passwordchange_passwordPOST/api/auth/password-resetrequest_password_resetPOST/api/auth/password-reset/confirmconfirm_password_resetPOST/api/auth/registerregisterPOST/api/auth/session/activateactivate_sessionGET/api/board/{period}boardGET/api/bureau-workmy_document_workPOST/api/bureau-work-requests/{id}request_work_accessPOST/api/bureau-work/{id}change_document_workGET/api/bureau-work/{id}/{key}document_workGET/api/bureausbureausPOST/api/bureauscreate_bureauGET/api/bureaus/{bid}/access-requestsbureau_access_requestsPOST/api/bureaus/{bid}/access-requests/{r}decide_work_accessGET/api/bureaus/{bid}/book-handoversbureau_handoversGET/api/bureaus/{bid}/book-handovers/{id}handover_archiveGET/api/bureaus/{bid}/client-optionsclient_optionsGET/api/bureaus/{bid}/clientsbureau_clientsPOST/api/bureaus/{bid}/clientslink_bureau_clientPOST/api/bureaus/{bid}/clients/unlinkunlink_bureau_clientPOST/api/bureaus/{bid}/clients/{tid}/assignmentassign_bureau_clientPOST/api/bureaus/{bid}/clients/{tid}/managerset_client_managerPOST/api/bureaus/{bid}/grids/{register}bureau_gridGET/api/bureaus/{bid}/inbox-boardinbox_boardGET/api/bureaus/{bid}/inbox-board/staffinbox_board_staffGET/api/bureaus/{bid}/inbox-board/staff/{user}/avatarget_bureaus_bid_inbox_board_staff_user_avatarGET/api/bureaus/{bid}/inbox-countsbureau_inbox_countsGET/api/bureaus/{bid}/inbox-groups/{folder}bureau_inbox_groupsGET/api/bureaus/{bid}/membersbureau_membersPOST/api/bureaus/{bid}/membersset_bureau_memberGET/api/bureaus/{bid}/offline-permitpractice_offline_permitGET/api/bureaus/{bid}/routingbureau_routingPOST/api/bureaus/{bid}/routingset_bureau_routingGET/api/bureaus/{bid}/workspace-clientsworkspace_clientsGET/api/calendar/{year}calendarGET/api/clientsmy_clientsGET/api/desktop/downloaddesktop_downloadGET/api/desktop/get/{target}get_desktop_get_targetGET/api/desktop/latestdesktop_latestGET/api/desktop/releasesdesktop_releasesGET/api/desktop/updatedesktop_updateGET/api/document-inboxinbox_clientsGET/api/filing-correction-rulesfiling_correction_rulesGET/api/intakeintake_boxes, bureau_intake_boxesGET/api/intake/{box}/documentsintake_items, intake_itemPOST/api/intake/{box}/documentsintake_receiveGET/api/intake/{box}/documents/{id}intake_originalPOST/api/intake/{box}/documents/{id}/assignassign_intakePOST/api/intake/{box}/documents/{id}/confirmconfirm_intakePOST/api/intake/{box}/enableenable_intakePOST/api/intake/{box}/ordersintake_orderPOST/api/intake/{box}/webhookintake_hookPOST/api/invitations/acceptaccept_invitationGET/api/meme, activity_anchorGET/api/me/activitymy_activityGET/api/me/api-keysapi_keysPOST/api/me/api-keysissue_api_keyPOST/api/me/api-keys/{id}/revokerevoke_api_keyGET/api/me/avatarget_me_avatarPOST/api/me/avatarset_avatarPOST/api/me/avatar/deleteclear_avatarGET/api/me/browser-loginsbrowser_loginsPOST/api/me/browser-loginsrecord_browser_loginGET/api/me/configurationshared_configurationPOST/api/me/configurationapply_configurationPOST/api/me/configuration/previewpreview_configurationGET/api/me/device-login/{code}device_login_infoPOST/api/me/device-login/{code}/decidedevice_login_decideGET/api/me/devicesdevicesPOST/api/me/devices/{id}/revokerevoke_devicePOST/api/me/efaktura/certificateupload_account_einvoice_certPOST/api/me/efaktura/certificate/localregister_account_local_einvoice_certPOST/api/me/efaktura/certificate/locklock_account_einvoice_certPOST/api/me/efaktura/certificate/removeremove_account_einvoice_certPOST/api/me/efaktura/certificate/unlockunlock_account_einvoice_certGET/api/me/efaktura/companieseinvoice_settings_overviewGET/api/me/efaktura/settingsaccount_einvoice_setupPOST/api/me/efaktura/settingsset_account_einvoice_settingsGET/api/me/exportfull_exportPOST/api/me/grids/{register}personal_gridPOST/api/me/nameset_profile_nameGET/api/me/offline-permitoffline_permitPOST/api/me/passkeysadd_passkeyPOST/api/me/passkeys/optionspasskey_optionsPOST/api/me/passkeys/{id}/deleteremove_passkeyGET/api/me/preferencespreferencesPOST/api/me/preferencesset_preferencePOST/api/me/recovery-codesregenerate_recovery_codesGET/api/me/securityaccount_security, security_summaryGET/api/me/supportaccount_supportPOST/api/me/support/sessionaccount_chat_sessionPOST/api/me/totp/begintotp_beginPOST/api/me/totp/disabletotp_disablePOST/api/me/totp/enabletotp_enableGET/api/organizationsorganizationsPOST/api/organizations/{id}/logoset_organization_logoGET/api/organizations/{id}/logo.pngorganization_logo_pngPOST/api/organizations/{id}/logo/removeremove_organization_logoGET/api/organizations/{id}/profileorganization_profilePOST/api/organizations/{id}/profileset_organization_profileGET/api/sign/{token}sign_infoPOST/api/sign/{token}/declinesign_declineGET/api/sign/{token}/documentsign_documentPOST/api/sign/{token}/finishsign_finishPOST/api/sign/{token}/preparesign_prepareGET/api/t/{tid}/absencesabsencesPOST/api/t/{tid}/absencesrecord_absencePOST/api/t/{tid}/absences/{id}/cancelcancel_absenceGET/api/t/{tid}/accountsaccountsPOST/api/t/{tid}/accountscreate_accountGET/api/t/{tid}/accounts/{code}/cardcard, card_for_centerGET/api/t/{tid}/activitytenant_activityGET/api/t/{tid}/ageingageingGET/api/t/{tid}/agreementsagreementsPOST/api/t/{tid}/agreementscreate_agreementGET/api/t/{tid}/agreements/{id}agreementPOST/api/t/{tid}/agreements/{id}/documentsadd_agreement_documentPOST/api/t/{tid}/agreements/{id}/documents/{doc}/signsign_agreementPOST/api/t/{tid}/agreements/{id}/documents/{doc}/signaturesadd_agreement_signaturePOST/api/t/{tid}/agreements/{id}/eventsagreement_eventPOST/api/t/{tid}/agreements/{id}/partiesadd_agreement_partyGET/api/t/{tid}/agreements/{id}/reportagreement_reportGET/api/t/{tid}/agreements/{id}/sign-requestssign_requestsPOST/api/t/{tid}/agreements/{id}/sign-requestscreate_sign_requestPOST/api/t/{tid}/agreements/{id}/sign-requests/{rid}/cancelcancel_sign_requestPOST/api/t/{tid}/agreements/{id}/sign-requests/{rid}/declinesign_request_declinePOST/api/t/{tid}/agreements/{id}/sign-requests/{rid}/resendresend_sign_requestPOST/api/t/{tid}/agreements/{id}/sign-requests/{rid}/signsign_request_signPOST/api/t/{tid}/ai-package/draftsai_package_draft, ai_package_draft_confirmedPOST/api/t/{tid}/ai-package/ordersorder_ai_package, order_ai_packages, order_ai_packages_at_priceGET/api/t/{tid}/approvalapprovalPOST/api/t/{tid}/approvalset_approvalGET/api/t/{tid}/archivearchiveGET/api/t/{tid}/asset-countsasset_countsPOST/api/t/{tid}/asset-countscreate_asset_countGET/api/t/{tid}/asset-counts/{id}asset_countPOST/api/t/{tid}/asset-counts/{id}/bookbook_asset_countPOST/api/t/{tid}/asset-counts/{id}/cancelcancel_asset_countPOST/api/t/{tid}/asset-counts/{id}/entriesasset_count_entryPOST/api/t/{tid}/asset-counts/{id}/locklock_asset_countGET/api/t/{tid}/asset-counts/{id}/sheetasset_count_sheetGET/api/t/{tid}/asset-disposalsasset_disposalsPOST/api/t/{tid}/asset-disposalsdispose_assetPOST/api/t/{tid}/asset-disposals/{id}/cancelcancel_asset_disposalGET/api/t/{tid}/asset-revaluationsasset_revaluationsPOST/api/t/{tid}/asset-revaluationsrevalue_assetPOST/api/t/{tid}/asset-revaluations/{id}/cancelcancel_asset_revaluationGET/api/t/{tid}/assetsassetsPOST/api/t/{tid}/assetscreate_assetGET/api/t/{tid}/assets/{id}asset_cardGET/api/t/{tid}/assets/{id}/assignmentsasset_assignmentsPOST/api/t/{tid}/assets/{id}/assignmentsadd_asset_assignmentGET/api/t/{tid}/attachmentsattachmentsPOST/api/t/{tid}/attachmentsupload_attachment, upload_attachment_as_pdfGET/api/t/{tid}/attachments/{aid}download_attachmentGET/api/t/{tid}/auditauditGET/api/t/{tid}/bank/accountsbank_accountsPOST/api/t/{tid}/bank/accountscreate_bank_accountPOST/api/t/{tid}/bank/assignments/{id}/cancelbank_cancel_assignmentPOST/api/t/{tid}/bank/importimport_statementGET/api/t/{tid}/bank/profilesbank_profilesPOST/api/t/{tid}/bank/profilescreate_bank_profileGET/api/t/{tid}/bank/rulesbank_rulesPOST/api/t/{tid}/bank/rulescreate_bank_ruleGET/api/t/{tid}/bank/rules/{id}/automationbank_automationPOST/api/t/{tid}/bank/rules/{id}/automationset_bank_automationPOST/api/t/{tid}/bank/rules/{id}/automation/previewpreview_bank_automationPOST/api/t/{tid}/bank/rules/{id}/deactivatedeactivate_bank_ruleGET/api/t/{tid}/bank/statementsbank_statementsGET/api/t/{tid}/bank/statements/{id}bank_statement_summary, bank_statementPOST/api/t/{tid}/bank/statements/{id}/apply-rulesbank_apply_rulesPOST/api/t/{tid}/bank/statements/{id}/assignmentsbank_assignPOST/api/t/{tid}/bank/statements/{id}/auto-matchbank_auto_matchPOST/api/t/{tid}/bank/statements/{id}/postpost_statementGET/api/t/{tid}/bank/statements/{id}/rule-suggestionsbank_rule_suggestionsGET/api/t/{tid}/bank/statements/{id}/suggestionsbank_suggestionsPOST/api/t/{tid}/book-handoverstransfer_booksGET/api/t/{tid}/book-handovers/destinations/{bid}book_destinationGET/api/t/{tid}/book-handovers/open-itemscarried_items_countGET/api/t/{tid}/book-handovers/open-items/archivecarried_items_archiveGET/api/t/{tid}/bureauclient_bureauPOST/api/t/{tid}/bureau/{bid}authorize_bureauGET/api/t/{tid}/buyout-notesbuyout_notesPOST/api/t/{tid}/buyout-notescreate_buyout_notePOST/api/t/{tid}/buyout-notes/previewpreview_buyout_noteGET/api/t/{tid}/buyout-notes/{id}buyout_notePOST/api/t/{tid}/buyout-notes/{id}/cancelcancel_buyout_noteGET/api/t/{tid}/cash-bookcash_bookGET/api/t/{tid}/cash-flowcash_flowGET/api/t/{tid}/close/{period}month_closePOST/api/t/{tid}/close/{period}/{task}mark_close_stepGET/api/t/{tid}/company-suggestcompany_suggestGET/api/t/{tid}/compensationscompensationsPOST/api/t/{tid}/compensationscreate_compensationGET/api/t/{tid}/compensations/proposalcompensation_proposalGET/api/t/{tid}/compensations/{id}compensationPOST/api/t/{tid}/compensations/{id}/cancelcancel_compensationGET/api/t/{tid}/compensations/{id}/statementcompensation_statementGET/api/t/{tid}/contact-emailcontact_emailPOST/api/t/{tid}/contact-emailset_contact_emailPOST/api/t/{tid}/contracts/{id}change_contractGET/api/t/{tid}/cost-center-resultcost_center_resultGET/api/t/{tid}/cost-center-rulescost_center_rulesPOST/api/t/{tid}/cost-center-rulesadd_cost_center_ruleGET/api/t/{tid}/cost-centerscost_centersPOST/api/t/{tid}/cost-centerscreate_cost_centerPOST/api/t/{tid}/cost-centers/{id}change_cost_centerGET/api/t/{tid}/customs-declarationscustoms_declarationsPOST/api/t/{tid}/customs-declarationscreate_customs_declarationPOST/api/t/{tid}/customs-declarations/previewpreview_customs_declarationGET/api/t/{tid}/customs-declarations/{id}customs_declarationPOST/api/t/{tid}/customs-declarations/{id}/cancelcancel_customs_declarationGET/api/t/{tid}/daily-turnoversdaily_turnoversPOST/api/t/{tid}/daily-turnoverscreate_daily_turnoverPOST/api/t/{tid}/daily-turnovers/previewpreview_daily_turnoverGET/api/t/{tid}/daily-turnovers/{id}daily_turnoverPOST/api/t/{tid}/daily-turnovers/{id}/cancelcancel_daily_turnoverGET/api/t/{tid}/deadline-rulesdeadline_rulesPOST/api/t/{tid}/deadline-rules/{code}set_deadline_ruleGET/api/t/{tid}/deadlinesdeadlinesPOST/api/t/{tid}/deadlines/generategenerate_deadlinesPOST/api/t/{tid}/deadlines/{id}/markmark_deadlinePOST/api/t/{tid}/depreciationdepreciateGET/api/t/{tid}/depreciation/groupsdepreciation_groupsGET/api/t/{tid}/depreciation/taxtax_depreciationGET/api/t/{tid}/detailstenant_detailsGET/api/t/{tid}/document-inboxinbox_document, inbox_documentsPOST/api/t/{tid}/document-inboxreceive_documentPOST/api/t/{tid}/document-inbox/{key}update_inbox_documentGET/api/t/{tid}/document-readingsdocument_readings, document_reading_settingsPOST/api/t/{tid}/document-readingsread_document, read_document_confirmedPOST/api/t/{tid}/document-readings/estimatedocument_ai_estimateGET/api/t/{tid}/document-readings/{id}document_readingPOST/api/t/{tid}/document-readings/{id}/draftdocument_reading_draftPOST/api/t/{tid}/document-readings/{id}/invoicesave_reading_invoicePOST/api/t/{tid}/document-readings/{id}/sendsend_reading_invoiceGET/api/t/{tid}/draftsdrafts, pending_draftsPOST/api/t/{tid}/draftscreate_draftPOST/api/t/{tid}/drafts/approve-selectedapprove_selectedPOST/api/t/{tid}/drafts/offlinesync_offline_draftGET/api/t/{tid}/drafts/{id}draftPOST/api/t/{tid}/drafts/{id}change_draftPOST/api/t/{tid}/drafts/{id}/cancelcancel_draftPOST/api/t/{tid}/drafts/{id}/postpost_draftPOST/api/t/{tid}/drafts/{id}/reviewreview_draftGET/api/t/{tid}/dunningdunning_lettersPOST/api/t/{tid}/dunningcreate_dunning_letterGET/api/t/{tid}/dunning/itemsdunning_itemsGET/api/t/{tid}/dunning/stagesdunning_stagesPOST/api/t/{tid}/dunning/stagesadd_dunning_stageGET/api/t/{tid}/dunning/{id}dunning_letterPOST/api/t/{tid}/dunning/{id}/cancelcancel_dunning_letterGET/api/t/{tid}/dunning/{id}/letterdunning_letter_htmlGET/api/t/{tid}/efakturaeinvoicesPOST/api/t/{tid}/efakturasend_einvoicePOST/api/t/{tid}/efaktura/certificateupload_einvoice_certPOST/api/t/{tid}/efaktura/certificate/deactivatedeactivate_einvoice_certPOST/api/t/{tid}/efaktura/certificate/localregister_local_einvoice_certPOST/api/t/{tid}/efaktura/certificate/locklock_einvoice_certPOST/api/t/{tid}/efaktura/certificate/unlockunlock_einvoice_certGET/api/t/{tid}/efaktura/codebookseinvoice_codebooksPOST/api/t/{tid}/efaktura/inboxfetch_einvoice_inboxGET/api/t/{tid}/efaktura/inheritanceeinvoice_settings_sourcesPOST/api/t/{tid}/efaktura/inheritanceset_einvoice_certificate_inheritancePOST/api/t/{tid}/efaktura/offlinesync_offline_einvoicePOST/api/t/{tid}/efaktura/previeweinvoice_previewGET/api/t/{tid}/efaktura/send-batcheseinvoice_send_batchesPOST/api/t/{tid}/efaktura/send-batchescreate_einvoice_send_batchGET/api/t/{tid}/efaktura/send-batches/{id}einvoice_send_batchPOST/api/t/{tid}/efaktura/send-batches/{id}/retryretry_einvoice_send_batchPOST/api/t/{tid}/efaktura/settingsset_einvoice_settingsGET/api/t/{tid}/efaktura/setupeinvoice_setupGET/api/t/{tid}/efaktura/{id}einvoiceGET/api/t/{tid}/efaktura/{id}/asiceinvoice_asicPOST/api/t/{tid}/efaktura/{id}/correctioncorrect_einvoicePOST/api/t/{tid}/efaktura/{id}/decisiondecide_einvoiceGET/api/t/{tid}/efaktura/{id}/historyeinvoice_historyGET/api/t/{tid}/efaktura/{id}/pdfeinvoice_pdfGET/api/t/{tid}/efaktura/{id}/receipt-importeinvoice_receipt_previewPOST/api/t/{tid}/efaktura/{id}/receipt-importimport_einvoice_receiptPOST/api/t/{tid}/efaktura/{id}/sendresend_einvoicePOST/api/t/{tid}/efaktura/{id}/statuseinvoice_statusPOST/api/t/{tid}/efaktura/{id}/stornostorno_einvoiceGET/api/t/{tid}/efaktura/{id}/ujp-pdfeinvoice_ujp_pdfPOST/api/t/{tid}/efaktura/{id}/vat-totalsreport_einvoice_vatGET/api/t/{tid}/employeesemployeesPOST/api/t/{tid}/employeescreate_employeeGET/api/t/{tid}/employees/{id}employeePOST/api/t/{tid}/employees/{id}change_employeePOST/api/t/{tid}/employees/{id}/contractsadd_contractPOST/api/t/{tid}/employees/{id}/municipalityset_employee_municipalityPOST/api/t/{tid}/entriespost_entryGET/api/t/{tid}/entries/{id}entry_summary, entryPOST/api/t/{tid}/entries/{id}/attachmentslink_export_proof, link_attachmentPOST/api/t/{tid}/entries/{id}/stornostornoGET/api/t/{tid}/filingsfilingsPOST/api/t/{tid}/filingsprepare_filingGET/api/t/{tid}/filings/checksfiling_checksGET/api/t/{tid}/filings/{id}filingPOST/api/t/{tid}/filings/{id}/acceptfiling_stepPOST/api/t/{tid}/filings/{id}/cancelfiling_stepPOST/api/t/{tid}/filings/{id}/correctcorrect_filingPOST/api/t/{tid}/filings/{id}/rejectfiling_stepPOST/api/t/{tid}/filings/{id}/signfiling_stepPOST/api/t/{tid}/filings/{id}/submitfiling_stepGET/api/t/{tid}/fiscal-report-bookfiscal_report_bookGET/api/t/{tid}/fiscal-yearsfiscal_yearsGET/api/t/{tid}/fiscal-years/settingsfiscal_year_settingsPOST/api/t/{tid}/fiscal-years/settingsset_fiscal_yearGET/api/t/{tid}/fx-ratesfx_ratesPOST/api/t/{tid}/fx-ratesadd_fx_ratesPOST/api/t/{tid}/fx-rates/nbrmimport_nbrmGET/api/t/{tid}/fx-revaluation-policiesfx_revaluation_policiesPOST/api/t/{tid}/fx-revaluation-policiesadd_fx_revaluation_policyGET/api/t/{tid}/fx-revaluationsfx_revaluationsPOST/api/t/{tid}/fx-revaluationscreate_fx_revaluationGET/api/t/{tid}/fx-revaluations/previewfx_revaluation_previewGET/api/t/{tid}/fx-revaluations/{id}fx_revaluationPOST/api/t/{tid}/fx-revaluations/{id}/cancelcancel_fx_revaluationGET/api/t/{tid}/fx-revaluations/{id}/statementfx_revaluation_statementPOST/api/t/{tid}/grids/{register}grid_pageGET/api/t/{tid}/interestinterest_calcsPOST/api/t/{tid}/interestcreate_interest_calcGET/api/t/{tid}/interest/previewinterest_previewGET/api/t/{tid}/interest/ratesinterest_ratesPOST/api/t/{tid}/interest/ratesadd_interest_rateGET/api/t/{tid}/interest/{id}interest_calcPOST/api/t/{tid}/interest/{id}/cancelcancel_interest_calcGET/api/t/{tid}/interest/{id}/statementinterest_statementGET/api/t/{tid}/invitationsinvitationsPOST/api/t/{tid}/invitationsinvitePOST/api/t/{tid}/invitations/{id}/cancelcancel_invitationGET/api/t/{tid}/invoice-bookinvoice_bookGET/api/t/{tid}/invoicesinvoicesPOST/api/t/{tid}/invoicescreate_invoiceGET/api/t/{tid}/invoices/dispatches/{partner}invoice_dispatchesPOST/api/t/{tid}/invoices/issueissue_invoice, issue_invoice_to_taxpayerGET/api/t/{tid}/invoices/{id}invoicePOST/api/t/{tid}/invoices/{id}/cancelcancel_invoiceGET/api/t/{tid}/invoices/{id}/dossierinvoice_dossierPOST/api/t/{tid}/invoices/{id}/efakturasend_invoice_einvoiceGET/api/t/{tid}/invoices/{id}/printinvoice_printGET/api/t/{tid}/journaljournalGET/api/t/{tid}/journal.csvjournal_csvGET/api/t/{tid}/leaveleave_overviewGET/api/t/{tid}/leave/balanceleave_balanceGET/api/t/{tid}/leave/decisionsleave_decisionsPOST/api/t/{tid}/leave/decisionscreate_leave_decisionGET/api/t/{tid}/leave/decisions/{id}leave_decisionPOST/api/t/{tid}/leave/decisions/{id}/cancelcancel_leave_decisionPOST/api/t/{tid}/leave/decisions/{id}/usagesadd_leave_usageGET/api/t/{tid}/leave/entitlementsleave_entitlementsPOST/api/t/{tid}/leave/entitlementsadd_leave_entitlementGET/api/t/{tid}/leave/rulesleave_rulesPOST/api/t/{tid}/leave/usages/{id}/cancelcancel_leave_usageGET/api/t/{tid}/leave/working-daysleave_working_daysPOST/api/t/{tid}/lifecyclemanage_tenantGET/api/t/{tid}/logotenant_logoPOST/api/t/{tid}/logoset_tenant_logoGET/api/t/{tid}/logo.pngtenant_logo_pngPOST/api/t/{tid}/logo/removeremove_tenant_logoGET/api/t/{tid}/matchesmatchesPOST/api/t/{tid}/matchescreate_matchPOST/api/t/{tid}/matches/fxcreate_fx_matchPOST/api/t/{tid}/matches/{id}/cancelcancel_matchGET/api/t/{tid}/membersmembersPOST/api/t/{tid}/membersset_memberGET/api/t/{tid}/messagesmessagesPOST/api/t/{tid}/messagessend_messageGET/api/t/{tid}/messages/unreadunread_messagesGET/api/t/{tid}/messages/{id}message_threadPOST/api/t/{tid}/messages/{id}/readmark_messageGET/api/t/{tid}/mfa-policytenant_mfa_policyPOST/api/t/{tid}/mfa-policyset_tenant_mfa_policyGET/api/t/{tid}/number-seriesnumber_seriesPOST/api/t/{tid}/number-seriescreate_number_seriesGET/api/t/{tid}/number-series/previewnumber_series_previewPOST/api/t/{tid}/number-series/{id}/versionschange_number_seriesGET/api/t/{tid}/numberingnumberingGET/api/t/{tid}/open-itemsopen_itemsGET/api/t/{tid}/opening-balancesopening_balance_importsPOST/api/t/{tid}/opening-balancesopening_balancesGET/api/t/{tid}/other-incomeother_incomesPOST/api/t/{tid}/other-incomecreate_other_income, create_other_income_agreed_netGET/api/t/{tid}/other-income/agriculturalagricultural_buyout_totalsGET/api/t/{tid}/other-income/previewother_income_amount_preview, agricultural_buyout_previewGET/api/t/{tid}/other-income/{id}other_incomePOST/api/t/{tid}/other-income/{id}/cancelcancel_other_incomeGET/api/t/{tid}/other-income/{id}/epddother_income_epdd_sheetGET/api/t/{tid}/other-income/{id}/epdd/pp53other_income_pp53GET/api/t/{tid}/other-income/{id}/epdd/responseother_income_epdd_statusPOST/api/t/{tid}/other-income/{id}/epdd/responserecord_other_income_epdd_responsePOST/api/t/{tid}/other-income/{id}/filedother_income_filedGET/api/t/{tid}/partner-mergespartner_mergesGET/api/t/{tid}/partnerspartnersPOST/api/t/{tid}/partnerscreate_partnerGET/api/t/{tid}/partners/{id}partnerPOST/api/t/{tid}/partners/{id}update_partnerGET/api/t/{tid}/partners/{id}/cardpartner_cardGET/api/t/{tid}/partners/{id}/iosiosPOST/api/t/{tid}/partners/{id}/mergemerge_partnerGET/api/t/{tid}/partners/{id}/versionspartner_versionsGET/api/t/{tid}/paymentspayment_ordersPOST/api/t/{tid}/paymentscreate_payment_orderGET/api/t/{tid}/payments/batchespayment_batchesPOST/api/t/{tid}/payments/batchescreate_payment_batchPOST/api/t/{tid}/payments/payrollpayroll_payment_ordersGET/api/t/{tid}/payments/planpayment_planPOST/api/t/{tid}/payments/{id}/cancelcancel_payment_orderGET/api/t/{tid}/payroll/advance-limitpayroll_advance_limitGET/api/t/{tid}/payroll/advancespayroll_advancesPOST/api/t/{tid}/payroll/advancescreate_payroll_advancePOST/api/t/{tid}/payroll/advances/groupcreate_payroll_advance_groupGET/api/t/{tid}/payroll/advances/{id}payroll_advancePOST/api/t/{tid}/payroll/advances/{id}/cancelcancel_payroll_advancePOST/api/t/{tid}/payroll/advances/{id}/payment-orderpayroll_advance_payment_orderGET/api/t/{tid}/payroll/deduction-planspayroll_deduction_plansPOST/api/t/{tid}/payroll/deduction-planscreate_payroll_deduction_planPOST/api/t/{tid}/payroll/deduction-plans/applyapply_payroll_deduction_plansGET/api/t/{tid}/payroll/deduction-plans/{id}payroll_deduction_planPOST/api/t/{tid}/payroll/deduction-plans/{id}/closeclose_payroll_deduction_planGET/api/t/{tid}/payroll/garnishment-limitpayroll_garnishment_limitGET/api/t/{tid}/payroll/item-typespayroll_item_typesGET/api/t/{tid}/payroll/itemspayroll_itemsPOST/api/t/{tid}/payroll/itemsadd_payroll_itemPOST/api/t/{tid}/payroll/items/{id}/cancelcancel_payroll_itemPOST/api/t/{tid}/payroll/mpin/epdd/{id}/checkmpin_epdd_checkGET/api/t/{tid}/payroll/mpin/municipalitiesmpin_municipalitiesGET/api/t/{tid}/payroll/mpin/settingsmpin_settingsPOST/api/t/{tid}/payroll/mpin/settingsset_mpin_settingsGET/api/t/{tid}/payroll/parameterspayroll_paramsPOST/api/t/{tid}/payroll/parametersset_payroll_paramGET/api/t/{tid}/payroll/previewpayroll_previewPOST/api/t/{tid}/payroll/previewpayroll_preview_kindGET/api/t/{tid}/payroll/runspayroll_runsPOST/api/t/{tid}/payroll/runslock_payroll, lock_payroll_kindGET/api/t/{tid}/payroll/runs/{id}payroll_runGET/api/t/{tid}/payroll/runs/{id}/headerpayroll_run_headerGET/api/t/{tid}/payroll/runs/{id}/mpinmpinPOST/api/t/{tid}/payroll/runs/{id}/mpinmpin_filedGET/api/t/{tid}/payroll/runs/{id}/mpin/epddmpin_epddPOST/api/t/{tid}/payroll/runs/{id}/mpin/epddmpin_epdd_submitPOST/api/t/{tid}/payroll/runs/{id}/mpin/epdd/signmpin_epdd_signPOST/api/t/{tid}/payroll/runs/{id}/postpost_payrollGET/api/t/{tid}/performanceperformanceGET/api/t/{tid}/period-lockperiod_lockPOST/api/t/{tid}/period-lockset_period_lock, set_period_lock_confirmedGET/api/t/{tid}/permissionspermissionsPOST/api/t/{tid}/permissionsset_permissionsGET/api/t/{tid}/pit-annualpit_annual_returnsPOST/api/t/{tid}/pit-annualcreate_pit_annual_returnGET/api/t/{tid}/pit-annual/peoplepit_annual_peopleGET/api/t/{tid}/pit-annual/previewpit_annual_previewGET/api/t/{tid}/pit-annual/{id}pit_annual_returnPOST/api/t/{tid}/pit-annual/{id}/cancelcancel_pit_annual_returnGET/api/t/{tid}/pit-annual/{id}/csvpit_annual_csvPOST/api/t/{tid}/pit-annual/{id}/filedpit_annual_filedGET/api/t/{tid}/profit-taxprofit_tax_returnsPOST/api/t/{tid}/profit-taxcreate_profit_tax_returnGET/api/t/{tid}/profit-tax/account-mapsprofit_tax_account_mapsPOST/api/t/{tid}/profit-tax/account-mapsadd_profit_tax_account_mapGET/api/t/{tid}/profit-tax/previewprofit_tax_previewGET/api/t/{tid}/profit-tax/proposalprofit_tax_proposalPOST/api/t/{tid}/profit-tax/proposal/correctionsadd_profit_tax_correctionPOST/api/t/{tid}/profit-tax/proposal/unitsset_profit_tax_unitsGET/api/t/{tid}/profit-tax/ratesprofit_tax_ratesPOST/api/t/{tid}/profit-tax/ratesadd_profit_tax_rateGET/api/t/{tid}/profit-tax/{id}profit_tax_returnPOST/api/t/{tid}/profit-tax/{id}/cancelcancel_profit_tax_returnGET/api/t/{tid}/profit-tax/{id}/formprofit_tax_pdf, profit_tax_formPOST/api/t/{tid}/profit-tax/{id}/formprofit_tax_settlement_pdfGET/api/t/{tid}/reconciliationreconciliationGET/api/t/{tid}/registryregistryPOST/api/t/{tid}/registryregister_documentPOST/api/t/{tid}/registry/{id}correct_registry_entryPOST/api/t/{tid}/registry/{id}/cancelcancel_registry_entryGET/api/t/{tid}/registry/{id}/versionsregistry_versionsGET/api/t/{tid}/report-check-rulesreport_check_rulesGET/api/t/{tid}/reportsannual_reportsGET/api/t/{tid}/reports/allocationsreport_allocationsPOST/api/t/{tid}/reports/allocationsadd_report_allocationGET/api/t/{tid}/reports/id/{id}annual_reportGET/api/t/{tid}/reports/sizereport_sizesPOST/api/t/{tid}/reports/sizeset_report_sizePOST/api/t/{tid}/reports/{year}generate_annual_reportGET/api/t/{tid}/reports/{year}/checkannual_report_checkPOST/api/t/{tid}/reports/{year}/check/confirmconfirm_report_warningsPOST/api/t/{tid}/reports/{year}/previewpreview_annual_reportGET/api/t/{tid}/responsibleresponsiblePOST/api/t/{tid}/responsibleadd_responsibleGET/api/t/{tid}/retail-receipt-sheetsretail_receipt_sheetsGET/api/t/{tid}/retail-recordsretail_recordGET/api/t/{tid}/salessalesPOST/api/t/{tid}/salesissue_saleGET/api/t/{tid}/sales-documentssales_documentsPOST/api/t/{tid}/sales-documentscreate_sales_documentGET/api/t/{tid}/sales-documents/{id}sales_documentPOST/api/t/{tid}/sales-documents/{id}/acceptpost_t_tid_sales_documents_id_acceptPOST/api/t/{tid}/sales-documents/{id}/cancelpost_t_tid_sales_documents_id_cancelPOST/api/t/{tid}/sales-documents/{id}/confirmpost_t_tid_sales_documents_id_confirmPOST/api/t/{tid}/sales-documents/{id}/convertconvert_sales_documentPOST/api/t/{tid}/sales-documents/{id}/issueissue_sales_documentPOST/api/t/{tid}/sales-documents/{id}/paymentsales_document_paymentGET/api/t/{tid}/sales-documents/{id}/pdfsales_document_pdfPOST/api/t/{tid}/sales-documents/{id}/rejectpost_t_tid_sales_documents_id_rejectPOST/api/t/{tid}/sales-documents/{id}/versionsrevise_sales_documentGET/api/t/{tid}/sales/cost-centerssale_cost_centersGET/api/t/{tid}/sales/customerssale_customersGET/api/t/{tid}/sales/{id}sale_summary, sale_detailPOST/api/t/{tid}/sales/{id}/attachmentsattach_saleGET/api/t/{tid}/sales/{id}/attachments/{aid}sale_filePOST/api/t/{tid}/sales/{id}/postpost_saleGET/api/t/{tid}/schemesschemesPOST/api/t/{tid}/schemescreate_schemeGET/api/t/{tid}/schemes/{id}schemePOST/api/t/{tid}/schemes/{id}/deactivatedeactivate_schemePOST/api/t/{tid}/schemes/{id}/previewscheme_previewPOST/api/t/{tid}/schemes/{id}/versionsscheme_versionGET/api/t/{tid}/signatureslocal_signaturesGET/api/t/{tid}/signersigner_statusPOST/api/t/{tid}/signer/companionsigner_companionGET/api/t/{tid}/signer/nextsigner_nextPOST/api/t/{tid}/signer/{id}signer_reply, signer_declineGET/api/t/{tid}/statistics/activity-rulesstat_activity_rulesPOST/api/t/{tid}/statistics/activity-rulesadd_stat_activity_ruleGET/api/t/{tid}/statistics/annualstat_annualGET/api/t/{tid}/statistics/annual/csvstat_annual_csvGET/api/t/{tid}/statistics/item-activitiesstat_item_activitiesPOST/api/t/{tid}/statistics/item-activitiesadd_stat_item_activityGET/api/t/{tid}/statistics/kipokipo_reportGET/api/t/{tid}/statistics/main-activitiesstat_main_activitiesPOST/api/t/{tid}/statistics/main-activitiesadd_stat_main_activityGET/api/t/{tid}/statistics/payrollstat_payrollGET/api/t/{tid}/stock/cardget_t_tid_stock_cardGET/api/t/{tid}/stock/documentsstock_documentsPOST/api/t/{tid}/stock/documentscreate_stock_documentGET/api/t/{tid}/stock/documents/{id}stock_documentPOST/api/t/{tid}/stock/documents/{id}/cancelcancel_stock_documentGET/api/t/{tid}/stock/documents/{id}/overviewstock_document_overviewPOST/api/t/{tid}/stock/documents/{id}/postpost_stock_documentPOST/api/t/{tid}/stock/documents/{id}/stornostorno_stock_documentGET/api/t/{tid}/stock/item-mapsstock_item_mapsPOST/api/t/{tid}/stock/item-mapscreate_stock_item_mapPOST/api/t/{tid}/stock/item-maps/{id}/deactivatedeactivate_stock_item_mapGET/api/t/{tid}/stock/itemsitemsPOST/api/t/{tid}/stock/itemscreate_itemGET/api/t/{tid}/stock/items/{id}item, stock_item_summaryPOST/api/t/{tid}/stock/items/{id}change_itemGET/api/t/{tid}/stock/liststock_listGET/api/t/{tid}/stock/parametersstock_paramsPOST/api/t/{tid}/stock/parametersset_stock_paramGET/api/t/{tid}/stock/productionproduction_ordersPOST/api/t/{tid}/stock/productionstart_productionPOST/api/t/{tid}/stock/production/{id}/receiptfinish_productionGET/api/t/{tid}/stock/recipesproduction_recipesPOST/api/t/{tid}/stock/recipescreate_recipeGET/api/t/{tid}/stock/reconciliationstock_reconciliationGET/api/t/{tid}/stock/warehouseswarehousesPOST/api/t/{tid}/stock/warehousescreate_warehousePOST/api/t/{tid}/stock/warehouses/{id}change_warehouseGET/api/t/{tid}/stocktakesstocktakesPOST/api/t/{tid}/stocktakescreate_stocktakeGET/api/t/{tid}/stocktakes/{id}stocktakePOST/api/t/{tid}/stocktakes/{id}/countsstocktake_countPOST/api/t/{tid}/stocktakes/{id}/locklock_stocktakePOST/api/t/{tid}/stocktakes/{id}/postpost_stocktakeGET/api/t/{tid}/subscriptionsubscriptionGET/api/t/{tid}/supportsupportPOST/api/t/{tid}/support/sessionsupport_chat_sessionPOST/api/t/{tid}/support/suggestsupport_suggestPOST/api/t/{tid}/support/ticketssupport_createGET/api/t/{tid}/support/tickets/{id}support_ticketPOST/api/t/{tid}/support/tickets/{id}/closesupport_closePOST/api/t/{tid}/support/tickets/{id}/messagessupport_replyPOST/api/t/{tid}/support/tickets/{id}/reopensupport_reopenGET/api/t/{tid}/tax-regimestax_regimesPOST/api/t/{tid}/tax-regimesset_tax_regimeGET/api/t/{tid}/total-income-taxtotal_income_tax_returnsPOST/api/t/{tid}/total-income-taxcreate_total_income_tax_returnGET/api/t/{tid}/total-income-tax/paramstotal_income_tax_paramsPOST/api/t/{tid}/total-income-tax/paramsadd_total_income_tax_paramsGET/api/t/{tid}/total-income-tax/previewtotal_income_tax_previewGET/api/t/{tid}/total-income-tax/{id}total_income_tax_returnPOST/api/t/{tid}/total-income-tax/{id}/cancelcancel_total_income_tax_returnGET/api/t/{tid}/total-income-tax/{id}/formtotal_income_tax_pdf, total_income_tax_formGET/api/t/{tid}/travel-allowance-ratestravel_ratesPOST/api/t/{tid}/travel-allowance-ratesadd_travel_ratePOST/api/t/{tid}/travel-expenses/{id}/cancelcancel_travel_expenseGET/api/t/{tid}/travel-orderstravel_ordersPOST/api/t/{tid}/travel-orderscreate_travel_orderGET/api/t/{tid}/travel-orders/{id}travel_orderPOST/api/t/{tid}/travel-orders/{id}/cancelcancel_travel_orderPOST/api/t/{tid}/travel-orders/{id}/expensesadd_travel_expensePOST/api/t/{tid}/travel-orders/{id}/payment-ordertravel_payment_orderGET/api/t/{tid}/travel-orders/{id}/previewtravel_order_previewPOST/api/t/{tid}/travel-orders/{id}/settlesettle_travel_orderGET/api/t/{tid}/trial-balancetrial_balance, trial_balance_for_centerGET/api/t/{tid}/ujp/statusujp_statusGET/api/t/{tid}/usageusageGET/api/t/{tid}/vat/bookvat_bookGET/api/t/{tid}/vat/registrationsvat_registrationsPOST/api/t/{tid}/vat/registrationsregister_vatGET/api/t/{tid}/vat/returnsvat_returnsPOST/api/t/{tid}/vat/returnsfile_vat_returnGET/api/t/{tid}/vat/returns/{id}vat_return, vat_return_fieldGET/api/t/{tid}/vat/returns/{id}/formvat_return_pdfPOST/api/t/{tid}/vat/returns/{id}/formclassified_vat_formGET/api/t/{tid}/vat/returns/{id}/form/itemsvat_form_itemsGET/api/t/{tid}/vat/summaryvat_summaryGET/api/t/{tid}/year-closeyear_close_statusPOST/api/t/{tid}/year-closeclose_yearGET/api/t/{tid}/year-close/overviewyear_close_overviewPOST/api/t/{tid}/year-close/reopenreopen_yearGET/api/t/{tid}/year-closingsyear_closingsGET/api/tenantstenantsPOST/api/tenantscreate_tenant, create_bureau_clientPOST/api/tenants/with-detailscreate_tenant_with_details

Metoda shtesë Rust

new krijon klient pa sesion. with_http përdor reqwest::Client tuaj. with_token shton token ekzistues pa e kontrolluar në server. with_device vendos ID të qëndrueshme dhe emër për X-KC-Device / X-KC-Device-Name; ruajeni ID-në ndërmjet nisjeve. Këto metoda nuk dërgojnë kërkesa HTTP.

fn new (base_url: impl Into <String>) -> Self
fn with_http (base_url: impl Into <String>, http: reqwest:: Client) -> Self
fn with_token (mut self, token: impl Into <String>) -> Self
fn with_device (mut self, id: impl Into <String>, name: impl Into <String>) -> Self

with_cache vendos një kopje lokale (ResponseCache) për përgjigjet e kërkesave GET. Çdo përgjigje e suksesshme ruhet me çelës nga serveri, sesioni dhe shtegu; kur serveri nuk arrihet, kthehet përgjigjja e fundit e ruajtur. Gabimet e tjera dhe kërkesat POST nuk mbulohen.

fn with_cache (mut self, cache: std:: sync:: Arc <dyn ResponseCache>) -> Self

Qasje te URL-ja bazë, klienti HTTP dhe tokeni aktual Option<&str>. Kthejnë vlera të huazuara dhe nuk kontrollojnë nëse sesioni është ende aktiv.

fn base_url (&self) -> &str
fn http_client (&self) -> &reqwest:: Client
fn token (&self) -> Option <&str>

Shkurtore për login_start që kthen Session dhe ruan tokenin. Nëse kërkohet faktor i dytë, kthen SdkError::Api me mfa_required; përdorni login_start, pastaj login_mfa ose rrjedhën passkey për biletën MFA.

async fn login (&mut self, email: &str, password: &str) -> Result <Session>

GET /health pa header Bearer. Kthen përgjigjen si String; statusi HTTP i pasuksesshëm ose gabimi i transportit bëhet SdkError::Http.

async fn health (&self) -> Result <String>

desktop_public_url vetëm ndërton URL-në publike. desktop_get_public lexon desktop_latest, shkarkon përmes ridrejtimit, kontrollon SHA-256 dhe madhësinë dhe kthen (emri, bajtet). desktop_fetch pranon DesktopUpdate, shkarkon me klient të ri HTTP pa header API, bën të njëjtat kontrolle dhe kthen bajte. Mospërputhja jep Integrity. Transporti i personalizuar duhet të lejojë ridrejtime për desktop_get_public.

fn desktop_public_url (&self, target: &str) -> String
async fn desktop_get_public (&self, target: &str) -> Result <(String, Vec <u8>)>
async fn desktop_fetch (&self, u: &DesktopUpdate) -> Result <Vec <u8>>

avatar shkarkon fotografinë tuaj dhe inbox_board_avatar fotografinë e një anëtari të zyrës. Të dyja kthejnë llojin MIME dhe bajtet, ose None për një përgjigje 404.

async fn avatar (&self) -> Result <Option <(String, Vec <u8>)>>
async fn inbox_board_avatar (&self, bureau: BureauId, user: UserId,) -> Result <Option <(String, Vec <u8>)>>

other_income_preview përdor normën e përgjithshme për llojin e të ardhurave. Përdorni other_income_subtype_preview për nënllojin ose shpenzimet e paguara.

async fn other_income_preview (&self, tid: TenantId, kind: IncomeKind, gross: Money, date: NaiveDate,) -> Result <OtherIncomePreview>
async fn other_income_subtype_preview (&self, tid: TenantId, kind: IncomeKind, gross: Money, date: NaiveDate, subtype: Option <IncomeSubtype>, paid_cost: Option <Money>,) -> Result <OtherIncomePreview>

sales_document_action thërret një hap në ofertë, porosi ose profaturë: accept dhe reject (ofertë), confirm (porosi) ose cancel (me arsye).

async fn sales_document_action (&self, tid: TenantId, id: SalesDocumentId, action: &str, a: &SalesDocumentAction,) -> Result <SalesDocument>

kipo lexon raportin tremujor KIPO pa regjistrimet individuale të saldove fillestare. kipo_form shton profilin e personit juridik për fletën e punës.

async fn kipo (&self, tid: TenantId, year: i32, quarter: u8) -> Result <KipoReport>
async fn kipo_form (&self, tid: TenantId, year: i32, quarter: u8) -> Result <KipoForm>

Përgatit XML për dokumentin 133 nga njoftimi i ruajtur për mosveprimtari, duke përdorur të dyja kolonat e bilancit.

async fn filing_crm_inactivity_xml (&self, tid: TenantId, f: &Filing,) -> Result <kc_types:: crm:: CrmAnnualXml>

filing_crm_xml verifikon SHA-256 të llogarisë vjetore të ruajtur dhe e përpunon me shtojcën për operacionin 450. Rezultati përmban XML dhe një listë gjetjesh për shqyrtim para dorëzimit.

async fn filing_crm_xml (&self, tid: TenantId, f: &Filing, supplement: &[u8],) -> Result <kc_types:: crm:: CrmAnnualXml>

Dy metodat e para shkarkojnë attachment_id nga PaymentBatch ose Filing, verifikojnë SHA-256 dhe kthejnë Download: filename, content_type, sha256 dhe content. filing_preview lexon edhe JSON dhe krijon pamje HTML. Nuk dorëzon deklarim në institucion. JSON i pavlefshëm ose hash i papërputhur jep Integrity.

async fn download_payment_batch (&self, tid: TenantId, b: &PaymentBatch,) -> Result <Download>
async fn download_filing (&self, tid: TenantId, f: &Filing) -> Result <Download>
async fn filing_preview (&self, tid: TenantId, f: &Filing) -> Result <String>

Shkurtore për bureau_grid me regjistrin companies: POST /api/bureaus/:bid/grids/companies. Kthen GridPage me klientët e byrosë.

async fn bureau_client_grid (&self, bid: BureauId, query: &grid_page:: GridQuery,) -> Result <grid_page:: GridPage>

Të dy metodat thërrasin GET /api/t/:tid/stock/card me warehouse, item dhe from e to opsionale. stock_card kthen StockCard të plotë; stock_card_summary shton summary_only=true dhe kthen gjendjen fillestare dhe përfundimtare.

async fn stock_card (&self, tid: TenantId, warehouse: WarehouseId, item: ItemId, from: Option <NaiveDate>, to: Option <NaiveDate>,) -> Result <StockCard>
async fn stock_card_summary (&self, tid: TenantId, warehouse: WarehouseId, item: ItemId, from: Option <NaiveDate>, to: Option <NaiveDate>,) -> Result <StockCard>

Cilësimet personale

Me një seancë aktive, lexoni cilësimet personale dhe ndryshoni temën. Veprimet përdorin GET dhe POST në /api/me/preferences. Për të rikthyer paraqitjen e parazgjedhur të një tabele, dërgoni një vlerë boshe për çelësin e saj.

let preferences = client.preferences().await?;
println!("{preferences:#?}");
client.set_preference("theme", "dark").await?;

Shuma të sakta

Paratë janë numra të plotë në deni, jo float. Python dhe Ruby ruajnë saktësinë e numrave të plotë; PHP kërkon mjedis 64-bit. Go përdor json.Number kur dekodon në any; kthejeni me Int64(). Në .NET përdorni GetInt64(); Money në Rust është i64.

Skedarët binarë

Shembull: shkarkoni arkivin për një person juridik. KC_TENANT është UUID e tij; sesioni duhet të ketë qasje.

let tenant = std::env::var("KC_TENANT")?.parse()?;
let bytes = client.archive(tenant).await?;
std::fs::write("archive.zip", bytes)?;

Gabimet, afatet dhe riprovimi

Shtatë klientët e rinj kanë afat 30 sekonda dhe nuk ndjekin ridrejtimet HTTP. Rust përdor reqwest; caktoni afatin dhe politikën me Client::with_http. Gabimet HTTP japin përjashtime me status; gabimet JSON përmbajnë code dhe message. Go kthen error. Përgjigjet binare janë bytes, pa dekodim JSON. Shkrimet nuk përsëriten automatikisht pas ndërprerjes: kontrolloni nëse regjistrimi u krijua.