Skip to main content

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

Project description

plenty_taxhub_generator


Description

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

Installation

poetry install plenty_taxhub_generator

or

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

Usage

Prepare a configuration file with the following format:

[General]
base_url=https://{your-plenty-cloud}.plentymarkets-cloud01.com

[Mappings]
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

[fixed_values]
source_zone=DE
market_zone_currency=EUR

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:

  • YYYY-MM-DDTHH:MM:SS+UTC-OFFSET
  • YYYY-MM-DDTHH:MM
  • YYYY-MM-DD

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 details)

Uploaded Source

Built Distribution

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

plenty_taxhub_generator-0.0.4-py3-none-any.whl (22.5 kB view details)

Uploaded Python 3

File details

Details for the file plenty_taxhub_generator-0.0.4.tar.gz.

File metadata

  • Download URL: plenty_taxhub_generator-0.0.4.tar.gz
  • Upload date:
  • Size: 20.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.4 CPython/3.8.5 Linux/5.6.0-1034-oem

File hashes

Hashes for plenty_taxhub_generator-0.0.4.tar.gz
Algorithm Hash digest
SHA256 0718a61d04af95c70efcae316da4a4b2de0756a21997956842b3350ea39a79a7
MD5 854ceee2a41aff37e53a0b92452063b6
BLAKE2b-256 2ce50b70dd540402e7acbd80a891db14aecf34614fc0437f3656b4b1dc2e58fa

See more details on using hashes here.

File details

Details for the file plenty_taxhub_generator-0.0.4-py3-none-any.whl.

File metadata

File hashes

Hashes for plenty_taxhub_generator-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 5c024d901f552884ebb8979b1823aed57fc2eb7f6dfa49df5d7cf9637da90ea1
MD5 2cd48c61a4849764d9b1f3ca7e80189a
BLAKE2b-256 9837def38d48f72148d414d187620a554c2eb42c0e71f97054f34a59ec6458f8

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