Add cards to the card blacklist
/value_lists/card_blacklistAdds 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
AuthorizationstringRequiredParameters
sourcestringUnique 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_idstringYour 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.
idstringUnique identifier for the card blacklist.
company_idstringUnique identifier of the company that owns the card blacklist.
merchant_idstringUnique identifier of the merchant that owns the card blacklist.
namestringName of the card blacklist.
aliasstringAlias of the card blacklist.
typestringType of the values stored in the list.
created_bystringIdentifier of the API key or user that created the card blacklist.
created_atstringTime at which the card blacklist was created, as a Unix timestamp in milliseconds.
Show 6 more attributesShow fewer attributes
updated_atstringTime at which the card blacklist was last updated, as a Unix timestamp in milliseconds, if applicable.
updated_bystringIdentifier of the API key or user that last updated the card blacklist, if applicable.
itemsintegerNumber of entries in the card blacklist.
is_user_generatedbooleanWhether the list was created by a user.
internalbooleanWhether the list is managed by Pay.com.
allow_updates_to_groupsarray of stringsList permissions.
Errors
400401invalid_key, invalid_token, legacy_keys_ended, legacy_keys_off or permission_denied).403resource_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.404500503Retry-After, or after a few seconds when there's none.