Skip to main content

国税庁API

Project description

kendama

国税庁が提供するインボイス制度適格請求書発行事業者公表システムWeb-APIを使用するためのクライアントAPI(https://www.invoice-kohyo.nta.go.jp/web-api/index.html)

This Python package is automatically generated by the OpenAPI Generator project:

  • API version: 1.0.0
  • Package version: 0.1.4
  • Generator version: 7.22.0
  • Build package: org.openapitools.codegen.languages.PythonClientCodegen

Requirements.

Python 3.10+

Installation & Usage

pip install

If the python package is hosted on a repository, you can install directly using:

pip install git+https://github.com/nisyuu/kendama-python.git

(you may need to run pip with root permission: sudo pip install git+https://github.com/nisyuu/kendama-python.git)

Then import the package:

import kendama

Setuptools

Install via Setuptools.

python setup.py install --user

(or sudo python setup.py install to install the package for all users)

Then import the package:

import kendama

Tests

Execute pytest to run the tests.

Getting Started

Please follow the installation procedure and then run the following:

import kendama
from kendama.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to https://kensyo.invoice-kohyo.nta.go.jp
# See configuration.py for a list of all supported configuration parameters.
configuration = kendama.Configuration(
    host = "https://kensyo.invoice-kohyo.nta.go.jp"
)



# Enter a context with an instance of the API client
with kendama.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = kendama.V1Api(api_client)
    id = 'id_example' # str | 
    var_from = 'Tue Oct 01 09:00:00 JST 2024' # date | 
    to = 'Tue Oct 01 09:00:00 JST 2024' # date | 
    type = 21 # str |  (default to 21)
    division = 1 # str |  (optional) (default to 1)
    divide = '1' # str |  (optional) (default to '1')

    try:
        # 取得期間を指定して情報を取得
        api_response = api_instance.get_announcement_by_diff(id, var_from, to, type, division=division, divide=divide)
        print("The response of V1Api->get_announcement_by_diff:\n")
        pprint(api_response)
    except ApiException as e:
        print("Exception when calling V1Api->get_announcement_by_diff: %s\n" % e)

Documentation for API Endpoints

All URIs are relative to https://kensyo.invoice-kohyo.nta.go.jp

Class Method HTTP request Description
V1Api get_announcement_by_diff GET /1/diff 取得期間を指定して情報を取得
V1Api get_announcement_by_number GET /1/num 登録番号を指定して情報を取得
V1Api get_announcement_by_valid GET /1/valid 登録番号と日付を指定して情報を取得

Documentation For Models

Documentation For Authorization

Endpoints do not require authorization.

Author

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

kendama-0.1.4.tar.gz (45.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

kendama-0.1.4-py3-none-any.whl (54.9 kB view details)

Uploaded Python 3

File details

Details for the file kendama-0.1.4.tar.gz.

File metadata

  • Download URL: kendama-0.1.4.tar.gz
  • Upload date:
  • Size: 45.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.2.1 CPython/3.14.5 Darwin/25.5.0

File hashes

Hashes for kendama-0.1.4.tar.gz
Algorithm Hash digest
SHA256 4114e891eb09d16fc2afa58a7b44d0671c215790151c8c88c6dd5d9b864574be
MD5 352c096fca6bbcc49e77d7597b2fd6fc
BLAKE2b-256 bd6d5e9339d40a7f35b20e2fb0a6e0907060a38a5a0c782326e025ddab35eb90

See more details on using hashes here.

File details

Details for the file kendama-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: kendama-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 54.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.2.1 CPython/3.14.5 Darwin/25.5.0

File hashes

Hashes for kendama-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 abdfe388ee8d23a08674b10230f862fcb2ccd74ee1f45666745cc7138acf8f00
MD5 806b6eb3ed2365917e97c735442c8f6f
BLAKE2b-256 047b93fd804b4393fc43ee40bf74e1b15e92393d523f861f29b0be2b00d0e94e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page