Getting started with Python

We speak Python too! Enjoy the tools we built with you in mind.

Flying-roller

Make your first payment in seconds with bunq Python Tinker

Just run this command to auto connect to sandbox! Switch to production by simply scanning a QR code.

bash <(curl -s https://tinker.bunq.com/python/setup.sh)Click to copy!

Integrate easily via the bunq Python SDK

1. Install the bunq Python SDK.

Click to copy!
pip install bunq_sdk --upgradeClick to copy!

2. Create an API Context.

Click to copy!
apiContext = context.ApiContext(ENVIRONMENT_TYPE, API_KEY,
  DEVICE_DESCRIPTION)
apiContext.save(API_CONTEXT_FILE_PATH)
context.BunqContext.loadApiContext(apiContext)Click to copy!

3. List monetary accounts.

Click to copy!
pagination = Pagination()
pagination.count = count
all_monetary_account_bank = endpoint.MonetaryAccountBank.list(
    Pagination.url_params_count_only
).valueClick to copy!

4. List payments.

Click to copy!
pagination = Pagination()
pagination.count = count
return endpoint.Payment.list(params=pagination.url_params_count_only).valueClick to copy!

5. Make a payment.

Click to copy!
payment_id = endpoint.Payment.create(
    amount=Amount('1.00', 'EUR'),
    counterparty_alias=Pointer('EMAIL', 'recipient@example.com'),
    description='Some money because you\'re awesome.'
)Click to copy!