Skip to Content
Docs
Value lists

Add bank accounts to the bank account blacklist

PUT/value_lists/bank_account_blacklist

Adds a bank account payment method (source), or all bank account sources of a customer (customer_reference_id), to the merchant's bank account blacklist. If the bank account blacklist does not exist, it is created automatically.

Headers

AuthorizationstringRequired
HTTP Basic auth: your API key as the password, with an empty username. See Authentication.

Parameters

sourcestring

Unique identifier of the bank account Payment Method to add or remove, in the format pm_<country>_bank_account_<id>.

customer_reference_idstring

Your unique identifier for the customer. All bank account sources of the customer are resolved and processed.

Returns

Returns the bank account blacklist list object.

idstring

Unique identifier for the bank account blacklist.

company_idstring

Unique identifier of the company that owns the bank account blacklist.

merchant_idstring

Unique identifier of the merchant that owns the bank account blacklist.

namestring

Name of the bank account blacklist.

aliasstring

Alias of the bank account blacklist.

typestring

Type of the values stored in the list.

created_bystring

Identifier of the API key or user that created the bank account blacklist.

created_atstring

Time at which the bank account blacklist was created, as a Unix timestamp in milliseconds.

Show 6 more attributesShow fewer attributes
updated_atstring

Time at which the bank account blacklist was last updated, as a Unix timestamp in milliseconds, if applicable.

updated_bystring

Identifier of the API key or user that last updated the bank account blacklist, if applicable.

itemsinteger

Number of entries in the bank account blacklist.

is_user_generatedboolean

Whether the list was created by a user.

internalboolean

Whether the list is managed by Pay.com.

allow_updates_to_groupsarray of strings

List permissions.

Errors

400
Invalid request parameters.
401
The API key or access token is missing, unknown or no longer works (invalid_key, invalid_token, legacy_keys_ended, legacy_keys_off or permission_denied).
403
The request was refused: the API key may not make it (for example resource_not_allowed, key_disabled, network_not_allowed, pci_required or merchant_required), or this resource isn't enabled for your account (permission_denied). code says why.
404
The source was not found or is not a bank account payment method, or the customer was not found or has no bank account payment methods.
500
Internal server error.
503
Service unavailable. Retry after the number of seconds in Retry-After, or after a few seconds when there's none.
Was this page helpful?