Getting started with Python

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


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 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,
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(
).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', ''),
    description='Some money because you\'re awesome.'
)Click to copy!