Skip to main content

Fetch data from your Mollie account

Project description

extract data from your Mollie account API

pip install mollie_api_extract

Authentication: You need to pass API key in each function call. No pre-authorization is needed. You may want to store API Key in an environmental variable to avoid displaying it in each function call. In the current version 1.0.1, there are three functions:

mollie_payments

from mollie_api_extract import mollie_payments
payments_data = mollie_payments('access_token','account_name')

This function will fetch all data from payments endpoint. access_token is a compulsory field and account_name is optional e.g. mollie_payments('xxxxyyyyy','My Company GmbH') or just mollie_payments('xxxxyyyyy'). Each API call will fetch 250 rows(max limit) until full extract is complete. As the full extract can run for long duration, after each API call it will print going to next API requests for 250 rows.. so that the end user can see the progress.

The output will be a dataframe with following fields:

['mollie_account', 'profileId', 'resource', 'id', 'mode', 'createdAt', 'status', 'amount_value', 'amount_currency', 'method', 'locale', 'sequenceType', 'description', 'details', 'is_cancellable', 'authorized_at', 'paid_at', 'expires_at', 'expired_at', 'failed_at', 'amount_refunded', 'amount_refund_currency', 'amount_remaining', 'amount_remaining_currency', 'amount_captured', 'amount_captured_currency', 'metadata', 'metadata_order_id', 'metadata_refund_token', 'metadata_customer_id', 'restricted_to_country', 'country_code', 'settlement_id', 'customer_id', 'mandate_id', 'subscription_id', 'order_id', 'application_fee_amount_value', 'application_fee_amount_currency', 'application_fee_description', 'settlement_amount', 'settlement_amount_currency', 'links', 'redirectUrl', 'webhook_url']

mollie_refunds

from mollie_api_extract import mollie_refunds
refunds_data = mollie_refunds('access_token','account_name')

This function will fetch all data from refunds endpoint. access_token is a compulsory field and account_name is optional e.g. mollie_refunds('xxxxyyyyy','My Company GmbH') or just mollie_refunds('xxxxyyyyy'). Each API call will fetch 250 rows until full extract is complete.

The output will be a dataframe with following fields:

['resource', 'id', 'amount', 'status', 'createdAt', 'description', 'metadata', 'paymentId', 'settlementId', 'settlementAmount', '_links', 'mollie_account', 'amount_value', 'amount_currency']

mollie_refund

from mollie_api_extract import mollie_refund
refunds_data = mollie_refund('payment_id','refund_id','access_token')

This function will fetch exactly one refund for which the payment_id and refund_id is given. All three parameters need to be passed. e.g. mollie_refund('paymentxxx','refundyyy','tokenzzz')

The output will be a dataframe with following fields:

['resource', 'id', 'amount', 'status', 'createdAt', 'description', 'metadata', 'paymentId', 'settlementId', 'settlementAmount', '_links']

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

mollie-api-extract-1.0.2.tar.gz (3.5 kB view details)

Uploaded Source

Built Distribution

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

mollie_api_extract-1.0.2-py3-none-any.whl (5.3 kB view details)

Uploaded Python 3

File details

Details for the file mollie-api-extract-1.0.2.tar.gz.

File metadata

  • Download URL: mollie-api-extract-1.0.2.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/51.0.0 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.6

File hashes

Hashes for mollie-api-extract-1.0.2.tar.gz
Algorithm Hash digest
SHA256 8209d2003e053651f4bd56da2d0fbad1e8a7cdc79931f74f40e3f5a8ca712ef8
MD5 1ff7dc7dc46b6d2fef2af31524abb653
BLAKE2b-256 7f3f1ba237a3bee68ba097581a8ae0d754f6a5eb81c1c61fe646885e18972c13

See more details on using hashes here.

File details

Details for the file mollie_api_extract-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: mollie_api_extract-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 5.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/51.0.0 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.6

File hashes

Hashes for mollie_api_extract-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 56ca495f6da853611082ddd213270b4474de843f048290bcf74e4d98912d7e3f
MD5 663e4c1bf8166daa14393e1b83c8877a
BLAKE2b-256 1d0cc87fafb00426b679bb52dee2750ad292bde3e671f8b74fd52581020c6976

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