diff --git a/CHANGELOG.md b/CHANGELOG.md index 85b7aa9..5409717 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,7 +1,18 @@ # Change Log -## [0.5.2](https://github.com/bunq/doc/tree/0.5.2) +## [0.5.3](https://github.com/bunq/doc/tree/0.5.3) +[Full Changelog](https://github.com/bunq/doc/compare/0.5.2...0.5.3) + +**Closed issues:** + +- Fix response id header. [\#34](https://github.com/bunq/doc/issues/34) + +**Merged pull requests:** + +- Fix response id header bunq/doc\#34 [\#43](https://github.com/bunq/doc/pull/43) ([OGKevin](https://github.com/OGKevin)) + +## [0.5.2](https://github.com/bunq/doc/tree/0.5.2) (2018-05-30) [Full Changelog](https://github.com/bunq/doc/compare/0.5.1...0.5.2) **Merged pull requests:** @@ -19,7 +30,6 @@ **Closed issues:** - Move to new sandbox. [\#36](https://github.com/bunq/doc/issues/36) -- Fix response id header. [\#34](https://github.com/bunq/doc/issues/34) **Merged pull requests:** diff --git a/DESCRIPTION.md b/DESCRIPTION.md index 061a4a3..d83c32e 100644 --- a/DESCRIPTION.md +++ b/DESCRIPTION.md @@ -260,7 +260,7 @@ This header should be used when uploading an Attachment's content to give it a d The same ID that was provided in the request's X-Bunq-Client-Request-Id header. Is included in the response (and request) signature, so can be used to ensure this is the response for the sent request. -#### X-Bunq-Server-Response-Id +#### X-Bunq-Client-Response-Id `X-Bunq-Client-Response-Id: 76cc7772-4b23-420a-9586-8721dcdde174` diff --git a/docs/index.html b/docs/index.html index b73e26f..289b9b4 100644 --- a/docs/index.html +++ b/docs/index.html @@ -157,7 +157,7 @@ 55.627 l 55.6165,55.627 -231.245496,231.24803 c -127.185,127.1864 -231.5279,231.248 -231.873,231.248 -0.3451,0 -104.688, -104.0616 -231.873,-231.248 z - " fill="currentColor">

bunq API (1.0)

Download OpenAPI specification:Download

NOTICE: We have updated the sandbox base url to https://public-api.sandbox.bunq.com/v1/. Please update your applications accordingly. Check here: https://github.com/bunq/sdk_php/issues/149 for more info.

+ " fill="currentColor">

bunq API (1.0)

Download OpenAPI specification:Download

NOTICE: We have updated the sandbox base url to https://public-api.sandbox.bunq.com/v1/. Please update your applications accordingly. Check here: https://github.com/bunq/sdk_php/issues/149 for more info.

NOTICE: We're changing the origin of our callbacks for sandbox to originate from the Amazon network. Read the receiving callbacks section for more info.

Introduction

Welcome to bunq!

    @@ -431,7 +431,7 @@

    X-Bunq-Attachment-Description

    X-Bunq-Client-Request-Id

    X-Bunq-Client-Request-Id: a4f0de

    The same ID that was provided in the request's X-Bunq-Client-Request-Id header. Is included in the response (and request) signature, so can be used to ensure this is the response for the sent request.

    -

    X-Bunq-Server-Response-Id

    +

    X-Bunq-Client-Response-Id

    X-Bunq-Client-Response-Id: 76cc7772-4b23-420a-9586-8721dcdde174

    A unique ID for the response formatted as a UUID. Clients can use it to add extra protection against replay attacks.

    X-Bunq-Server-Signature

    @@ -923,7 +923,7 @@

    Visibility

X-Bunq-Client-Request-Id
required
string

This header must specify an ID with each request that is unique for the logged in user. There are no restrictions for the format of this ID. However, the server will respond with an error when the same ID is used again on the same DeviceServer.

X-Bunq-Geolocation
required
string

This header must specify the geolocation of the device. The format of this value is longitude latitude altitude radius country. The country is expected to be formatted of an ISO 3166-1 alpha-2 country code. When no geolocation is available or known the header must still be included but can be zero valued.

X-Bunq-Client-Authentication
required
string

The authentication token is used to authenticate the source of the API call. It is required by all API calls except for POST /v1/installation. It is important to note that the device and session calls are using the token from the response of the installation call, while all the other calls use the token from the response of the session-server call

-
Request Body schema: application/json
bunqme_tab_entry
required
object (BunqMeTabEntry_5b0ec48ca55eb)
status
string

The status of the bunq.me. Ignored in POST requests but can be used for cancelling the bunq.me by setting status as CANCELLED with a PUT request.

+
Request Body schema: application/json
bunqme_tab_entry
required
object (BunqMeTabEntry_5b11106ad4802)
status
string

The status of the bunq.me. Ignored in POST requests but can be used for cancelling the bunq.me by setting status as CANCELLED with a PUT request.

Responses

200

bunq.me tabs allows you to create a payment request and share the link through e-mail, chat, etc. Multiple persons are able to respond to the payment request and pay through bunq, iDeal or SOFORT.

400

This is how the error response looks like for 4XX response codes

put /user/{userID}/monetary-account/{monetary-accountID}/bunqme-tab/{itemId}
Sandbox server
https://public-api.sandbox.bunq.com/{basePath}/user/{userID}/monetary-account/{monetary-accountID}/bunqme-tab/{itemId}
Production server
https://api.bunq.com/{basePath}/user/{userID}/monetary-account/{monetary-accountID}/bunqme-tab/{itemId}

Request samples

application/json
Copy
Expand all Collapse all
{
  • "bunqme_tab_entry":
    {
    },
  • "status": "string"
}

Response samples

application/json
Copy
Expand all Collapse all
{
  • "Id":
    {
    }
}

bunq.me tabs allows you to create a payment reques

bunq.me tabs allows you to create a payment request and share the link through e-mail, chat, etc. Multiple persons are able to respond to the payment request and pay through bunq, iDeal or SOFORT.

@@ -944,7 +944,7 @@

Visibility

X-Bunq-Client-Request-Id
required
string

This header must specify an ID with each request that is unique for the logged in user. There are no restrictions for the format of this ID. However, the server will respond with an error when the same ID is used again on the same DeviceServer.

X-Bunq-Geolocation
required
string

This header must specify the geolocation of the device. The format of this value is longitude latitude altitude radius country. The country is expected to be formatted of an ISO 3166-1 alpha-2 country code. When no geolocation is available or known the header must still be included but can be zero valued.

X-Bunq-Client-Authentication
required
string

The authentication token is used to authenticate the source of the API call. It is required by all API calls except for POST /v1/installation. It is important to note that the device and session calls are using the token from the response of the installation call, while all the other calls use the token from the response of the session-server call

-
Request Body schema: application/json
bunqme_tab_entry
required
object (BunqMeTabEntry_5b0ec48ca55eb)
status
string

The status of the bunq.me. Ignored in POST requests but can be used for cancelling the bunq.me by setting status as CANCELLED with a PUT request.

+
Request Body schema: application/json
bunqme_tab_entry
required
object (BunqMeTabEntry_5b11106ad4802)
status
string

The status of the bunq.me. Ignored in POST requests but can be used for cancelling the bunq.me by setting status as CANCELLED with a PUT request.

Responses

200

bunq.me tabs allows you to create a payment request and share the link through e-mail, chat, etc. Multiple persons are able to respond to the payment request and pay through bunq, iDeal or SOFORT.

400

This is how the error response looks like for 4XX response codes

post /user/{userID}/monetary-account/{monetary-accountID}/bunqme-tab
Sandbox server
https://public-api.sandbox.bunq.com/{basePath}/user/{userID}/monetary-account/{monetary-accountID}/bunqme-tab
Production server
https://api.bunq.com/{basePath}/user/{userID}/monetary-account/{monetary-accountID}/bunqme-tab

Request samples

application/json
Copy
Expand all Collapse all
{
  • "bunqme_tab_entry":
    {
    },
  • "status": "string"
}

Response samples

application/json
Copy
Expand all Collapse all
{
  • "id": 0
}

bunq.me tabs allows you to create a payment reques

bunq.me tabs allows you to create a payment request and share the link through e-mail, chat, etc. Multiple persons are able to respond to the payment request and pay through bunq, iDeal or SOFORT.

@@ -979,7 +979,7 @@

Visibility

activation_code
string

The activation code required to set status to ACTIVE initially. Can only set status to ACTIVE using activation code when order_status is ACCEPTED_FOR_PRODUCTION and status is DEACTIVATED.

status
string

The status to set for the card. Can be ACTIVE, DEACTIVATED, LOST, STOLEN or CANCELLED, and can only be set to LOST/STOLEN/CANCELLED when order status is ACCEPTED_FOR_PRODUCTION/DELIVERED_TO_CUSTOMER/CARD_UPDATE_REQUESTED/CARD_UPDATE_SENT/CARD_UPDATE_ACCEPTED. Can only be set to DEACTIVATED after initial activation, i.e. order_status is DELIVERED_TO_CUSTOMER/CARD_UPDATE_REQUESTED/CARD_UPDATE_SENT/CARD_UPDATE_ACCEPTED. Mind that all the possible choices (apart from ACTIVE and DEACTIVATED) are permanent and cannot be changed after.

limit
Array of object

The limits to define for the card, among CARD_LIMIT_CONTACTLESS, CARD_LIMIT_ATM, CARD_LIMIT_DIPPING and CARD_LIMIT_POS_ICC (e.g. 25 EUR for CARD_LIMIT_CONTACTLESS). All the limits must be provided on update.

-
mag_stripe_permission
object (CardMagStripePermission_5b0ec48cb4100)
country_permission
Array of object

The countries for which to grant (temporary) permissions to use the card.

+
mag_stripe_permission
object (CardMagStripePermission_5b11106ae1d63)
country_permission
Array of object

The countries for which to grant (temporary) permissions to use the card.

monetary_account_current_id
integer

The ID of the monetary account that card transactions will use.

pin_code_assignment
Array of object

Array of Types, PINs, account IDs assigned to the card.

monetary_account_id_fallback
integer

ID of the MA to be used as fallback for this card if insufficient balance. Fallback account is removed if not supplied.

@@ -1005,7 +1005,7 @@

Visibility

X-Bunq-Client-Authentication
required
string

The authentication token is used to authenticate the source of the API call. It is required by all API calls except for POST /v1/installation. It is important to note that the device and session calls are using the token from the response of the installation call, while all the other calls use the token from the response of the session-server call

Request Body schema: application/json
second_line
required
string

The second line of text on the card, used as name/description for it. It can contain at most 17 characters and it can be empty.

name_on_card
required
string

The user's name as it will be on the card. Check 'card-name' for the available card names for a user.

-
alias
object (Pointer_5b0ec481ab8e1)
type
string

The type of card to order. Can be MAESTRO or MASTERCARD.

+
alias
object (Pointer_5b111061c79b4)
type
string

The type of card to order. Can be MAESTRO or MASTERCARD.

pin_code_assignment
Array of object

Array of Types, PINs, account IDs assigned to the card.

monetary_account_id_fallback
integer

ID of the MA to be used as fallback for this card if insufficient balance. Fallback account is removed if not supplied.

Responses

200

With bunq it is possible to order debit cards that can then be connected with each one of the monetary accounts the user has access to (including connected accounts).

@@ -1031,7 +1031,7 @@

Visibility

Request Body schema: application/json
name
required
string

The name of the CashRegister. Must be unique for this MonetaryAccount.

status
required
string

The status of the CashRegister. Can only be created or updated with PENDING_APPROVAL or CLOSED.

avatar_uuid
required
string

The UUID of the avatar of the CashRegister. Use the calls /attachment-public and /avatar to create a new Avatar and get its UUID.

-
location
object (Geolocation_5b0ec481c89c7)
notification_filters
Array of object

The types of notifications that will result in a push notification or URL callback for this CashRegister.

+
location
object (Geolocation_5b111061e5191)
notification_filters
Array of object

The types of notifications that will result in a push notification or URL callback for this CashRegister.

tab_text_waiting_screen
Array of object

The tab text for waiting screen of CashRegister.

Responses

200

CashRegisters are virtual points of sale. They have a specific name and avatar, and optionally, a location.
With a CashRegister you can create a Tab and then use a QR code to receive payments.
Check out our Quickstart example to learn how you can easily create Tab payments.

Notification filters can be set on a CashRegister to receive callbacks. For more information check the dedicated callbacks page.

400

This is how the error response looks like for 4XX response codes

@@ -1066,7 +1066,7 @@

Visibility

Request Body schema: application/json
name
required
string

The name of the CashRegister. Must be unique for this MonetaryAccount.

status
required
string

The status of the CashRegister. Can only be created or updated with PENDING_APPROVAL or CLOSED.

avatar_uuid
required
string

The UUID of the avatar of the CashRegister. Use the calls /attachment-public and /avatar to create a new Avatar and get its UUID.

-
location
object (Geolocation_5b0ec481c89c7)
notification_filters
Array of object

The types of notifications that will result in a push notification or URL callback for this CashRegister.

+
location
object (Geolocation_5b111061e5191)
notification_filters
Array of object

The types of notifications that will result in a push notification or URL callback for this CashRegister.

tab_text_waiting_screen
Array of object

The tab text for waiting screen of CashRegister.

Responses

200

CashRegisters are virtual points of sale. They have a specific name and avatar, and optionally, a location.
With a CashRegister you can create a Tab and then use a QR code to receive payments.
Check out our Quickstart example to learn how you can easily create Tab payments.

Notification filters can be set on a CashRegister to receive callbacks. For more information check the dedicated callbacks page.

400

This is how the error response looks like for 4XX response codes

@@ -1518,7 +1518,7 @@

Visibility

X-Bunq-Client-Authentication
required
string

The authentication token is used to authenticate the source of the API call. It is required by all API calls except for POST /v1/installation. It is important to note that the device and session calls are using the token from the response of the installation call, while all the other calls use the token from the response of the session-server call

Request Body schema: application/json
status
string

The status of the draft share invite. Can be CANCELLED (the user cancels the draft share before it's used).

expiration
required
string

The moment when this draft share invite expires.

-
draft_share_settings
required
object (DraftShareInviteEntry_5b0ec48d393c3)

Responses

200

Used to create a draft share invite for a monetary account with another bunq user, as in the 'Connect' feature in the bunq app. The user that accepts the invite can share one of their MonetaryAccounts with the user that created the invite.

+
draft_share_settings
required
object (DraftShareInviteEntry_5b11106b1d915)

Responses

200

Used to create a draft share invite for a monetary account with another bunq user, as in the 'Connect' feature in the bunq app. The user that accepts the invite can share one of their MonetaryAccounts with the user that created the invite.

400

This is how the error response looks like for 4XX response codes

post /user/{userID}/draft-share-invite-bank
Sandbox server
https://public-api.sandbox.bunq.com/{basePath}/user/{userID}/draft-share-invite-bank
Production server
https://api.bunq.com/{basePath}/user/{userID}/draft-share-invite-bank

Request samples

application/json
Copy
Expand all Collapse all
{
  • "status": "string",
  • "expiration": "string",
  • "draft_share_settings":
    {
    }
}

Response samples

application/json
Copy
Expand all Collapse all
{
  • "id": 0
}

Used to create a draft share invite for a monetary

Used to create a draft share invite for a monetary account with another bunq user, as in the 'Connect' feature in the bunq app. The user that accepts the invite can share one of their MonetaryAccounts with the user that created the invite.

path Parameters
userID
required
integer
header Parameters
Cache-Control
required
string

The standard HTTP Cache-Control header is required for all requests.

@@ -1550,7 +1550,7 @@

Visibility

X-Bunq-Client-Authentication
required
string

The authentication token is used to authenticate the source of the API call. It is required by all API calls except for POST /v1/installation. It is important to note that the device and session calls are using the token from the response of the installation call, while all the other calls use the token from the response of the session-server call

Request Body schema: application/json
status
string

The status of the draft share invite. Can be CANCELLED (the user cancels the draft share before it's used).

expiration
required
string

The moment when this draft share invite expires.

-
draft_share_settings
required
object (DraftShareInviteEntry_5b0ec48d393c3)

Responses

200

Used to create a draft share invite for a monetary account with another bunq user, as in the 'Connect' feature in the bunq app. The user that accepts the invite can share one of their MonetaryAccounts with the user that created the invite.

+
draft_share_settings
required
object (DraftShareInviteEntry_5b11106b1d915)

Responses

200

Used to create a draft share invite for a monetary account with another bunq user, as in the 'Connect' feature in the bunq app. The user that accepts the invite can share one of their MonetaryAccounts with the user that created the invite.

400

This is how the error response looks like for 4XX response codes

put /user/{userID}/draft-share-invite-bank/{itemId}
Sandbox server
https://public-api.sandbox.bunq.com/{basePath}/user/{userID}/draft-share-invite-bank/{itemId}
Production server
https://api.bunq.com/{basePath}/user/{userID}/draft-share-invite-bank/{itemId}

Request samples

application/json
Copy
Expand all Collapse all
{
  • "status": "string",
  • "expiration": "string",
  • "draft_share_settings":
    {
    }
}

Response samples

application/json
Copy
Expand all Collapse all
{
  • "Id":
    {
    }
}

export-annual-overview

Create a new annual overview for a specific year.

Create a new annual overview for a specific year. An overview can be generated only for a past year.

path Parameters
userID
required
integer
header Parameters
Cache-Control
required
string

The standard HTTP Cache-Control header is required for all requests.

@@ -1777,7 +1777,7 @@

Visibility

X-Bunq-Client-Request-Id
required
string

This header must specify an ID with each request that is unique for the logged in user. There are no restrictions for the format of this ID. However, the server will respond with an error when the same ID is used again on the same DeviceServer.

X-Bunq-Geolocation
required
string

This header must specify the geolocation of the device. The format of this value is longitude latitude altitude radius country. The country is expected to be formatted of an ISO 3166-1 alpha-2 country code. When no geolocation is available or known the header must still be included but can be zero valued.

X-Bunq-Client-Authentication
required
string

The authentication token is used to authenticate the source of the API call. It is required by all API calls except for POST /v1/installation. It is important to note that the device and session calls are using the token from the response of the installation call, while all the other calls use the token from the response of the session-server call

-
Request Body schema: application/json
attachment
required
object (BunqId_5b0ec481db9dc)

Responses

200

Create new messages holding file attachments.

+
Request Body schema: application/json
attachment
required
object (BunqId_5b11106203b36)

Responses

200

Create new messages holding file attachments.

400

This is how the error response looks like for 4XX response codes

post /user/{userID}/chat-conversation/{chat-conversationID}/message-attachment
Sandbox server
https://public-api.sandbox.bunq.com/{basePath}/user/{userID}/chat-conversation/{chat-conversationID}/message-attachment
Production server
https://api.bunq.com/{basePath}/user/{userID}/chat-conversation/{chat-conversationID}/message-attachment

Request samples

application/json
Copy
Expand all Collapse all
{
  • "attachment":
    {
    }
}

Response samples

application/json
Copy
Expand all Collapse all
{
  • "Id":
    {
    }
}

message-text

Add a new text message to a specific conversation.

Add a new text message to a specific conversation.

path Parameters
userID
required
integer
chat-conversationID
required
integer
header Parameters
Cache-Control
required
string

The standard HTTP Cache-Control header is required for all requests.

@@ -1830,13 +1830,13 @@

Visibility

X-Bunq-Client-Authentication
required
string

The authentication token is used to authenticate the source of the API call. It is required by all API calls except for POST /v1/installation. It is important to note that the device and session calls are using the token from the response of the installation call, while all the other calls use the token from the response of the session-server call

Request Body schema: application/json
currency
required
string

The currency of the MonetaryAccountBank as an ISO 4217 formatted currency code.

description
string

The description of the MonetaryAccountBank. Defaults to 'bunq account'.

-
daily_limit
object (Amount_5b0ec481a926d)
avatar_uuid
string

The UUID of the Avatar of the MonetaryAccountBank.

+
daily_limit
object (Amount_5b111061c603a)
avatar_uuid
string

The UUID of the Avatar of the MonetaryAccountBank.

status
string

The status of the MonetaryAccountBank. Ignored in POST requests (always set to ACTIVE) can be CANCELLED or PENDING_REOPEN in PUT requests to cancel (close) or reopen the MonetaryAccountBank. When updating the status and/or sub_status no other fields can be updated in the same request (and vice versa).

sub_status
string

The sub-status of the MonetaryAccountBank providing extra information regarding the status. Should be ignored for POST requests. In case of PUT requests with status CANCELLED it can only be REDEMPTION_VOLUNTARY, while with status PENDING_REOPEN it can only be NONE. When updating the status and/or sub_status no other fields can be updated in the same request (and vice versa).

reason
string

The reason for voluntarily cancelling (closing) the MonetaryAccountBank, can only be OTHER. Should only be specified if updating the status to CANCELLED.

reason_description
string

The optional free-form reason for voluntarily cancelling (closing) the MonetaryAccountBank. Can be any user provided message. Should only be specified if updating the status to CANCELLED.

notification_filters
Array of object

The types of notifications that will result in a push notification or URL callback for this MonetaryAccountBank.

-
setting
object (MonetaryAccountSetting_5b0ec48d67e4a)

Responses

200

With MonetaryAccountBank you can create a new bank account, retrieve information regarding your existing MonetaryAccountBanks and update specific fields of an existing MonetaryAccountBank. Examples of fields that can be updated are the description, the daily limit and the avatar of the account.

Notification filters can be set on a monetary account level to receive callbacks. For more information check the dedicated callbacks page.

+
setting
object (MonetaryAccountSetting_5b11106b33a68)

Responses

200

With MonetaryAccountBank you can create a new bank account, retrieve information regarding your existing MonetaryAccountBanks and update specific fields of an existing MonetaryAccountBank. Examples of fields that can be updated are the description, the daily limit and the avatar of the account.

Notification filters can be set on a monetary account level to receive callbacks. For more information check the dedicated callbacks page.

400

This is how the error response looks like for 4XX response codes

put /user/{userID}/monetary-account-bank/{itemId}
Sandbox server
https://public-api.sandbox.bunq.com/{basePath}/user/{userID}/monetary-account-bank/{itemId}
Production server
https://api.bunq.com/{basePath}/user/{userID}/monetary-account-bank/{itemId}

Request samples

application/json
Copy
Expand all Collapse all
{
  • "currency": "string",
  • "description": "string",
  • "daily_limit":
    {
    },
  • "avatar_uuid": "string",
  • "status": "string",
  • "sub_status": "string",
  • "reason": "string",
  • "reason_description": "string",
  • "notification_filters":
    [
    ],
  • "setting":
    {
    }
}

Response samples

application/json
Copy
Expand all Collapse all
{
  • "Id":
    {
    }
}

Create new MonetaryAccountBank.

Create new MonetaryAccountBank.

path Parameters
userID
required
integer
header Parameters
Cache-Control
required
string

The standard HTTP Cache-Control header is required for all requests.

@@ -1848,13 +1848,13 @@

Visibility

X-Bunq-Client-Authentication
required
string

The authentication token is used to authenticate the source of the API call. It is required by all API calls except for POST /v1/installation. It is important to note that the device and session calls are using the token from the response of the installation call, while all the other calls use the token from the response of the session-server call

Request Body schema: application/json
currency
required
string

The currency of the MonetaryAccountBank as an ISO 4217 formatted currency code.

description
string

The description of the MonetaryAccountBank. Defaults to 'bunq account'.

-
daily_limit
object (Amount_5b0ec481a926d)
avatar_uuid
string

The UUID of the Avatar of the MonetaryAccountBank.

+
daily_limit
object (Amount_5b111061c603a)
avatar_uuid
string

The UUID of the Avatar of the MonetaryAccountBank.

status
string

The status of the MonetaryAccountBank. Ignored in POST requests (always set to ACTIVE) can be CANCELLED or PENDING_REOPEN in PUT requests to cancel (close) or reopen the MonetaryAccountBank. When updating the status and/or sub_status no other fields can be updated in the same request (and vice versa).

sub_status
string

The sub-status of the MonetaryAccountBank providing extra information regarding the status. Should be ignored for POST requests. In case of PUT requests with status CANCELLED it can only be REDEMPTION_VOLUNTARY, while with status PENDING_REOPEN it can only be NONE. When updating the status and/or sub_status no other fields can be updated in the same request (and vice versa).

reason
string

The reason for voluntarily cancelling (closing) the MonetaryAccountBank, can only be OTHER. Should only be specified if updating the status to CANCELLED.

reason_description
string

The optional free-form reason for voluntarily cancelling (closing) the MonetaryAccountBank. Can be any user provided message. Should only be specified if updating the status to CANCELLED.

notification_filters
Array of object

The types of notifications that will result in a push notification or URL callback for this MonetaryAccountBank.

-
setting
object (MonetaryAccountSetting_5b0ec48d67e4a)

Responses

200

With MonetaryAccountBank you can create a new bank account, retrieve information regarding your existing MonetaryAccountBanks and update specific fields of an existing MonetaryAccountBank. Examples of fields that can be updated are the description, the daily limit and the avatar of the account.

Notification filters can be set on a monetary account level to receive callbacks. For more information check the dedicated callbacks page.

+
setting
object (MonetaryAccountSetting_5b11106b33a68)

Responses

200

With MonetaryAccountBank you can create a new bank account, retrieve information regarding your existing MonetaryAccountBanks and update specific fields of an existing MonetaryAccountBank. Examples of fields that can be updated are the description, the daily limit and the avatar of the account.

Notification filters can be set on a monetary account level to receive callbacks. For more information check the dedicated callbacks page.

400

This is how the error response looks like for 4XX response codes

post /user/{userID}/monetary-account-bank
Sandbox server
https://public-api.sandbox.bunq.com/{basePath}/user/{userID}/monetary-account-bank
Production server
https://api.bunq.com/{basePath}/user/{userID}/monetary-account-bank

Request samples

application/json
Copy
Expand all Collapse all
{
  • "currency": "string",
  • "description": "string",
  • "daily_limit":
    {
    },
  • "avatar_uuid": "string",
  • "status": "string",
  • "sub_status": "string",
  • "reason": "string",
  • "reason_description": "string",
  • "notification_filters":
    [
    ],
  • "setting":
    {
    }
}

Response samples

application/json
Copy
Expand all Collapse all
{
  • "Id":
    {
    }
}

Gets a listing of all MonetaryAccountBanks of a gi

Gets a listing of all MonetaryAccountBanks of a given user.

path Parameters
userID
required
integer
header Parameters
Cache-Control
required
string

The standard HTTP Cache-Control header is required for all requests.

@@ -1874,7 +1874,7 @@

Visibility

X-Bunq-Client-Request-Id
required
string

This header must specify an ID with each request that is unique for the logged in user. There are no restrictions for the format of this ID. However, the server will respond with an error when the same ID is used again on the same DeviceServer.

X-Bunq-Geolocation
required
string

This header must specify the geolocation of the device. The format of this value is longitude latitude altitude radius country. The country is expected to be formatted of an ISO 3166-1 alpha-2 country code. When no geolocation is available or known the header must still be included but can be zero valued.

X-Bunq-Client-Authentication
required
string

The authentication token is used to authenticate the source of the API call. It is required by all API calls except for POST /v1/installation. It is important to note that the device and session calls are using the token from the response of the installation call, while all the other calls use the token from the response of the session-server call

-
Request Body schema: application/json
amount
required
object (Amount_5b0ec481a926d)
counterparty_alias
required
object (Pointer_5b0ec481ab8e1)
description
required
string

The description for the Payment. Maximum 140 characters for Payments to external IBANs, 9000 characters for Payments to only other bunq MonetaryAccounts. Field is required but can be an empty string.

+
Request Body schema: application/json
amount
required
object (Amount_5b111061c603a)
counterparty_alias
required
object (Pointer_5b111061c79b4)
description
required
string

The description for the Payment. Maximum 140 characters for Payments to external IBANs, 9000 characters for Payments to only other bunq MonetaryAccounts. Field is required but can be an empty string.

attachment
Array of object

The Attachments to attach to the Payment.

merchant_reference
string

Optional data to be included with the Payment specific to the merchant.

Responses

200

Using Payment, you can send payments to bunq and non-bunq users from your bunq MonetaryAccounts. This can be done using bunq Aliases or IBAN Aliases. When transferring money to other bunq MonetaryAccounts you can also refer to Attachments. These will be received by the counter-party as part of the Payment. You can also retrieve a single Payment or all executed Payments of a specific monetary account.

@@ -2034,7 +2034,7 @@

Visibility

X-Bunq-Client-Request-Id
required
string

This header must specify an ID with each request that is unique for the logged in user. There are no restrictions for the format of this ID. However, the server will respond with an error when the same ID is used again on the same DeviceServer.

X-Bunq-Geolocation
required
string

This header must specify the geolocation of the device. The format of this value is longitude latitude altitude radius country. The country is expected to be formatted of an ISO 3166-1 alpha-2 country code. When no geolocation is available or known the header must still be included but can be zero valued.

X-Bunq-Client-Authentication
required
string

The authentication token is used to authenticate the source of the API call. It is required by all API calls except for POST /v1/installation. It is important to note that the device and session calls are using the token from the response of the installation call, while all the other calls use the token from the response of the session-server call

-
Request Body schema: application/json
amount_inquired
required
object (Amount_5b0ec481a926d)
counterparty_alias
required
object (Pointer_5b0ec481ab8e1)
description
required
string

The description for the RequestInquiry. Maximum 9000 characters. Field is required but can be an empty string.

+
Request Body schema: application/json
amount_inquired
required
object (Amount_5b111061c603a)
counterparty_alias
required
object (Pointer_5b111061c79b4)
description
required
string

The description for the RequestInquiry. Maximum 9000 characters. Field is required but can be an empty string.

attachment
Array of object

The Attachments to attach to the RequestInquiry.

merchant_reference
string

Optional data to be included with the RequestInquiry specific to the merchant. Has to be unique for the same source MonetaryAccount.

status
string

The status of the RequestInquiry. Ignored in POST requests but can be used for revoking (cancelling) the RequestInquiry by setting REVOKED with a PUT request.

@@ -2066,7 +2066,7 @@

Visibility

X-Bunq-Client-Request-Id
required
string

This header must specify an ID with each request that is unique for the logged in user. There are no restrictions for the format of this ID. However, the server will respond with an error when the same ID is used again on the same DeviceServer.

X-Bunq-Geolocation
required
string

This header must specify the geolocation of the device. The format of this value is longitude latitude altitude radius country. The country is expected to be formatted of an ISO 3166-1 alpha-2 country code. When no geolocation is available or known the header must still be included but can be zero valued.

X-Bunq-Client-Authentication
required
string

The authentication token is used to authenticate the source of the API call. It is required by all API calls except for POST /v1/installation. It is important to note that the device and session calls are using the token from the response of the installation call, while all the other calls use the token from the response of the session-server call

-
Request Body schema: application/json
amount_inquired
required
object (Amount_5b0ec481a926d)
counterparty_alias
required
object (Pointer_5b0ec481ab8e1)
description
required
string

The description for the RequestInquiry. Maximum 9000 characters. Field is required but can be an empty string.

+
Request Body schema: application/json
amount_inquired
required
object (Amount_5b111061c603a)
counterparty_alias
required
object (Pointer_5b111061c79b4)
description
required
string

The description for the RequestInquiry. Maximum 9000 characters. Field is required but can be an empty string.

attachment
Array of object

The Attachments to attach to the RequestInquiry.

merchant_reference
string

Optional data to be included with the RequestInquiry specific to the merchant. Has to be unique for the same source MonetaryAccount.

status
string

The status of the RequestInquiry. Ignored in POST requests but can be used for revoking (cancelling) the RequestInquiry by setting REVOKED with a PUT request.

@@ -2100,7 +2100,7 @@

Visibility

X-Bunq-Client-Authentication
required
string

The authentication token is used to authenticate the source of the API call. It is required by all API calls except for POST /v1/installation. It is important to note that the device and session calls are using the token from the response of the installation call, while all the other calls use the token from the response of the session-server call

Request Body schema: application/json
request_inquiries
required
Array of object

The list of request inquiries we want to send in 1 batch.

status
string

The status of the request.

-
total_amount_inquired
required
object (Amount_5b0ec481a926d)
event_id
integer

The ID of the associated event if the request batch was made using 'split the bill'.

+
total_amount_inquired
required
object (Amount_5b111061c603a)
event_id
integer

The ID of the associated event if the request batch was made using 'split the bill'.

Responses

200

Create a batch of requests for payment, or show the request batches of a monetary account.

400

This is how the error response looks like for 4XX response codes

post /user/{userID}/monetary-account/{monetary-accountID}/request-inquiry-batch
Sandbox server
https://public-api.sandbox.bunq.com/{basePath}/user/{userID}/monetary-account/{monetary-accountID}/request-inquiry-batch
Production server
https://api.bunq.com/{basePath}/user/{userID}/monetary-account/{monetary-accountID}/request-inquiry-batch

Request samples

application/json
Copy
Expand all Collapse all
{
  • "request_inquiries":
    [
    ],
  • "status": "string",
  • "total_amount_inquired":
    {
    },
  • "event_id": 0
}

Response samples

application/json
Copy
Expand all Collapse all
{
  • "Id":
    {
    }
}

Return all the request batches for a monetary acco

Return all the request batches for a monetary account.

@@ -2123,7 +2123,7 @@

Visibility

X-Bunq-Client-Authentication
required
string

The authentication token is used to authenticate the source of the API call. It is required by all API calls except for POST /v1/installation. It is important to note that the device and session calls are using the token from the response of the installation call, while all the other calls use the token from the response of the session-server call

Request Body schema: application/json
request_inquiries
required
Array of object

The list of request inquiries we want to send in 1 batch.

status
string

The status of the request.

-
total_amount_inquired
required
object (Amount_5b0ec481a926d)
event_id
integer

The ID of the associated event if the request batch was made using 'split the bill'.

+
total_amount_inquired
required
object (Amount_5b111061c603a)
event_id
integer

The ID of the associated event if the request batch was made using 'split the bill'.

Responses

200

Create a batch of requests for payment, or show the request batches of a monetary account.

400

This is how the error response looks like for 4XX response codes

put /user/{userID}/monetary-account/{monetary-accountID}/request-inquiry-batch/{itemId}
Sandbox server
https://public-api.sandbox.bunq.com/{basePath}/user/{userID}/monetary-account/{monetary-accountID}/request-inquiry-batch/{itemId}
Production server
https://api.bunq.com/{basePath}/user/{userID}/monetary-account/{monetary-accountID}/request-inquiry-batch/{itemId}

Request samples

application/json
Copy
Expand all Collapse all
{
  • "request_inquiries":
    [
    ],
  • "status": "string",
  • "total_amount_inquired":
    {
    },
  • "event_id": 0
}

Response samples

application/json
Copy
Expand all Collapse all
{
  • "Id":
    {
    }
}

Return the details of a specific request batch.

Return the details of a specific request batch.

@@ -2144,8 +2144,8 @@

Visibility

X-Bunq-Client-Request-Id
required
string

This header must specify an ID with each request that is unique for the logged in user. There are no restrictions for the format of this ID. However, the server will respond with an error when the same ID is used again on the same DeviceServer.

X-Bunq-Geolocation
required
string

This header must specify the geolocation of the device. The format of this value is longitude latitude altitude radius country. The country is expected to be formatted of an ISO 3166-1 alpha-2 country code. When no geolocation is available or known the header must still be included but can be zero valued.

X-Bunq-Client-Authentication
required
string

The authentication token is used to authenticate the source of the API call. It is required by all API calls except for POST /v1/installation. It is important to note that the device and session calls are using the token from the response of the installation call, while all the other calls use the token from the response of the session-server call

-
Request Body schema: application/json
amount_responded
object (Amount_5b0ec481a926d)
status
required
string

The responding status of the RequestResponse. Can be ACCEPTED or REJECTED.

-
address_shipping
object (Address_5b0ec481abc72)
address_billing
object (Address_5b0ec481abc72)

Responses

200

A RequestResponse is what a user on the other side of a RequestInquiry gets when he is sent one. So a RequestInquiry is the initiator and visible for the user that sent it and that wants to receive the money. A RequestResponse is what the other side sees, i.e. the user that pays the money to accept the request. The content is almost identical.

+
Request Body schema: application/json
amount_responded
object (Amount_5b111061c603a)
status
required
string

The responding status of the RequestResponse. Can be ACCEPTED or REJECTED.

+
address_shipping
object (Address_5b111061c7bc6)
address_billing
object (Address_5b111061c7bc6)

Responses

200

A RequestResponse is what a user on the other side of a RequestInquiry gets when he is sent one. So a RequestInquiry is the initiator and visible for the user that sent it and that wants to receive the money. A RequestResponse is what the other side sees, i.e. the user that pays the money to accept the request. The content is almost identical.

400

This is how the error response looks like for 4XX response codes

put /user/{userID}/monetary-account/{monetary-accountID}/request-response/{itemId}
Sandbox server
https://public-api.sandbox.bunq.com/{basePath}/user/{userID}/monetary-account/{monetary-accountID}/request-response/{itemId}
Production server
https://api.bunq.com/{basePath}/user/{userID}/monetary-account/{monetary-accountID}/request-response/{itemId}

Request samples

application/json
Copy
Expand all Collapse all
{
  • "amount_responded":
    {
    },
  • "status": "string",
  • "address_shipping":
    {
    },
  • "address_billing":
    {
    }
}

Response samples

application/json
Copy
Expand all Collapse all
{
  • "Id":
    {
    }
}

Get the details for a specific existing RequestRes

Get the details for a specific existing RequestResponse.

path Parameters
userID
required
integer
monetary-accountID
required
integer
itemId
required
integer
header Parameters
Cache-Control
required
string

The standard HTTP Cache-Control header is required for all requests.

@@ -2246,7 +2246,7 @@

Visibility

X-Bunq-Client-Request-Id
required
string

This header must specify an ID with each request that is unique for the logged in user. There are no restrictions for the format of this ID. However, the server will respond with an error when the same ID is used again on the same DeviceServer.

X-Bunq-Geolocation
required
string

This header must specify the geolocation of the device. The format of this value is longitude latitude altitude radius country. The country is expected to be formatted of an ISO 3166-1 alpha-2 country code. When no geolocation is available or known the header must still be included but can be zero valued.

X-Bunq-Client-Authentication
required
string

The authentication token is used to authenticate the source of the API call. It is required by all API calls except for POST /v1/installation. It is important to note that the device and session calls are using the token from the response of the installation call, while all the other calls use the token from the response of the session-server call

-
Request Body schema: application/json
payment
required
object (SchedulePaymentEntry_5b0ec4829e4f3)
schedule
required
object (Schedule_5b0ec482a07ee)

Responses

200

Endpoint for schedule payments.

+
Request Body schema: application/json
payment
required
object (SchedulePaymentEntry_5b111062b0f84)
schedule
required
object (Schedule_5b111062b2e76)

Responses

200

Endpoint for schedule payments.

400

This is how the error response looks like for 4XX response codes

post /user/{userID}/monetary-account/{monetary-accountID}/schedule-payment
Sandbox server
https://public-api.sandbox.bunq.com/{basePath}/user/{userID}/monetary-account/{monetary-accountID}/schedule-payment
Production server
https://api.bunq.com/{basePath}/user/{userID}/monetary-account/{monetary-accountID}/schedule-payment

Request samples

application/json
Copy
Expand all Collapse all
{
  • "payment":
    {
    },
  • "schedule":
    {
    }
}

Response samples

application/json
Copy
Expand all Collapse all
{
  • "Id":
    {
    }
}

Endpoint for schedule payments.

Endpoint for schedule payments.

path Parameters
userID
required
integer
monetary-accountID
required
integer
header Parameters
Cache-Control
required
string

The standard HTTP Cache-Control header is required for all requests.

@@ -2286,7 +2286,7 @@

Visibility

X-Bunq-Client-Request-Id
required
string

This header must specify an ID with each request that is unique for the logged in user. There are no restrictions for the format of this ID. However, the server will respond with an error when the same ID is used again on the same DeviceServer.

X-Bunq-Geolocation
required
string

This header must specify the geolocation of the device. The format of this value is longitude latitude altitude radius country. The country is expected to be formatted of an ISO 3166-1 alpha-2 country code. When no geolocation is available or known the header must still be included but can be zero valued.

X-Bunq-Client-Authentication
required
string

The authentication token is used to authenticate the source of the API call. It is required by all API calls except for POST /v1/installation. It is important to note that the device and session calls are using the token from the response of the installation call, while all the other calls use the token from the response of the session-server call

-
Request Body schema: application/json
payment
required
object (SchedulePaymentEntry_5b0ec4829e4f3)
schedule
required
object (Schedule_5b0ec482a07ee)

Responses

200

Endpoint for schedule payments.

+
Request Body schema: application/json
payment
required
object (SchedulePaymentEntry_5b111062b0f84)
schedule
required
object (Schedule_5b111062b2e76)

Responses

200

Endpoint for schedule payments.

400

This is how the error response looks like for 4XX response codes

put /user/{userID}/monetary-account/{monetary-accountID}/schedule-payment/{itemId}
Sandbox server
https://public-api.sandbox.bunq.com/{basePath}/user/{userID}/monetary-account/{monetary-accountID}/schedule-payment/{itemId}
Production server
https://api.bunq.com/{basePath}/user/{userID}/monetary-account/{monetary-accountID}/schedule-payment/{itemId}

Request samples

application/json
Copy
Expand all Collapse all
{
  • "payment":
    {
    },
  • "schedule":
    {
    }
}

Response samples

application/json
Copy
Expand all Collapse all
{
  • "Id":
    {
    }
}

schedule-payment-batch

Endpoint for schedule payment batches.

Endpoint for schedule payment batches.

path Parameters
userID
required
integer
monetary-accountID
required
integer
itemId
required
integer
header Parameters
Cache-Control
required
string

The standard HTTP Cache-Control header is required for all requests.

@@ -2297,7 +2297,7 @@

Visibility

X-Bunq-Geolocation
required
string

This header must specify the geolocation of the device. The format of this value is longitude latitude altitude radius country. The country is expected to be formatted of an ISO 3166-1 alpha-2 country code. When no geolocation is available or known the header must still be included but can be zero valued.

X-Bunq-Client-Authentication
required
string

The authentication token is used to authenticate the source of the API call. It is required by all API calls except for POST /v1/installation. It is important to note that the device and session calls are using the token from the response of the installation call, while all the other calls use the token from the response of the session-server call

Request Body schema: application/json
payments
required
Array of object

The payment details.

-
schedule
required
object (Schedule_5b0ec482a07ee)

Responses

200

Endpoint for schedule payment batches.

+
schedule
required
object (Schedule_5b111062b2e76)

Responses

200

Endpoint for schedule payment batches.

400

This is how the error response looks like for 4XX response codes

put /user/{userID}/monetary-account/{monetary-accountID}/schedule-payment-batch/{itemId}
Sandbox server
https://public-api.sandbox.bunq.com/{basePath}/user/{userID}/monetary-account/{monetary-accountID}/schedule-payment-batch/{itemId}
Production server
https://api.bunq.com/{basePath}/user/{userID}/monetary-account/{monetary-accountID}/schedule-payment-batch/{itemId}

Request samples

application/json
Copy
Expand all Collapse all
{
  • "payments":
    [
    ],
  • "schedule":
    {
    }
}

Response samples

application/json
Copy
Expand all Collapse all
{
  • "Id":
    {
    }
}

Endpoint for schedule payment batches.

Endpoint for schedule payment batches.

path Parameters
userID
required
integer
monetary-accountID
required
integer
itemId
required
integer
header Parameters
Cache-Control
required
string

The standard HTTP Cache-Control header is required for all requests.

@@ -2318,7 +2318,7 @@

Visibility

X-Bunq-Geolocation
required
string

This header must specify the geolocation of the device. The format of this value is longitude latitude altitude radius country. The country is expected to be formatted of an ISO 3166-1 alpha-2 country code. When no geolocation is available or known the header must still be included but can be zero valued.

X-Bunq-Client-Authentication
required
string

The authentication token is used to authenticate the source of the API call. It is required by all API calls except for POST /v1/installation. It is important to note that the device and session calls are using the token from the response of the installation call, while all the other calls use the token from the response of the session-server call

Request Body schema: application/json
payments
required
Array of object

The payment details.

-
schedule
required
object (Schedule_5b0ec482a07ee)

Responses

200

Endpoint for schedule payment batches.

+
schedule
required
object (Schedule_5b111062b2e76)

Responses

200

Endpoint for schedule payment batches.

400

This is how the error response looks like for 4XX response codes

post /user/{userID}/monetary-account/{monetary-accountID}/schedule-payment-batch
Sandbox server
https://public-api.sandbox.bunq.com/{basePath}/user/{userID}/monetary-account/{monetary-accountID}/schedule-payment-batch
Production server
https://api.bunq.com/{basePath}/user/{userID}/monetary-account/{monetary-accountID}/schedule-payment-batch

Request samples

application/json
Copy
Expand all Collapse all
{
  • "payments":
    [
    ],
  • "schedule":
    {
    }
}

Response samples

application/json
Copy
Expand all Collapse all
{
  • "Id":
    {
    }
}

server-public-key

Show the ServerPublicKey for this Installation.

Show the ServerPublicKey for this Installation.

path Parameters
installationID
required
integer
header Parameters
Cache-Control
required
string

The standard HTTP Cache-Control header is required for all requests.

@@ -2359,8 +2359,8 @@

Visibility

X-Bunq-Client-Request-Id
required
string

This header must specify an ID with each request that is unique for the logged in user. There are no restrictions for the format of this ID. However, the server will respond with an error when the same ID is used again on the same DeviceServer.

X-Bunq-Geolocation
required
string

This header must specify the geolocation of the device. The format of this value is longitude latitude altitude radius country. The country is expected to be formatted of an ISO 3166-1 alpha-2 country code. When no geolocation is available or known the header must still be included but can be zero valued.

X-Bunq-Client-Authentication
required
string

The authentication token is used to authenticate the source of the API call. It is required by all API calls except for POST /v1/installation. It is important to note that the device and session calls are using the token from the response of the installation call, while all the other calls use the token from the response of the session-server call

-
Request Body schema: application/json
counter_user_alias
required
object (Pointer_5b0ec481ab8e1)
draft_share_invite_bank_id
integer

The id of the draft share invite bank.

-
share_detail
required
object (ShareDetail_5b0ec482f0883)
status
required
string

The status of the share. Can be PENDING, REVOKED (the user deletes the share inquiry before it's accepted), ACCEPTED, CANCELLED (the user deletes an active share) or CANCELLATION_PENDING, CANCELLATION_ACCEPTED, CANCELLATION_REJECTED (for canceling mutual connects).

+
Request Body schema: application/json
counter_user_alias
required
object (Pointer_5b111061c79b4)
draft_share_invite_bank_id
integer

The id of the draft share invite bank.

+
share_detail
required
object (ShareDetail_5b111062d0dcc)
status
required
string

The status of the share. Can be PENDING, REVOKED (the user deletes the share inquiry before it's accepted), ACCEPTED, CANCELLED (the user deletes an active share) or CANCELLATION_PENDING, CANCELLATION_ACCEPTED, CANCELLATION_REJECTED (for canceling mutual connects).

share_type
string

The share type, either STANDARD or MUTUAL.

start_date
string

The start date of this share.

end_date
string

The expiration date of this share.

@@ -2394,8 +2394,8 @@

Visibility

X-Bunq-Client-Request-Id
required
string

This header must specify an ID with each request that is unique for the logged in user. There are no restrictions for the format of this ID. However, the server will respond with an error when the same ID is used again on the same DeviceServer.

X-Bunq-Geolocation
required
string

This header must specify the geolocation of the device. The format of this value is longitude latitude altitude radius country. The country is expected to be formatted of an ISO 3166-1 alpha-2 country code. When no geolocation is available or known the header must still be included but can be zero valued.

X-Bunq-Client-Authentication
required
string

The authentication token is used to authenticate the source of the API call. It is required by all API calls except for POST /v1/installation. It is important to note that the device and session calls are using the token from the response of the installation call, while all the other calls use the token from the response of the session-server call

-
Request Body schema: application/json
counter_user_alias
required
object (Pointer_5b0ec481ab8e1)
draft_share_invite_bank_id
integer

The id of the draft share invite bank.

-
share_detail
required
object (ShareDetail_5b0ec482f0883)
status
required
string

The status of the share. Can be PENDING, REVOKED (the user deletes the share inquiry before it's accepted), ACCEPTED, CANCELLED (the user deletes an active share) or CANCELLATION_PENDING, CANCELLATION_ACCEPTED, CANCELLATION_REJECTED (for canceling mutual connects).

+
Request Body schema: application/json
counter_user_alias
required
object (Pointer_5b111061c79b4)
draft_share_invite_bank_id
integer

The id of the draft share invite bank.

+
share_detail
required
object (ShareDetail_5b111062d0dcc)
status
required
string

The status of the share. Can be PENDING, REVOKED (the user deletes the share inquiry before it's accepted), ACCEPTED, CANCELLED (the user deletes an active share) or CANCELLATION_PENDING, CANCELLATION_ACCEPTED, CANCELLATION_REJECTED (for canceling mutual connects).

share_type
string

The share type, either STANDARD or MUTUAL.

start_date
string

The start date of this share.

end_date
string

The expiration date of this share.

@@ -2475,7 +2475,7 @@

Visibility

avatar_attachment_uuid
string

An AttachmentPublic UUID that used as an avatar for the TabItem.

tab_attachment
array

A list of AttachmentTab attached to the TabItem.

quantity
string

The quantity of the TabItem. Formatted as a number containing up to 15 digits, up to 15 decimals and using a dot.

-
amount
object (Amount_5b0ec481a926d)

Responses

200

After you’ve created a Tab using /tab-usage-single or /tab-usage-multiple you can add items and attachments using tab-item. You can only add or modify TabItems of a Tab which status is OPEN. The amount of the TabItems will not influence the total_amount of the corresponding Tab. However, if you've created any TabItems for a Tab the sum of the amounts of these items must be equal to the total_amount of the Tab when you change its status to PAYABLE/WAITING_FOR_PAYMENT.

+
amount
object (Amount_5b111061c603a)

Responses

200

After you’ve created a Tab using /tab-usage-single or /tab-usage-multiple you can add items and attachments using tab-item. You can only add or modify TabItems of a Tab which status is OPEN. The amount of the TabItems will not influence the total_amount of the corresponding Tab. However, if you've created any TabItems for a Tab the sum of the amounts of these items must be equal to the total_amount of the Tab when you change its status to PAYABLE/WAITING_FOR_PAYMENT.

400

This is how the error response looks like for 4XX response codes

post /user/{userID}/monetary-account/{monetary-accountID}/cash-register/{cash-registerID}/tab/{tabUUID}/tab-item
Sandbox server
https://public-api.sandbox.bunq.com/{basePath}/user/{userID}/monetary-account/{monetary-accountID}/cash-register/{cash-registerID}/tab/{tabUUID}/tab-item
Production server
https://api.bunq.com/{basePath}/user/{userID}/monetary-account/{monetary-accountID}/cash-register/{cash-registerID}/tab/{tabUUID}/tab-item

Request samples

application/json
Copy
Expand all Collapse all
{
  • "description": "string",
  • "ean_code": "string",
  • "avatar_attachment_uuid": "string",
  • "tab_attachment": [ ],
  • "quantity": "string",
  • "amount":
    {
    }
}

Response samples

application/json
Copy
Expand all Collapse all
{
  • "id": 0
}

Get a collection of TabItems from a given Tab.

Get a collection of TabItems from a given Tab.

path Parameters
userID
required
integer
monetary-accountID
required
integer
cash-registerID
required
integer
tabUUID
required
string
header Parameters
Cache-Control
required
string

The standard HTTP Cache-Control header is required for all requests.

@@ -2500,7 +2500,7 @@

Visibility

avatar_attachment_uuid
string

An AttachmentPublic UUID that used as an avatar for the TabItem.

tab_attachment
array

A list of AttachmentTab attached to the TabItem.

quantity
string

The quantity of the TabItem. Formatted as a number containing up to 15 digits, up to 15 decimals and using a dot.

-
amount
object (Amount_5b0ec481a926d)

Responses

200

After you’ve created a Tab using /tab-usage-single or /tab-usage-multiple you can add items and attachments using tab-item. You can only add or modify TabItems of a Tab which status is OPEN. The amount of the TabItems will not influence the total_amount of the corresponding Tab. However, if you've created any TabItems for a Tab the sum of the amounts of these items must be equal to the total_amount of the Tab when you change its status to PAYABLE/WAITING_FOR_PAYMENT.

+
amount
object (Amount_5b111061c603a)

Responses

200

After you’ve created a Tab using /tab-usage-single or /tab-usage-multiple you can add items and attachments using tab-item. You can only add or modify TabItems of a Tab which status is OPEN. The amount of the TabItems will not influence the total_amount of the corresponding Tab. However, if you've created any TabItems for a Tab the sum of the amounts of these items must be equal to the total_amount of the Tab when you change its status to PAYABLE/WAITING_FOR_PAYMENT.

400

This is how the error response looks like for 4XX response codes

put /user/{userID}/monetary-account/{monetary-accountID}/cash-register/{cash-registerID}/tab/{tabUUID}/tab-item/{itemId}
Sandbox server
https://public-api.sandbox.bunq.com/{basePath}/user/{userID}/monetary-account/{monetary-accountID}/cash-register/{cash-registerID}/tab/{tabUUID}/tab-item/{itemId}
Production server
https://api.bunq.com/{basePath}/user/{userID}/monetary-account/{monetary-accountID}/cash-register/{cash-registerID}/tab/{tabUUID}/tab-item/{itemId}

Request samples

application/json
Copy
Expand all Collapse all
{
  • "description": "string",
  • "ean_code": "string",
  • "avatar_attachment_uuid": "string",
  • "tab_attachment": [ ],
  • "quantity": "string",
  • "amount":
    {
    }
}

Response samples

application/json
Copy
Expand all Collapse all
{
  • "id": 0
}

Delete a specific TabItem from a Tab.

Delete a specific TabItem from a Tab.

path Parameters
userID
required
integer
monetary-accountID
required
integer
cash-registerID
required
integer
tabUUID
required
string
itemId
required
integer
header Parameters
Cache-Control
required
string

The standard HTTP Cache-Control header is required for all requests.

@@ -2583,13 +2583,13 @@

Visibility

X-Bunq-Client-Authentication
required
string

The authentication token is used to authenticate the source of the API call. It is required by all API calls except for POST /v1/installation. It is important to note that the device and session calls are using the token from the response of the installation call, while all the other calls use the token from the response of the session-server call

Request Body schema: application/json
description
required
string

The description of the TabUsageMultiple. Maximum 9000 characters. Field is required but can be an empty string.

status
required
string

The status of the TabUsageMultiple. On creation the status must be set to OPEN. You can change the status from OPEN to PAYABLE. If the TabUsageMultiple gets paid the status will remain PAYABLE.

-
amount_total
required
object (Amount_5b0ec481a926d)
allow_amount_higher
boolean

[DEPRECATED] Whether or not a higher amount can be paid.

+
amount_total
required
object (Amount_5b111061c603a)
allow_amount_higher
boolean

[DEPRECATED] Whether or not a higher amount can be paid.

allow_amount_lower
boolean

[DEPRECATED] Whether or not a lower amount can be paid.

want_tip
boolean

[DEPRECATED] Whether or not the user paying the Tab should be asked if he wants to give a tip. When want_tip is set to true, allow_amount_higher must also be set to true and allow_amount_lower must be false.

minimum_age
integer

The minimum age of the user paying the Tab.

require_address
string

Whether a billing and shipping address must be provided when paying the Tab. Possible values are: BILLING, SHIPPING, BILLING_SHIPPING, NONE, OPTIONAL. Default is NONE.

redirect_url
string

The URL which the user is sent to after paying the Tab.

-
visibility
object (TabVisibility_5b0ec48cbbb88)
expiration
string

The moment when this Tab expires. Can be at most 365 days into the future.

+
visibility
object (TabVisibility_5b11106ae9bfe)
expiration
string

The moment when this Tab expires. Can be at most 365 days into the future.

tab_attachment
Array of object

An array of attachments that describe the tab. Uploaded through the POST /user/{userid}/attachment-tab endpoint.

Responses

200

TabUsageMultiple is a Tab that can be paid by multiple users. Just like the TabUsageSingle it is created with the status OPEN, the visibility can be defined in the visibility object and TabItems can be added as long as the status is OPEN. When you change the status to PAYABLE any bunq user can use the tab to make a payment to your account. After an user has paid your TabUsageMultiple the status will not change, it will stay PAYABLE. For example: you can create a TabUsageMultiple with require_address set to true. Now show the QR code of this Tab on your webshop, and any bunq user can instantly pay and order something from your webshop.

400

This is how the error response looks like for 4XX response codes

@@ -2613,13 +2613,13 @@

Visibility

X-Bunq-Client-Authentication
required
string

The authentication token is used to authenticate the source of the API call. It is required by all API calls except for POST /v1/installation. It is important to note that the device and session calls are using the token from the response of the installation call, while all the other calls use the token from the response of the session-server call

Request Body schema: application/json
description
required
string

The description of the TabUsageMultiple. Maximum 9000 characters. Field is required but can be an empty string.

status
required
string

The status of the TabUsageMultiple. On creation the status must be set to OPEN. You can change the status from OPEN to PAYABLE. If the TabUsageMultiple gets paid the status will remain PAYABLE.

-
amount_total
required
object (Amount_5b0ec481a926d)
allow_amount_higher
boolean

[DEPRECATED] Whether or not a higher amount can be paid.

+
amount_total
required
object (Amount_5b111061c603a)
allow_amount_higher
boolean

[DEPRECATED] Whether or not a higher amount can be paid.

allow_amount_lower
boolean

[DEPRECATED] Whether or not a lower amount can be paid.

want_tip
boolean

[DEPRECATED] Whether or not the user paying the Tab should be asked if he wants to give a tip. When want_tip is set to true, allow_amount_higher must also be set to true and allow_amount_lower must be false.

minimum_age
integer

The minimum age of the user paying the Tab.

require_address
string

Whether a billing and shipping address must be provided when paying the Tab. Possible values are: BILLING, SHIPPING, BILLING_SHIPPING, NONE, OPTIONAL. Default is NONE.

redirect_url
string

The URL which the user is sent to after paying the Tab.

-
visibility
object (TabVisibility_5b0ec48cbbb88)
expiration
string

The moment when this Tab expires. Can be at most 365 days into the future.

+
visibility
object (TabVisibility_5b11106ae9bfe)
expiration
string

The moment when this Tab expires. Can be at most 365 days into the future.

tab_attachment
Array of object

An array of attachments that describe the tab. Uploaded through the POST /user/{userid}/attachment-tab endpoint.

Responses

200

TabUsageMultiple is a Tab that can be paid by multiple users. Just like the TabUsageSingle it is created with the status OPEN, the visibility can be defined in the visibility object and TabItems can be added as long as the status is OPEN. When you change the status to PAYABLE any bunq user can use the tab to make a payment to your account. After an user has paid your TabUsageMultiple the status will not change, it will stay PAYABLE. For example: you can create a TabUsageMultiple with require_address set to true. Now show the QR code of this Tab on your webshop, and any bunq user can instantly pay and order something from your webshop.

400

This is how the error response looks like for 4XX response codes

@@ -2654,13 +2654,13 @@

Visibility

Request Body schema: application/json
merchant_reference
string

The reference of the Tab, as defined by the owner. This reference will be set for any payment that is generated by this tab. Must be unique among all the owner's tabs for the used monetary account.

description
required
string

The description of the Tab. Maximum 9000 characters. Field is required but can be an empty string.

status
required
string

The status of the Tab. On creation the status must be set to OPEN. You can change the status from OPEN to WAITING_FOR_PAYMENT.

-
amount_total
required
object (Amount_5b0ec481a926d)
allow_amount_higher
boolean

[DEPRECATED] Whether or not a higher amount can be paid.

+
amount_total
required
object (Amount_5b111061c603a)
allow_amount_higher
boolean

[DEPRECATED] Whether or not a higher amount can be paid.

allow_amount_lower
boolean

[DEPRECATED] Whether or not a lower amount can be paid.

want_tip
boolean

[DEPRECATED] Whether or not the user paying the Tab should be asked if he wants to give a tip. When want_tip is set to true, allow_amount_higher must also be set to true and allow_amount_lower must be false.

minimum_age
integer

The minimum age of the user paying the Tab.

require_address
string

Whether a billing and shipping address must be provided when paying the Tab. Possible values are: BILLING, SHIPPING, BILLING_SHIPPING, NONE, OPTIONAL. Default is NONE.

redirect_url
string

The URL which the user is sent to after paying the Tab.

-
visibility
object (TabVisibility_5b0ec48cbbb88)
expiration
string

The moment when this Tab expires. Can be at most 1 hour into the future.

+
visibility
object (TabVisibility_5b11106ae9bfe)
expiration
string

The moment when this Tab expires. Can be at most 1 hour into the future.

tab_attachment
Array of object

An array of attachments that describe the tab. Uploaded through the POST /user/{userid}/attachment-tab endpoint.

Responses

200

TabUsageSingle is a Tab that can be paid once. The TabUsageSingle is created with the status OPEN. Optionally you can add TabItems to the tab using /tab/_/tab-item, TabItems don't affect the total amount of the Tab. However, if you've created any TabItems for a Tab the sum of the amounts of these items must be equal to the total_amount of the Tab when you change its status to WAITING_FOR_PAYMENT. By setting the visibility object a TabUsageSingle with the status OPEN or WAITING_FOR_PAYMENT can be made visible to customers. As soon as a customer pays the TabUsageSingle its status changes to PAID, and it can't be paid again.

400

This is how the error response looks like for 4XX response codes

@@ -2695,13 +2695,13 @@

Visibility

Request Body schema: application/json
merchant_reference
string

The reference of the Tab, as defined by the owner. This reference will be set for any payment that is generated by this tab. Must be unique among all the owner's tabs for the used monetary account.

description
required
string

The description of the Tab. Maximum 9000 characters. Field is required but can be an empty string.

status
required
string

The status of the Tab. On creation the status must be set to OPEN. You can change the status from OPEN to WAITING_FOR_PAYMENT.

-
amount_total
required
object (Amount_5b0ec481a926d)
allow_amount_higher
boolean

[DEPRECATED] Whether or not a higher amount can be paid.

+
amount_total
required
object (Amount_5b111061c603a)
allow_amount_higher
boolean

[DEPRECATED] Whether or not a higher amount can be paid.

allow_amount_lower
boolean

[DEPRECATED] Whether or not a lower amount can be paid.

want_tip
boolean

[DEPRECATED] Whether or not the user paying the Tab should be asked if he wants to give a tip. When want_tip is set to true, allow_amount_higher must also be set to true and allow_amount_lower must be false.

minimum_age
integer

The minimum age of the user paying the Tab.

require_address
string

Whether a billing and shipping address must be provided when paying the Tab. Possible values are: BILLING, SHIPPING, BILLING_SHIPPING, NONE, OPTIONAL. Default is NONE.

redirect_url
string

The URL which the user is sent to after paying the Tab.

-
visibility
object (TabVisibility_5b0ec48cbbb88)
expiration
string

The moment when this Tab expires. Can be at most 1 hour into the future.

+
visibility
object (TabVisibility_5b11106ae9bfe)
expiration
string

The moment when this Tab expires. Can be at most 1 hour into the future.

tab_attachment
Array of object

An array of attachments that describe the tab. Uploaded through the POST /user/{userid}/attachment-tab endpoint.

Responses

200

TabUsageSingle is a Tab that can be paid once. The TabUsageSingle is created with the status OPEN. Optionally you can add TabItems to the tab using /tab/_/tab-item, TabItems don't affect the total amount of the Tab. However, if you've created any TabItems for a Tab the sum of the amounts of these items must be equal to the total_amount of the Tab when you change its status to WAITING_FOR_PAYMENT. By setting the visibility object a TabUsageSingle with the status OPEN or WAITING_FOR_PAYMENT can be made visible to customers. As soon as a customer pays the TabUsageSingle its status changes to PAID, and it can't be paid again.

400

This is how the error response looks like for 4XX response codes

@@ -2778,7 +2778,7 @@

Visibility

Request Body schema: application/json
name
string

The company name.

public_nick_name
string

The company's nick name.

avatar_uuid
string

The public UUID of the company's avatar.

-
address_main
required
object (Address_5b0ec481abc72)
address_postal
object (Address_5b0ec481abc72)
language
required
string

The person's preferred language. Formatted as a ISO 639-1 language code plus a ISO 3166-1 alpha-2 country code, seperated by an underscore.

+
address_main
required
object (Address_5b111061c7bc6)
address_postal
object (Address_5b111061c7bc6)
language
required
string

The person's preferred language. Formatted as a ISO 639-1 language code plus a ISO 3166-1 alpha-2 country code, seperated by an underscore.

region
required
string

The person's preferred region. Formatted as a ISO 639-1 language code plus a ISO 3166-1 alpha-2 country code, seperated by an underscore.

country
string

The country where the company is registered.

ubo
Array of object

The names and birth dates of the company's ultimate beneficiary owners. Minimum zero, maximum four.

@@ -2786,7 +2786,7 @@

Visibility

status
string

The user status. Can be: ACTIVE, SIGNUP, RECOVERY.

sub_status
string

The user sub-status. Can be: NONE, FACE_RESET, APPROVAL, APPROVAL_DIRECTOR, APPROVAL_PARENT, APPROVAL_SUPPORT, COUNTER_IBAN, IDEAL or SUBMIT.

session_timeout
integer

The setting for the session timeout of the company in seconds.

-
daily_limit_without_confirmation_login
object (Amount_5b0ec481a926d)
notification_filters
Array of object

The types of notifications that will result in a push notification or URL callback for this UserCompany.

+
daily_limit_without_confirmation_login
object (Amount_5b111061c603a)
notification_filters
Array of object

The types of notifications that will result in a push notification or URL callback for this UserCompany.

Responses

200

With UserCompany you can retrieve information regarding the authenticated UserCompany and update specific fields.

Notification filters can be set on a UserCompany level to receive callbacks. For more information check the dedicated callbacks page.

400

This is how the error response looks like for 4XX response codes

put /user-company/{itemId}
Sandbox server
https://public-api.sandbox.bunq.com/{basePath}/user-company/{itemId}
Production server
https://api.bunq.com/{basePath}/user-company/{itemId}

Request samples

application/json
Copy
Expand all Collapse all
{
  • "name": "string",
  • "public_nick_name": "string",
  • "avatar_uuid": "string",
  • "address_main":
    {
    },
  • "address_postal":
    {
    },
  • "language": "string",
  • "region": "string",
  • "country": "string",
  • "ubo":
    [
    ],
  • "chamber_of_commerce_number": "string",
  • "status": "string",
  • "sub_status": "string",
  • "session_timeout": 0,
  • "daily_limit_without_confirmation_login":
    {
    },
  • "notification_filters":
    [
    ]
}

Response samples

application/json
Copy
Expand all Collapse all
{
  • "id": 0
}

user-person

Get a specific person.

Get a specific person.

@@ -2811,7 +2811,7 @@

Visibility

middle_name
string

The person's middle name.

last_name
string

The person's last name.

public_nick_name
string

The person's public nick name.

-
address_main
required
object (Address_5b0ec481abc72)
address_postal
object (Address_5b0ec481abc72)
avatar_uuid
required
string

The public UUID of the user's avatar.

+
address_main
required
object (Address_5b111061c7bc6)
address_postal
object (Address_5b111061c7bc6)
avatar_uuid
required
string

The public UUID of the user's avatar.

tax_resident
Array of object

The user's tax residence numbers for different countries.

document_type
required
string

The type of identification document the person registered with.

document_number
required
string

The identification document number the person registered with.

@@ -2827,15 +2827,15 @@

Visibility

gender
required
string

The person's gender. Can be: MALE, FEMALE and UNKNOWN.

status
required
string

The user status. You are not allowed to update the status via PUT.

sub_status
required
string

The user sub-status. Can be updated to SUBMIT if status is RECOVERY.

-
legal_guardian_alias
required
object (Pointer_5b0ec481ab8e1)
session_timeout
required
integer

The setting for the session timeout of the user in seconds.

+
legal_guardian_alias
required
object (Pointer_5b111061c79b4)
session_timeout
required
integer

The setting for the session timeout of the user in seconds.

card_ids
Array of object

Card ids used for centralized card limits.

card_limits
Array of object

The centralized limits for user's cards.

-
daily_limit_without_confirmation_login
required
object (Amount_5b0ec481a926d)
notification_filters
Array of object

The types of notifications that will result in a push notification or URL callback for this UserPerson.

+
daily_limit_without_confirmation_login
required
object (Amount_5b111061c603a)
notification_filters
Array of object

The types of notifications that will result in a push notification or URL callback for this UserPerson.

Responses

200

With UserPerson you can retrieve information regarding the authenticated UserPerson and update specific fields.

Notification filters can be set on a UserPerson level to receive callbacks. For more information check the dedicated callbacks page.

400

This is how the error response looks like for 4XX response codes

put /user-person/{itemId}
Sandbox server
https://public-api.sandbox.bunq.com/{basePath}/user-person/{itemId}
Production server
https://api.bunq.com/{basePath}/user-person/{itemId}

Request samples

application/json
Copy
Expand all Collapse all
{
  • "first_name": "string",
  • "middle_name": "string",
  • "last_name": "string",
  • "public_nick_name": "string",
  • "address_main":
    {
    },
  • "address_postal":
    {
    },
  • "avatar_uuid": "string",
  • "tax_resident":
    [
    ],
  • "document_type": "string",
  • "document_number": "string",
  • "document_country_of_issuance": "string",
  • "document_front_attachment_id": 0,
  • "document_back_attachment_id": 0,
  • "date_of_birth": "string",
  • "place_of_birth": "string",
  • "country_of_birth": "string",
  • "nationality": "string",
  • "language": "string",
  • "region": "string",
  • "gender": "string",
  • "status": "string",
  • "sub_status": "string",
  • "legal_guardian_alias":
    {
    },
  • "session_timeout": 0,
  • "card_ids":
    [
    ],
  • "card_limits":
    [
    ],
  • "daily_limit_without_confirmation_login":
    {
    },
  • "notification_filters":
    [
    ]
}

Response samples

application/json
Copy
Expand all Collapse all
{
  • "id": 0
}