Skip to main content

Generate the required data sheet for the DutyPay( TaxHub platform from Plentymarkets.

Project description



Create a Tax Hub Report with sales order and refunds from PlentyMarkets. Tax Hub is a report used by DutyPay.


poetry install plenty_taxhub_generator


python3 -m pip install plenty_taxhub_generator --user --upgrade


Prepare a configuration file with the following format:


referrer_id={IDs of the order origins}
country_id=AT=2,CZ=6,ES=8,FR=10,GB=12,IT=15,PL=23 # list of countries where VAT is charged


And place the config at:

  • /home/user/.plenty_taxhub_generator_config.ini for Linux systems
  • C:\\Users\user\.plenty_taxhub_generator_config.ini for Windows systems

Create a API user on PlentyMarkets: Setup-> Settings-> User-> Accounts-> New-> Access: REST-API

Then just run the program: python3 -m plenty_taxhub_generator --from 2020-09-01 --to 2020-09-30

Please provide the date in one of the following formats:


You will be asked to provide your API credentials from Plentymarkets. Afterwards these will be saved into your Keyring (system intern password storage) for a certain amount of time.

The report will be placed by default at your current working directory. But you can provide a different location with the -o/--out option.
You can view the mappings in your config with the -m/--mappings option. And you can change the base URL of your PlentyMarkets system with -c/--url/--change_url.

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

plenty_taxhub_generator-0.0.4.tar.gz (20.6 kB view hashes)

Uploaded source

Built Distribution

Supported by

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