v1

latestOpenAPI 3.0.0Apache 2.02026-07-134807111.3 MB
mastercard-action

MasterCard transaction view.

get/user/{userID}/monetary-account/{monetary-accountID}/mastercard-action

Path parameters

userIDinteger required
monetary-accountIDinteger required

Headers

Cache-Controlstring

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

User-Agentstring required

The User-Agent header field should contain information about the user agent originating the request. There are no restrictions on the value of this header.

X-Bunq-Languagestring

The X-Bunq-Language header must contain a preferred language indication. The value of this header is formatted as a ISO 639-1 language code plus a ISO 3166-1 alpha-2 country code, separated by an underscore. Currently only the languages en_US and nl_NL are supported. Anything else will default to en_US.

X-Bunq-Regionstring

The X-Bunq-Region header must contain the region (country) of the client device. The value of this header is formatted as a ISO 639-1 language code plus a ISO 3166-1 alpha-2 country code, separated by an underscore.

X-Bunq-Client-Request-Idstring

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-Geolocationstring

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-Authenticationstring required

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

Response

MasterCard transaction view.

idinteger

The id of the MastercardAction.

monetary_account_idinteger

The id of the monetary account this action links to.

card_idinteger

The id of the card this action links to.

card_authorisation_id_responsestring

The response code by which authorised transaction can be identified as authorised by bunq.

decisionstring

Why the transaction was denied, if it was denied, or just ALLOWED.

payment_statusstring

The payment status of the transaction. For example PAYMENT_SUCCESSFUL, for a successful payment.

decision_descriptionstring

Empty if allowed, otherwise a textual explanation of why it was denied.

decision_description_translatedstring

Empty if allowed, otherwise a textual explanation of why it was denied in user's language.

decision_together_urlstring

Empty if allowed or if no relevant Together topic exists, otherwise contains the URL for a Together topic with more information about the decision.

descriptionstring

The description for this transaction to display.

authorisation_statusstring

The status in the authorisation process.

authorisation_typestring

The type of transaction that was delivered using the card.

pan_entry_mode_userstring

The type of entry mode the user used. Can be 'ATM', 'ICC', 'MAGNETIC_STRIPE' or 'E_COMMERCE'.

settlement_statusstring

The setlement status in the authorisation process.

clearing_statusstring

The clearing status of the authorisation. Can be 'PENDING', 'FIRST_PRESENTMENT_COMPLETE' or 'REFUND_LENIENCY'.

maturity_datestring

The maturity date.

citystring

The city where the message originates from as announced by the terminal.

merchant_idstring

The identification string of the merchant.

token_statusstring

If this is a tokenisation action, this shows the status of the token.

reservation_expiry_timestring

If this is a reservation, the moment the reservation will expire.

clearing_expiry_timestring

The time when the processing of the clearing is expired, refunding the authorisation.

applied_limitstring

The type of the limit applied to validate if this MasterCardAction was within the spending limits. The returned string matches the limit types as defined in the card endpoint.

secure_code_idinteger

The secure code id for this mastercard action or null.

wallet_provider_idstring

The ID of the wallet provider as defined by MasterCard. 420 = bunq Android app with Tap&Pay; 103 = Apple Pay.

pos_card_presencestring

The Card Presence type of the POS.

pos_card_holder_presencestring

The Card Holder Presence type of the POS.

eligible_whitelist_idinteger

The whitelist id for this action or null.

additional_authentication_statusstring

The status of the additional authentication performed (3ds) by the user for this transaction.

pin_statusstring

Status checking the provided PIN.

merchant_category_codestring

The MCC provided.