Value lists
Remove bank accounts from the bank account blacklist
DELETE
/value_lists/bank_account_blacklistRemoves a bank account payment method (source), or all bank account sources of a customer (customer_reference_id), from the merchant's bank account blacklist. This endpoint does not create the bank account blacklist if it does not exist.
Headers
AuthorizationstringRequiredHTTP Basic auth: your API key as the password, with an empty username. See Authentication.
idempotency-keystringA unique key, such as a UUID, that makes a POST or DELETE request safe to retry. Pay.com keeps each key for 24 hours, separately for each workspace.
- A retry with the same key, endpoint and body gets the first request's stored status and body, without running the request again.
- If the first request is still being processed, a retry gets 409
idempotency_error(request_in_progress). - The same key on another endpoint, or with another body, gets 400
idempotency_error(invalid_parameters). - GET, PUT and PATCH requests ignore the key.
The response repeats the key in its Idempotency-Key header.
Parameters
sourcestringUnique identifier of the bank account Payment Method to add or remove, in the format pm_<country>_bank_account_<id>.
customer_reference_idstringYour unique identifier for the customer. All bank account sources of the customer are resolved and processed.
Returns
Bank account blacklist entries deleted successfully. No content is returned.
Errors
400Invalid request parameters.
401The 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).403The 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.404The bank account blacklist does not exist or is empty, 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.
409Another request with the same
idempotency-key is still being processed (request_in_progress). Wait, then retry with the same key.500Internal server error.
503Service unavailable. Retry after the number of seconds in
Retry-After, or after a few seconds when there's none.Was this page helpful?