Skip to Content
Docs
Value lists

List value lists

GET/value_lists

Retrieves a page of your value lists. The results include the lists Pay.com manages for you, the card blacklist (alias pm_card_blacklist) and the bank account blacklist (alias pm_bank_account_blacklist), which can't be deleted.

Headers

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

Query parameters

from_datestring

Return value lists created on or after this time. Accepts an ISO 8601 date or date-time.

to_datestring

Return value lists created on or before this time. Accepts an ISO 8601 date or date-time.

pageinteger

Page number to start from.

Default: 1

limitinteger

Number of value lists displayed on the page.

Default: 10

Returns

Returns a list of value list objects.

resourcestringRequired

String representing the object's type.

dataarray of objectsRequired

Array of value list objects.

Show 11 child attributesHide child attributes
idstring

Unique identifier for the value list.

resourcestring

String representing the object's type.

namestring

Name of the value list.

aliasstring

Alias of the value list, unique among your value lists.

typestring

Type of the values stored in the list. One of custom, card, email, ip_address, billing_address, email_domain, bin, issuer_country, phone_number, card_name, customer_id, or bank_account.

One of custom, card, email, ip_address, billing_address, email_domain, bin, issuer_country, phone_number, card_name, customer_id or bank_account.

created_atstring

Time at which the value list was created, in ISO 8601 format.

created_bystring or null

Identifier of the API key or user that created the value list, if applicable.

updated_atstring or null

Time at which the value list was last updated, in ISO 8601 format. Null if it was never updated.

updated_bystring or null

Identifier of the API key or user that last updated the value list. Null if it was never updated.

items_countinteger

Number of items in the value list.

test_modeboolean

Whether the value list was created in the sandbox.

last_pagebooleanRequired

Whether the current page is the last page.

pageintegerRequired

Current page number.

total_pagesintegerRequired

Total number of pages.

total_recordsintegerRequired

Total number of value lists.

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.
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?