Argiris Deligiannidis 51823b2c10
All checks were successful
continuous-integration/drone/push Build is passing
Create dotenv token value
2024-02-03 14:00:25 +02:00
2024-02-03 14:00:25 +02:00
2024-02-02 15:58:35 +02:00
2024-02-02 16:02:45 +02:00
2024-02-02 15:58:35 +02:00
2024-02-02 15:58:35 +02:00
2024-02-02 15:58:35 +02:00
2024-02-02 15:58:35 +02:00
2024-02-02 15:58:35 +02:00
2024-02-02 15:58:35 +02:00
2024-02-02 15:58:35 +02:00

Python QR Codes API

Python API for adding QR Codes in invoices

Deployment

docker-compose up

The signed invoices are saved at the invoices folder, their filenames are inv_code.pdf

Example Calls

Sign with QR

HTTP-POST

https://qrcode.argideli.com/signinvoice/?company=Quertex&inv_type=tpy&in_all=0&preset=inv2&inv_series=2&inv_num=5578

The call body is a multipart form-data, containing the actual invoice. Upon signing with the QR code the new file is returned

Parameters

  • file: UploadFile = File(...) = File to be signed
  • preset: str = Invoice Preset Selection
  • code_content: str = QR code Data, if empty the code data that will be put inside the QR will be the url to download the invoice
  • company: str = Invoice type, english letters (ex. Quertex), NOTE: The Upper Case letter WILL be carried to the filename
  • inv_type: str = Invoice type, english letters (ex. tpy)
  • inv_series: str = Invoice series, english letters (ex. 2 or B1)
  • inv_num: str = Invoice Number
  • in_all: bool = Sign all pages (0|1)

Get invoice

HTTP-GET

https://qrcode.argideli.com/getinvoice/?inv_code=Quertex_tpy_2_5578

Get a saved invoice by calling an HTTP/GET and providing the filename as the inv_code parameter, alternatevily the identifier can be reconstructed from the company, inv_type, inv_series, inv_num parameters

Parameters

  • inv_code: str = Invoice identifier/Filename without .pdf extention
  • company: str = Invoice type, english letters (ex. Quertex), NOTE: The Upper Case letter WILL be carried to the filename
  • inv_type: str = Invoice type, english letters (ex. tpy)
  • inv_series: str = Invoice series, english letters (ex. 2 or B1)
  • inv_num: str = Invoice Number
  • search_file: bool = Get file by reconstructing the filename from (company, inv_type, inv_series, inv_num), (0|1)
Description
No description provided
Readme 42 KiB
Languages
Python 87.9%
Dockerfile 11%
Shell 1.1%