List value list items
/value_lists/{list_id}/itemsRetrieves the items in a value list, sorted by creation time, oldest first.
Headers
AuthorizationstringRequiredPath parameters
list_idstringRequiredThe identifier of the value list.
Query parameters
created.greater_than_or_equalsstringReturn objects created on or after this date. Accepts an ISO 8601 date-time, a date (YYYY-MM-DD, read as midnight UTC) or a Unix timestamp in milliseconds. Mutually exclusive with created.greater_than.
created.greater_thanstringReturn objects created after this date. Accepts an ISO 8601 date-time, a date (YYYY-MM-DD, read as midnight UTC) or a Unix timestamp in milliseconds. Mutually exclusive with created.greater_than_or_equals.
created.less_than_or_equalsstringReturn objects created on or before this date. Accepts an ISO 8601 date-time, a date (YYYY-MM-DD, read as midnight UTC) or a Unix timestamp in milliseconds. Mutually exclusive with created.less_than.
created.less_thanstringReturn objects created before this date. Accepts an ISO 8601 date-time, a date (YYYY-MM-DD, read as midnight UTC) or a Unix timestamp in milliseconds. Mutually exclusive with created.less_than_or_equals.
limitintegerMaximum number of objects to return. Defaults to 10.
ending_beforestringA cursor for pagination. Returns items created before the item with this ID. Must be a value list item ID. Mutually exclusive with starting_after.
starting_afterstringA cursor for pagination. Returns items created after the item with this ID. Must be a value list item ID. Mutually exclusive with ending_before.
valuearray of stringsReturn list items whose stored value matches one of these values. Repeat the parameter (value=a&value=b) to match any of several values.
Values are compared with the stored, normalized value: emails are stored in lowercase, and card lists store the card's unique identifier (fingerprint), so a pm_card_ ID never matches.
Returns
Returns a list of value list item objects.
resourcestringRequiredString representing the object's type.
dataarray of objectsRequiredArray of value list item objects.
Show 10 child attributesHide child attributes
idstringUnique identifier for the value list item.
resourcestringString representing the object's type.
liststringUnique identifier of the value list this item belongs to.
created_atstringTime at which the value list item was created, in ISO 8601 format.
created_bystring or nullIdentifier of the API key or user that created the value list item, if applicable.
updated_atstring or nullTime at which the value list item was last updated, in ISO 8601 format. Null if it was never updated.
updated_bystring or nullIdentifier of the API key or user that last updated the value list item. Null if it was never updated.
test_modebooleanWhether the value list item was created in the sandbox.
metadataobjectSet of key-value pairs attached to the object. Omitted when the item has no metadata.
For card lists, the card details (bin, last_four_digits, brand, issuer_country, card_type, and issuer_name) are added to the metadata. For bank_account lists, the bank account's last4, bank_name, country, and currency are added.
valuestringValue of the value list item, as stored after normalization. Email values are stored in lowercase, and phone numbers as digits only.
For card lists, this is the card's unique identifier (fingerprint), not the pm_card_ or tok_card_ ID that was sent. For bank_account lists, it's the bank account's unique identifier, not the payment method ID that was sent.
has_morebooleanRequiredWhether there are more value list items available for pagination.
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.429Retry-After header.500503Retry-After, or after a few seconds when there's none.