Kumusoft Solutions
EFRIS API
EFRIS API
  1. ๐Ÿ” Authentication
  • ๐Ÿš€ Getting started
  • ๐Ÿ” Authentication
    • Getting started
    • Calling Kumusoft APIs
    • API Keys
    • Generate auth Token
      POST
  • ๐Ÿงพ Invoicing
    • How to generate a Fiscal invoice
    • Generate fiscal invoice
      POST
    • Preview fiscal invoice
      POST
    • Search invoices
      POST
    • Invoice detils
      GET
  • ๐Ÿ“ฆ Stock Management
    • All stock items
      GET
    • Search stock items
      POST
    • Reduce stock
      POST
    • Increase stock
      POST
    • Register stock item
      POST
  • ๐Ÿ“ƒ Credit Notes
    • Issue credit note
      POST
  • โš™๏ธ Masterdata
    • Registration details
      GET
    • Get Masterdata
      GET
  • ๐Ÿ“‹ Reference
    • Overview
    • Data Sources
    • Invoice Types
    • Tax Rules
    • Return Codes
      • Overview
      • General system return codes
      • Taxpayer return codes
      • Invoice return codes
      • Credit note return codes
      • Stock management return codes
      • Device return codes
      • Invoice industry codes
  1. ๐Ÿ” Authentication

Getting started

Welcome to the Kumusoft developer platform.
This guide helps you make your first authenticated API request to Kumusoft. Our APIs use OAuth 2.0 with JWT access tokens signed by our authorization server.

Overview#

Authentication flow:
1.
Obtain an API Key
2.
Request an OAuth Access Token
3.
Call Kumusoft APIs using the Bearer Token
4.
APIs validate tokens using the JWKS endpoint
Auth Server:
https://api.kumusoft.xyz
JWKS Endpoint:
https://auth.kumusoft.com/.well-known/jwks.json

Step 1 โ€” Obtain an API Key#

Before you can authenticate, you must obtain an API Key from Kumusoft.
Example:
API_KEY=kum_d1d2f3e4r5e6f7fh8g9jnefijern939uiw
Treat your API key like a password.
โ€ข Never expose it in frontend code
โ€ข Store it in environment variables

Step 2 โ€” Request an Access Token#

Use the OAuth client_credentials flow to obtain a token.
Token endpoint:
POST https://api.kumusoft.xyz/auth/token
Example:
Example response:
{
  "access_token": "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9...",
  "token_type": "Bearer",
  "expires_in": 3600
}

Step 3 โ€” Call an API#

Include the token in the Authorization header.
Example:
Previous
๐Ÿš€ Getting started
Next
Calling Kumusoft APIs
Built with