Skip to Content
Docs
Value lists

Add cards to the card blacklist

PUT/value_lists/card_blacklist

Adds a card payment method (source), or all eligible card sources of a customer (customer_reference_id), to the merchant's card blacklist. Eligible sources are card, applepay and googlepay payment methods. Cards are stored by their unique identifier (fingerprint), so every payment method for the same card is blocked. If the card 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 card Payment Method to add or remove. Must start with pm_card_; card, Apple Pay and Google Pay payment methods are eligible.

customer_reference_idstring

Your unique identifier for the customer. All eligible sources of the customer (card, Apple Pay and Google Pay payment methods) are resolved and processed.

Returns

Returns the card blacklist list object.

idstring

Unique identifier for the card blacklist.

company_idstring

Unique identifier of the company that owns the card blacklist.

merchant_idstring

Unique identifier of the merchant that owns the card blacklist.

namestring

Name of the card blacklist.

aliasstring

Alias of the card blacklist.

typestring

Type of the values stored in the list.

created_bystring

Identifier of the API key or user that created the card blacklist.

created_atstring

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

Show 6 more attributesShow fewer attributes
updated_atstring

Time at which the card 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 card blacklist, if applicable.

itemsinteger

Number of entries in the card 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 card, Apple Pay or Google Pay payment method, or the customer was not found or has no eligible card sources.
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?